Appearance
Interface: State<S>
A finite state machine resource: game screens, pause, round phases.
Extends
Resource<StateValue<S>>
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends string | string |
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
[$resource] | readonly | true | - | Resource.[$resource] |
create | readonly | (app) => StateValue | - | Resource.create |
opaque | readonly | boolean | Skip the dev read-only proxy (for Three.js objects and other class graphs). | Resource.opaque |
name | readonly | string | Name used in errors, snapshots and kiln describe. | Resource.name |
values | readonly | readonly S[] | - | - |
initial | readonly | S | - | - |
Methods
named()
ts
named(name): this;Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
this