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