public JSON.TroopType EstimateTroopType(TimeSpan travelTime, JSON.Village startVillage, JSON.Village endVillage) =>
 EstimateTroopType(travelTime, startVillage.X.Value, startVillage.Y.Value, endVillage.X.Value, endVillage.Y.Value);
 public TimeSpan CalculateTravelTime(JSON.TroopType unitType, JSON.Village startVillage, JSON.Village endVillage) =>
 CalculateTravelTime(unitType, startVillage.X.Value, startVillage.Y.Value, endVillage.X.Value, endVillage.Y.Value);
Esempio n. 3
0
 public static Coordinate Coordinates(this JSON.Village village) => new Coordinate
 {
     X = village.X.Value, Y = village.Y.Value
 };