TileMap<T extends TileBase> constructor

TileMap<T extends TileBase>(
  1. int width,
  2. int height,
  3. T initialValue
)

Create a TileMap with the given width and height, in tiles, filled with the given initialValue.

Implementation

TileMap(int width, int height, T initialValue)
    : _tiles = Array2(width, height, initialValue);