quantum-space-buddies/QuantumUNET/Messages/QSBClientAuthorityMessage.cs
Mister_Nebula 6148bee639 more clean
2020-12-15 09:56:03 +00:00

20 lines
424 B
C#

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);
}
}
}