예제 #1
0
 public void Fill(CellMap map, TileType tileType)
 {
     for (int y = Y; y < Y + Height; y++)
     {
         for (int x = X; x < X + Width; x++)
         {
             map.SetTileType(x, y, tileType);
         }
     }
 }
예제 #2
0
 public void Fill(CellMap map, Random random, TileType[] tileTypes)
 {
     for (int y = Y; y < Y + Height; y++)
     {
         for (int x = X; x < X + Width; x++)
         {
             map.SetTileType(x, y, tileTypes[random.Next(tileTypes.Length)]);
         }
     }
 }