Skip to content

ControlClip beta ​

Interface of @v12-engine/client

ts
export interface ControlClip extends Clip

A clip of the control lane: a wait that stands the cinematic on its moment until something happens, or the inclusion of another cinematic

Members ​

cue ​

ts
cue?: string;

For a cue wait: the name of the cue the rules send

event ​

ts
event?: string;

For an event wait: the kind of event of the game's to wait for, such as death

hook ​

ts
hook?: string;

A hook heard when it is over (cut.on(hook)), with params.came

include ​

ts
include?: string;

Another cinematic of the game's, by its id, played inside this one from the clip's moment on this one's clock (D3): for its for seconds where given, else to its own end. A seek into it plays it from as far in. params are handed to it

key ​

ts
key?: string;

For a key wait: the key to wait for, such as Enter; any key but Esc when left out

match ​

ts
match?: Record<string, unknown>;

For an event wait: fields the event must have, with these values

parallel ​

ts
parallel?: boolean;

The cinematic goes on while it waits

params ​

ts
params?: Record<string, unknown>;

What is handed to the cinematic included, as its params

timeout ​

ts
timeout?: number;

Seconds of the screen's at most: none when left out

unit ​

ts
unit?: string;

For an event wait: the unit, by name, the event must be about

until ​

ts
until?: Condition;

For an until wait: the condition that ends it when it comes true

wait ​

ts
wait?: WaitFor['kind'];

What it waits for; none for a clip that includes a cinematic