SquadData beta
Interface of @v12-engine/engine/ai
ts
export interface SquadDataA squad as the brain remembers it: plain data, kept in a save
Members
changed
ts
changed?: {
tick: number;
why: string;
};The last time its units or its task changed, and why, in words
made
ts
made: number;The tick it was made at
name
ts
name: string;Unique among the brain's squads
nextReinforce
ts
nextReinforce?: number;The tick it may next call for reinforcements
options
ts
options: SquadOptions;How it behaves: its own, over the brain's
owner
ts
owner: string;Who it belongs to: a goal's id, a rule's or a module's hold (squad:<name> for one of its own)
retreats
ts
retreats: number;How many times it fell back from a fight it was losing
size
ts
size: number;How many units its task began with, or was given since: what reinforcements make up
task
ts
task?: TaskState;What it is doing. None for a squad told nothing yet
units
ts
units: number[];Its units, by id, in the picture's order