Skip to content

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 ​

Type Parameters ​

Type ParameterDefault type
Inputunknown

Properties ​

PropertyTypeDescriptionInherited fromDefined in
v2Format version. Recordings made before 0.1 are version 1; runReplay reads both.Replay.vlockstep.ts:63
seednumberThe simulation's seed.Replay.seedlockstep.ts:65
turnRatenumberTurns per second.Replay.turnRatelockstep.ts:67
turnnumberThe last turn of the recording. Turns missing from turns were empty.Replay.turnlockstep.ts:69
turns[turn: number, entries: TurnEntry<Input>[]][]Every turn in which something happened, in order, with what happened in it.Replay.turnslockstep.ts:71
from?numberThe turn turns continues from. Absent when it is the whole recording.-lockstep.ts:96
snapshot?SnapshotA simulation saved at turn from, to start from.-lockstep.ts:98
epoch?stringNames 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

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