Implements species/form changing
This commit is contained in:
19
PkmnLib.Dynamic/Events/FormChangeEvent.cs
Normal file
19
PkmnLib.Dynamic/Events/FormChangeEvent.cs
Normal 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; }
|
||||
}
|
||||
21
PkmnLib.Dynamic/Events/SpeciesChangeEvent.cs
Normal file
21
PkmnLib.Dynamic/Events/SpeciesChangeEvent.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user