Skip to content

CutEvent beta ​

Interface of @v12-engine/client

ts
export interface CutEvent

What a hook of a cinematic is told: which hook it is, at what time of the cut, and what the hook is about (the marker reached, the cue and what it carries, the line shown, the key reached, how the cinematic ended)

Members ​

clip ​

ts
clip?: RunningClip;

For a clip's start and end hooks: the clip playing, with what its lane gives code to reach (handle)

from ​

ts
from?: number;

The time the cut went from, for seek

hook ​

ts
hook: string;

The hook's name: start, marker:gate, cue:gateOpen, lane:melee.cheer:clip...

into ​

ts
into?: number;

For a clip's start: how far into it it began (a seek into it)

item ​

ts
item?: LaneItem;

The key or clip of a lane, for shot, line, lane:<kind>:key, lane:<kind>:clip and a hook the hooks lane calls

lane ​

ts
lane?: string;

The lane's kind, for lane:<kind>:<event>

laneId ​

ts
laneId?: string;

The id of the lane, for a clip's or a key's hooks: a cinematic may have two lanes of a kind

marker ​

ts
marker?: Marker;

The marker reached

name ​

ts
name?: string;

The marker's or the cue's name, for marker:<name> and cue:<name>

outcome ​

ts
outcome?: CinematicOutcome;

For end: how it ended

params ​

ts
params?: Record<string, unknown>;

What a cue (cue:<name>) or a clip of the hooks lane carries

speaker ​

ts
speaker?: string;

For line: who says it and what

text ​

ts
text?: string;

The words said, for line

time ​

ts
time: number;

Seconds of the cut gone by, on its clock

to ​

ts
to?: number;

For seek: the time it went to, and from

why ​

ts
why?: ClipEnd;

For a clip's end: why it ended