mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 15:59:13 +00:00
1bc7994137
Check successive move slots after the current index rather than doing a count eq >= 2. Flag all empty slots prior to a filled move slot, rather than flagging a full slot as invalid because "empty move".
57 lines
1.4 KiB
C#
57 lines
1.4 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,
|
|
Shared,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Move specific <see cref="CheckResult"/> to contain in which Generation it was learned & source.
|
|
/// </summary>
|
|
public sealed 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)
|
|
: this(Org.Source, Org.Generation, s, c, i)
|
|
{
|
|
}
|
|
|
|
internal CheckMoveResult(CheckMoveResult Org, Severity s, string c)
|
|
: this(Org.Source, Org.Generation, s, c, Org.Identifier)
|
|
{
|
|
}
|
|
}
|
|
}
|