Table of Contents

Enum RunState

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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 = 5

A tick aborted, or a fence failed: no tick runs again. Terminal, and it wins over Stopped.

NotStarted = 0

Built, not started. A Pause(TimeSpan) here makes Start() come up Paused.

Paused = 2

Held at a fenced boundary: no tick runs, and the last one finished — systems, fence, flush, publish, telemetry.

Running = 1

Ticking at its pace (any TimeScale, Unpaced included), possibly towards a hold a running Step set.

Stepping = 3

Running the ticks a Step(int) asked for out of a hold, back-to-back; Paused again once they ran.

Stopped = 4

Shut down (Shutdown(), FatalStop(), disposal). Terminal.

Remarks

The numeric values are pinned: the Workbench's live-attach control frame carries them on the wire.