2022-06-18 18:04:24 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 3 </summary>
|
|
|
|
|
public interface IRibbonSetCommon3
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
bool RibbonChampionG3 { get; set; }
|
|
|
|
|
bool RibbonArtist { get; set; }
|
|
|
|
|
bool RibbonEffort { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesCommon3 =
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
nameof(IRibbonSetCommon3.RibbonChampionG3), nameof(IRibbonSetCommon3.RibbonArtist), nameof(IRibbonSetCommon3.RibbonEffort),
|
|
|
|
|
};
|
2017-06-20 04:43:44 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon3 set)
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
return new[]
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
set.RibbonChampionG3,
|
|
|
|
|
set.RibbonArtist,
|
|
|
|
|
set.RibbonEffort,
|
2017-06-20 04:43:44 +00:00
|
|
|
|
};
|
2022-06-18 18:04:24 +00:00
|
|
|
|
}
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon3 _) => RibbonSetNamesCommon3;
|
2022-05-31 04:43:52 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
internal static void CopyRibbonSetCommon3(this IRibbonSetCommon3 set, IRibbonSetCommon3 dest)
|
|
|
|
|
{
|
|
|
|
|
dest.RibbonChampionG3 = set.RibbonChampionG3;
|
|
|
|
|
dest.RibbonArtist = set.RibbonArtist;
|
|
|
|
|
dest.RibbonEffort = set.RibbonEffort;
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|