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

requirePlugin

requirePlugin(world, name): void

Throws where world was made without the plugin name, naming what to list: a call into a plugin that is off would otherwise do nothing the step reads. A world that is gone, or one no composer made, as a test’s bare koota world, is not checked. A plugin calls it first in each function a game calls to change the plugin’s state, as startRound does, and never from a system, which runs only where the plugin is listed. A deployed room survives the throw, which costs it the call alone.

Parameter Type
world World | undefined
name string

void