PKHeX/PKHeX.Core/Legality/Ribbons/RibbonResult.cs
Kurt 1e377c2963 interpolation++
no functional change (assumed)
2017-09-29 22:58:25 -07:00

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}";
}
}
}