Commit Graph

4736 Commits

Author SHA1 Message Date
Matthias Mailänder
c6cc0ecd29 Merge pull request #10323 from RoosterDragon/struct-equatable
Ensure some structs implement IEquatable<T>.
2015-12-30 09:28:09 +01:00
atlimit8
68fd5dfd58 Merge pull request #10272 from RoosterDragon/player-dict
Speed up dictionaries keyed on Player
2015-12-29 19:27:11 -06:00
RoosterDragon
4948f73154 Ensure some structs implement IEquatable<T>. 2015-12-29 15:27:00 +00:00
abcdefg30
a7de8b3919 Merge pull request #10256 from RoosterDragon/fal-partitioning
Spatially partition frozen actors
2015-12-29 16:16:26 +01:00
abcdefg30
e38424a2eb Merge pull request #10133 from Mailaender/benchmark
Added a benchmark mode
2015-12-29 15:20:28 +01:00
abcdefg30
3c171569a7 Merge pull request #10193 from atlimit8/ITraitInfoInterface
TraitInfoInterface base for interfaces implemented by trait infos
2015-12-29 15:04:57 +01:00
RoosterDragon
4b2df6d133 Merge pull request #10290 from Phrohdoh/remove-fromdict
Remove unused methods in MiniYaml
2015-12-29 02:26:43 +00:00
RoosterDragon
8d2fc24fbe Speed up SpatiallyPartitioned.InBox for searches in a single partition bin.
If a search in a spatial partition is taking place entirely within a single bin, the cost of tracking possible duplicate items with a set can be avoided for a small speedup.
2015-12-28 21:49:58 +00:00
RoosterDragon
8ec03ab3b7 Spatially partition frozen actor layer.
Track changes in the shroud in a spatial partition in frozen actor layer. This allows us to run the expensive visibility updates only on frozen actors with a footprint in affected partitions, rather than on all frozen actors every time.
2015-12-28 21:49:57 +00:00
Paul Chote
7cc8846d72 Merge pull request #10271 from RoosterDragon/point-sequencing
Support sending sequences of points when drawing lines
2015-12-28 19:36:49 +00:00
Oliver Brakmann
3cd708d2bb Merge pull request #10302 from Phrohdoh/attrib-require-traits
Allow ActorReferenceAttribute to list required traits
2015-12-28 14:30:01 +01:00
Oliver Brakmann
906aa0f1fd Merge pull request #10003 from r34ch/mute-setting
Mute setting
2015-12-28 14:07:27 +01:00
Sean Hunt
8f4ec87b63 Factor silos needed warning to a new trait. 2015-12-27 14:40:37 -05:00
Oliver Brakmann
14b6034e9d Merge pull request #10216 from pchote/remove-tags
Reimplement Primary and Fake tags using WithDecoration.
2015-12-27 19:43:57 +01:00
Taryn Hill
a7a6f41ef9 Allow ActorReferenceAttribute to list required trait types enforced by --check-yaml 2015-12-27 11:24:13 -06:00
Oliver Brakmann
5a27150587 Merge pull request #9977 from RoosterDragon/dispose-lua-values
Ensure LuaValues are disposed
2015-12-27 17:20:39 +01:00
reaperrr
7bd0ce012d Merge pull request #10270 from RoosterDragon/less-samples
Remove some unneeded PerfSamples
2015-12-27 15:52:12 +01:00
Taryn Hill
2974af83c6 Remove unused MiniYaml methods From(Dictionary|List) 2015-12-27 07:56:41 -06:00
RoosterDragon
da84f3d5ef Allow AUD file with sample rates other than 22050 Hz. 2015-12-27 00:05:28 +00:00
Paul Chote
74fb9bbfbb Remove legacy SetLineWidth methods. 2015-12-26 13:51:53 +00:00
Paul Chote
788def1c31 Remove Quad rendering support. 2015-12-26 12:46:55 +00:00
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
Paul Chote
409a0052ca Remove legacy tag rendering. 2015-12-26 12:38:27 +00:00
Paul Chote
5b017cee58 Remove "Primary" tag. 2015-12-26 12:38:27 +00:00
Paul Chote
ef2f9cbafa Remove "Fake" tag. 2015-12-26 12:38:27 +00:00
Paul Chote
3ceacbb7c1 Fix Z-sorting for UISpriteRenderable. 2015-12-26 12:37:22 +00:00
DArcy Rush
67f88e368f Add mute option to the game 2015-12-25 23:33:18 +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
276c1984fd document graphic settings interesting for benchmarking 2015-12-25 19:30:18 +01:00
Matthias Mailänder
d4e842e643 add a benchmark mode 2015-12-25 19:30:15 +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
RoosterDragon
3a2139de26 Add PlayerDictionary.
This custom collection allows other classes to implement a Player to value mapping, but also stores the values in an array for faster lookup by the player index in the world. For some code, this improved lookup time is important for performance.
2015-12-23 23:54:04 +00:00
RoosterDragon
5c14044138 Support sending sequences of points when drawing lines.
This allows the graph widgets to avoid having to create temporary arrays just to draw these lines, which reduces GC pressure.
2015-12-23 22:58:53 +00:00
RoosterDragon
611a928a47 Prevent changing world players after being set once. 2015-12-23 21:53:47 +00:00
RoosterDragon
6d02d5ebaa Remove some unneeded PerfSamples. 2015-12-23 20:19:22 +00:00
atlimit8
b07cd683e8 Easier actor selection in game by actor bounds center 2015-12-23 12:09:08 -06:00
RoosterDragon
6ab6d774a7 Ensure LuaValues are disposed.
Adding in these missing calls prevents these instances from having to be finalized.
2015-12-23 17:22:51 +00: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