Skip to content

TaskDone beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type TaskDone = 'arrived' | 'cleared' | 'lost' | 'retreated' | 'wiped' | (string & {});

How a task ended (TaskState.done): arrived where it was sent, cleared with nothing left to fight where it went, lost its target (gone from sight: killed, or out of it), retreated home after a fight it was losing, wiped with none of its units left; or a game's own word