namespace Unity.Netcode { /// /// This is the header data that's serialized to the network when sending an /// internal struct MessageHeader : INetworkSerializeByMemcpy { /// /// The byte representation of the message type. This is automatically assigned to each message /// by the MessagingSystem. This value is deterministic only so long as the list of messages remains /// unchanged - if new messages are added or messages are removed, MessageType assignments may be /// calculated differently. /// public uint MessageType; /// /// The total size of the message, NOT including the header. /// Stored as a uint to avoid zig-zag encoding, but capped at int.MaxValue. /// public uint MessageSize; } }