PrefabGround beta
Interface of @v12-engine/editor
export interface PrefabGroundThe ground a prefab brings: a rectangle of cells around its parts, its corner at x, z from the prefab's middle; the heights of its corners against the height at the middle, and each cell's level, ramp, water, tile (by id: a map's tileset is its own), the game's layers and the pathing. Placed, the heights are eased into the ground around over falloff cells
Members
cells
cells?: Record<string, number[]>;The game's layers of cells by layer id, each one number per cell
depth
depth: number;The rectangle's depth, in cells
falloff
falloff: number;Cells over which the prefab's heights are eased into the ground around it
heights
heights: number[];(width + 1) × (depth + 1) corners, row by row, against the middle's height
levels
levels: number[];The level of each cell, row by row
pathing
pathing?: number[];The pathing of each cell, row by row, where the prefab brings it
ramps
ramps: number[];The ramp of each cell, row by row
tiles
tiles: string[];Tile ids per cell, '' for none
water
water: number[];The water of each cell, row by row
width
width: number;The rectangle's width, in cells
x
x: number;Where the ground rectangle's corner is from the prefab's middle, along x, in cells
z
z: number;Where the ground rectangle's corner is from the prefab's middle, along z, in cells