quantum-space-buddies/QuantumUNET/Messages/QSBClientAuthorityMessage.cs
2020-12-16 08:57:15 +00:00

23 lines
481 B
C#

using QuantumUNET.Transport;
using UnityEngine.Networking;
namespace QuantumUNET.Messages
{
internal class QSBClientAuthorityMessage : QSBMessageBase
{
public NetworkInstanceId netId;
public bool authority;
public override void Deserialize(QSBNetworkReader reader)
{
netId = reader.ReadNetworkId();
authority = reader.ReadBoolean();
}
public override void Serialize(QSBNetworkWriter writer)
{
writer.Write(netId);
writer.Write(authority);
}
}
}