Formation beta
Interface of @v12-engine/engine
ts
export interface FormationUnits ordered to a point together have their places in a formation worked out (FormationDef, formationPoints): change any in points, by the unit's id, or add or remove some. units are those that walk, or those that fly: each is laid out apart
Members
formation
ts
readonly formation: FormationDef;The formation the units are laid out in
points
ts
readonly points: Map<EntityId, Vec2>;Where each unit goes, by entity id; a handler may change, add or remove places
target
ts
readonly target: Vec2;The point they are ordered to
units
ts
readonly units: readonly Entity[];The units ordered, those that walk or those that fly, each laid out apart