PKHeX/PKHeX.Core/Legality/Structures/CheckResult.cs
Kurt 816ebf6b0e Refactoring
no functional change
2017-12-11 16:01:24 -08:00

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;
}
}
}