// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.

namespace Wonderking.Packets.Incoming;

[PacketId(OperationCode.ChannelSelection)]
public class ChannelSelectionPacket : IPacket
{
    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);
    }

    public byte[] Serialize()
    {
        throw new NotSupportedException();
    }
}