Initial work on implementing Pokemon

This commit is contained in:
2024-07-28 14:00:26 +02:00
parent 3d5fb1a818
commit 554e1cf2cd
15 changed files with 603 additions and 30 deletions

View File

@@ -0,0 +1,22 @@
using PkmnLib.Dynamic.Models;
namespace PkmnLib.Dynamic.Events;
public record DamageEvent : IEventData
{
public DamageEvent(IPokemon pokemon, uint previousHealth, uint newHealth, DamageSource source)
{
Pokemon = pokemon;
PreviousHealth = previousHealth;
NewHealth = newHealth;
Source = source;
}
public IPokemon Pokemon { get; init; }
public uint PreviousHealth { get; init; }
public uint NewHealth { get; init; }
public DamageSource Source { get; init; }
/// <inheritdoc />
public EventBatchId BatchId { get; init; } = new();
}