Protocol
SyncAudienceMsg
Worker to gateway (MsgId.SyncAudience, protocol 20): the member sets of an entity's SyncAudience.Custom behaviors changed.
generated from the sources
Struct in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Protocol/Messages.cspublic struct SyncAudienceMsgWorker to gateway (MsgId.SyncAudience, protocol 20): the member sets of an entity's SyncAudience.Custom behaviors changed. Sent reliably, before that tick's sync chunks, to every gateway the entity's sync state goes to. It carries every set whole rather than a delta, so applying it twice does no harm. The gateway sends each client that joined a set the newest keyframe it holds, and tells each client that left to drop its copy (SyncStateCodec.ChunkFlags.Cleared).
Fields
NetId
public ulong NetId;Epoch
public uint Epoch;Generation
public uint Generation;The entity's audience generation after the change; see EntitySpawnMsg.AudienceGeneration.
Sets
public byte[] Sets;Every Custom behavior's member set (SyncAudienceCodec).
Methods
Write
public void Write(NetworkWriter w);Read
public static SyncAudienceMsg Read(NetworkReader r);