1681-engine / index / Snapshot
Interface: Snapshot ​
Defined in: src/net/protocol.ts:34
Properties ​
ack ​
ts
ack: number;Defined in: src/net/protocol.ts:41
The last input step of this client the server has applied (-1 before any).
me? ​
ts
optional me?: MoverWire;Defined in: src/net/protocol.ts:43
This client's own body, whole, as of ack.
rm? ​
ts
optional rm?: number[];Defined in: src/net/protocol.ts:47
Bodies that left view.
sp? ​
ts
optional sp?: SpawnInfo[];Defined in: src/net/protocol.ts:45
Bodies that came into view.
t ​
ts
t: "snap";Defined in: src/net/protocol.ts:35
tick ​
ts
tick: number;Defined in: src/net/protocol.ts:37
The server's step count when it was taken.
time ​
ts
time: number;Defined in: src/net/protocol.ts:39
The server's wall time when it was taken (ms since the epoch), for interpolation.
up? ​
ts
optional up?: EntityUpdate[];Defined in: src/net/protocol.ts:49
Every body in view: [id, x, y, aim, anim, hp, flags].