コード例 #1
0
 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);
コード例 #2
0
 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);
コード例 #3
0
 public static Coordinate Coordinates(this JSON.Village village) => new Coordinate
 {
     X = village.X.Value, Y = village.Y.Value
 };