Skip to content

CliffShape beta ​

Interface of @v12-engine/client

ts
export interface CliffShape

How the walls of cliffs are shaped (GameView.ground.cliffShape, LK11): a cell of a wall (cliffCells) drawn finer than the grid, its wall curved from the foot to the lip, pushed out and in by a noise, its corners rounded. Only what is drawn: the heights the rules stand on (Terrain.heightAt), navigation and picks keep the grid. Left out, a wall is the grid's two triangles a cell

Members ​

detail ​

ts
detail?: number;

How many pieces a cell of a wall is cut into each way, 2 to 8: CLIFF_DETAIL (4) when left out

params ​

ts
params?: Record<string, number>;

The style's parameters, by id: each at its default where left out

rocks ​

ts
rocks?: CliffRocks | false;

Rocks laid along the walls (CliffRocks): none when left out or false

roughness ​

ts
roughness?: number;

How far the style pushes the wall out and in halfway up, in cells (depth): CLIFF_ROUGHNESS (0.18) when left out; 0 smooth

round ​

ts
round?: boolean;

Whether the corners of cliffs are rounded (an outer corner a quarter of a circle, an inner one too): yes when left out

seed ​

ts
seed?: number;

What the style's noise is made from: another seed, other rocks. 1 when left out

style ​

ts
style?: string;

The style of the walls, by id (CliffStyleDef): the client's rough, strata, columns, boulders, eroded, or a game's own (GameView.ground.cliffStyles). rough when left out