21 lines
445 B
C#
Raw Normal View History

2020-03-06 19:03:35 +01:00
using QSB.Messaging;
using UnityEngine.Networking;
2020-08-09 12:38:35 +01:00
namespace QSB.Messaging
2020-03-06 19:03:35 +01:00
{
public abstract class PlayerMessage : QSBMessage
2020-03-06 19:03:35 +01:00
{
public uint SenderId { get; set; }
2020-03-06 19:03:35 +01:00
public override void Deserialize(NetworkReader reader)
{
SenderId = reader.ReadUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(SenderId);
}
}
}