quantum-space-buddies/QuantumUNET/Messages/QClientAuthorityMessage.cs
2021-12-02 18:55:55 -08:00

22 lines
443 B
C#

using QuantumUNET.Transport;
namespace QuantumUNET.Messages
{
internal class QClientAuthorityMessage : QMessageBase
{
public NetworkInstanceId netId;
public bool authority;
public override void Deserialize(QNetworkReader reader)
{
netId = reader.ReadNetworkId();
authority = reader.ReadBoolean();
}
public override void Serialize(QNetworkWriter writer)
{
writer.Write(netId);
writer.Write(authority);
}
}
}