Enum RunState
Where the tick loop is (#1695): running, held, stepping out of a hold, or stopped for good. RunState is the pull surface, OnRunStateChanged the push.
public enum RunState : byte
Fields
Faulted = 5A tick aborted, or a fence failed: no tick runs again. Terminal, and it wins over Stopped.
NotStarted = 0Built, not started. A Pause(TimeSpan) here makes Start() come up Paused.
Paused = 2Held at a fenced boundary: no tick runs, and the last one finished — systems, fence, flush, publish, telemetry.
Running = 1Ticking at its pace (any
TimeScale, Unpaced included), possibly towards a hold a runningStepset.Stepping = 3Running the ticks a Step(int) asked for out of a hold, back-to-back; Paused again once they ran.
Stopped = 4Shut down (Shutdown(), FatalStop(), disposal). Terminal.
Remarks
The numeric values are pinned: the Workbench's live-attach control frame carries them on the wire.