2017-09-04 02:51:29 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2018-07-21 03:22:46 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Legality Check Parse object containing information about a single ribbon.
|
|
|
|
|
/// </summary>
|
2017-09-04 02:51:29 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-21 03:22:46 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Merges the result name with another provided result.
|
|
|
|
|
/// </summary>
|
2017-09-04 02:51:29 +00:00
|
|
|
|
public void Combine(RibbonResult other)
|
|
|
|
|
{
|
2017-09-30 05:58:25 +00:00
|
|
|
|
Name += $" / {other.Name}";
|
2017-09-04 02:51:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|