~ruther/NosSmooth

e0a38d8f0e54fe4e8e27e6577a2ae345df6eabfd — Rutherther 2 years ago b9d8405
fix(packets): make gidx family sub packet nullable, family icons optional
1 files changed, 4 insertions(+), 3 deletions(-)

M Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs
M Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs => Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs +4 -3
@@ 6,6 6,7 @@

using NosSmooth.Packets.Enums.Entities;
using NosSmooth.Packets.Server.Character;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using NosSmooth.PacketSerializer.Abstractions.Common;



@@ 29,11 30,11 @@ public record GidxPacket
    [PacketIndex(1)]
    long EntityId,
    [PacketIndex(2, InnerSeparator = '.')]
    FamilySubPacket FamilySubPacket,
    NullableWrapper<FamilySubPacket> FamilySubPacket,
    [PacketIndex(3)]
    NameString? FamilyName,
    [PacketIndex(4)]
    NameString? FamilyCustomRank,
    [PacketListIndex(5, ListSeparator = '|')]
    IReadOnlyList<bool> FamilyIcons
    [PacketListIndex(5, ListSeparator = '|', IsOptional = true)]
    IReadOnlyList<bool>? FamilyIcons
) : IPacket;
\ No newline at end of file

Do not follow this link