2020-12-04 09:29:23 +00:00

22 lines
418 B
C#

using QSB.Messaging;
using QSB.QuantumUNET;
namespace QSB.MessagesCore
{
public class EnumMessage<T> : 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);
}
}
}