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