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

OrderTrait

const OrderTrait: Trait<{ gaveUp: GiveUpReason | null; hasStageStation: boolean; isStageAfterRoutines: boolean; isWalked: boolean; kind: string; player: Entity | null; reach: number; stage: string; stageStation: Entity | null; stageTick: number; stand: () => RoutePoint | null; startDestination: () => RoutePoint | null; station: Entity | null; }>

On a worker while it holds an order: its kind, the station the command named, the stage it is on, the station that stage works and where the worker stands for it, and who gave it. giveOrder adds it, setOrderStage moves it on and endOrder takes it off. Every page holds it, for a HUD’s count of busy workers.