quantum-space-buddies/QSB/MessagesCore/PlayerMessage.cs

23 lines
429 B
C#
Raw Normal View History

2020-08-10 16:17:54 +00:00
using UnityEngine.Networking;
2020-03-06 18:03:35 +00:00
2020-08-09 11:38:35 +00:00
namespace QSB.Messaging
2020-03-06 18:03:35 +00: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 18:31:10 +00:00
2020-12-02 21:23:01 +00:00
public override void Deserialize(NetworkReader reader)
{
FromId = reader.ReadUInt32();
AboutId = reader.ReadUInt32();
}
2020-03-06 18:03:35 +00:00
2020-12-02 21:23:01 +00:00
public override void Serialize(NetworkWriter writer)
{
writer.Write(FromId);
writer.Write(AboutId);
}
}
2020-03-06 18:03:35 +00:00
}