RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Matthias Mailänder
1b0e3a7a7f
StyleCop clean OpenRA.Mods.RA
2015-01-04 17:02:46 +01:00
reaperrr
654f56c5d5
Moves Attack, Armament, Move, Air traits and activities as well as anything required by them to Mods.Common.
...
Extracts Exit from Production into its own trait.
2015-01-04 05:24:28 +01:00
reaperrr
9dfd369446
Move some Building traits and related elements to Mods.Common
2014-12-26 21:38:49 +01:00
reaperrr
d58807cdb8
Dissolve RA.Buildings namespace.
...
Move a handfull related, loose traits to RA.Traits as well.
2014-12-26 21:38:46 +01:00
huwpascoe
a660bb95b5
Actor properties consistency improved
2014-11-21 02:44:05 +00:00
reaperrr
127969d014
Move Air activities and traits to Activities\Air and Traits\Air, respectively
2014-11-17 12:56:18 +01:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +12:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
ScottNZ
74e2baeb48
Fix a few spelling errors
2013-11-12 19:39:41 +13:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
ScottNZ
aec50426d5
Fix some broken logic in AI air targeting code
2013-11-02 17:19:07 +13:00
Paul Chote
d272715c50
Revert "Filter AI targets based on what it can actually attack. Fixes #3763."
...
This reverts commit 4791f93d77 .
2013-09-08 16:57:29 +12:00
Paul Chote
4791f93d77
Filter AI targets based on what it can actually attack. Fixes #3763 .
2013-09-02 19:39:06 +12:00
Paul Chote
fc324baf5f
Rename IsReloadable -> ReloadsAutomatically.
2013-08-29 20:14:38 +12:00
Paul Chote
c3da842b06
Initial cleanup of AirStates.
2013-08-29 20:14:37 +12:00
Paul Chote
d46c535850
Rename and simplify MayBeFlee -> ShouldFlee.
2013-08-29 20:14:37 +12:00
Paul Chote
7bcdf7d74b
Merge CalculateFuzzy and CanAttack.
2013-08-29 20:14:37 +12:00
Paul Chote
f6730a6740
Remove StateBase.AverageUnitsPosition.
2013-08-29 20:14:36 +12:00
Paul Chote
ea1b5fc89d
Remove explicit List<Actors> everywhere.
2013-08-29 20:14:36 +12:00
Paul Chote
5d142945eb
Initial cleanup of StateBase.
2013-08-29 20:14:36 +12:00
Paul Chote
233ba81976
Change Squad.IsEmpty -> IsValid.
2013-08-29 20:14:36 +12:00
Paul Chote
fd311502f5
Rename IState interface method names.
2013-08-29 20:14:35 +12:00
Paul Chote
b2a91cc8f8
Initial cleanup of Squad.
2013-08-29 20:14:35 +12:00
Paul Chote
de8c736ca4
Split HackyAI into a more manageable set of files.
2013-08-29 20:14:33 +12:00