mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +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`
36 lines
1 KiB
C#
36 lines
1 KiB
C#
namespace PKHeX.Core;
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 3 </summary>
|
|
public interface IRibbonSetCommon3
|
|
{
|
|
bool RibbonChampionG3 { get; set; }
|
|
bool RibbonArtist { get; set; }
|
|
bool RibbonEffort { get; set; }
|
|
}
|
|
|
|
internal static partial class RibbonExtensions
|
|
{
|
|
private static readonly string[] RibbonSetNamesCommon3 =
|
|
{
|
|
nameof(IRibbonSetCommon3.RibbonChampionG3), nameof(IRibbonSetCommon3.RibbonArtist), nameof(IRibbonSetCommon3.RibbonEffort),
|
|
};
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon3 set)
|
|
{
|
|
return new[]
|
|
{
|
|
set.RibbonChampionG3,
|
|
set.RibbonArtist,
|
|
set.RibbonEffort,
|
|
};
|
|
}
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon3 _) => RibbonSetNamesCommon3;
|
|
|
|
internal static void CopyRibbonSetCommon3(this IRibbonSetCommon3 set, IRibbonSetCommon3 dest)
|
|
{
|
|
dest.RibbonChampionG3 = set.RibbonChampionG3;
|
|
dest.RibbonArtist = set.RibbonArtist;
|
|
dest.RibbonEffort = set.RibbonEffort;
|
|
}
|
|
}
|