22 lines
428 B
C#
Raw Normal View History

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-12-02 21:23:01 +00:00
public class PlayerMessage : MessageBase
{
public uint FromId { get; set; }
public uint AboutId { get; set; }
2020-08-20 19:31:10 +01:00
2020-12-02 21:23:01 +00:00
public override void Deserialize(NetworkReader reader)
{
FromId = reader.ReadUInt32();
AboutId = reader.ReadUInt32();
}
2020-03-06 19:03:35 +01:00
2020-12-02 21:23:01 +00:00
public override void Serialize(NetworkWriter writer)
{
writer.Write(FromId);
writer.Write(AboutId);
}
}
2020-12-03 08:28:05 +00:00
}