From 0e82083c74a0f0a6617735341942ae3ccdaac83e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 15 Jan 2023 11:00:09 +0100 Subject: [PATCH] fix(packets): split rdlst, rdlstf due to different fields --- .../Server/Raids/RdlstPacket.cs | 5 ++- .../Server/Raids/RdlstfPacket.cs | 33 +++++++++++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 Packets/NosSmooth.Packets/Server/Raids/RdlstfPacket.cs diff --git a/Packets/NosSmooth.Packets/Server/Raids/RdlstPacket.cs b/Packets/NosSmooth.Packets/Server/Raids/RdlstPacket.cs index c871d29..8134515 100644 --- a/Packets/NosSmooth.Packets/Server/Raids/RdlstPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Raids/RdlstPacket.cs @@ -17,14 +17,13 @@ namespace NosSmooth.Packets.Server.Raids; /// Unknown TODO. /// Information about members in the raid. [PacketHeader("rdlst", PacketSource.Server)] -[PacketHeader("rdlstf", PacketSource.Server)] [GenerateSerializer(true)] public record RdlstPacket ( [PacketIndex(0)] - byte MinimumLevel, + short MinimumLevel, [PacketIndex(1)] - byte MaximumLevel, + short MaximumLevel, [PacketIndex(2)] RaidType RaidType, [PacketListIndex(3, ListSeparator = ' ', InnerSeparator = '.')] diff --git a/Packets/NosSmooth.Packets/Server/Raids/RdlstfPacket.cs b/Packets/NosSmooth.Packets/Server/Raids/RdlstfPacket.cs new file mode 100644 index 0000000..fa547fd --- /dev/null +++ b/Packets/NosSmooth.Packets/Server/Raids/RdlstfPacket.cs @@ -0,0 +1,33 @@ +// +// RdlstfPacket.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using NosSmooth.Packets.Enums.Raids; +using NosSmooth.PacketSerializer.Abstractions.Attributes; + +namespace NosSmooth.Packets.Server.Raids; + +/// +/// A packet containing information about raid members. +/// +/// The minimum needed level for the raid treasure. +/// The maximum needed level for the raid treasure. +/// Unknown TODO. +/// Information about members in the raid. +[PacketHeader("rdlstf", PacketSource.Server)] +[GenerateSerializer(true)] +public record RdlstfPacket +( + [PacketIndex(0)] + short MinimumLevel, + [PacketIndex(1)] + short MaximumLevel, + [PacketIndex(2)] + short Unknown, + [PacketIndex(3)] + RaidType RaidType, + [PacketListIndex(4, ListSeparator = ' ', InnerSeparator = '.')] + IReadOnlyList Players +) : IPacket; \ No newline at end of file -- 2.48.1