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

stepWorld

stepWorld(world, options): void

Advances the world by one step: the events the last step ran with off, the previous transforms, then the world’s systems in order, each reading the step’s number and the world’s authority, which it writes onto options in place. A plain function with no clock and no React, so a server, a test and the loop drive it alike; a world with a StepProfileTrait times each of them on its clock, one with SystemReadsTrait notes what each queries, a development page of a room refuses each one’s read of a room-only trait, and a development world runs the prediction checks between them.

Parameter Type
world World
options StepOptions

void