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

LocalTrait

LocalTrait<T> = T & object

A trait defined with reach: Reach.Local: the room and each page keep their own, and no stream carries it, so any step writes it, a page’s among them: setTrait(step, entity, Trait, value).

Name Type
[localBrand] true
Type Parameter Default type
T extends Trait Trait