mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 03:39:55 +00:00
22 lines
454 B
C#
22 lines
454 B
C#
using QuantumUNET.Transport;
|
|
|
|
namespace QuantumUNET.Messages
|
|
{
|
|
internal class QSBClientAuthorityMessage : QSBMessageBase
|
|
{
|
|
public QSBNetworkInstanceId netId;
|
|
public bool authority;
|
|
|
|
public override void Deserialize(QSBNetworkReader reader)
|
|
{
|
|
netId = reader.ReadNetworkId();
|
|
authority = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QSBNetworkWriter writer)
|
|
{
|
|
writer.Write(netId);
|
|
writer.Write(authority);
|
|
}
|
|
}
|
|
} |