mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-23 19:03:11 +00:00
62d08d7c30
split some methods with optional parameters=null add more xmldoc replace some magic numbers -> enum/const references consolidate common array operations (span soon maybe?)
20 lines
No EOL
645 B
C#
20 lines
No EOL
645 B
C#
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Information wrapper used for Bulk Editing to apply suggested values.
|
|
/// </summary>
|
|
internal sealed class PKMInfo
|
|
{
|
|
internal PKM pkm { get; }
|
|
internal PKMInfo(PKM pk) { pkm = pk; }
|
|
|
|
private LegalityAnalysis la;
|
|
internal LegalityAnalysis Legality => la ?? (la = new LegalityAnalysis(pkm));
|
|
|
|
public bool Legal => Legality.Valid;
|
|
internal IReadOnlyList<int> SuggestedRelearn => Legality.GetSuggestedRelearn();
|
|
internal EncounterStatic SuggestedEncounter => Legality.GetSuggestedMetInfo();
|
|
}
|
|
} |