mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
21 lines
445 B
C#
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);
|
|
}
|
|
}
|
|
}
|