2020-12-16 09:08:38 +00:00
|
|
|
|
using QuantumUNET.Messages;
|
|
|
|
|
using QuantumUNET.Transport;
|
2020-03-06 18:03:35 +00:00
|
|
|
|
|
2020-12-14 16:28:03 +00:00
|
|
|
|
namespace QSB.Messaging
|
2020-03-06 18:03:35 +00:00
|
|
|
|
{
|
2020-12-23 12:58:45 +00:00
|
|
|
|
public class PlayerMessage : QMessageBase
|
2020-12-02 21:23:01 +00:00
|
|
|
|
{
|
|
|
|
|
public uint FromId { get; set; }
|
|
|
|
|
public uint AboutId { get; set; }
|
2020-12-13 22:25:23 +00:00
|
|
|
|
public bool OnlySendToServer { get; set; }
|
2020-08-20 18:31:10 +00:00
|
|
|
|
|
2020-12-23 12:58:45 +00:00
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
2020-12-02 21:23:01 +00:00
|
|
|
|
{
|
|
|
|
|
FromId = reader.ReadUInt32();
|
|
|
|
|
AboutId = reader.ReadUInt32();
|
2020-12-13 22:25:23 +00:00
|
|
|
|
OnlySendToServer = reader.ReadBoolean();
|
2020-12-02 21:23:01 +00:00
|
|
|
|
}
|
2020-03-06 18:03:35 +00:00
|
|
|
|
|
2020-12-23 12:58:45 +00:00
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
2020-12-02 21:23:01 +00:00
|
|
|
|
{
|
|
|
|
|
writer.Write(FromId);
|
|
|
|
|
writer.Write(AboutId);
|
2020-12-13 22:25:23 +00:00
|
|
|
|
writer.Write(OnlySendToServer);
|
2020-12-02 21:23:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-03 08:28:05 +00:00
|
|
|
|
}
|