Skip to content

Force beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type Force = UnitSet | readonly EntityState[] | Readonly<Record<string, number>>;

A force to weigh: a set of entities as the view gives them (view.enemies.fighters()), a plain array of them, or types with counts ({ footman: 6, gryphon: 2 }), as the knowledge keeps an army it saw (ArmySighting.types, TypeSeen): those are taken at full health with the stats their type starts with