mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
5d3bc289b6
Mark things as sealed as they shouldn't be inherited from or overriden in a derived class.
29 lines
850 B
C#
29 lines
850 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Legality Check Parse object containing information about a single ribbon.
|
|
/// </summary>
|
|
internal sealed 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);
|
|
Invalid = invalid;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Merges the result name with another provided result.
|
|
/// </summary>
|
|
public void Combine(RibbonResult other)
|
|
{
|
|
Name += $" / {other.Name}";
|
|
}
|
|
}
|
|
}
|