mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
19 lines
535 B
C#
19 lines
535 B
C#
using UnityEngine.Networking;
|
|
|
|
namespace QSB {
|
|
public class SectorMessage: MessageBase {
|
|
public static short Type = MsgType.Highest + 1;
|
|
public int sectorId;
|
|
public uint senderId;
|
|
|
|
public override void Deserialize (NetworkReader reader) {
|
|
sectorId = reader.ReadInt32();
|
|
senderId = reader.ReadPackedUInt32();
|
|
}
|
|
|
|
public override void Serialize (NetworkWriter writer) {
|
|
writer.Write(sectorId);
|
|
writer.Write(senderId);
|
|
}
|
|
}
|
|
} |