quantum-space-buddies/QSB/MessagesCore/PlayerMessage.cs
Mister_Nebula 45d459d389 cleanup
2020-11-03 21:42:14 +00: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);
}
}
}