Support adding experience

This commit is contained in:
2024-09-30 15:42:25 +02:00
parent e7cda474f1
commit b77f0122d7
3 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using PkmnLib.Dynamic.Models;
namespace PkmnLib.Dynamic.Events;
public class LevelUpEvent : IEventData
{
public LevelUpEvent(IPokemon pokemon, int previousLevel, int newLevel)
{
Pokemon = pokemon;
PreviousLevel = previousLevel;
NewLevel = newLevel;
}
public int NewLevel { get; set; }
public int PreviousLevel { get; set; }
public IPokemon Pokemon { get; set; }
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}