Skip to content

BeforeOrder beta ​

Interface of @v12-engine/engine

ts
export interface BeforeOrder

An order about to be given to a unit. Set rejected to refuse it. A cast that goes off at once, in the middle of what the unit is doing (a potion drunk on the way, a leap), is asked here too, as the cast order it stands for

Members ​

entity ​

ts
readonly entity: Entity;

The entity the order is for

order ​

ts
readonly order: Order;

The order about to be given

queued ​

ts
readonly queued: boolean;

Added to the end of what it does, rather than in place of it

rejected ​

ts
rejected: boolean;

Whether a handler refuses the order; it is then not given