Add a backawrd moving option for mobile

This commit is contained in:
dnqbob
2021-05-02 18:42:53 +08:00
committed by Matthias Mailänder
parent 83357af14c
commit 9049ae6f20
2 changed files with 13 additions and 0 deletions

View File

@@ -65,6 +65,12 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Display order for the facing slider in the map editor")]
public readonly int EditorFacingDisplayOrder = 3;
[Desc("Can move backward if possible")]
public readonly bool CanMoveBackward = false;
[Desc("After how many ticks the actor will turn forward during backoff")]
public readonly int BackwardDuration = 40;
[ConsumedConditionReference]
[Desc("Boolean expression defining the condition under which the regular (non-force) move cursor is disabled.")]
public readonly BooleanExpression RequireForceMoveCondition = null;