PKHeX/PKHeX.Core/Legality/Structures/CheckResult.cs
Kurt 91c37ab573 Update legality check message string style
V### names weren't enjoyable to work with; use similar verbose style as
the program message strings.

updating the translation files with the remapped variable names shortly

remap list: https://pastebin.com/jybkVDAK
2018-09-01 14:11:12 -07:00

23 lines
677 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.L_AValid;
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;
}
}
}