Add a ReturnToGroundLayerOnIdle flag to CustomMovementLayers

Co-authored-by: Mazar Farran <farranmazar@gmail.com>
Co-authored-by: Paul Chote <paul@chote.net>
This commit is contained in:
Oliver Brakmann
2018-12-24 22:47:34 +00:00
committed by reaperrr
parent 8fc483b30b
commit 0bd00d3b7c
7 changed files with 13 additions and 2 deletions

View File

@@ -72,6 +72,7 @@ namespace OpenRA.Mods.Common.Traits
bool ICustomMovementLayer.EnabledForActor(ActorInfo a, LocomotorInfo li) { return enabled; }
byte ICustomMovementLayer.Index { get { return CustomMovementLayerType.ElevatedBridge; } }
bool ICustomMovementLayer.InteractsWithDefaultLayer { get { return true; } }
bool ICustomMovementLayer.ReturnToGroundLayerOnIdle { get { return false; } }
WPos ICustomMovementLayer.CenterOfCell(CPos cell)
{