Skip to content

CliffStyleDef beta ​

Interface of @v12-engine/client/ground

ts
export interface CliffStyleDef

A style of the walls of cliffs (defineCliffStyle): its name and parameters (each a slider of the Ground editor, and a field of CliffShape.params), and how far a point of a wall is pushed out of it, about -1..1 (times the shape's depth): out where it is more, in where less. It is let off at the foot and the lip by itself, so that the wall meets the ground

Members ​

description ​

ts
description?: string;

A sentence on what the style looks like, for the editor

name ​

ts
name: string;

The style's name, as the Ground editor lists it and CliffShape refers to it

params ​

ts
params?: Record<string, PatternParamDef>;

The style's parameters by name; each is a slider of the Ground editor and a field of CliffShape.params

push ​

ts
push(params: Readonly<Record<string, number>>, noise: CliffNoise): (at: WallPoint) => number;

Gives the function that pushes a point of a wall out of (positive) or into (negative) the wall, about -1..1, for these params and noise