//
// UsePetSkillPacket.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;
///
/// Sent to use a pet skill.
///
/// The pet skill id.
/// The target entity type.
/// The target id.
/// Unknown, seems to always be 1.
/// Unknown, 6 for Otter.
/// Unknown, 9 for Otter.
[PacketHeader("u_pet", PacketSource.Client)]
[GenerateSerializer(true)]
public record UsePetSkillPacket
(
[PacketIndex(0)]
long MateTransportId,
[PacketIndex(1)]
EntityType TargetEntityType,
[PacketIndex(2)]
long TargetId,
[PacketIndex(3)]
byte Unknown,
[PacketIndex(4)]
byte Unknown1,
[PacketIndex(5)]
byte Unknown2
) : IPacket;