quantum-space-buddies/QSB/QSBClientAuthorityMessage.cs

28 lines
505 B
C#
Raw Normal View History

2020-12-02 12:42:26 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine.Networking;
namespace QSB
{
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;
}
}