2024-07-28 12:00:26 +00:00
|
|
|
using PkmnLib.Dynamic.Models;
|
|
|
|
|
|
|
|
namespace PkmnLib.Dynamic.Events;
|
|
|
|
|
2024-08-10 07:44:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Event triggered when a Pokemon faints.
|
|
|
|
/// </summary>
|
2024-07-28 12:00:26 +00:00
|
|
|
public class FaintEvent : IEventData
|
|
|
|
{
|
2024-08-10 07:44:46 +00:00
|
|
|
/// <inheritdoc cref="FaintEvent"/>
|
2024-07-28 12:00:26 +00:00
|
|
|
public FaintEvent(IPokemon pokemon)
|
|
|
|
{
|
|
|
|
Pokemon = pokemon;
|
|
|
|
}
|
|
|
|
|
2024-08-10 07:44:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The Pokemon that fainted.
|
|
|
|
/// </summary>
|
2024-07-28 12:00:26 +00:00
|
|
|
public IPokemon Pokemon { get; init; }
|
2025-03-02 16:19:57 +00:00
|
|
|
|
2024-07-28 12:00:26 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public EventBatchId BatchId { get; init; } = new();
|
|
|
|
}
|