mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 16:33:24 +00:00
d11a89d52d
reduce usage for non gen6+ relearn move cases save contains result for later usage instead of recomputing the inverse
22 lines
670 B
C#
22 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;
|
|
}
|
|
}
|
|
}
|