Skip to content

CinematicRun beta ​

Interface of @v12-engine/client/testing

ts
export interface CinematicRun

A cinematic played in a test (stepCinematic): what happened, and the means to go on

Members ​

host ​

ts
readonly host: string[];

What the director asked of the game: hold, lock, hide the HUD, the letterbox, and the camera put back

key ​

ts
key(code: string): Promise<void>;

A key pressed while it plays (Enter, KeyE): Enter moves a line on as the game's does, else its waits hear it

outcome ​

ts
readonly outcome: CinematicOutcome | undefined;

How it ended, once it has

pick ​

ts
pick(id: string): Promise<void>;

Picks an answer of the choice showing

playing ​

ts
readonly playing: Playing;

The cinematic's running play, whose clock step advances

said ​

ts
said(): string[];

The lines said, as speaker: text

skip ​

ts
skip(): Promise<void>;

The player's skip (Esc)

stage ​

ts
readonly stage: TestStage;

The stage the cinematic plays on, with the calls it recorded

step ​

ts
step(seconds: number): Promise<void>;

Plays on for so many seconds (in frames of the run's dt)

time ​

ts
readonly time: number;

The time on its clock