mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 09:08:02 +00:00
816ebf6b0e
no functional change
23 lines
696 B
C#
23 lines
696 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Result of a Legality Check
|
|
/// </summary>
|
|
public class CheckResult
|
|
{
|
|
internal readonly Severity Judgement = Severity.Valid;
|
|
internal string Comment = LegalityCheckStrings.V;
|
|
public bool Valid => Judgement >= Severity.Fishy;
|
|
public string Rating => Judgement.Description();
|
|
public bool Flag;
|
|
internal readonly CheckIdentifier Identifier;
|
|
|
|
internal CheckResult(CheckIdentifier i) { Identifier = i; }
|
|
internal CheckResult(Severity s, string c, CheckIdentifier i)
|
|
{
|
|
Judgement = s;
|
|
Comment = c;
|
|
Identifier = i;
|
|
}
|
|
}
|
|
}
|