using System.Collections.Generic; namespace PKHeX.Core; /// /// Legal Move information for a single , for indicating if a move is legal or not. /// public sealed class LegalMoveSource { public LegalMoveInfo Info { get; } = new(); public readonly ILegalMoveDisplaySource Display; public LegalMoveSource(ILegalMoveDisplaySource display) => Display = display; public void ReloadMoves(LegalityAnalysis source) { if (!Info.ReloadMoves(source)) return; Display.ReloadMoves(Info); } public void ChangeMoveSource(IReadOnlyList moves) { Display.ReloadMoves(moves); } }