import { resumeRunPlayer, runCheckpoint, Recorder, Signal } from '@datamoc/mwg/core';
declare const recorder: Recorder;
const checkpoint = runCheckpoint(recorder, { hp: 9 });
const onFrame = new Signal<number>();
const player = resumeRunPlayer(checkpoint, (action) => console.log(action), onFrame);
player.stop();
The playback half of a restored checkpoint: a
Playerthat continues the recording from the checkpoint's frame, skipping the events before it, so the run resumes rather than restarting. The restored state and the resumed playback travel together: the game loads the slot, then starts this player against the same frame signal it records on.