Cell values
Height of the grid, in cells
Private
Readonly
rulesTransform rules
Private
Readonly
sourceThe source grid
Width of the grid, in cells
Copy values from another grid
Fill the grid with a specified value
Invokes a handler for each cell in the grid
Invokes a handler for each cell adjacent to a given cell
Invokes a handler for each cell within a given area
Gets the value of a cell by its x,y coordinates
Returns a bit mask indicating which adjacent cells are equal
"Paste" the contents of another grid at specified location
Cast a ray and return information about cells hit, etc
Optional
result: IGridRaycastResultResize grid
Rotate this grid clockwise by 90 degrees, a given number of times
Rotate a given point within this grid around its center
Sets the value of a cell by its x,y coordinates
Sets the value of a cell by its index
Update the entire grid from source
Private
updateUpdate a single cell within the grid
Returns whether or not a given x,y coordinate is a valid cell
Converts an x,y coordinate into a flattened index
Static
fromCreate a grid from a set of strings (one row per string)
Generated using TypeDoc
A grid which automatically applies transform rules