Mister_Nebula c6c76cb395 C L E A N
2020-12-02 21:23:01 +00:00

24 lines
479 B
C#

using UnityEngine.Networking;
namespace QSB.QuantumUNET
{
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;
}
}