TerrainPatch beta
Interface of @v12-engine/engine
export interface TerrainPatchA part of the ground as it is, to put in another of the same size (applyTerrainPatch): a rectangle of cells and every layer of it, the vertices at its corners included. What the editor's Play here sends of the map's ground as it is edited (debug.ground, EQ10), and what a session is told of it (ground)
Members
blocked
blocked: number[];Per cell, whether the cell is blocked for walking (0 for no)
cells
cells?: Record<string, number[]>;The game's layers of cells (Terrain.cells), by id, per cell: those in either ground
depth
depth: number;How many cells down the patch is
heights
heights: number[];Per vertex, row by row: (width + 1) * (depth + 1) of them
levels
levels: number[];Per cell, row by row: width * depth of them
tiles
tiles: number[];Per cell, the tile there (an index into the game's tiles)
water
water: number[];Per cell, the water there (0 for none)
waterHeights
waterHeights: number[];Heights of the water at the patch's vertices, in the order of heights
width
width: number;How many cells across the patch is
x
x: number;The first cell, and how many across and down
z
z: number;The patch's first cell on the z axis, in cells