steelphase
f948bf0d1b
Add Mod.Common Graphics
...
Moved Graphics to Mod.Common
2014-09-21 01:34:35 -04:00
Paul Chote
79dabe01e8
Account for walls in actor previews.
2014-08-03 22:23:48 +12:00
Paul Chote
5650d5fc98
Revert "use TickRender() for RenderSprites and PaletteModifier"
...
This reverts commit 87fd576b26 .
2014-07-08 11:09:54 +12:00
Paul Chote
18c9a25232
Revert "freeze animations during pause to visualize it better"
...
This reverts commit 960248fe44 .
2014-07-08 10:40:06 +12:00
Matthias Mailänder
960248fe44
freeze animations during pause to visualize it better
2014-07-06 08:24:08 +02:00
Matthias Mailänder
d580ca6417
ActorMap is updated in Tick
...
so we can't search for adjacent actors in TickRender
2014-07-06 08:24:08 +02:00
Matthias Mailänder
394d635dae
new trait WithMakeAnimation
2014-07-06 08:24:08 +02:00
Matthias Mailänder
87fd576b26
use TickRender() for RenderSprites and PaletteModifier
2014-07-06 08:24:08 +02:00
Paul Chote
b52cdd4b45
Remove redundant FindActorsInBox helpers.
2014-06-27 23:30:40 +12: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
Paul Chote
15f63fb5ea
RenderSprites.anims is finally private.
...
Followup to #3348 .
2014-05-23 00:37:20 +12:00
Paul Chote
82ac8d8d80
Support multiple wall-type connections for D2K.
2014-04-05 17:05:42 +13:00
Paul Chote
52b4ac0aed
Update neighbours when walls are destroyed or sold. Fixes #2351 .
2014-04-05 16:36:34 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Paul Chote
27f04c1b78
Rename FindUnits -> FindActorsInBox.
2013-07-20 15:34:28 +12:00
Paul Chote
37c02fea79
Remove PPos overload of FindUnits.
2013-07-20 15:34:27 +12:00
Paul Chote
fc33c56d61
Use NormalizeSequence in RenderBuildingWall.
2013-06-20 21:53:31 +12:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
9b3e6c5c4a
remove FP sillyness from FindUnits & friends
2011-05-22 20:38:52 +12:00
Paul Chote
794dcac4d2
Create INotifyDamageStateChanged for nearly everything else that used INotifyDamage.
2011-04-16 11:51:34 +12:00
Paul Chote
7b0a9136ab
Remove some bogosity from RenderBuilding
2011-04-16 11:19:37 +12:00
Paul Chote
cd64d62b7e
Fix bogus silo/wall rendering
2011-04-12 08:42:13 +12:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
76216b8dd9
Move damage sounds and shaking from Building/RenderBuilding into their own traits. Fix wall damage/death sounds under cnc.
2011-01-04 14:34:00 +13:00
Bob
480c5edd75
move Building et al into Mods/
2010-11-06 11:05:45 +13:00
Bob
0e71af25f4
remove Game.skipMakeAnims
2010-08-20 17:14:20 +12:00
Bob
ae703d50b2
Actor.traits is implementation detail
2010-08-14 17:39:49 +12:00
Paul Chote
9b051a6624
Remove some bs from buildings with multiple damage states; cnc civilian structure rubble persists after death.
2010-07-31 01:50:09 +12:00
Paul Chote
4cf0610fd9
Change DamageState names
2010-07-30 22:24:43 +12:00
Paul Chote
1459ec483c
Rename ExtendedDamageState -> DamageState
2010-07-30 22:24:43 +12:00
Paul Chote
6fba888d45
Shift Actor.Health onto a trait.
...
Known regressions:
- cnc only
- health bar colors
- can't repair buildings
2010-07-30 00:33:44 +12:00
Chris Forbes
d5f12dd8ee
trim down license spam in all files
2010-07-18 16:48:21 +12:00
Bob
fb6c44bce3
move render{building,buildingturreted,unit} into mods.ra; move all render traits into mods.ra.render
2010-07-08 17:24:12 +12:00