Paul Chote
d0e9af8f6b
Convert VoxelRenderer to TriangleList.
2015-12-26 12:46:55 +00:00
Paul Chote
a754a96b77
Convert SpriteRenderer to TriangleList.
2015-12-26 12:46:54 +00:00
Paul Chote
af344452ea
Convert RgbaColorRenderer to TriangleList.
2015-12-26 12:46:54 +00:00
Oliver Brakmann
9ea2e0015d
Merge pull request #10255 from pchote/campaign-colors-redo
...
Enable original TD campaign colors.
2015-12-25 19:48:18 +01:00
Matthias Mailänder
e80625880f
Merge pull request #10011 from atlimit8/EasierActorSelectionInGame
...
Better actor selection in game by actor bounds center
2015-12-25 19:17:12 +01:00
Matthias Mailänder
7335c4a8ce
Merge pull request #10069 from penev92/soundLoader
...
Add plumbing for mod-defined sound loaders
2015-12-25 14:40:43 +01:00
atlimit8
b07cd683e8
Easier actor selection in game by actor bounds center
2015-12-23 12:09:08 -06:00
Paul Chote
fef25c7269
Add IndexedPlayerPalette for original campaign colors.
2015-12-21 15:05:28 +00:00
Matthias Mailänder
0fe644f458
Merge pull request #10203 from pchote/widelines2
...
Rewrite line renderer: Part 2 (remove LineRenderer plus other cleanups)
2015-12-21 07:36:21 +01:00
Oliver Brakmann
71478aa2b8
Merge pull request #9734 from RoosterDragon/auto-target-perf
...
Improve AutoTarget performance
2015-12-20 19:53:17 +01:00
Pavel Penev
42c98ec154
Don't crash when parsing corrupt sound files
...
Log the exception and move to the next parser.
2015-12-20 19:17:54 +02:00
Pavel Penev
8542ed33ce
Add ModData.GetLoaders()
...
Extract sound loaders and sprite loaders creation into a generic method to avoid code duplication.
2015-12-20 19:17:53 +02:00
Pavel Penev
a31b0becf1
Make AudLoader implement ISoundLoader
2015-12-20 19:17:50 +02:00
Pavel Penev
5063e56786
Make WavLoader implement ISoundLoader
2015-12-20 19:17:49 +02:00
Pavel Penev
8d56de80ca
Add ISoundLoader
...
The interface is to be implemented by all sound loaders, just like ISpriteLoader. All loading goes through the interface. This would allow mods to create their own sound loaders outside the engine.
Also add a SoundFormats property to mod.yaml, where mods can define what sound loaders they will need.
This requires Game.Sound to be initialized after the ModData is loaded.
2015-12-20 19:17:48 +02:00
abcdefg30
e5cb7e03e1
Merge pull request #10239 from penev92/annotationChange
...
Use '@' in mod.yaml to indicate extra info
2015-12-20 17:47:36 +01:00
Paul Chote
e021617c85
Remove duplication from FillRect.
2015-12-19 12:28:59 +00:00
Paul Chote
4ffee12065
Remove legacy line rendering code.
2015-12-19 12:28:59 +00:00
Paul Chote
8e9318e64d
Use RgbaColorRenderer in UISpriteRenderable.
2015-12-19 12:28:59 +00:00
Paul Chote
c618c2d8ab
Use RgbaColorRenderer for selection box rendering.
2015-12-19 12:28:10 +00:00
Paul Chote
8719b4ed3c
Use RgbaColorRenderer in SpriteRenderable / TextRenderable.
2015-12-19 12:28:10 +00:00
Paul Chote
cdf4aaf2b8
Use RgbaColorRenderer in SelectionBarsRenderable.
2015-12-19 12:28:09 +00:00
Paul Chote
03a48a7a41
Use RgbaColorRenderer in TargetLineRenderable.
2015-12-19 12:28:09 +00:00
Paul Chote
bb0a7bdaf5
Add two-colour line rendering to RgbaColorRenderer.
2015-12-19 12:28:09 +00:00
Paul Chote
c5dbc5fab7
Add composite line drawing methods to RgbaColorRenderer.
2015-12-19 12:28:09 +00:00
Paul Chote
43226d7c55
Move DrawRollover to WICW.
2015-12-19 12:28:08 +00:00
Paul Chote
0f1fcdaca4
Move DrawTargetMarker to TargetLineRenderable.
2015-12-19 12:28:08 +00:00
Oliver Brakmann
879ccaf4f8
Fix the StartsRevealed option of FrozenUnderFog being ignored
2015-12-18 20:32:10 +01:00
Pavel Penev
55bb7eb1a0
Use '@' in mod.yaml to indicate extra info
...
Applies to MapFolders (to indicate System and User directories) and Packages (to indicate package annotation).
2015-12-16 23:39:22 +02:00
Oliver Brakmann
20725c9b2c
Merge pull request #10153 from abcdefg30/repairableNear
...
Add a 'Voice' field to RepairableNearInfo
2015-12-14 21:59:56 +01:00
Oliver Brakmann
02fa63c1b4
Merge pull request #9853 from penev92/unglobalFileSystem
...
Unglobal file system
2015-12-14 20:52:30 +01:00
atlimit8
bee590a057
Merge pull request #10208 from RoosterDragon/perf-comments
...
Added some performance comments
2015-12-13 20:46:07 -06:00
Pavel Penev
d08a400565
Add a context argument to package files contructors
2015-12-14 03:42:25 +02:00
Pavel Penev
4ce1444c6b
Fix shader loading
...
Also remove now redundant mounting of the game directory
2015-12-14 03:42:24 +02:00
Pavel Penev
1b88d24cfa
Unstatic GlobalFileSystem and rename it to FileSystem
...
Add a ModFiles field on ModData and move all access to the file system to go through that.
2015-12-14 03:42:22 +02:00
Pavel Penev
5684bcec1c
Move IFolder out of GlobalFileSystem.cs
2015-12-14 03:42:18 +02:00
Matthias Mailänder
02c5c1bbfb
Merge pull request #10148 from pchote/widelines
...
Rewrite line renderer: Part 1 (improved lasers plus other cleanups)
2015-12-13 20:55:54 +01:00
Oliver Brakmann
1f440baaa0
Merge pull request #10120 from RoosterDragon/gps-dot-perf
...
Fix broken GPS and frozen actor behaviour
2015-12-13 18:28:12 +01:00
RoosterDragon
b0619a3e25
Added comments in performance sensitive code.
2015-12-13 16:24:54 +00:00
abcdefg30
62addb9c60
Merge pull request #10182 from obrakmann/fix9851-attackmove-click-madness
...
Fix AttackMove not working properly under certain conditions
2015-12-13 16:06:51 +01:00
Oliver Brakmann
59d22a2ff0
Fix AttackMove not working properly under certain conditions
...
This fixes the issue where AttackMove (and possibly other order modes) would not work properly when people were clicking their mouse buttons at the same time. A move order (the default order mode) would be issued instead.
2015-12-13 14:16:06 +01:00
abcdefg30
301c2f0ca0
Add a 'Voice' field to RepairableNearInfo
2015-12-13 01:08:34 +01:00
RoosterDragon
21292061f9
Added "PERF: Avoid LINQ." comments.
2015-12-12 21:05:13 +00:00
RoosterDragon
0fab3ec1b2
Remove LINQ in some performance critical AutoTarget paths.
2015-12-12 20:55:18 +00:00
RoosterDragon
dcf375a412
Store Targetables in Actor.
...
This can be used to avoid several lookups for these traits, as well as allow Actor to provide specialised methods to deal with target types efficiently. This also reduces some code duplication.
2015-12-12 20:55:17 +00:00
RoosterDragon
aaa82339d1
Small cleanup in TraitDictionary.
2015-12-12 20:46:10 +00:00
RoosterDragon
c0286bb147
Remove ActorMap.ActorsInWorld.
...
Prefer the more direct and efficient query on World.Actors instead.
2015-12-12 20:42:44 +00:00
RoosterDragon
cbc090dd38
Ensure frozen actors are rendered on the first tick they become visible.
...
The previous lazy rendering means the snapshot of the render state might be more up to date then when the frozen actor actually did become visible. Now, we take this snapshot as soon as needed. We still retain the performance of only doing this rendering when needed by avoiding extra rendering until the visibility cycles again.
2015-12-12 19:54:25 +00:00
Paul Chote
8230be6a14
Merge pull request #10196 from RoosterDragon/hardware-cursoring
...
More graceful hardware cursor failing
2015-12-12 12:55:53 +00:00
Paul Chote
78556ec60c
Remove obsolete WorldRenderer.DrawRangeCircle.
2015-12-10 23:25:58 +00:00