PkmnLib.NET/PkmnLib.Dynamic/Events/FormChangeEvent.cs
2025-05-03 14:18:12 +02:00

30 lines
699 B
C#

using PkmnLib.Dynamic.Models;
using PkmnLib.Static.Species;
namespace PkmnLib.Dynamic.Events;
/// <summary>
/// Represents an event that occurs when a Pokémon changes its form.
/// </summary>
public class FormChangeEvent : IEventData
{
/// <summary>
/// The Pokémon that changed its form.
/// </summary>
public IPokemon Pokemon { get; }
/// <summary>
/// The new form of the Pokémon.
/// </summary>
public IForm Form { get; }
/// <inheritdoc cref="FormChangeEvent"/>
public FormChangeEvent(IPokemon pokemon, IForm form)
{
Pokemon = pokemon;
Form = form;
}
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}