CinematicEntry beta
TypeAlias of @v12-engine/client
ts
export type CinematicEntry = Cinematic | CinematicDef | ({
def?: CinematicDef;
play?: Cinematic;
hooks?: CutHooks;
resolve?: Record<string, RefResolver>;
conditions?: Record<string, (cut: Cut) => boolean>;
ui?: Record<string, CutUiContent>;
} & PlayOptions);One of a game's cinematics (GameView.cinematics.defs[id]): as data, as a script, or both with how it is played. With a def and a script, the def plays as the script starts and the cinematic is over when both are (the script around what the editor made: a hook in code, a line that depends on the game); with manual, the script plays the def itself (cut.play(id)) when it likes. hooks is code run at its moments (CutHooks: at a marker, a cue, its start and end, a clip of the hooks lane), heard whenever the entry is played by its id