mwg API
    Preparing search index...

    Function runCheckpoint

    • Pairs a live recording with the state a save already captured, as plain data a SaveSystem slot stores: restoring the slot restores the run, not just the numbers.

      Type Parameters

      • T

      Parameters

      Returns RunCheckpoint<T>

      import { runCheckpoint, Recorder } from '@datamoc/mwg/core';

      declare const recorder: Recorder;
      const checkpoint = runCheckpoint(recorder, { depth: 4, hp: 9 });
      console.log(checkpoint.frame, checkpoint.state.hp);