Exemple #1
0
 public static void PopulateTowns()
 {
     if (Configuration.UseRandomTowns)
     {
         for (int i = 0; i < Configuration.RandomTownCount; i++)
         {
             TownPositions.Add(GeneratRandomTownPosition());
         }
     }
     else
     {
         TownPositions.AddRange(townPositions);
     }
 }
 private static void PopulateTowns()
 {
     if (Configuration.UseRandomTowns)
     {
         for (int i = 0; i < Configuration.RandomTownCount; i++)
         {
             // Note that random town placements can overlap
             TownPositions.Add(GeneratRandomTownPosition());
         }
     }
     else
     {
         TownPositions.AddRange(townPositions);
     }
 }