enum
ReplicationPacketType
- Module
- Networking
- Header
#include "Networking/Replication/ReplicationPackets.h"- Namespace
Mowo
Values
| Name | Value | Description |
|---|---|---|
Spawn | 1 | Server → all clients. Tell the client to create a ghost entity with the assigned network id + the prefab path or class id that the client should instantiate locally. Sent on entity creation when a NetworkObjectComponent is added. Since v4 the tail also carries the authored placed-object GUID (see ReplicationSpawnBody). |
Destroy | 2 | Server → all clients. Tell clients to remove the ghost. Sent on entity destruction or when NetworkObjectComponent is removed. |
Snapshot | 3 | Server → clients, UNRELIABLE channel. Field-level delta of the CONTINUOUS replicated fields (position / rotation / velocity) of a batch of (network object, component) pairs, diffed against the per-peer ACKNOWLEDGED baseline. Entries are [networkId][uint8 componentSlot][uint16 deltaLen][PropertyReplicator delta]; the slot names a type in FReplicatedComponentRegistry and the field indices inside the delta come from that type's reflected TypeDescriptor, so adding a replicated POD field — or a whole replicated component — needs no codec edit. |
Rpc | 4 | Either direction. Reflected MFUNCTION invocation with marshalled arguments (FRpcDispatcher). The body names a (componentId, methodIndex) pair: methodId is the target component's id (or a session event id for the join protocol), methodIndex is the position of the method in the component's reflected FunctionInfo table. Routing is manual: the sender picks SendRpcToServer / ToClient / ToAllClients. Client→server calls are DEFAULT-DENIED and must be allow-listed per (componentId, methodIndex) via ReplicationManager::AllowClientRpc. |
Input | 5 | Client → server. Player input — fed into the server's simulation and replayed locally for client-side prediction. |
StateSnapshot | 6 | Server → clients, RELIABLE channel. Delta of the DISCRETE replicated fields (health / ammo / state enums) that must never be lost, in the same [networkId][uint8 componentSlot][uint16 deltaLen][delta] entry shape as Snapshot. The continuous transform rides the Unreliable Snapshot and self-heals; discrete state cannot, so it ships reliably-until-acked (the transport retransmits until the peer confirms) and the per-object state baseline only advances once the field has been handed to a guaranteed channel. |
Ack | 7 | Client → server, UNRELIABLE. Acknowledges the highest Snapshot packetId the client has received. The server advances a peer's per-object delta baseline ONLY on the ack, never on the send — without it, an object that moves and then stops strands any peer that dropped the final datagram at the second-to-last pose forever. Losing an ack costs one redundant resend, nothing more. |
FastArrayDelta | 8 | Server → clients, RELIABLE channel. One fast array's per-item delta (FNetFastArrayBase::BuildDelta): [networkId][uint16 arrayId][delta bits]. Items added, changed and removed since this peer's last delta, instead of the whole vector an MREPLICATED std::vector re-sends. |
Blob | 9 | |
BlobAck | 10 | |
OwnerChange | 11 | |
SpatialData | 12 | Server -> client / client -> server, UNRELIABLE (or BulkReliable for a packet above one MTU). The body is an FSpatialStream packet verbatim. |
SpatialAck | 13 | |
SpatialInterest | 14 |
Generated from Networking/Replication/ReplicationPackets.h via networking.json · Nov 4, 2026Version 1.0.0