~ruther/NosSmooth

f5d1f00ea37db4dc52ed86d92b6b8945a43d4d0f — Rutherther 2 years ago 0c25f40
fix(packets): add missing fields to pinit mate subpacket
M Packets/NosSmooth.Packets/Server/Groups/PinitMateSubPacket.cs => Packets/NosSmooth.Packets/Server/Groups/PinitMateSubPacket.cs +7 -1
@@ 20,6 20,8 @@ namespace NosSmooth.Packets.Server.Groups;
/// <param name="Name">The name of the mate.</param>
/// <param name="Unknown">Unknown TODO.</param>
/// <param name="VNum">The VNum of the mate entity.</param>
/// <param name="Unknown1">Unknown TODO.</param>
/// <param name="Unknown2">Unknown TODO.</param>
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record PinitMateSubPacket


@@ 33,5 35,9 @@ public record PinitMateSubPacket
    [PacketIndex(3)]
    int? Unknown,
    [PacketIndex(4)]
    long? VNum
    long? VNum,
    [PacketIndex(5)]
    byte Unknown1,
    [PacketIndex(6)]
    byte Unknown2
) : IPacket;
\ No newline at end of file

M Packets/NosSmooth.Packets/Server/Groups/PinitSubPacket.cs => Packets/NosSmooth.Packets/Server/Groups/PinitSubPacket.cs +3 -3
@@ 21,16 21,16 @@ namespace NosSmooth.Packets.Server.Groups;
/// <param name="EntityId">The id of the entity.</param>
/// <param name="MateSubPacket">Present for pets and partners.</param>
/// <param name="PlayerSubPacket">Present for players.</param>
[GenerateSerializer(true)]
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record PinitSubPacket
(
    [PacketIndex(0)]
    EntityType EntityType,
    [PacketIndex(1)]
    long EntityId,
    [PacketConditionalIndex(2, "EntityType", false, EntityType.Npc, InnerSeparator = '|')]
    [PacketConditionalIndex(2, "EntityType", false, EntityType.Npc, IsOptional = true)]
    PinitMateSubPacket? MateSubPacket,
    [PacketConditionalIndex(3, "EntityType", false, EntityType.Player, InnerSeparator = '|')]
    [PacketConditionalIndex(3, "EntityType", false, EntityType.Player, IsOptional = true)]
    PinitPlayerSubPacket? PlayerSubPacket
) : IPacket;
\ No newline at end of file

Do not follow this link