Skip to content

updateMapTerrain beta ​

Function of @v12-engine/engine

ts
export declare function updateMapTerrain(map: GameMap, terrain: Terrain, area?: CellRect): CellRect;

Brings a terrain of the same size in line with the layers of a map, in place, for editing. With area, only what a change to those cells can have changed: the cells and the corners of cells within reach of it. Returns the cells whose terrain was worked out again, for whoever draws it to draw again: their corners are the vertices that changed