2020-12-02 12:42:26 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using UnityEngine.Networking;
|
|
|
|
|
|
2020-12-02 21:19:10 +00:00
|
|
|
|
namespace QSB.QuantumUNET
|
2020-12-02 12:42:26 +00:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|