2020-08-10 18:17:54 +02:00
|
|
|
|
using UnityEngine.Networking;
|
2020-03-06 19:03:35 +01:00
|
|
|
|
|
2020-08-09 12:38:35 +01:00
|
|
|
|
namespace QSB.Messaging
|
2020-03-06 19:03:35 +01:00
|
|
|
|
{
|
2020-08-10 14:48:40 +01:00
|
|
|
|
public class PlayerMessage : MessageBase
|
2020-03-06 19:03:35 +01:00
|
|
|
|
{
|
2020-08-17 16:51:56 +01:00
|
|
|
|
public uint FromId { get; set; }
|
|
|
|
|
public uint AboutId { get; set; }
|
2020-05-19 20:05:15 +02:00
|
|
|
|
|
2020-03-06 19:03:35 +01:00
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
|
|
|
{
|
2020-08-17 16:51:56 +01:00
|
|
|
|
FromId = reader.ReadUInt32();
|
|
|
|
|
AboutId = reader.ReadUInt32();
|
2020-03-06 19:03:35 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
|
|
|
{
|
2020-08-17 16:51:56 +01:00
|
|
|
|
writer.Write(FromId);
|
|
|
|
|
writer.Write(AboutId);
|
2020-03-06 19:03:35 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|