mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
28 lines
505 B
C#
28 lines
505 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using UnityEngine.Networking;
|
|||
|
|
|||
|
namespace QSB
|
|||
|
{
|
|||
|
class QSBClientAuthorityMessage : MessageBase
|
|||
|
{
|
|||
|
public override void Deserialize(NetworkReader reader)
|
|||
|
{
|
|||
|
netId = reader.ReadNetworkId();
|
|||
|
authority = reader.ReadBoolean();
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(NetworkWriter writer)
|
|||
|
{
|
|||
|
writer.Write(netId);
|
|||
|
writer.Write(authority);
|
|||
|
}
|
|||
|
|
|||
|
public NetworkInstanceId netId;
|
|||
|
|
|||
|
public bool authority;
|
|||
|
}
|
|||
|
}
|