Mister_Nebula 7a4149bee6 Revert "REVERT"
This reverts commit 661c04a98784a50011cfdaafc62e424095399678.
2020-12-16 09:08:38 +00:00

26 lines
588 B
C#

using QuantumUNET.Messages;
using QuantumUNET.Transport;
namespace QSB.Messaging
{
public class PlayerMessage : QSBMessageBase
{
public uint FromId { get; set; }
public uint AboutId { get; set; }
public bool OnlySendToServer { get; set; }
public override void Deserialize(QSBNetworkReader reader)
{
FromId = reader.ReadUInt32();
AboutId = reader.ReadUInt32();
OnlySendToServer = reader.ReadBoolean();
}
public override void Serialize(QSBNetworkWriter writer)
{
writer.Write(FromId);
writer.Write(AboutId);
writer.Write(OnlySendToServer);
}
}
}