RemainsOptions beta
Interface of @v12-engine/engine
ts
export interface RemainsOptionsWhat the remains of a game are made of (remainsPack)
Members
picksUp
ts
picksUp?: (world: World, unit: Entity, pile: Entity) => boolean;Who may pick a pile up: any unit of a player's that is not a structure, when left out
piles
ts
piles?: (world: World, dead: Entity, killer: Entity | undefined) => RemainsSpec | null | undefined;The pile a fallen unit drops: a type (a resource with no footprint, see pileType) and how much, or null for none. None when left out
reach
ts
reach?: number;How near a unit comes to a pile to pick it up, in cells: 0.8 when left out
rubble
ts
rubble?: string | ((world: World, dead: Entity) => RemainsSpec | string | null | undefined);The rubble a fallen building leaves, put down where it stood once it is gone: a type (a resource with a footprint, see rubbleType), worked out for the death, or null for none. None when left out