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

SystemDefinition

What defineSystem makes: the entry, frozen, with predicted and runsOn settled, which a plugin lists under systems and a sibling anchors to. It names no plugin: the plugin that lists it binds it to the SystemHandle under plugin.systems.<name>, the only anchor across plugins and the only value omit and replaces take. As Unity orders system types within their group, a definition is ordered among its plugin’s own.

Type Parameter Default type
Of extends PhaseName PhaseName
Predicted extends boolean boolean
RunsOn extends RunContext RunContext
Name extends string string
Property Modifier Type Description
[systemDefinitionBrand] readonly true -
after readonly readonly SystemAnchor<Of>[] -
answers readonly readonly (string | AnyCommandHandle)[] -
before readonly readonly SystemAnchor<Of>[] -
description? readonly string -
name readonly Name -
phase readonly Of -
predicted readonly Predicted Its entry’s predicted, false where the entry said nothing.
replaces? readonly ReplaceableHandle<Of, Predicted, RunsOn> -
run readonly (step) => void The system, run with the step alone: step.world is the world.
runsOn readonly RunsOn Where it runs in a game with a room: both ends for a predicted one, its entry’s runsOn, or the room alone where the entry said nothing.