Saxonberg Server API
    Preparing search index...
    Index

    Properties

    DEFAULT_SCALE: 12

    Default time scale (game-seconds per real-second). Requirements D2.

    SNAPSHOT_INTERVAL_MS: number = ...

    Crash-backstop snapshot cadence (module constant, not a setting).

    Methods

    • Boot the clock: restore the persisted game-time anchor (or seed a zero clock on a fresh DB), start the crash backstop, and register any system-scope schedules. Called once from AppBootstrap.run after the bootstrap manifest.

      SystemRoot-gated: only the empty-stack process-boundary caller (the AppBootstrap.run sequence) has a null caller. Every game, eval, scheduled-callback, and network context runs under a frame (non-null caller) and is denied — nothing in-world can re-anchor the clock or restart its backstop.

      Returns Promise<void>

    • Shut the clock down gracefully: pause game-time and persist the elapsed-game-time anchor so the next boot resumes continuously. SystemRoot-gated for the same reason as boot().

      Returns Promise<void>