quantum-space-buddies/QSB/QuantumSync/Events/QuantumAuthorityMessage.cs
Mister_Nebula 1b8878a1cf help
2021-01-26 14:07:17 +00:00

22 lines
467 B
C#

using QSB.WorldSync.Events;
using QuantumUNET.Transport;
namespace QSB.QuantumSync.Events
{
public class QuantumAuthorityMessage : WorldObjectMessage
{
public uint AuthorityOwner { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
AuthorityOwner = reader.ReadUInt32();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(AuthorityOwner);
}
}
}