Documentation
    Preparing search index...

    Interface RollbackTarget

    What RollbackBuffer needs from a simulation.

    A strict subset of @fourjs/diagnostics!ReplayTarget — PhysicsWorld satisfies it, and so does any application object that can capture and restore itself. checksum is deliberately not required: a rollback does not verify, it rewinds, and demanding a checksum would exclude targets that have no meaningful one.

    interface RollbackTarget {
        createSnapshot(): ReplaySnapshot;
        restoreSnapshot(snapshot: ReplaySnapshot): void;
    }
    Index
    • Captures the target's state, with the adapter identity §34 requires.

      Returns ReplaySnapshot

    • Restores a snapshot this target produced; refuses a foreign one (§34).

      Parameters

      Returns void