Update ICustomMovementLayer to not depend on actor for costs.

No implementations require the actor.
This commit is contained in:
RoosterDragon
2021-09-25 14:28:00 +01:00
committed by Paul Chote
parent 6f3b4ecae9
commit 3a020e96fe
6 changed files with 30 additions and 26 deletions

View File

@@ -403,9 +403,9 @@ namespace OpenRA.Mods.Common.Traits
bool InteractsWithDefaultLayer { get; }
bool ReturnToGroundLayerOnIdle { get; }
bool EnabledForActor(ActorInfo a, LocomotorInfo li);
int EntryMovementCost(ActorInfo a, LocomotorInfo li, CPos cell);
int ExitMovementCost(ActorInfo a, LocomotorInfo li, CPos cell);
bool EnabledForLocomotor(LocomotorInfo li);
int EntryMovementCost(LocomotorInfo li, CPos cell);
int ExitMovementCost(LocomotorInfo li, CPos cell);
byte GetTerrainIndex(CPos cell);
WPos CenterOfCell(CPos cell);