Use expression body syntax
This commit is contained in:
@@ -81,7 +81,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly Dictionary<string, string> PassengerConditions = new Dictionary<string, string>();
|
||||
|
||||
[GrantedConditionReference]
|
||||
public IEnumerable<string> LinterPassengerConditions { get { return PassengerConditions.Values; } }
|
||||
public IEnumerable<string> LinterPassengerConditions => PassengerConditions.Values;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new Cargo(init, this); }
|
||||
}
|
||||
@@ -108,13 +108,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
readonly CachedTransform<CPos, IEnumerable<CPos>> currentAdjacentCells;
|
||||
|
||||
public IEnumerable<CPos> CurrentAdjacentCells
|
||||
{
|
||||
get { return currentAdjacentCells.Update(self.Location); }
|
||||
}
|
||||
public IEnumerable<CPos> CurrentAdjacentCells => currentAdjacentCells.Update(self.Location);
|
||||
|
||||
public IEnumerable<Actor> Passengers { get { return cargo; } }
|
||||
public int PassengerCount { get { return cargo.Count; } }
|
||||
public IEnumerable<Actor> Passengers => cargo;
|
||||
public int PassengerCount => cargo.Count;
|
||||
|
||||
enum State { Free, Locked }
|
||||
State state = State.Free;
|
||||
|
||||
Reference in New Issue
Block a user