PKHeX/PKHeX.Core/Legality/Moves/LearnInfo.cs
Kurt 39daa6c65d Split GetIsLevelUp to individual versions
static the GameVersion reference as we're excessively using it in the
switch cases, for clearer reading
2018-06-12 22:15:06 -07:00

36 lines
1.1 KiB
C#

using System.Collections.Generic;
using System.Linq;
namespace PKHeX.Core
{
internal class LearnInfo
{
public bool MixedGen12NonTradeback { get; set; }
public List<int> Gen1Moves { get; } = new List<int>();
public List<int> Gen2PreevoMoves { get; } = new List<int>();
public List<int> EggMovesLearned { get; } = new List<int>();
public List<int> LevelUpEggMoves { get; } = new List<int>();
public List<int> EventEggMoves { get; } = new List<int>();
public List<int> IncenseMoves { get; } = new List<int>();
public MoveParseSource Source { get; set; }
public readonly bool IsGen2Pkm;
public LearnInfo(PKM pkm)
{
IsGen2Pkm = pkm.Format == 2 || pkm.VC2;
}
}
public struct LearnVersion
{
public readonly GameVersion Game;
public readonly int Level;
public LearnVersion(int lv, GameVersion game = GameVersion.Any)
{
Game = game;
Level = lv;
}
public bool IsLevelUp => Level >= 0;
}
}