Skip to content

AttackGroup beta ​

Interface of @v12-engine/engine/ai

ts
export interface AttackGroup

What a wave is made of: so many of each unit type (by id) or role (caster, a game's own), by name, under a condition

Members ​

id ​

ts
id: string;

Its name: what a wave names it by

units ​

ts
units: Record<string, number>;

So many of each unit type or role: { footman: 4, rifleman: 2 }

when ​

ts
when?: AiCondition;

Only while this holds: a wave of a group whose condition fails is skipped as its own would be