mwg API
    Preparing search index...

    Interface SimulationSnapshot<State>

    The logical state a game needs to resume a run bit-for-bit: not the storage format (core.SaveSystem owns that), but what it wraps.

    interface SimulationSnapshot<State> {
        journal?: readonly ActionJournalEntry<unknown, unknown>[];
        random: readonly [number, number, number, number];
        scheduler: Roguelike.SchedulerSnapshot;
        state: State;
        version: number;
    }

    Type Parameters

    • State
    Index
    journal?: readonly ActionJournalEntry<unknown, unknown>[]

    Commands already committed, retained for replay, undo checkpoints, and diagnostics.

    random: readonly [number, number, number, number]
    state: State
    version: number