Skip to content

FallenRecord beta ​

Interface of @v12-engine/engine

ts
export interface FallenRecord

A hero that fell a moment ago (fallenHeroes): what it was, at what levels, where and when

Members ​

at ​

ts
at: number;

The game's time it fell, in seconds

id ​

ts
id: EntityId;

Its id: a fallen hero waits out of the world to be brought back, as the same entity

killer ​

ts
killer?: EntityId;

Who killed it, if anyone

level ​

ts
level: number;

Its hero level

levels ​

ts
levels: Record<string, number>;

The levels of what it learns (its type's hero.learns), by ability id: what it had not learned is not there

owner ​

ts
owner: PlayerId;

Its player

pos ​

ts
pos: Vec2;

Where it fell

type ​

ts
type: string;

Its unit type, as itself: one that fell in a form, the type it is as itself