PkmnLib.NET/PkmnLib.Dynamic/Models/Choices/FleeChoice.cs

29 lines
716 B
C#
Raw Normal View History

2024-09-30 17:23:56 +00:00
using PkmnLib.Dynamic.ScriptHandling;
2024-07-27 14:26:45 +00:00
namespace PkmnLib.Dynamic.Models.Choices;
2024-07-28 10:52:17 +00:00
/// <summary>
/// A choice to flee from a battle.
/// </summary>
2024-07-27 14:26:45 +00:00
public interface IFleeChoice : ITurnChoice
{
2024-09-30 17:23:56 +00:00
}
/// <inheritdoc cref="IFleeChoice"/>
public class FleeTurnChoice : TurnChoice, IFleeChoice
{
/// <inheritdoc />
public FleeTurnChoice(IPokemon user) : base(user)
{
}
/// <inheritdoc />
public override int ScriptCount => User.ScriptCount;
/// <inheritdoc />
public override void GetOwnScripts(List<IEnumerable<ScriptContainer>> scripts) { }
/// <inheritdoc />
public override void CollectScripts(List<IEnumerable<ScriptContainer>> scripts) => User.CollectScripts(scripts);
2024-07-27 14:26:45 +00:00
}