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; }
}