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.
SaveSystem
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); Copy
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);
Pairs a live recording with the state a save already captured, as plain data a
SaveSystemslot stores: restoring the slot restores the run, not just the numbers.