2023-11-04 09:18:58 +00:00
|
|
|
namespace Wonderking.Packets.Incoming;
|
2023-08-14 20:22:43 +00:00
|
|
|
|
|
|
|
[PacketId(OperationCode.ChannelSelection)]
|
|
|
|
public class ChannelSelectionPacket : IPacket
|
|
|
|
{
|
|
|
|
public required ushort ServerId { get; set; }
|
|
|
|
public required ushort ChannelId { get; set; }
|
|
|
|
|
|
|
|
public void Deserialize(byte[] data)
|
|
|
|
{
|
|
|
|
this.ServerId = BitConverter.ToUInt16(data, 0);
|
|
|
|
this.ChannelId = BitConverter.ToUInt16(data, 2);
|
|
|
|
}
|
|
|
|
|
2023-11-04 09:18:58 +00:00
|
|
|
public byte[] Serialize() => throw new NotSupportedException();
|
2023-08-14 20:22:43 +00:00
|
|
|
}
|