18 lines
505 B
C#
18 lines
505 B
C#
// Licensed to Timothy Schenk under 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);
|
|
}
|
|
}
|