quantum-space-buddies/QuantumUNET/QSBClientAuthorityMessage.cs
2020-12-04 22:14:53 +00:00

22 lines
443 B
C#

using UnityEngine.Networking;
namespace QuantumUNET
{
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);
}
}
}