declareStats
declareStats(
entity,declared):void
Defined in: packages/engine/src/gameplay/stats/stats.ts:48
Declares each named stat’s base and bounds, keeping the modifiers it already has and every stat it does not name. The Stats component’s verb, for a system that spawns an entity without one.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
declared |
Record<string, StatBase> |
Returns
Section titled “Returns”void