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

TypeNameDescription
ReplicationPacketTypetype
uint8_tprotocolVersionFree 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_tschemaIdDefault 0.
uint32_tserverTickserver's tick counter at send time Default 0.
uint32_tlastProcessedInputTickPer-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_tpacketIdPer-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