TerrainSave beta
Interface of @v12-engine/engine
export interface TerrainSaveA terrain as plain data: in a save, and sent to a remote player as the game starts
Members
blocked
blocked?: string | number;What scenery keeps off each cell. Left out by saves from before there was any
bounds
bounds?: {
x: number;
z: number;
width: number;
depth: number;
};The part of the map play happens in, when it is not all of it
cells
cells?: Record<string, string | number>;The game's layers of cells (Terrain.cells), by id, as the other layers. Left out when there are none
depth
depth: number;Cells along the map
heights
heights: string | number;Each layer as packed bytes (see packBytes), or, where every cell holds the same, that value: a map without water or cliffs, of one ground, says so in a few characters rather than a few hundred thousand
levels
levels: string | number;The cliff level per cell, packed or as the one value every cell holds
tiles
tiles: string | number;The paint per cell, packed or as the one value every cell holds
water
water: string | number;The WATER_* value per cell, packed or as the one value every cell holds
waterHeights
waterHeights: string | number;The height of the water's surface per vertex, packed or as the one value every vertex holds
width
width: number;Cells across the map