reaperrr
0eb0a5a2bd
Add WithHarvesterSpriteBody
...
And move PrefixByFullness there.
Also put it into Mods.Cnc, as RA is the only shipping mod
using this.
2019-04-14 19:09:28 +02:00
reaperrr
a10af382b4
Add plumbing for notifying traits of movement
...
More precisely, about start and stop of movement.
2019-03-30 16:24:47 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Chris Forbes
e292e88bff
Improve RenderShroudCircle configuration.
2018-12-24 01:57:11 +01:00
Paul Chote
4723e5ddb9
Expose common actor Inits in the map editor.
2018-12-08 22:53:13 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
Paul Chote
14607f55c5
Replace INotifyBuildComplete in render traits with conditions.
2018-10-07 19:29:34 +02:00
reaperrr
dd3c600258
Fix WithLandingCraftAnimation compatibility with elevated terrain
2018-10-06 13:11:10 +01:00
Paul Chote
d110a21bfe
Add missing EnabledByDefault checks to WithSpriteBodyInfo subclasses.
2018-08-11 14:30:01 +02:00
reaperrr
496155ff0e
Remove facing check from WithVoxelWalkerBody
...
`Mobile` now supports considering turning as `IsMoving`, so this check is no longer needed.
2018-07-19 22:09:43 +02:00
reaperrr
d060f885e8
Fix various Mods.Cnc animation traits not supporting actors having multiple sprite bodies
2018-07-01 13:16:07 +02:00
reaperrr
d90ff99e74
Replace WithReloadingSpriteTurret with conditions
...
WithReloadingSpriteTurret was bound to run into conflicts with any WithTurret*Animation traits due to overriding the turret sequence constantly via ITick.
Using (stacked) conditions instead avoids that.
2018-03-08 16:03:14 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
ee728be537
Fix WithCargo crash.
2018-01-01 19:25:50 +01:00
reaperrr
04fb0f209d
Spatially partition some actor overlays
2017-12-23 17:56:11 +00:00
Paul Chote
c87409ed1a
Remove legacy bounds code.
2017-12-11 19:45:07 +01:00
Paul Chote
6f5d035e79
Introduce IMouseBounds and split/rework mouse rectangles.
...
The render bounds for an actor now include the area covered
by bibs, shadows, and any other widgets. In many cases this
area is much larger than we really want to consider for
tooltips and mouse selection.
An optional Margin is added to Selectable to support cases
like infantry, where we want the mouse area of the actor
to be larger than the drawn selection box.
2017-12-11 19:45:07 +01:00
Paul Chote
8fcc80b05a
Use IRender.ScreenBounds in ScreenMap.
...
Traits are now required to trigger a ScreenMap update whenever they
believe that their ScreenBounds have changed.
2017-12-11 19:45:07 +01:00
Paul Chote
86bfe28ade
Add ScreenBounds method to IRender interface.
...
This method is expected to return Rectangles that cover
the region where Renderables returned by Render may exist.
2017-12-11 19:45:07 +01:00
reaperrr
c48ddbdfa5
Fix Mammoth Mk2 render bounds
...
And polish trait internals a little.
2017-11-29 11:39:24 +02:00
reaperrr
d21992130a
Fix TS harvester render bounds
2017-11-29 11:39:24 +02:00
abcdefg30
4c707ad6a6
Fix WithDisguisingInfantryBody crashing when losing the disguise
2017-11-26 18:41:53 +01:00
Paul Chote
b898b5001a
Rename AttackBase.IsAttacking to IsAiming to make its uses and assumptions clear.
2017-11-26 15:58:00 +01:00
Mustafa Alperen Seki
f35f6c0813
Move Sprite handling from Disguise to WithDisguisingInfantryBody
2017-11-15 15:48:24 +00:00
reaperrr
8533debc44
Require explicit INotifyAddedToWorld and INotifyRemovedFromWorld
2017-10-07 10:17:11 +02:00
reaperrr
85e60ef77f
More misc explicit interface implementations
...
By-product from making ITick explicit in various places.
2017-09-16 15:51:37 +02:00
reaperrr
ec354f89cd
Make ITick implementations explicit in Mods.Cnc and Mods.D2k
2017-09-16 15:51:37 +02:00
reaperrr
ddfed13db4
Make Tick and TickIdle explicit in WithInfantryBody
2017-09-16 15:51:37 +02:00
reaperrr
dbcfb0c92e
Rename and move WithTurretedSpriteBody
...
The name wasn't in line with our implicit naming convention and ambigous on top of that.
Also, only used by RA and TD so moved to Mods.Cnc.
2017-09-15 18:10:13 +01:00
reaperrr
fdb3866238
Remove FootprintUtils
2017-07-13 17:43:41 +02:00
reaperrr
3200f4fb0f
Remove bib-related hacks from Building and FootprintUtils
2017-07-06 01:42:55 +02:00
Paul Chote
34810756c2
Move Voxel code to Mods.Cnc.
2017-06-14 18:56:06 +02:00
Paul Chote
4f42778d26
Rename VoxelAnimation to ModelAnimation.
2017-06-14 18:56:06 +02:00
abcdefg30
2a3139dc39
Add a IAutoSelctionSizeInfo trait interface
2017-05-28 14:02:18 +02:00
reaperrr
0c3a786d10
Merge Mods.RA into Mods.Cnc
2017-02-12 01:33:22 +01:00
Paul Chote
a8d46adb2d
Rename tesla attack logic and move to Mods.Cnc.
2017-02-11 16:19:58 +00:00
reaperrr
709e2a26e1
Merge Mods.TS into Mods.Cnc
2017-02-02 21:20:31 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
reaperrr
61779bf02a
Make WithSpriteTurret ITick implementation explicit
2016-10-30 19:17:39 +01:00
Matthias Mailänder
67ba8c1bcc
Add missing sequence references to TD render traits.
2016-07-12 07:34:02 +02:00
Paul Chote
b16a5110f4
Use ActorPreviews for WithCargo.
2016-06-15 20:36:25 +01:00
reaperrr
fd5a597966
Move Render traits to Traits.Render namespace
2016-04-15 20:43:04 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
reaperrr
35c4aca983
Rename WithTurret, WithBarrel and WithReloadingTurret
...
Make them use RenderUtils.ZOffsetFromCenter.
2015-11-28 20:57:09 +01:00
atlimit8
45112cfa76
Remove redundant IBodyOrientation[Info] & replace with BodyOrientation[Info]
2015-09-15 22:57:08 -05:00
atlimit8
8250f223c4
More HashSet trait fields & Lint support
2015-09-05 16:59:30 -05:00
reaperrr
9da56f51e2
Remove RenderBuilding
2015-08-30 15:44:59 +02:00