five-on-it / packages/protocol/src/messages / InputBatchMessage
Interface: InputBatchMessage
Defined in: packages/protocol/src/messages.ts:100
A client's inputs in one frame (codec.ts' kind 7): its last few inputs, newest first, numbered back from newestSeq (input i is newestSeq - i), and the newest snapshot tick it applied, which acknowledges the acked snapshots (snapshot-acked.ts). An ack alone has no inputs.
Properties
ack
ack:
number
Defined in: packages/protocol/src/messages.ts:104
The newest snapshot tick the client applied (0 before any).
inputs
inputs:
VehicleInput[]
Defined in: packages/protocol/src/messages.ts:108
The quantized inputs, newest first.
kind
kind:
"inputs"
Defined in: packages/protocol/src/messages.ts:102
Discriminator.
newestSeq
newestSeq:
number
Defined in: packages/protocol/src/messages.ts:106
The sequence number of the first (newest) input.