// Licensed to Timothy Schenk under the GNU AGPL Version 3 License. using RaiNote.PacketMediator; namespace Wonderking.Packets.Incoming; [WonderkingPacketId(OperationCode.ChannelSelection)] public class ChannelSelectionPacket : IIncomingPacket { public required ushort ServerId { get; set; } public required ushort ChannelId { get; set; } public void Deserialize(byte[] data) { ServerId = BitConverter.ToUInt16(data, 0); ChannelId = BitConverter.ToUInt16(data, 2); } }