Skip to content

PatternParamDef beta ​

Interface of @v12-engine/client/ground

ts
export interface PatternParamDef

A parameter of a pattern (PatternDef.params): a slider of the Ground editor, and a number in code (GroundRecipe.params, MapTile.pattern.params)

Members ​

default ​

ts
default: number;

Its value where nothing is said: what the pattern is at

description ​

ts
description?: string;

What it does, for the slider's tooltip

max ​

ts
max: number;

The largest value the slider allows

min ​

ts
min: number;

The smallest value the slider allows

name ​

ts
name: string;

What the slider is called

step ​

ts
step?: number;

What the slider steps by: a hundredth of the way from min to max when left out