ParamDef beta
Interface of @v12-engine/client
ts
export interface ParamDefA param a cinematic expects to be handed when it is played (playCinematic(world, id, { params }), client.play(id, params )): what the screen does not know of itself, like the road of the map being played. The panel shows what a cinematic expects; the runtime says what it was not given
Members
default
ts
default?: unknown;What it is when not handed
hint
ts
hint?: string;A line of help for the param in the editor
kind
ts
kind: ParamKind;What type the param is (ParamKind), for the panel and for checking what was handed
label
ts
label?: string;What the editor calls the param
options
ts
options?: readonly string[];For choice: what it may be
required
ts
required?: boolean;The cinematic cannot do without it: a lane that needs it skips, and says so once, when it is missing