scoreOn beta
Function of @v12-engine/engine
ts
export declare function scoreOn<T>(event: EventKey<T>, count: (payload: T, world: World) => ScoreCounted): ScoreSource;A source of a stat, typed by its event, the engine's or the game's own: scoreOn(entityDied, ( entity, killer ) = killer && player: killer.owner )