TunableDef beta
Interface of @v12-engine/engine
ts
export interface TunableDefA number of a game's rules to be tuned while it plays: the seconds between waves, how much a kill pays. Read in the rules with world.tunable(id), and changed while the game runs from the editor's play mode (debug.tune), in the world itself, so that a save and a screen over a wire have the same. Given in Rules.tunables
Members
default
ts
default: number;The value the tunable starts with
id
ts
id: string;Shared by every game: give it a prefix of the game's
max
ts
max: number;The highest value the tuning panel offers
min
ts
min: number;The lowest value the tuning panel offers
name
ts
name?: string;What the tuning panel calls it
step
ts
step?: number;What the slider steps by. A hundredth of the way from min to max when left out