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

writeStateTags

writeStateTags(entity, trait): void

Writes the tags of the machine whose trait is trait on entity, from its record; does nothing for another trait. What the stream calls as it sets a trait, so a replica’s tags follow the record at once.

Parameter Type
entity Entity
trait Trait

void