mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
23 lines
439 B
C#
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;
|
|
}
|
|
} |