2019-09-10 07:21:51 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Information wrapper used for Batch Editing to apply suggested values.
|
|
|
|
/// </summary>
|
|
|
|
public sealed class BatchInfo
|
2018-05-18 05:43:07 +00:00
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
internal PKM Entity { get; }
|
|
|
|
internal BatchInfo(PKM pk) => Entity = pk;
|
2018-05-18 05:43:07 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
private LegalityAnalysis? la;
|
|
|
|
internal LegalityAnalysis Legality => la ??= new LegalityAnalysis(Entity);
|
2018-05-18 05:43:07 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
public bool Legal => Legality.Valid;
|
|
|
|
internal IReadOnlyList<int> SuggestedRelearn => Legality.GetSuggestedRelearnMoves();
|
2021-04-20 08:50:47 +00:00
|
|
|
}
|