mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-18 04:10:36 +00:00
22 lines
444 B
C#
22 lines
444 B
C#
using QuantumUNET.Transport;
|
|
|
|
namespace QuantumUNET.Messages
|
|
{
|
|
internal class QClientAuthorityMessage : QMessageBase
|
|
{
|
|
public QNetworkInstanceId netId;
|
|
public bool authority;
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
netId = reader.ReadNetworkId();
|
|
authority = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
writer.Write(netId);
|
|
writer.Write(authority);
|
|
}
|
|
}
|
|
} |