Use expression body syntax

This commit is contained in:
teinarss
2021-02-25 20:52:13 +01:00
committed by Paul Chote
parent 555c43843b
commit 4a1e4f3e16
403 changed files with 1342 additions and 2031 deletions

View File

@@ -52,9 +52,9 @@ namespace OpenRA.Mods.Common.Traits
IDelayCarryallPickup[] delayPickups;
public Actor Carrier { get; private set; }
public bool Reserved { get { return state != State.Free; } }
public bool Reserved => state != State.Free;
public CPos? Destination { get; protected set; }
public bool WantsTransport { get { return Destination != null && !IsTraitDisabled; } }
public bool WantsTransport => Destination != null && !IsTraitDisabled;
protected enum State { Free, Reserved, Locked }
protected State state = State.Free;