Interface: PatchFrame
Defined in: protocol.ts:104
The state changed: only what differs from what this player last received.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
t | "patch" | Frame type. | protocol.ts:106 |
seq | number | The room's change counter after this change. | protocol.ts:108 |
tick | number | Ticks run so far. While the room is ticking, the tick that made the change. | protocol.ts:110 |
from? | number | Outside the simulation, the seq of the view this is a patch of. A client that holds any other has missed something: it must not apply the patch, and reconnects to be sent its whole view. | protocol.ts:116 |
c? | number | The id of the latest command of this player's that the view now reflects: that one and every earlier one have been applied, and their ack frames follow. Present when the frame is the first to show a command of theirs. | protocol.ts:123 |
p | Patch | Apply it with applyPatch to the view you have. | protocol.ts:125 |