Improve Aircraft TurnSpeed getters readability
This commit is contained in:
@@ -265,8 +265,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public WPos CenterPosition { get; private set; }
|
public WPos CenterPosition { get; private set; }
|
||||||
|
|
||||||
public CPos TopLeft => self.World.Map.CellContaining(CenterPosition);
|
public CPos TopLeft => self.World.Map.CellContaining(CenterPosition);
|
||||||
public WAngle TurnSpeed => !IsTraitDisabled && !IsTraitPaused ? Info.TurnSpeed : WAngle.Zero;
|
public WAngle TurnSpeed => IsTraitDisabled || IsTraitPaused ? WAngle.Zero : Info.TurnSpeed;
|
||||||
public WAngle? IdleTurnSpeed => !IsTraitDisabled && !IsTraitPaused ? Info.IdleTurnSpeed : null;
|
public WAngle? IdleTurnSpeed => IsTraitDisabled || IsTraitPaused ? null : Info.IdleTurnSpeed;
|
||||||
|
|
||||||
public Actor ReservedActor { get; private set; }
|
public Actor ReservedActor { get; private set; }
|
||||||
public bool MayYieldReservation { get; private set; }
|
public bool MayYieldReservation { get; private set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user