Lots more work on implementing battling
This commit is contained in:
@@ -2,8 +2,12 @@ using PkmnLib.Dynamic.Models;
|
||||
|
||||
namespace PkmnLib.Dynamic.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Event triggered when a Pokemon is healed.
|
||||
/// </summary>
|
||||
public class HealEvent : IEventData
|
||||
{
|
||||
/// <inheritdoc cref="HealEvent"/>
|
||||
public HealEvent(IPokemon pokemon, uint previousHealth, uint newHealth)
|
||||
{
|
||||
Pokemon = pokemon;
|
||||
@@ -11,11 +15,22 @@ public class HealEvent : IEventData
|
||||
NewHealth = newHealth;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The Pokemon that was healed.
|
||||
/// </summary>
|
||||
public IPokemon Pokemon { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The previous health of the Pokemon.
|
||||
/// </summary>
|
||||
public uint PreviousHealth { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The new health of the Pokemon.
|
||||
/// </summary>
|
||||
public uint NewHealth { get; }
|
||||
|
||||
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user