Implements species/form changing

This commit is contained in:
2024-09-03 10:15:48 +02:00
parent 656c208e5f
commit 213dfdb69e
5 changed files with 124 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
using PkmnLib.Dynamic.Models;
using PkmnLib.Static.Species;
namespace PkmnLib.Dynamic.Events;
public class FormChangeEvent : IEventData
{
public IPokemon Pokemon { get; }
public IForm Form { get; }
public FormChangeEvent(IPokemon pokemon, IForm form)
{
Pokemon = pokemon;
Form = form;
}
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}

View File

@@ -0,0 +1,21 @@
using PkmnLib.Dynamic.Models;
using PkmnLib.Static.Species;
namespace PkmnLib.Dynamic.Events;
public class SpeciesChangeEvent : IEventData
{
public IPokemon Pokemon { get; }
public ISpecies Species { get; }
public IForm Form { get; }
public SpeciesChangeEvent(IPokemon pokemon, ISpecies species, IForm form)
{
Pokemon = pokemon;
Species = species;
Form = form;
}
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}