quantum-space-buddies/QSB/Messaging/PlayerMessage.cs
Mister_Nebula 274cf180c6 cleanup
2020-08-20 19:31:10 +01:00

23 lines
522 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);
}
}
}