mirror of
https://github.com/kwsch/PKHeX
synced 2025-01-25 10:45:05 +00:00
fc754b346b
[Language Reference](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/file-scoped-namespaces) Updates all the files, one less level of indentation. Some small changes were made to API surfaces, renaming `PKM pkm` -> `PKM pk`, and `LegalityAnalysis.pkm` -> `LegalityAnalysis.Entity`
28 lines
756 B
C#
28 lines
756 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}";
|
|
}
|
|
}
|