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
Matthias Mailänder
9c1eeafa08
Merge pull request #9004 from reaperrr/quanbo
...
Introduce QuantizeFacingsFromSequence
2015-08-28 22:46:29 +02:00
reaperrr
f62bc3c226
Merge pull request #9172 from Mailaender/fix-withcargo-desync
...
Fixed a desync involving WithCargo
2015-08-28 15:05:55 +02:00
Paul Chote
8730a7f223
Fix WithCargo desync.
2015-08-26 19:35:18 +02:00
reaperrr
006e66a3c3
Refactored IQuantizeBodyOrientation implementation
...
Moved BodyOrientation and related interfaces from Game to Mods.Common.
Introduced QuantizeFacingsFromSequence trait.
With*Body render traits no longer implement IQuantizeBodyOrientation
themselves.
2015-08-24 00:48:56 +02:00
Pavel Penev
09f67d18bb
Some internal "race" to "faction" renaming
2015-08-22 23:34:36 +03:00
reaperrr
c3d996cb62
Adds WithReloadingTurret render trait to TD mod
2015-08-01 17:15:34 +02:00
reaperrr
abec89fa26
Replaced RenderGunboat with WithGunboatBody
...
Based on WithSpriteBody.
2015-07-18 18:21:10 +02:00