SquadReport beta
Interface of @v12-engine/engine/ai
ts
export interface SquadReportA squad as the report shows it: who it belongs to, its units and their strength, where it is, its task and how it goes
Members
at
ts
at?: [number, number];Its middle
changed
ts
changed?: {
tick: number;
why: string;
};The tick its task last changed and why
name
ts
name: string;The squad's name, by which it is found (ai.squads.named)
owner
ts
owner: string;What holds the squad: the module or goal that made it
retreats
ts
retreats: number;How many times it retreated
size
ts
size: number;How many units it has
strength
ts
strength: number;How strong its units are together
task
ts
task?: {
kind: string;
phase: string;
since: number;
at?: [number, number];
done?: TaskDone;
};Its task: the kind, the phase it is in, since when, where, and how it ended once done
units
ts
units: number[];The entity ids of its units