quantum-space-buddies/QSB/SectorMessage.cs
Ricardo Lopes 19d59b9a5c Cleanup
2020-02-12 20:58:42 +01:00

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);
}
}
}