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

PluginSetup

PluginSetup = (world, writer) => Disposer | void

What a plugin registers on one world, on the room and on every page, before the first step and again after a reset: it reads world and writes with writer, which closes when it returns. The function it returns forgets what it registered, as the world resets or goes, with writer open again while it runs.

Parameter Type
world World
writer SetupWriter

Disposer | void