2017-09-02 06:15:57 +00:00
|
|
|
|
using System.Collections.Generic;
|
2018-06-09 03:10:41 +00:00
|
|
|
|
using System.Linq;
|
2017-09-02 06:15:57 +00:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-06-09 03:10:41 +00:00
|
|
|
|
|
|
|
|
|
public struct LearnVersion
|
|
|
|
|
{
|
|
|
|
|
public readonly GameVersion Game;
|
|
|
|
|
public readonly int Level;
|
|
|
|
|
public LearnVersion(int lv, GameVersion game = GameVersion.Any)
|
|
|
|
|
{
|
|
|
|
|
Game = game;
|
|
|
|
|
Level = lv;
|
|
|
|
|
}
|
2018-06-13 05:15:06 +00:00
|
|
|
|
|
|
|
|
|
public bool IsLevelUp => Level >= 0;
|
2018-06-09 03:10:41 +00:00
|
|
|
|
}
|
2017-09-02 06:15:57 +00:00
|
|
|
|
}
|