mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-30 06:13:11 +00:00
2cdb5d26db
rename things to be a little more consistent in naming conventions
17 lines
No EOL
726 B
C#
17 lines
No EOL
726 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public sealed class BoxManipModify : BoxManipBase
|
|
{
|
|
private readonly Action<PKM> Action;
|
|
public BoxManipModify(BoxManipType type, Action<PKM> action) : this(type, action, _ => true) { }
|
|
public BoxManipModify(BoxManipType type, Action<PKM> action, Func<SaveFile, bool> usable) : base(type, usable) => Action = action;
|
|
|
|
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) => sav.ModifyBoxes(Action, param.Start, param.Stop);
|
|
}
|
|
} |