Skip to content

Kiln API / kiln / State

Interface: State<S> ​

A finite state machine resource: game screens, pause, round phases.

Extends ​

Type Parameters ​

Type ParameterDefault type
S extends stringstring

Properties ​

PropertyModifierTypeDescriptionInherited from
[$resource]readonlytrue-Resource.[$resource]
createreadonly(app) => StateValue-Resource.create
opaquereadonlybooleanSkip the dev read-only proxy (for Three.js objects and other class graphs).Resource.opaque
namereadonlystringName used in errors, snapshots and kiln describe.Resource.name
valuesreadonlyreadonly S[]--
initialreadonlyS--

Methods ​

named() ​

ts
named(name): this;

Parameters ​

ParameterType
namestring

Returns ​

this

Inherited from ​

Resource.named