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

OrderWorkContext

What a kind’s work reads each step its worker holds the order and its routine runs. One object, refilled for each worker: copy what you keep.

Type Parameter Default type
Stage extends string string
Property Type Description
gaveUp GiveUpReason | null Why the stage’s walk gave up, or null. A work that sets another stage tries again; one that sets none ends the order OrderEndReason.Unreachable.
isArrived boolean Whether the worker stands within the stage’s reach of its stand, or its station’s feet, measured on the ground: nearness, not proof that a wall or a floor does not stand between. Always true for a stage with neither.
isStationGone boolean Whether the station the stage works was destroyed. A work that sets another stage goes on; one that sets none ends the order OrderEndReason.StationGone.
order OrderOf<Stage> -
stageSeconds number Seconds since the stage began, for a stage worked on a timer, such as a builder’s five seconds at a site.
step AuthoritativeStep -
worker Entity -