2024-02-07 16:40:36 +01:00
|
|
|
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
|
2023-11-20 19:58:30 +01:00
|
|
|
|
2024-04-04 16:57:42 +02:00
|
|
|
using RaiNote.PacketMediator;
|
2024-02-04 19:52:45 +01:00
|
|
|
|
2023-10-27 19:47:17 +02:00
|
|
|
namespace Wonderking.Packets.Incoming;
|
2023-08-14 22:22:43 +02:00
|
|
|
|
2024-02-04 19:52:45 +01:00
|
|
|
[WonderkingPacketId(OperationCode.ChannelSelection)]
|
|
|
|
public class ChannelSelectionPacket : IIncomingPacket
|
2023-08-14 22:22:43 +02:00
|
|
|
{
|
|
|
|
public required ushort ServerId { get; set; }
|
|
|
|
public required ushort ChannelId { get; set; }
|
|
|
|
|
|
|
|
public void Deserialize(byte[] data)
|
|
|
|
{
|
2023-11-19 17:07:28 +01:00
|
|
|
ServerId = BitConverter.ToUInt16(data, 0);
|
|
|
|
ChannelId = BitConverter.ToUInt16(data, 2);
|
2023-08-14 22:22:43 +02:00
|
|
|
}
|
|
|
|
}
|