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

listMachines

listMachines(): readonly Readonly<Pick<Machine<MachineContext, string, unknown, Record<string, StateTag<unknown>>>, "name" | "read" | "description" | "reach" | "stateNames" | "tagNames" | "advance"> & object>[]

Every machine defineMachine() declared in this process, in the order they were declared: the page’s, the room process’s or the test worker’s, and not one world’s. A machine declared again under its id, as an NPC’s routines compile anew, takes the earlier one’s slot, and one a hot reload drops stays listed. It is the registry’s own list, changed in place, so a machine declared during a pass over it is walked in that pass: read it, keep no copy and never write it. What machines.systems.advance walks.

readonly Readonly<Pick<Machine<MachineContext, string, unknown, Record<string, StateTag<unknown>>>, "name" | "read" | "description" | "reach" | "stateNames" | "tagNames" | "advance"> & object>[]