~ruther/NosSmooth

048239cf7539a64202306db464db590d0bd4f400 — František Boháček 2 years ago 6e4b542
feat(packets): add use partner skill packet
M Packets/NosSmooth.Packets/Client/Battle/UseAOESkillPacket.cs => Packets/NosSmooth.Packets/Client/Battle/UseAOESkillPacket.cs +1 -1
@@ 13,7 13,7 @@ namespace NosSmooth.Packets.Client.Battle;
/// </summary>
/// <param name="SkillId">The id of the skill.</param>
/// <param name="PositionX">The x coordinate where to target to.</param>
/// <param name="PositionY">The y coordinate where to targe to.</param>
/// <param name="PositionY">The y coordinate where to target to.</param>
[PacketHeader("u_as", PacketSource.Client)]
[GenerateSerializer(true)]
public record UseAOESkillPacket

A Packets/NosSmooth.Packets/Client/Battle/UsePartnerSkillPacket.cs => Packets/NosSmooth.Packets/Client/Battle/UsePartnerSkillPacket.cs +36 -0
@@ 0,0 1,36 @@
//
//  UsePartnerSkillPacket.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.Entities;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Client.Battle;

/// <summary>
/// Sent to use a pet skill.
/// </summary>
/// <param name="MateTransportId">The pet skill id.</param>
/// <param name="TargetEntityType">The target entity type.</param>
/// <param name="TargetId">The target id.</param>
/// <param name="MapX">The x coordinate to target to, present if the skill is area skill.</param>
/// <param name="MapY">The y coordinate to target to, present if the skill is area skill.</param>
[PacketHeader("u_ps", PacketSource.Client)]
[GenerateSerializer(true)]
public record UsePartnerSkillPacket
(
    [PacketIndex(0)]
    long MateTransportId,
    [PacketIndex(1)]
    EntityType TargetEntityType,
    [PacketIndex(2)]
    long TargetId,
    [PacketIndex(3)]
    byte SkillSlot,
    [PacketIndex(4, IsOptional = true)]
    short? MapX,
    [PacketIndex(5, IsOptional = true)]
    short? MapY
) : IPacket;
\ No newline at end of file

Do not follow this link