Corpse beta
Interface of @v12-engine/engine
ts
export interface CorpseWhat is left of a unit that died, for a while (see corpses)
Members
id
ts
id: number;The id the unit had: the screen keeps its body lying for as long as the corpse is there
owner
ts
owner: PlayerId;The player who owned the dead unit
type
ts
type: string;The unit type the dead unit was
until
ts
until: number;When it is gone, in seconds of the game
x
ts
x: number;Where the corpse lies, east-west
z
ts
z: number;Where the corpse lies, north-south