CinematicDef beta
Interface of @v12-engine/client
export interface CinematicDefA cinematic as data: lanes of keys and clips on a clock, markers at named moments, what it expects to be handed (params) and what it talks of by name (refs), and how it likes to be played (play: held, skippable, the letterbox...). length is seconds; left out, it ends with its last item (cinematicLength)
Members
id
id: string;The cinematic's id among the game's cinematics, also its file's name in cinematics/
lanes
lanes: LaneData[];Its lanes, each a kind with its keys or clips
length
length?: number;Seconds it lasts; it ends with its last item when left out
loop
loop?: {
from?: number;
to?: number;
};Played over and over (D3): from from (0) to to (its length) and back, until the script ends the loop (cut.endLoop), skips it or ends it (cut.end). A menu's fly-over behind its buttons
markers
markers: Marker[];Its named moments
name
name?: string;What the editor and lists call it; the id when left out
params
params?: ParamSchema;What it expects to be handed when played, by name
play
play?: PlayOptions;How it likes to be played: held, skippable, the letterbox and the rest
preload
preload?: {
types?: string[];
models?: string[];
sounds?: string[];
};What to load ahead besides what its lanes name (D3): the models of unit types (types) a script places or spawns, models by their path (models: a prop's), and sounds. client.cinematics.preload and cut.preload load it, and the cinematics it includes
refs
refs?: Record<string, RefDef>;What it talks of by name (units, regions, cameras, code), resolved as asked for