2017-06-20 04:43:44 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 3 </summary>
|
|
|
|
|
internal interface IRibbonSetCommon3
|
|
|
|
|
{
|
|
|
|
|
bool RibbonChampionG3Hoenn { get; set; }
|
|
|
|
|
bool RibbonArtist { get; set; }
|
|
|
|
|
bool RibbonEffort { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesCommon3 =
|
|
|
|
|
{
|
|
|
|
|
nameof(IRibbonSetCommon3.RibbonChampionG3Hoenn), nameof(IRibbonSetCommon3.RibbonArtist), nameof(IRibbonSetCommon3.RibbonEffort)
|
|
|
|
|
};
|
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon3 set)
|
|
|
|
|
{
|
|
|
|
|
if (set == null)
|
|
|
|
|
return new bool[3];
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
set.RibbonChampionG3Hoenn,
|
|
|
|
|
set.RibbonArtist,
|
|
|
|
|
set.RibbonEffort,
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-05-12 19:28:48 +00:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon3 _) => RibbonSetNamesCommon3;
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|