// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
using Rai.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);
}