Skip to content

Playing beta ​

Interface of @v12-engine/client

ts
export interface Playing

A cinematic playing: what to pause, resume, seek, slow and stop it by, and when and how it ended

Members ​

clock ​

ts
readonly clock: CutClock;

The clock it runs on

cut ​

ts
readonly cut: Cut;

The cut that runs the cinematic's script and lanes

done ​

ts
readonly done: Promise<CinematicOutcome>;

Settles when it is over, with how

id ​

ts
readonly id?: string;

Its id among the view's, where it is one of those

options ​

ts
readonly options: PlayOptions;

How it is played: hold, skippable and the rest

pause ​

ts
pause(): void;

Holds its clock: the camera stands, the lines stay, nothing goes off until resume

paused ​

ts
readonly paused: boolean;

Whether its clock is held (by pause; the pause menu holds it apart from this)

rate ​

ts
rate(rate: number): void;

How fast it goes against the screen: 0.5 is slow motion

resume ​

ts
resume(): void;

Lets its clock run again after pause

seek ​

ts
seek(time: number): void;

Jumps to a time of it (see Cut.seek)

stop ​

ts
stop(reason?: 'skipped' | 'stopped'): void;

Ends it now, as the player skipping it does (skipped) or code stopping it (stopped, when left out)