TestStage beta
Interface of @v12-engine/client/testing
ts
export interface TestStage extends StageA stage of plain data (testStage): a Stage that writes down what is done to it, and what is on it now
Members
calls
ts
readonly calls: StageCall[];Everything done to it, in order
choosing
ts
readonly choosing: {
menu: ChoiceMenu;
pick: (id: string) => void;
} | undefined;The menu of a choice showing now, and the way to pick
clockTime
ts
clockTime: () => number;The time on the clock of the cinematic playing, for what is written down (at)
event
ts
event(event: SessionEvent): void;An event of the game's, as the session tells it
hidden
ts
readonly hidden: ReadonlySet<number>;The ids of the units hidden now (by a unit lane), which units leaves out
input
ts
input(input: CutInput): void;A key or a click, as the player's while the hands are off
of
ts
of(what: string): StageCall[];The calls of one kind (camera, say, clip, send...)
pose
ts
pose(): CinematicPose;Where the camera is now
sent
ts
readonly sent: PlayerCommand[];The commands sent as the player
units
ts
readonly units: (who: 'me' | 'enemy' | 'everyone') => number[];The units as they are now: hidden ones, tinted ones