PkmnLib.NET/PkmnLib.Dynamic/Events/HealEvent.cs

35 lines
832 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 is healed.
/// </summary>
2024-07-28 12:00:26 +00:00
public class HealEvent : IEventData
{
/// <inheritdoc cref="HealEvent"/>
2024-07-28 12:00:26 +00:00
public HealEvent(IPokemon pokemon, uint previousHealth, uint newHealth)
{
Pokemon = pokemon;
PreviousHealth = previousHealth;
NewHealth = newHealth;
}
/// <summary>
/// The Pokemon that was healed.
/// </summary>
2024-07-28 12:00:26 +00:00
public IPokemon Pokemon { get; }
/// <summary>
/// The previous health of the Pokemon.
/// </summary>
2024-07-28 12:00:26 +00:00
public uint PreviousHealth { get; }
/// <summary>
/// The new health of the Pokemon.
/// </summary>
2024-07-28 12:00:26 +00:00
public uint NewHealth { get; }
2024-07-28 12:00:26 +00:00
/// <inheritdoc />
public EventBatchId BatchId { get; init; } = new();
}