quantum-space-buddies/QSB/QuantumUNET/QSBClientAuthorityMessage.cs
2020-12-03 08:28:05 +00:00

23 lines
439 B
C#

using UnityEngine.Networking;
namespace QSB.QuantumUNET
{
internal class QSBClientAuthorityMessage : MessageBase
{
public override void Deserialize(NetworkReader reader)
{
netId = reader.ReadNetworkId();
authority = reader.ReadBoolean();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(netId);
writer.Write(authority);
}
public NetworkInstanceId netId;
public bool authority;
}
}