public static bool Is(this Unit unit, UnitType unitType) => unit.UnitType.Type == unitType;
public static bool IsTraining(this Unit unit, UnitType wantedType) => unit.TrainingQueue.Any() && unit.TrainingQueue.First().Type == wantedType;
public static bool Is(this Unit unit, UnitType unitType) => unit.UnitType.Type == unitType;
public static bool IsTraining(this Unit unit, UnitType wantedType) => unit.TrainingQueue.Any() && unit.TrainingQueue.First().Type == wantedType;