using QuantumUNET.Transport; namespace QSB.Messaging { public class EnumMessage : PlayerMessage { public T Value; public override void Deserialize(QSBNetworkReader reader) { base.Deserialize(reader); Value = (T)(object)reader.ReadInt32(); } public override void Serialize(QSBNetworkWriter writer) { base.Serialize(writer); writer.Write((int)(object)Value); } } }