quantum-space-buddies/QSB/Messaging/PlayerMessage.cs
Mister_Nebula 90e7a662b0 more stuff
2020-08-09 12:38:35 +01:00

21 lines
445 B
C#

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