2018-05-18 05:43:07 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
|
|
|
internal sealed class PKMInfo
|
|
|
|
{
|
|
|
|
internal PKM pkm { get; }
|
|
|
|
internal PKMInfo(PKM pk) { pkm = pk; }
|
|
|
|
|
|
|
|
private LegalityAnalysis la;
|
2018-05-20 21:29:13 +00:00
|
|
|
internal LegalityAnalysis Legality => la ?? (la = new LegalityAnalysis(pkm));
|
2018-05-18 05:43:07 +00:00
|
|
|
|
2018-05-20 21:29:13 +00:00
|
|
|
public bool Legal => Legality.Valid;
|
2018-05-18 05:43:07 +00:00
|
|
|
internal int[] SuggestedRelearn => Legality.GetSuggestedRelearn();
|
|
|
|
internal EncounterStatic SuggestedEncounter => Legality.GetSuggestedMetInfo();
|
|
|
|
}
|
|
|
|
}
|