2017-06-19 21:43:44 -07:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 3 </summary>
|
2019-01-26 14:48:32 -08:00
|
|
|
|
public interface IRibbonSetCommon3
|
2017-06-19 21:43:44 -07:00
|
|
|
|
{
|
|
|
|
|
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)
|
|
|
|
|
};
|
2018-07-26 19:34:27 -07:00
|
|
|
|
|
2017-06-19 21:43:44 -07:00
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon3 set)
|
|
|
|
|
{
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
set.RibbonChampionG3Hoenn,
|
|
|
|
|
set.RibbonArtist,
|
|
|
|
|
set.RibbonEffort,
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-07-26 19:34:27 -07:00
|
|
|
|
|
2018-05-12 12:28:48 -07:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon3 _) => RibbonSetNamesCommon3;
|
2017-06-19 21:43:44 -07:00
|
|
|
|
}
|
|
|
|
|
}
|