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

StepOptions

Property Type Description
deltaSeconds number The step’s length, which every caller passes as fixedStepSeconds.
input? StepInput What the characters under the client’s authority read. Left out where the caller steers none, as a room’s server does: each character keeps what she was last sent.
moverRecords? readonly MoverRecords[] Where the movers keep this step’s calls: one list an entity, the one whose entity names it, holding a record for each of its first four mover calls. A re-run call takes its record in place of sweeping where nothing the call reads has changed, and a page keeps one list for each entity of her set on each step it may re-run. Left out, the movers keep none.
pushes? boolean On a re-run, whether a character pushes a dynamic body she walks into, as the world’s own step does: a client’s replay, which does not rewind the body, leaves it.
rerunEntities? readonly Entity[] The entities a re-run steps: her page’s predicted set, as the room’s last word names it, re-run together after a correction. Only the predicted systems run on such a step, each once a tick over every entity of the set and nothing else, and input is left out: each steps on the InputTrait it holds. Left out on the world’s step.