Skip to content

StepOptions beta ​

Interface of @v12-engine/client/testing

ts
export interface StepOptions extends TestStageOptions

How stepCinematic plays: on a stage of its own (testStage with units and the rest) or one handed in, so many seconds in frames of dt, with what the game would hand it (params), its hooks, and the options of the play (hold, skippable...). entries are the view's cinematics by id, for one played by id or included by another

Members ​

dt ​

ts
dt?: number;

The length in seconds of each frame the run steps by

entries ​

ts
entries?: Record<string, CinematicEntry>;

The view's cinematics by id, for a cinematic played by id or included by another

hooks ​

ts
hooks?: CutHooks;

The cinematic's hooks (CutHooks): what the game does when it asks to hold, lock the player or hide the HUD

params ​

ts
params?: Record<string, unknown>;

The parameters the game would hand the cinematic when it plays it (CinematicDef.params)

play ​

ts
play?: PlayOptions;

The options of the play: hold, skippable and the rest (PlayOptions)

seconds ​

ts
seconds?: number;

How many seconds of the cinematic's clock to play; the whole run until it ends when left out

stage ​

ts
stage?: TestStage;

A stage to play on, kept across runs; a new testStage made from the other options when left out