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); } } }
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)]); } } }