PKHeX/PKHeX.Core/Editing/Bulk/PKMInfo.cs
Kurt 5a20dc707d Rewrite encounter suggestions
Don't clone legality templates, and keep suggested information minimal -- this isn't automod
2020-01-12 19:40:36 -08:00

19 lines
No EOL
562 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();
}
}