mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 16:33:24 +00:00
0b4e6a0733
relocate ribbon checks/class to more focused location reduce amount of GenNumber checks (use stored Generation value instead)
23 lines
622 B
C#
23 lines
622 B
C#
namespace PKHeX.Core
|
|
{
|
|
internal class RibbonResult
|
|
{
|
|
/// <summary>Ribbon Display Name</summary>
|
|
public string Name { get; private set; }
|
|
|
|
/// <summary>Ribbon should not be present.</summary>
|
|
/// <remarks>If this is false, the Ribbon is missing.</remarks>
|
|
public bool Invalid { get; }
|
|
|
|
public RibbonResult(string prop, bool invalid = true)
|
|
{
|
|
Name = RibbonStrings.GetName(prop) ?? prop;
|
|
Invalid = invalid;
|
|
}
|
|
|
|
public void Combine(RibbonResult other)
|
|
{
|
|
Name += " / " + other.Name;
|
|
}
|
|
}
|
|
}
|