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
RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00:00
Hellhake
b6410bc1e0
Fix StyleCop warnings in OpenRA.Mods.RA
2015-01-02 14:39:49 +01:00
reaperrr
ffca040c47
Moves traits from Common and Power namespaces to Common.Traits namespace
2014-12-11 23:21:31 +01:00
reaperrr
7470391c5d
Move RA World traits, FrozenUnderFog Modifier and various other traits into Traits
2014-12-03 12:52:17 +01:00
Paul Chote
f5c09121ad
Remove buggy classic mouse orders. Closes #3153 .
2014-11-15 09:40:25 +13:00
steelphase
2f87a62ee8
Mods.Common Widgets
...
Moved over Widgets that don't require a bunch of things to move.
2014-10-01 09:48:41 -04:00
Matthias Mailänder
97b97a4dd2
bring back click sound for TAB and PageUp/Down
2014-08-24 08:29:19 +02:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
2af123034d
Use ExtraData for SetStance and SetUnitStance.
2014-06-26 23:14:13 +12:00
Paul Chote
7d24053f52
Introduce Order.SuppressVisualFeedback to cleanly disable flashes.
2014-06-26 23:14:13 +12:00
Matthias Mailänder
3a1c41c8ce
move pixel doubling and health bar hotkeys to shared widget
...
closes #5572
2014-06-07 12:26:58 +02:00
RoosterDragon
b733465f33
General uncontroversial cleanup:
...
- Made private methods static where possible (runtime can elide checking the object for null).
- Declared attribute classes as sealed (allows reflection on attributes to complete faster).
- Moved some static cctor's into field initializers (static cctor's are slower than static field initializers).
- Made classes static if they contained only static methods (can't create instances of useless objects).
- Use inferable Exts.Lazy and not new Lazy<T>().
- Added required STAThread attribute to CrashDialog.
- Removed unused parameters in private methods.
- Added Serializable attribute to exceptions.
- Added parameter name in calls to ArgumentNullException.
- Use of as operator instead of is + cast.
- Changed (x as Foo).Bar anti-pattern into ((Foo)x).Bar. Results in sensible cast exceptions on error rather than null dereferences.
- Removed unused method in NullShader.
2014-05-23 15:50:54 +01:00
Matthias Mailänder
9c483a912e
added a new hotkey to trigger pixel doubling
...
closes #5122
2014-04-18 17:49:55 +02:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
9541686de3
Add an order button for beacon placement.
2014-03-22 00:12:28 +13:00
Matthias Mailänder
d7b891d995
Merge pull request #4682 from ScottNZ/beacon
...
closes #2320
closes #3767
closes #3810
2014-02-23 09:55:23 +01:00
Taryn
d5f4813bc4
Actors with EnableStances set to false should now ignore stance change commands.
2014-02-21 19:14:22 -06:00
ScottNZ
0a9a959ecf
Change spacebar key to move to the last visible radar ping location
2014-02-22 00:07:54 +13:00
ScottNZ
2a8efde8e6
Add map beacons and radar pings
2014-02-22 00:07:53 +13:00
Paul Chote
85500c0ec7
Tidy AutoTarget code.
2014-02-01 10:55:04 +13:00
Matthias Mailänder
2e6646bd73
cycle production buildings ordered by products
2013-12-08 12:02:44 +01:00
Matthias Mailänder
b72ea8c227
added a new hotkey to cycle production buildings except conyards
2013-12-07 12:20:10 +01:00
Curtis Shmyr
d30f60809b
Added 2 settings for unit health bars: always show unit health, and team health bar colors
2013-11-24 12:12:52 -07:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
ScottNZ
7c5f3cc0f1
Replace some Where-FirstOrDefault chains with a single call to FirstOrDefault
2013-11-12 17:21:31 +13:00
ScottNZ
9eff54c217
Add MAD Tank and InvalidTargets field to WeaponInfo
2013-11-02 17:19:08 +13:00
Paul Chote
7ffbfb9b7e
Add a Hotkey class for user-configurable keys. Fixes #3779 .
...
Users can now define and use hotkeys that include modifiers (ctrl/meta/shift/alt).
2013-10-22 09:14:05 +13:00
Paul Chote
aab6fec68b
Remove VirtKey and KeyName.
2013-10-21 20:24:24 +13:00
Paul Chote
f575c20d38
Route viewport centering via WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b3d608092c
Tidy WorldCommandWidget.
2013-10-05 21:01:21 +13:00
ScottNZ
5f3563d83e
Fix #3354 : Guard queries trait from destroyed object
2013-05-31 18:10:56 +12:00
Scott_NZ
6e5d58379f
Add unit guarding
2013-05-16 21:23:58 +12:00
Matthias Mailänder
f4abe08863
fixes #2947 don't perform keyboard orders on destroyed actors
2013-04-04 19:24:30 +02:00
Matthias Mailänder
0a82bfe552
format TODO: uniformly to auto-generate task list in MonoDevelop
2013-03-27 09:45:17 +01:00
Matthias Mailänder
7f6eaf8d5e
move order button hotkey logic to ingame chrome logic
...
removes power-down again from cnc mod as it is not wanted there
2013-03-23 09:47:35 +01:00
Matthias Mailänder
0978d21439
fix problems in MultiTapDetection
2013-03-02 16:52:59 +01:00
Matthias Mailänder
c0a702a386
new hotkey to center your view on the current selection
2013-03-02 11:53:45 +01:00
Matthias Mailänder
b31f830cb1
key config settings code cleanup
...
- move label and textfield widget lookup into SetupKeyBinding
- fix wonkey indentions
- remove explicit private in WorldCommandWidget
2013-03-01 19:13:21 +01:00
Matthias Mailänder
1f99b1ec8e
make hotkey user-configurable via in-game settings
2013-02-09 14:08:36 +01:00
Matthias Mailänder
c5313375f0
pull mouse button preference from global property
2013-01-18 10:57:41 +13:00
Matthias Mailänder
d52394bb47
add classic left-click orders
2013-01-18 10:57:40 +13:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
5c4e49cc3f
fix #2196 - crash when cycling stances while a unit dies
2012-06-21 09:33:47 +12:00
Chris Forbes
809b716d0d
tidy silly Enum.GetValues type nonsense
2011-12-31 11:02:38 +13:00
Chris Forbes
0d25b6b5c9
use spacebar to go to last attack event
2011-12-31 10:48:30 +13:00
Chris Forbes
5a029e337a
fixed #1257 - predict stance changes on the client
2011-11-04 19:09:46 +13:00
Chris Forbes
6010034b4a
remove ObjectCreator.Param and all associated nonsense
2011-10-21 18:16:07 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00