//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.GameLogic.PlayerActions.Skills;
using System.Threading;
///
/// A which allows to specify an explicit target when cancelling the nova skill.
///
///
public class SkillCancellationTokenSource : CancellationTokenSource
{
///
/// Gets the explicit target identifier.
///
public ushort? ExplicitTargetId { get; private set; }
///
/// Communicates a request for cancellation, .
///
/// The extra target.
public void CancelWithExtraTarget(ushort? extraTarget)
{
this.ExplicitTargetId = extraTarget;
this.Cancel();
}
}