OrderParams beta
Interface of @v12-engine/engine
export interface OrderParamsWhat 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
ability?: string;Ability to use, for cast orders
faces
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
facing?: number;Direction to face at the end. Commands fill this in with the direction of travel
item
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
path?: string;A path of the map, by its name (MapPath): for the orders that go along one (followPath, attackPath)
point
point?: Vec2;The point an order is aimed at, in world coordinates
speedCap
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
target?: EntityId;The entity an order is aimed at: to attack, follow, harvest from, repair, board or load
to
to?: Vec2;For an ability aimed along two points (vector): the second, the way it goes from point
together
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
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
unitType?: string;Type to build, for build orders