//
// CtPacket.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.Server.Battle;
///
/// A skill cast animation has begun.
/// or will be sent after
/// the skill is casted. (after cast time.)
///
/// The type of the caster entity.
/// The entity id of the caster.
/// The type of the target entity.
/// The entity id of the target.
/// The id of the cast animation.
/// The id of teh cast effect.
/// The VNum of the used skill.
[PacketHeader("ct", PacketSource.Server)]
[GenerateSerializer(true)]
public record CtPacket
(
[PacketIndex(0)]
EntityType CasterEntityType,
[PacketIndex(1)]
long CasterEntityId,
[PacketIndex(2)]
EntityType TargetEntityType,
[PacketIndex(3)]
long? TargetEntityId,
[PacketIndex(4)]
short? CastAnimation,
[PacketIndex(5)]
short? CastEffect,
[PacketIndex(6)]
int? SkillVNum
) : IPacket;