Skip to content

FallenHero beta ​

Interface of @v12-engine/engine

ts
export interface FallenHero

Something that has died, before it leaves the world: whether it stays (stays), out of the world, in the world's entities, to be brought back. No when nothing says so; the heroes pack says yes for a hero (heroesPack), and a handler after it (a higher priority) can say no for a game where heroes fall for good

Members ​

entity ​

ts
readonly entity: Entity;

What died

killer ​

ts
readonly killer?: Entity;

What killed it, when something did

stays ​

ts
stays: boolean;

Whether it stays, out of the world, to be brought back: no, unless a handler says yes