PKHeX/PKHeX.Core/Legality/Structures/CheckResult.cs
Kurt 1486b7f14a Misc style & minor tweaks
Remove move combobox flicker hack (no longer necessary)
Add more Array.Empty usages
cache mysterygift sizes
seal some classes

no functionality changes
2018-08-02 20:11:42 -07:00

23 lines
670 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();
internal readonly CheckIdentifier Identifier;
internal CheckResult(CheckIdentifier i) => Identifier = i;
internal CheckResult(Severity s, string c, CheckIdentifier i)
{
Judgement = s;
Comment = c;
Identifier = i;
}
}
}