M Packets/NosSmooth.Packets/Server/Entities/StPacket.cs => Packets/NosSmooth.Packets/Server/Entities/StPacket.cs +2 -2
@@ 41,6 41,6 @@ public record StPacket
long Hp,
[PacketIndex(7)]
long Mp,
- [PacketListIndex(8, ListSeparator = ' ', IsOptional = true)]
- IReadOnlyList<long>? BuffVNums
+ [PacketListIndex(8, ListSeparator = ' ', InnerSeparator = '.', IsOptional = true)]
+ IReadOnlyList<StSubPacket>? BuffVNums
) : IPacket;=
\ No newline at end of file
A Packets/NosSmooth.Packets/Server/Entities/StSubPacket.cs => Packets/NosSmooth.Packets/Server/Entities/StSubPacket.cs +22 -0
@@ 0,0 1,22 @@
+//
+// StSubPacket.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.PacketSerializer.Abstractions.Attributes;
+
+namespace NosSmooth.Packets.Server.Entities;
+
+/// <summary>
+/// A sub packet for <see cref="StPacket"/> representing buff card id and level.
+/// </summary>
+/// <param name="CardId">The buff card id.</param>
+/// <param name="Level">The buff level.</param>
+public record StSubPacket
+(
+ [PacketIndex(0)]
+ short CardId,
+ [PacketIndex(1, IsOptional = true)]
+ short? Level
+) : IPacket;<
\ No newline at end of file