Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

declareStats

declareStats(entity, declared): void

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.

Parameter Type
entity Entity
declared Record<string, StatBase>

void