Interface: CatchUp<Input>
Defined in: lockstep.ts:94
What a room answers a client that is catching up: the recording, or only the end of it. With from set, turns has the turns after from and nothing earlier: the client continues from the simulation it has, or from snapshot when there is one.
Extends
Replay<Input>
Type Parameters
| Type Parameter | Default type |
|---|---|
Input | unknown |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
v | 2 | Format version. Recordings made before 0.1 are version 1; runReplay reads both. | Replay.v | lockstep.ts:63 |
seed | number | The simulation's seed. | Replay.seed | lockstep.ts:65 |
turnRate | number | Turns per second. | Replay.turnRate | lockstep.ts:67 |
turn | number | The last turn of the recording. Turns missing from turns were empty. | Replay.turn | lockstep.ts:69 |
turns | [turn: number, entries: TurnEntry<Input>[]][] | Every turn in which something happened, in order, with what happened in it. | Replay.turns | lockstep.ts:71 |
from? | number | The turn turns continues from. Absent when it is the whole recording. | - | lockstep.ts:96 |
snapshot? | Snapshot | A simulation saved at turn from, to start from. | - | lockstep.ts:98 |
epoch? | string | Names the run of the room that answered. A client sends it back with the turn its simulation is at, and is given only the turns after that if the room has not restarted since. | - | lockstep.ts:104 |