Paul Chote
d112083c44
Clean up sound devices on game exit.
2015-09-20 22:46:07 +01:00
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01:00
atlimit8
131084d129
Changed missed ActorInfo.Traits.Contains => ActorInfo.HasTraitInfo
2015-09-19 12:06:37 -05:00
atlimit8
09984683a7
Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types
2015-09-19 09:56:14 -05:00
atlimit8
8162fa27ab
Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types
2015-09-19 09:49:24 -05:00
atlimit8
85fab45451
Remove Actor.HasTrait<T>()
2015-09-19 09:49:23 -05:00
reaperrr
4fa20e78fa
Merge pull request #9304 from atlimit8/Fix_AttackBase_GetMinimumRange
...
Make AttackBase.GetMinimumRange() return WDist.Zero if there are no available armaments
2015-09-18 01:26:35 +02:00
abcdefg30
f78aea4f90
Merge pull request #8636 from Mailaender/irc
...
Added the in-game IRC client again
2015-09-13 17:14:36 +02:00
Matthias Mailänder
dae3b62d2a
add a simple in-game IRC client
2015-09-09 20:56:05 +02:00
Pavel Penev
20fe9a9ff2
Merge pull request #9255 from pchote/gamespeed
...
Add a game speed dropdown to the lobby options.
2015-09-09 18:14:05 +03:00
Pavel Penev
7d7e3a8e0e
Merge pull request #9294 from RoosterDragon/remove-shroud-tests
...
Remove Shroud.IsVisibleTest and IsExploredTest
2015-09-09 17:22:00 +03:00
atlimit8
b6ffcb8279
Add WDist.MaxValue
2015-09-08 23:25:48 -05:00
RoosterDragon
d1960258db
Speed up Player.CanViewActor.
...
Create Actor.CanBeViewedByPlayer and simply call this instead. The actor can cache all trait lookups on construction to avoid them being repeated for every visibility check.
2015-09-06 23:29:09 +01:00
RoosterDragon
ebf113dfb7
Remove Shroud.IsVisibleTest and IsExploredTest.
...
These are no longer any faster than the regular checks, so there's no need to keep them.
2015-09-06 21:13:32 +01:00
RoosterDragon
662077a47e
Merge pull request #9103 from reaperrr/water-rot
...
Refactored WaterPaletteRotation into RotationPaletteEffect
2015-09-06 20:19:09 +01:00
TheRaffy
1fc2158f2e
Added a WeatherOverlay
2015-09-06 20:25:29 +02:00
reaperrr
ca055eb7bb
Refactored WaterPaletteRotation
...
Moved RotationBase from tileset definition to WaterPaletteRotation effect.
Unhardcoded rotation range and rotation rate.
Added possibility to exclude Tilesets from effect.
Fixed RA water palette rotation for actors on desert maps (#8872 ).
2015-09-06 19:25:10 +02:00
Paul Chote
1109ec53d1
Update UI timers for variable game speed.
2015-09-06 17:48:42 +01:00
Paul Chote
301b698c81
Add game speed dropdown to the lobby.
2015-09-06 17:48:41 +01:00
Paul Chote
257c043e58
Add Timestep property to GlobalSettings.
2015-09-06 17:48:26 +01:00
Matthias Mailänder
c206bebb7f
Merge pull request #9274 from pchote/fix-sound-engine
...
Don’t create multiple sound contexts.
2015-09-06 11:35:50 +02:00
atlimit8
8250f223c4
More HashSet trait fields & Lint support
2015-09-05 16:59:30 -05:00
Paul Chote
886d489766
Don’t create multiple sound contexts.
2015-09-05 18:29:14 +01:00
RoosterDragon
901e604cf3
Replace arrays with sets.
...
In places where arrays were being treated as a set, just create a set directly. This reveals the intention of such collections better, and also improves performance by allowing set based methods to be used.
2015-09-03 20:09:24 +01:00
atlimit8
fadfd179cb
Cache FrozenActor ITargetable.TargetTypes union
2015-09-02 23:19:00 -05:00
atlimit8
23d0424437
Add ITargetablePositions seperating it from ITargetable
2015-09-02 23:14:40 -05:00
atlimit8
f5c3575c5a
Support multiple ITargetable traits
2015-09-02 23:14:40 -05:00
Pavel Penev
c4bf92870b
Merge pull request #9083 from Mailaender/lint-cleanup
...
Cleaned up the ILint boiler plate code
2015-09-02 15:49:43 +03:00
Pavel Penev
a3633671a9
Fix the build after a bad merge
...
Merging #9187 without rebasing it on post-#9182 bleed was a bad idea.
2015-09-02 15:22:14 +03:00
Pavel Penev
ba9abc9e0a
Merge pull request #9187 from RoosterDragon/field-saver-culture
...
Fix culture in FieldSaver for collections
2015-09-02 15:14:42 +03:00
Pavel Penev
256929073c
Clean up some trait info loading code
...
Remove some methods that traits define to load their YAML values on their own.
2015-09-01 22:52:22 +03:00
Pavel Penev
8ddbabbfde
Add Dictionary<,> support to FieldSaver
2015-09-01 22:52:20 +03:00
Pavel Penev
341b3395c8
Add Dictionary<,> support to FieldLoader
2015-09-01 22:52:18 +03:00
Pavel Penev
821e09877d
Remove an assumption from FieldLoader.TryGetValueFromYaml() about the current value not having subnodes.
...
FieldLoader assumed the YAML that is being loaded is a simple value with no subnodes and threw an exception otherwise. This explicitly excluded the possibility of trying to load a Dictionary or another more complex object.
2015-09-01 22:52:04 +03:00
Matthias Mailänder
2df76ad962
add an overload that doesn't use string.Format
2015-09-01 20:59:14 +02:00
RoosterDragon
d9dd96ca35
Speed up Map.ContainsAllProjectedCellsCovering on flat maps.
...
This method gets called often via Contains calls. We can significantly speed up the method for flat maps since we know the projection and it is trivial to perform. This avoids an expensive projection lookup.
2015-08-31 20:45:32 +01:00
RoosterDragon
dab53f403d
Provide a hand-written enumerator for ActorMap.GetUnitsAt(CPos).
2015-08-31 20:43:19 +01:00
RoosterDragon
18478646d4
Avoid multiple ToMPos calls in ActorMap.
2015-08-31 20:43:18 +01:00
RoosterDragon
4eacb6e5c9
Transparently cache results of GetTerrainIndex in Map.
...
This method performs an expensive calculation and is called often during pathfinding. We create a cache of the terrain indicies for the map to vastly reduce the cost.
2015-08-31 20:43:17 +01:00
RoosterDragon
fa87befeff
Add missing CellEntryChanged checks.
2015-08-31 20:43:16 +01:00
Matthias Mailänder
0b8d7708ef
add more lint interfaces to reduce boiler plate
2015-08-30 13:12:25 +02:00
Matthias Mailänder
72dffe3391
dispose res properly
2015-08-29 18:47:10 +02:00
Matthias Mailänder
9c1eeafa08
Merge pull request #9004 from reaperrr/quanbo
...
Introduce QuantizeFacingsFromSequence
2015-08-28 22:46:29 +02:00
RoosterDragon
d11e60474a
Ensure the elements of arrays and sets are formatted correctly in FormatValue.
...
We call FormatValue on each element to ensure correct culture and other formatting that would otherwise not be applied.
2015-08-28 19:39:25 +01:00
RoosterDragon
243763f570
Remove redundant invariant culture handling for float, decimal, double.
...
This is already handled by the type converter portion of the code.
2015-08-28 19:33:59 +01:00
RoosterDragon
2f9ca36506
Update WeaponInfo to use HashSets for some fields directly.
2015-08-27 21:48:12 +01:00
RoosterDragon
5a177a889c
Add ability to load and save HashSets.
2015-08-27 21:48:09 +01:00
RoosterDragon
410b97823a
Ensure our array handling only accepts single dimensional arrays.
2015-08-27 21:31:24 +01:00
reaperrr
18b8eb30a3
Merge pull request #9134 from clemty/docs
...
minor LUA and trait documentation fixes, whitespace fixes
2015-08-24 21:26:20 +02:00
abcdefg30
b9f4431ed0
Merge pull request #9151 from penev92/bleed_summaries
...
Add a bit of code documentation
2015-08-24 21:18:11 +02:00