Documentation
    Preparing search index...

    Interface SimulationSystem

    A unit of per-fixed-step simulation work (§39, verbatim interface).

    priority is read once, at registration: the registry keeps its systems in sorted order rather than re-sorting every step, so mutating priority after registration has no effect until the system is unregistered and registered again (WP-1.11 decision — re-sorting per step would cost work in the hot path and make the order depend on when a field happened to change).

    interface SimulationSystem {
        priority: number;
        dispose(): void;
        fixedUpdate(context: FixedUpdateContext): void;
        initialize(context: SimulationContext): void;
    }

    Implemented by

    Index
    priority: number

    Execution order key; lower runs first. See the PRIORITY_* constants.

    • Called once when the system is unregistered or the registry is disposed.

      Returns void

    • Called once per fixed simulation step, in priority order.

      Parameters

      Returns void

    • Called once when the system is registered.

      Parameters

      Returns void