Skip to content

TestUnit beta ​

Interface of @v12-engine/client/testing

ts
export interface TestUnit

A unit of a test's stage: what it is, whose, where, and the name the map gave it

Members ​

id ​

ts
id: number;

The unit's id on the test stage, which cinematic lanes and TestStage.units refer to

name ​

ts
name?: string;

The name the map gave it, for a cinematic that finds a unit by name

owner ​

ts
owner?: number;

Its player: 1, the player's own, when left out

type ​

ts
type?: string;

The unit type's id (UnitTypeDef) the unit is of

x ​

ts
x: number;

Its position along the map's x axis, in cells

z ​

ts
z: number;

Its position along the map's z axis, in cells