2020-12-03 08:28:05 +00:00

23 lines
487 B
C#

using UnityEngine.Networking;
namespace QSB.QuantumUNET
{
internal class QSBOwnerMessage : MessageBase
{
public override void Deserialize(NetworkReader reader)
{
netId = reader.ReadNetworkId();
playerControllerId = (short)reader.ReadPackedUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(netId);
writer.WritePackedUInt32((uint)playerControllerId);
}
public NetworkInstanceId netId;
public short playerControllerId;
}
}