Ejemplo n.º 1
0
 public static bool Is(this Unit unit, UnitType unitType) => unit.UnitType.Type == unitType;
Ejemplo n.º 2
0
 public static bool IsTraining(this Unit unit, UnitType wantedType) =>
 unit.TrainingQueue.Any() && unit.TrainingQueue.First().Type == wantedType;