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
| Parameter | Type | Default value |
|---|---|---|
replay | Replay<Input> | undefined |
simulation | Simulation<Input, Sim> | undefined |
upTo? | number | replay.turn |
Returns
Sim