2020-12-02 21:23:01 +00:00
|
|
|
|
using UnityEngine.Networking;
|
2020-12-02 12:42:26 +00:00
|
|
|
|
|
2020-12-04 22:14:53 +00:00
|
|
|
|
namespace QuantumUNET
|
2020-12-02 12:42:26 +00:00
|
|
|
|
{
|
2020-12-04 09:23:27 +00:00
|
|
|
|
internal class QSBClientAuthorityMessage : QSBMessageBase
|
2020-12-02 12:42:26 +00:00
|
|
|
|
{
|
2020-12-03 11:56:32 +00:00
|
|
|
|
public NetworkInstanceId netId;
|
|
|
|
|
public bool authority;
|
|
|
|
|
|
2020-12-04 09:23:27 +00:00
|
|
|
|
public override void Deserialize(QSBNetworkReader reader)
|
2020-12-02 12:42:26 +00:00
|
|
|
|
{
|
|
|
|
|
netId = reader.ReadNetworkId();
|
|
|
|
|
authority = reader.ReadBoolean();
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-04 09:23:27 +00:00
|
|
|
|
public override void Serialize(QSBNetworkWriter writer)
|
2020-12-02 12:42:26 +00:00
|
|
|
|
{
|
|
|
|
|
writer.Write(netId);
|
|
|
|
|
writer.Write(authority);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-03 08:28:05 +00:00
|
|
|
|
}
|