namespace Microsoft.Xna.Framework.Net { /// /// Represents a network message that can be serialized and deserialized for transmission. /// public interface INetworkMessage { /// /// Gets the type identifier of the network message. /// byte MessageType { get; } /// /// Serializes the network message into a for transmission. /// /// The to serialize the message into. void Serialize(PacketWriter writer); /// /// Deserializes the network message from a . /// /// The to deserialize the message from. void Deserialize(PacketReader reader); } }