Skip to content

StatsTrait

const StatsTrait: Trait<() => Record<string, Stat>>

Defined in: packages/engine/src/gameplay/stats/traits.ts:38

An entity’s stats by name. The verbs write a new record, so a reader of the trait sees each change.