RoosterDragon
62ab6ae6f1
OccupiedCells and TargetableCells must return arrays, not just enumerables.
...
This allows callers to efficiently enumerate these returned collections without the allocation and overhead imposed by the IEnumerable interface. All implementations were already returning arrays, so this only required a signature change.
2017-12-07 20:39:30 +02:00
Paul Chote
8fea476a0d
Fix NRE when ProvidesPrerequisite is defined on the player actor.
2017-11-26 19:51:46 +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
Marwan
8a38c6ef23
WithTextDecoration Fix
2017-11-26 15:35:50 +01:00
Paul Chote
855042894c
Fix bogus cached PowerState for map placed actors.
2017-11-26 03:37:33 +01:00
reaperrr
5ec3ad0957
Fix turrets following target even if AttackTurreted is disabled or paused
2017-11-25 03:55:56 +02:00
reaperrr
456d32f3eb
Make Attack* traits PausableConditional and replace IsDisabled with IsTraitDisabled checks
2017-11-25 03:55:56 +02:00
reaperrr
68487d1197
Replace turret IsDisabled check with AT.IsTraitDisabled check
2017-11-25 03:55:56 +02:00
reaperrr
cea2658f31
Remove IsDisabled from AffectsShroud traits
...
Makes them only disableable via conditions.
2017-11-25 03:55:56 +02:00
reaperrr
ede6d5a57d
Remove Actor.IsDisabled check from Cloak
...
Makes cloaking only disableable via conditions.
2017-11-25 03:55:56 +02:00
reaperrr
56b6aabbb8
Use new IAutoRenderSize for determining actor render bounds
2017-11-21 01:00:09 +02:00
reaperrr
5a596d27c9
Switch RenderNameTag to use SelectionOverlayBounds
2017-11-21 01:00:09 +02:00
reaperrr
be290cfabd
Split Actor.Bounds into RenderBounds and SelectableBounds
...
Additionally, internally renamed VisualBounds to SelectionOverlayBounds to avoid confusion with RenderBounds.
This step was necessary to prevent actors with selectable area smaller than their graphics to be removed too early from ScreenMap even though part of the graphics should still be visible.
RA cruisers were a prime example, but to a lesser extent several other actors were affected as well.
This separation also serves as preparation to determine the final RenderBounds from multiple source bounds later, to fix the remaining ScreenMap issues (building 'bibs', aircraft shadows).
2017-11-21 01:00:09 +02:00
Mustafa Alperen Seki
ca1448c7ba
Add Support of Types for GivesBuildableArea
2017-11-20 16:17:13 +02:00
Paul Chote
4cbc2ee6f3
Add support for custom sell cursors.
2017-11-19 23:40:33 +01:00
Andre Mohren
25968ee66f
Allow WithIdleOverlayInfo to render while the actor is being build.
2017-11-19 16:52:59 +00:00
Forcecore
c762453607
(External)Capturable are now conditional
2017-11-15 13:54:15 +02:00
reaperrr
a7620c97f0
Some internal renamings in power-related traits
2017-11-13 03:09:05 +02:00
reaperrr
917c6884ed
Make WithSpriteBody a pausable trait
...
Allowing to drop the PauseAnimationWhenDisabled property (in favor of using PausOnCondition).
2017-11-13 03:09:05 +02:00
reaperrr
786a0eb07f
Refactor PowerManager and RequiresPower to use conditions
...
Instead of Actor.IsDisabled.
Added INotifyPowerLevelChanged interface to do so as efficiently as possible.
2017-11-13 03:09:05 +02:00
reaperrr
6c02e3f2b7
Refactor CanPowerDown to provide a condition instead of triggering IsDisabled
2017-11-13 03:09:05 +02:00
reaperrr
d602ec6485
Rename SelfReloads to AutoReloads
2017-11-12 19:48:06 +00:00
reaperrr
18c371d702
Changed AmmoCondition to support condition stacking
2017-11-12 19:48:06 +00:00
reaperrr
8b7a71685c
Remove AmmoPool-awareness from Armament
2017-11-12 19:48:06 +00:00
reaperrr
6f95080aa4
Add ReloadAmmoPool and adapt AmmoPool
...
Refactored and simplified Rearm activity.
Uses local Reload now.
Removed AmmoPool.SelfReloads.
2017-11-12 19:48:06 +00:00
Forcecore
ef878c6aeb
Introduced CaptureTypes for TransformOnCapture
2017-11-12 18:14:30 +00:00
Mustafa Alperen Seki
ba50fbba18
Dont show refund text if Sellable: trait is disabled.
2017-11-05 16:22:42 +02:00
Forcecore
4c78a05081
ADD GrantConditionOnAttack Trait
...
Useful for making Gattling weapons (Yuri's Revenge and C&C Generals) or
Boris (RA2) / Natasha (RA3) call for airstrike.
2017-11-04 17:18:24 +01:00
Mustafa Alperen Seki
8914227811
Add ShowTicks to sellable
2017-11-04 17:16:26 +01:00
Paul Chote
d2f0e5ac2d
Replace Allow(Allies|Neutral|Enemies) with ValidStances enum.
2017-11-04 16:08:58 +01:00
Paul Chote
1caf982c1f
Support multiple capture types on Capturable.
2017-11-04 16:08:58 +01:00
Paul Chote
1376ad674e
Remove Player.CanViewActor and .CanTargetActor.
2017-11-03 09:56:00 +01:00
Paul Chote
47634b25f9
Remove IFogVisibilityModifier.
2017-11-03 09:56:00 +01:00
kosti1
6a750d7a65
Added buildradius checkbox to lobby options
2017-11-01 18:18:41 +01:00
Paul Chote
b8326bfead
Fix crash with AllyRepair on dead structures.
2017-10-26 18:48:41 +03:00
Paul Chote
5f9a67ed87
Migrate frozen actors from ExtraData to Target.
2017-10-26 18:48:41 +03:00
Andre Mohren
aadfcdac66
Allow RallyPoint cursor to be defined via Yaml
2017-10-26 01:28:42 +02:00
abcdefg30
cba7c60f6f
Fix the "Unit Ready" notification playing erroneously
2017-10-25 22:43:35 +01:00
Paul Chote
cfac996438
Generalize factionVariant to a TypeDictionary of Inits.
2017-10-22 03:32:21 +03:00
Matthias Mailänder
ebb982789e
Display a blocked cursor when not allowed to MoveIntoShroud.
2017-10-16 14:38:26 +02:00
Matthias Mailänder
b27289106d
Don't give an okay voice when not allowed to move into shroud.
2017-10-16 14:38:26 +02:00
Matthias Mailänder
d4340fa799
Add a MoveIntoShroud switch to AttackMove as well.
2017-10-16 14:38:26 +02:00
Paul Chote
d967c564a2
Remove TargetActor and TargetLocation from order issuing.
2017-10-15 19:07:46 +02:00
Raffael Zica
f2b5040d30
YamlException is now thrown if WeaponInfo can not be found in Ruleset.Weapons
...
Removed invalid spacing at the end of the line 36 in ThrowsShrapnel
Prevented NullReferenceException in cases where weapons aren't optional
2017-10-14 14:12:08 +02:00
abcdefg30
7ccf41be77
Catch invalid default game speeds while loading the ruleset
2017-10-14 13:54:26 +02:00
gkaretka
97e0f17e15
Add notification sound when paratroopers land
2017-10-14 13:40:53 +02:00
abcdefg30
a8c6d12c43
Fix the map editor crashing on invisible actors
2017-10-14 13:35:33 +02:00
abcdefg30
24c293e821
Fix Cargo force-requiring ConditionManager
2017-10-08 13:32:22 +01:00
reaperrr
8533debc44
Require explicit INotifyAddedToWorld and INotifyRemovedFromWorld
2017-10-07 10:17:11 +02:00
reaperrr
8ec3d5ddb8
Require explicit ITickRender
2017-10-07 10:17:11 +02:00