mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-22 10:23:09 +00:00
c66588666c
Only change is to allow SM/USUM to allow Heal action SM/USUM where Transporter messes up PP for VC transfers; otherwise no need for Gen1-5 games.
23 lines
609 B
C#
23 lines
609 B
C#
using System;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Base class for defining a manipulation of box data.
|
|
/// </summary>
|
|
public abstract class BoxManipBase : IBoxManip
|
|
{
|
|
public BoxManipType Type { get; }
|
|
public Func<SaveFile, bool> Usable { get; }
|
|
|
|
protected BoxManipBase(BoxManipType type, Func<SaveFile, bool> usable)
|
|
{
|
|
Type = type;
|
|
Usable = usable;
|
|
}
|
|
|
|
public abstract string GetPrompt(bool all);
|
|
public abstract string GetFail(bool all);
|
|
public abstract string GetSuccess(bool all);
|
|
public abstract int Execute(SaveFile sav, BoxManipParam param);
|
|
}
|