@its-not-rocket-science/ananke
    Preparing search index...

    Class ReplayRecorder

    Records commands applied each tick so the simulation can be replayed later.

    Usage: const recorder = new ReplayRecorder(world); // snapshot before first step recorder.record(world.tick, cmds); // call once per tick stepWorld(world, cmds, ctx); const replay = recorder.toReplay();

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Record the commands dispatched for one tick. Call once per tick, before or after stepWorld.

      Parameters

      Returns void