One tile for GameGrid.refreshCells: identity plus optional replacement data.
grid.setCell([1, 2], { type: cellTypeEnum.OPEN });grid.refreshCells({ coords: [1, 2] }); Copy
grid.setCell([1, 2], { type: cellTypeEnum.OPEN });grid.refreshCells({ coords: [1, 2] });
grid.refreshCells({ coords: [1, 2], cell: { type: cellTypeEnum.OPEN } }); Copy
grid.refreshCells({ coords: [1, 2], cell: { type: cellTypeEnum.OPEN } });
Optional
When provided, stored on the matrix before the cell node is rebuilt.
World [x, y] — same order as GameGrid.setCell.
[x, y]
One tile for GameGrid.refreshCells: identity plus optional replacement data.
Example: Two-step: setCell then paint
Example: One-step write and paint