mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
20 lines
472 B
C#
20 lines
472 B
C#
namespace QuantumUNET.Messages
|
|
{
|
|
internal class QSBOwnerMessage : QSBMessageBase
|
|
{
|
|
public QSBNetworkInstanceId NetId;
|
|
public short PlayerControllerId;
|
|
|
|
public override void Deserialize(QSBNetworkReader reader)
|
|
{
|
|
NetId = reader.ReadNetworkId();
|
|
PlayerControllerId = (short)reader.ReadPackedUInt32();
|
|
}
|
|
|
|
public override void Serialize(QSBNetworkWriter writer)
|
|
{
|
|
writer.Write(NetId);
|
|
writer.WritePackedUInt32((uint)PlayerControllerId);
|
|
}
|
|
}
|
|
} |