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

addStats

addStats(writer, entity, declared): void

Adds each named stat with its 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
writer EntityAuthority
entity Entity
declared Record<string, StatBase>

void