Support adding experience
This commit is contained in:
22
PkmnLib.Dynamic/Events/LevelUpEvent.cs
Normal file
22
PkmnLib.Dynamic/Events/LevelUpEvent.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user