Skip to content

OrderParams beta ​

Interface of @v12-engine/engine

ts
export interface OrderParams

What an order can be given, every order's field in one: for what reads an order of any type (the queue, a save, a screen's waypoints). An order of a type is given its own of them (OrderInits)

Members ​

ability ​

ts
ability?: string;

Ability to use, for cast orders

faces ​

ts
faces?: EntityId;

For a move: a unit it keeps facing all the way, rather than the way it walks: backing off from a foe, circling it, giving ground shield up. Where that one is gone or hidden it turns the way it walks again

facing ​

ts
facing?: number;

Direction to face at the end. Commands fill this in with the direction of travel

item ​

ts
item?: number;

An item: the one to use, drop or hand over by its place in the inventory, or the one on the ground to pick up

path ​

ts
path?: string;

A path of the map, by its name (MapPath): for the orders that go along one (followPath, attackPath)

point ​

ts
point?: Vec2;

The point an order is aimed at, in world coordinates

speedCap ​

ts
speedCap?: number;

For a move: the fastest it goes, set by the command for a group that goes together: the slowest one's speed

target ​

ts
target?: EntityId;

The entity an order is aimed at: to attack, follow, harvest from, repair, board or load

to ​

ts
to?: Vec2;

For an ability aimed along two points (vector): the second, the way it goes from point

together ​

ts
together?: boolean;

For a move: the group goes at the pace of its slowest (campaign plan GP1), so that it arrives together. The command works the pace out (speedCap)

towards ​

ts
towards?: 'first' | 'last';

Which way along path: to its first point or its last. Away from the end the unit is nearer to when left out: a minion back on its lane after a chase, past its middle, goes on the way it was going

unitType ​

ts
unitType?: string;

Type to build, for build orders