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

StateDump

Every entity’s data traits, keyed by dumpKey then trait name, and a hash of them, with the plugins the world was made from beside them. Two runs from one seed and one input dump the same.

Property Type Description
commands? DumpedCommands Its commands: the timeline of the last ones sent or admitted, each queue’s waiting commands, each lineage’s receipts and her page’s commands with no result. Left out where the world declares none; out of hash.
entities Record<string, Record<string, unknown>> -
events readonly DumpedEvent[] Every event the world holds now, oldest first: an event stays until every system has read it, at most two steps. Out of hash, as a room’s streamed events are out of its stream’s hash.
hash number Of the entities alone, so two worlds whose entities match hash alike whatever their plugins.
plugins readonly ComposedPlugin[] The plugins the game listed, in its order.
systems readonly StepSystem[] Every system of the step with its plugin and phase, the building blocks’ among them, in the order the step runs them.