PkmnLib.NET/PkmnLib.Dynamic/Events/CaptureAttemptEvent.cs
2025-05-03 14:18:12 +02:00

30 lines
759 B
C#

using PkmnLib.Dynamic.Libraries;
using PkmnLib.Dynamic.Models;
namespace PkmnLib.Dynamic.Events;
/// <summary>
/// Represents an event that occurs when a Pokémon capture attempt is made.
/// </summary>
public class CaptureAttemptEvent : IEventData
{
/// <inheritdoc cref="CaptureAttemptEvent"/>
public CaptureAttemptEvent(IPokemon target, CaptureResult result)
{
Target = target;
Result = result;
}
/// <summary>
/// The Pokémon that is being captured.
/// </summary>
public IPokemon Target { get; init; }
/// <summary>
/// The result of the capture attempt.
/// </summary>
public CaptureResult Result { get; init; }
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}