2018-05-18 05:43:07 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
2019-07-14 22:06:45 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Information wrapper used for Bulk Editing to apply suggested values.
|
|
|
|
/// </summary>
|
2018-05-18 05:43:07 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|