quantum-space-buddies/QSB/MessagesCore/PlayerMessage.cs
Mister_Nebula c6c76cb395 C L E A N
2020-12-02 21:23:01 +00:00

23 lines
429 B
C#

using UnityEngine.Networking;
namespace QSB.Messaging
{
public class PlayerMessage : MessageBase
{
public uint FromId { get; set; }
public uint AboutId { get; set; }
public override void Deserialize(NetworkReader reader)
{
FromId = reader.ReadUInt32();
AboutId = reader.ReadUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(FromId);
writer.Write(AboutId);
}
}
}