PkmnLib.NET/PkmnLib.Dynamic/Events/FaintEvent.cs

23 lines
492 B
C#
Raw Normal View History

2024-07-28 12:00:26 +00:00
using PkmnLib.Dynamic.Models;
namespace PkmnLib.Dynamic.Events;
/// <summary>
/// Event triggered when a Pokemon faints.
/// </summary>
2024-07-28 12:00:26 +00:00
public class FaintEvent : IEventData
{
/// <inheritdoc cref="FaintEvent"/>
2024-07-28 12:00:26 +00:00
public FaintEvent(IPokemon pokemon)
{
Pokemon = pokemon;
}
/// <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();
}