mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
23 lines
487 B
C#
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;
|
|
}
|
|
} |