Skip to content

TileGrid

namespace Griff.Scenes;
public sealed class TileGrid

A rectangle of a tilemap’s tiles as numbers (-1 for none), from its top left, read from the map and written back to it all at once: a match-3 or falling-block board’s.

public int[,] Cells { get; init; }
public int Columns { get; }
public int this[int x, int y] { get; set; }
public int Rows { get; }
public TileGrid Copy()
public static TileGrid Read(int columns, int rows, Tilemap map)
public void Write(Tilemap map)