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 is healed.
|
|
|
|
/// </summary>
|
2024-07-28 12:00:26 +00:00
|
|
|
public class HealEvent : IEventData
|
|
|
|
{
|
2024-08-10 07:44:46 +00:00
|
|
|
/// <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;
|
|
|
|
}
|
|
|
|
|
2024-08-10 07:44:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The Pokemon that was healed.
|
|
|
|
/// </summary>
|
2024-07-28 12:00:26 +00:00
|
|
|
public IPokemon Pokemon { get; }
|
2024-08-10 07:44:46 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The previous health of the Pokemon.
|
|
|
|
/// </summary>
|
2024-07-28 12:00:26 +00:00
|
|
|
public uint PreviousHealth { get; }
|
2024-08-10 07:44:46 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The new health of the Pokemon.
|
|
|
|
/// </summary>
|
2024-07-28 12:00:26 +00:00
|
|
|
public uint NewHealth { get; }
|
2024-08-10 07:44:46 +00:00
|
|
|
|
2024-07-28 12:00:26 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public EventBatchId BatchId { get; init; } = new();
|
|
|
|
}
|