mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 16:27:21 +00:00
1486b7f14a
Remove move combobox flicker hack (no longer necessary) Add more Array.Empty usages cache mysterygift sizes seal some classes no functionality changes
53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Source the Move was learned from
|
|
/// </summary>
|
|
public enum MoveSource
|
|
{
|
|
Unknown,
|
|
None,
|
|
Relearn,
|
|
Initial,
|
|
LevelUp,
|
|
TMHM,
|
|
Tutor,
|
|
EggMove,
|
|
InheritLevelUp,
|
|
Special,
|
|
SpecialEgg,
|
|
ShedinjaEvo,
|
|
Sketch,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Move specific <see cref="CheckResult"/> to contain in which Generation it was learned & source.
|
|
/// </summary>
|
|
public class CheckMoveResult : CheckResult
|
|
{
|
|
public readonly MoveSource Source;
|
|
public readonly int Generation;
|
|
public bool Flag;
|
|
|
|
internal CheckMoveResult(MoveSource m, int g, CheckIdentifier i)
|
|
: base(i)
|
|
{
|
|
Source = m;
|
|
Generation = g;
|
|
}
|
|
|
|
internal CheckMoveResult(MoveSource m, int g, Severity s, string c, CheckIdentifier i)
|
|
: base(s, c, i)
|
|
{
|
|
Source = m;
|
|
Generation = g;
|
|
}
|
|
|
|
internal CheckMoveResult(CheckMoveResult Org, Severity s, string c, CheckIdentifier i)
|
|
: base(s, c, i)
|
|
{
|
|
Source = Org?.Source ?? MoveSource.Unknown;
|
|
Generation = Org?.Generation ?? 0;
|
|
}
|
|
}
|
|
}
|