Skip to content

TestStageOptions beta ​

Interface of @v12-engine/client/testing

ts
export interface TestStageOptions

How a test's stage is made: its units, the map's views and paths and regions by name, the lanes and eases of the game's, the camera's pose to begin with, and the player it plays as

Members ​

cinematics ​

ts
cinematics?: Record<string, CinematicDef>;

The game's cinematics as data by id, for one another includes (stage.cinematic)

eases ​

ts
eases?: Record<string, Ease>;

The game's easing curves by name, for keys that name an ease

lanes ​

ts
lanes?: AnyLane[];

The lane kinds the cinematic may use, the game's own on top of the built-in ones

paths ​

ts
paths?: Record<string, Vec2[]>;

The map's paths by name, each a list of points in cells, for lanes that walk or fly a path

player ​

ts
player?: number;

The player the screen is: 1 when left out. The others are its enemies

pose ​

ts
pose?: CinematicPose;

The camera's pose when the test begins

regions ​

ts
regions?: Record<string, Vec2>;

The map's regions by name, each the point (in cells) a lane sends a unit or the camera to

units ​

ts
units?: TestUnit[];

The units on the stage to begin with; none when left out

views ​

ts
views?: Record<string, CameraPose>;

The map's camera views by name (cinematic.camera takes them by that name)

world ​

ts
world?: CutWorld;

The world the waits tied to it read (Stage.world, cutWorldOf): none when left out, and they are taken to have come