using PkmnLib.Dynamic.ScriptHandling;
namespace PkmnLib.Dynamic.Models.Choices;
///
/// A choice to switch to a different Pokémon.
///
public interface ISwitchChoice : ITurnChoice
{
///
/// The Pokémon to switch to.
///
IPokemon SwitchTo { get; }
}
///
public class SwitchChoice : TurnChoice, ISwitchChoice
{
public SwitchChoice(IPokemon user, IPokemon switchTo) : base(user)
{
SwitchTo = switchTo;
}
///
public IPokemon SwitchTo { get; }
///
public override int ScriptCount => User.ScriptCount;
///
public override void GetOwnScripts(List> scripts)
{
}
///
public override void CollectScripts(List> scripts)
{
User.CollectScripts(scripts);
}
}