Skip to content

five-on-it / packages/protocol/src/messages / InputBatchMessage

Interface: InputBatchMessage ​

Defined in: packages/protocol/src/messages.ts:99

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:103

The newest snapshot tick the client applied (0 before any).


inputs ​

inputs: VehicleInput[]

Defined in: packages/protocol/src/messages.ts:107

The quantized inputs, newest first.


kind ​

kind: "inputs"

Defined in: packages/protocol/src/messages.ts:101

Discriminator.


newestSeq ​

newestSeq: number

Defined in: packages/protocol/src/messages.ts:105

The sequence number of the first (newest) input.