Skip to content

OrderStates beta ​

Interface of @v12-engine/engine

ts
export interface OrderStates

What each order type keeps in its orders (Order.state), by type: the engine's, and a game's own added to it by declaration merging, for registry.order(type) to say what its behaviour keeps:

ts
declare module '@v12-engine/engine' {
	interface OrderStates {
		'mygame.dig': { dug?: number }
	}
}

Members ​

attack ​

ts
attack: AttackState;

What a attack order keeps in Order.state

attackGround ​

ts
attackGround: AttackGroundState;

What a attackGround order keeps in Order.state

attackMove ​

ts
attackMove: AdvanceState;

What a attackMove order keeps in Order.state

attackPath ​

ts
attackPath: AlongPath & AdvanceState;

What a attackPath order keeps in Order.state

board ​

ts
board: BoardState;

What a board order keeps in Order.state

build ​

ts
build: BuildState;

What a build order keeps in Order.state

cast ​

ts
cast: CastState;

What a cast order keeps in Order.state

construct ​

ts
construct: WorkState;

What a construct order keeps in Order.state

dropItem ​

ts
dropItem: ItemOrderState;

What a dropItem order keeps in Order.state

follow ​

ts
follow: FollowState;

What a follow order keeps in Order.state

followPath ​

ts
followPath: AlongPath;

What a followPath order keeps in Order.state

harvest ​

ts
harvest: HarvestState;

What a harvest order keeps in Order.state

hold ​

ts
hold: HoldState;

What a hold order keeps in Order.state

load ​

ts
load: LoadState;

What a load order keeps in Order.state

move ​

ts
move: NoState;

What a move order keeps in Order.state

patrol ​

ts
patrol: PatrolState;

What a patrol order keeps in Order.state

pickUp ​

ts
pickUp: ItemOrderState;

What a pickUp order keeps in Order.state

repair ​

ts
repair: RepairState;

What a repair order keeps in Order.state

return ​

ts
return: HarvestState;

What a return order keeps in Order.state

unload ​

ts
unload: UnloadState;

What a unload order keeps in Order.state