Skip to content

resourceChanged beta ​

Variable of @v12-engine/engine

ts
resourceChanged: import("./events").EventKey<{
    entity: import("./entity").Entity;
    kind: string;
    amount: number;
    reason?: string;
}>

A pool of a game's own on a unit (rage, energy, charges) changed: emitted by the game's rules (world.events.emit('resourceChanged', …)), heard by the screens of the unit's owner and allies (resource)