carryUnits beta
Function of @v12-engine/engine
ts
export declare function carryUnits(world: World, player: PlayerId, filter?: (unit: Entity) => boolean): UnitRecord[];A player's units as records to carry on (UnitRecord): those alive, not structures, not heroes (carryOut carries those), and of them what filter keeps (the footmen, the three nearest the gate). In the order of their ids