using System;
namespace PKHeX.Core;
///
/// Information wrapper used for Batch Editing to apply suggested values.
///
public sealed class BatchInfo
{
internal PKM Entity { get; }
internal BatchInfo(PKM pk) => Entity = pk;
private LegalityAnalysis? la;
internal LegalityAnalysis Legality => la ??= new LegalityAnalysis(Entity);
public bool Legal => Legality.Valid;
internal void SuggestedRelearn(Span moves) => Legality.GetSuggestedRelearnMoves(moves, Legality.EncounterOriginal);
}