2022-06-18 18:04:24 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Legality Check Parse object containing information about a single ribbon.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal sealed class RibbonResult
|
2017-09-04 02:51:29 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>Ribbon Display Name</summary>
|
|
|
|
|
public string Name { get; private set; }
|
2017-09-04 02:51:29 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>Ribbon should not be present.</summary>
|
|
|
|
|
/// <remarks>If this is false, the Ribbon is missing.</remarks>
|
|
|
|
|
public bool Invalid { get; }
|
2017-09-04 02:51:29 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public RibbonResult(string prop, bool invalid = true)
|
|
|
|
|
{
|
|
|
|
|
Name = RibbonStrings.GetName(prop);
|
|
|
|
|
Invalid = invalid;
|
|
|
|
|
}
|
2017-09-04 02:51:29 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Merges the result name with another provided result.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public void Combine(RibbonResult other)
|
|
|
|
|
{
|
|
|
|
|
Name += $" / {other.Name}";
|
2017-09-04 02:51:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|