Skip to content

MapObjectOrder beta ​

Interface of @v12-engine/engine

ts
export interface MapObjectOrder

An order a unit of the map is given as the game begins (MapObject.orders): to go somewhere (move), to walk to and fro fighting what it meets (patrol), to stand somewhere and fight what comes near, coming back after (guard), to stand its ground (hold); to a point, or along a path of the map by its name, bend after bend (a patrol along one walks it back and forth)

Members ​

kind ​

ts
kind: 'move' | 'patrol' | 'guard' | 'hold';

What the order is: move to a point or along a path, patrol, guard or hold

path ​

ts
path?: string;

The name of a path of the map it follows, bend after bend

point ​

ts
point?: Vec2;

The point it goes to, or guards