PKHeX/PKHeX.Core/Editing/Bulk/BatchInfo.cs
Kurt 972c432205 Minor tweaks
no functional change, just updating some style for readability
2025-04-20 11:08:10 -05:00

19 lines
547 B
C#

namespace PKHeX.Core;
/// <summary>
/// Information wrapper used for Batch Editing to apply suggested values.
/// </summary>
/// <param name="Entity"> Entity to be modified. </param>
public sealed record BatchInfo(PKM Entity)
{
private LegalityAnalysis? la; // c# 14 replace with get-field
/// <summary>
/// Legality analysis of the entity.
/// </summary>
public LegalityAnalysis Legality => la ??= new LegalityAnalysis(Entity);
/// <inheritdoc cref="LegalityAnalysis.Valid"/>
public bool Legal => Legality.Valid;
}