~ruther/NosSmooth

d38571535e650e4e3777b2f674bb336c2352ffaa — František Boháček 3 years ago 56d306c
fix: make lists at end of packet optional
M Core/NosSmooth.Packets/Packets/Server/Entities/StPacket.cs => Core/NosSmooth.Packets/Packets/Server/Entities/StPacket.cs +2 -2
@@ 42,6 42,6 @@ public record StPacket
    long Hp,
    [PacketIndex(7)]
    long Mp,
    [PacketListIndex(8, ListSeparator = ' ')]
    List<long> BuffVNums
    [PacketListIndex(8, ListSeparator = ' ', IsOptional = true)]
    List<long>? BuffVNums
) : IPacket;
\ No newline at end of file

M Core/NosSmooth.Packets/Packets/Server/Groups/PinitPacket.cs => Core/NosSmooth.Packets/Packets/Server/Groups/PinitPacket.cs +2 -2
@@ 22,6 22,6 @@ namespace NosSmooth.Packets.Packets.Server.Groups;
public record PinitPacket
(
    [PacketIndex(0)] int GroupSize,
    [PacketListIndex(1, ListSeparator = ' ', InnerSeparator = '|')]
    IReadOnlyList<PinitSubPacket> PinitSubPackets
    [PacketListIndex(1, ListSeparator = ' ', InnerSeparator = '|', IsOptional = true)]
    IReadOnlyList<PinitSubPacket>? PinitSubPackets
) : IPacket;
\ No newline at end of file

Do not follow this link