Nebula
Protocol

EntitySyncMsg

One entity's sync chunks for one tick (see SyncStateCodec).

generated from the sources
public struct EntitySyncMsg

One entity's sync chunks for one tick (see SyncStateCodec). Sent as EntityState (worker -> gateway -> clients) and GhostSyncState (worker -> worker). Reliable tells the gateway which channel to re-emit it on; the container index lets world-space chunks be resolved in the same frame as the pose entry for that tick even when the two packets arrive out of order.

Fields

NetId

public ulong NetId;

Epoch

public uint Epoch;

Tick

public uint Tick;

ContainerIndex

public ushort ContainerIndex;

Reliable

public bool Reliable;

Chunks

public byte[] Chunks;

Properties

Delivery

public Delivery Delivery { get; }

Methods

Write

public void Write(NetworkWriter w, MsgId id);

Read

public static EntitySyncMsg Read(NetworkReader r);

On this page