quantum-space-buddies/QuantumUNET/Messages/QClientAuthorityMessage.cs

22 lines
444 B
C#
Raw Normal View History

using QuantumUNET.Transport;
2020-12-15 16:37:52 +00:00
namespace QuantumUNET.Messages
2020-12-02 12:42:26 +00:00
{
2020-12-23 12:58:45 +00:00
internal class QClientAuthorityMessage : QMessageBase
2020-12-02 12:42:26 +00:00
{
2021-12-03 03:41:19 +00:00
public QNetworkInstanceId netId;
2020-12-03 11:56:32 +00:00
public bool authority;
2020-12-23 12:58:45 +00:00
public override void Deserialize(QNetworkReader reader)
2020-12-02 12:42:26 +00:00
{
netId = reader.ReadNetworkId();
authority = reader.ReadBoolean();
}
2020-12-23 12:58:45 +00:00
public override void Serialize(QNetworkWriter writer)
2020-12-02 12:42:26 +00:00
{
writer.Write(netId);
writer.Write(authority);
}
}
2020-12-03 08:28:05 +00:00
}