Skip to content

Function: runReplay() ​

ts
function runReplay<Input, Sim>(
   replay, 
   simulation, 
   upTo?
): Sim;

Defined in: lockstep.ts:128

Runs a recording from the start and returns the simulation as it stands after turn upTo.

Type Parameters ​

Type Parameter
Input
Sim

Parameters ​

ParameterTypeDefault value
replayReplay<Input>undefined
simulationSimulation<Input, Sim>undefined
upTo?numberreplay.turn

Returns ​

Sim

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.