mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-29 12:07:12 -05:00
20 lines
622 B
C#
20 lines
622 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)
|
|
{
|
|
/// <summary>
|
|
/// Legality analysis of the entity.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Eagerly evaluate on ctor, so that the initial state is remembered before any modifications may disturb matching.
|
|
/// </remarks>
|
|
public readonly LegalityAnalysis Legality = new(Entity);
|
|
|
|
/// <inheritdoc cref="LegalityAnalysis.Valid"/>
|
|
public bool Legal => Legality.Valid;
|
|
}
|