Skip to content

ScoreSource beta ​

Interface of @v12-engine/engine

ts
export interface ScoreSource

Where a stat's numbers come from: an event of the world's ('entityDied') or of the game's own (defineEvent), and what it counts of each (scoreOn)

Members ​

count ​

ts
count(payload: any, world: World): ScoreCounted;

What it counts of each: nothing, a player, or what a player is counted

event ​

ts
event: EventKey<any>;

The event: one of the engine's (entityDied) or of the game's own (defineEvent)