continuity/Server/Packets/Incoming/ChannelSelectionPacket.cs
Timothy Schenk 1455bdd75a
All checks were successful
Test if Server can be built / build-server (push) Successful in 22s
chore: apply dotnet format
2023-10-12 09:15:34 +02:00

16 lines
468 B
C#

namespace Server.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)
{
this.ServerId = BitConverter.ToUInt16(data, 0);
this.ChannelId = BitConverter.ToUInt16(data, 2);
}
public byte[] Serialize() => throw new NotImplementedException();
}