quantum-space-buddies/QuantumUNET/Messages/QSBClientAuthorityMessage.cs
Mister_Nebula 661c04a987 REVERT
2020-12-16 09:07:40 +00:00

22 lines
449 B
C#

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);
}
}
}