mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
b8835facd5
lowercase = local variable or private member
20 lines
No EOL
650 B
C#
20 lines
No EOL
650 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 Entity { get; }
|
|
internal PKMInfo(PKM pk) { Entity = pk; }
|
|
|
|
private LegalityAnalysis? la;
|
|
internal LegalityAnalysis Legality => la ??= new LegalityAnalysis(Entity);
|
|
|
|
public bool Legal => Legality.Valid;
|
|
internal IReadOnlyList<int> SuggestedRelearn => Legality.GetSuggestedRelearn();
|
|
internal EncounterStatic? SuggestedEncounter => Legality.GetSuggestedMetInfo();
|
|
}
|
|
} |