mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
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
23 lines
677 B
C#
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;
|
|
}
|
|
}
|
|
}
|