Skip to content

applyTerrainPatch beta ​

Function of @v12-engine/engine

ts
export declare function applyTerrainPatch(terrain: Terrain, patch: TerrainPatch): void;

Puts a patch (TerrainPatch) in a ground, in place: its heights, water, paint and levels, and the game's layers of cells (a layer the patch has that the ground has not is made). Nothing else: what the rules make of the ground is World.reshapeGround's. Throws where it does not fit (terrainPatchProblem)