using System;
namespace PKHeX.Core;
///
/// Modifies contents of boxes by using an (referencing a Save File) to change data.
///
public sealed record BoxManipModifyComplex(BoxManipType Type, Action Action, Func Usable)
: BoxManipBase(Type, Usable)
{
public BoxManipModifyComplex(BoxManipType Type, Action Action) : this(Type, Action, _ => true) { }
public override string GetPrompt(bool all) => string.Empty;
public override string GetFail(bool all) => string.Empty;
public override string GetSuccess(bool all) => string.Empty;
public override int Execute(SaveFile sav, BoxManipParam param)
{
var (start, stop, _) = param;
return sav.ModifyBoxes(pk => Action(pk, sav), start, stop);
}
}