quantum-space-buddies/QSB/AuthoritySync/AuthorityQueueMessage.cs
2021-12-02 02:44:32 -08:00

27 lines
547 B
C#

using QSB.Messaging;
using QuantumUNET.Components;
using QuantumUNET.Transport;
namespace QSB.AuthoritySync
{
public class AuthorityQueueMessage : PlayerMessage
{
public QNetworkIdentity Identity;
public bool Queue;
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
Identity = reader.ReadNetworkIdentity();
Queue = reader.ReadBoolean();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(Identity);
writer.Write(Queue);
}
}
}