struct
ReplicationPacketHeader
Fixed-size header in front of every packet body. We don't put length here because the transport layer already framing-delimits messages.
- Module
- Networking
- Header
#include "Networking/Replication/ReplicationPackets.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
ReplicationPacketType | type | |
uint8_t | protocolVersion | Free padding in v1, load-bearing now: the two fields a receiver checks before it decodes a single entry. protocolVersion catches a peer on another build of the packet layout; schemaId catches a peer whose replicated-component set or field layout differs, which would otherwise decode a delta into the wrong component slot. Default REPLICATION_PROTOCOL_VERSION. |
uint16_t | schemaId | Default 0. |
uint32_t | serverTick | server's tick counter at send time Default 0. |
uint32_t | lastProcessedInputTick | Per-peer acknowledgement piggybacked on every server→client packet: the highest client input tick the server has processed for THIS peer. The client uses it to retire acknowledged pending inputs and to drive reconciliation (replay the still-unacked inputs from authoritative state). 0 = the server has processed no input from this peer yet. Default 0. |
uint32_t | packetId | Per-peer, monotonically increasing id of THIS packet. Only Snapshot packets carry a non-zero value; the client echoes the highest it has seen back in an Ack, and that ack is what advances the server's per-peer delta baselines. 0 = "not ack-tracked" (StateSnapshot rides a reliable channel and needs no ack of its own; Spawn/Destroy likewise). Default 0. |
Generated from Networking/Replication/ReplicationPackets.h via networking.json · Nov 4, 2026Version 1.0.0