2017-06-20 04:43:44 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Ribbons introduced in Generation 4 for Special Events </summary>
|
2019-01-26 22:48:32 +00:00
|
|
|
|
public interface IRibbonSetEvent4
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
|
|
|
|
bool RibbonClassic { get; set; }
|
|
|
|
|
bool RibbonWishing { get; set; }
|
|
|
|
|
bool RibbonPremier { get; set; }
|
|
|
|
|
bool RibbonEvent { get; set; }
|
|
|
|
|
bool RibbonBirthday { get; set; }
|
|
|
|
|
bool RibbonSpecial { get; set; }
|
|
|
|
|
bool RibbonWorld { get; set; }
|
|
|
|
|
bool RibbonChampionWorld { get; set; }
|
|
|
|
|
bool RibbonSouvenir { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesEvent4 =
|
|
|
|
|
{
|
|
|
|
|
nameof(IRibbonSetEvent4.RibbonClassic), nameof(IRibbonSetEvent4.RibbonWishing), nameof(IRibbonSetEvent4.RibbonPremier),
|
|
|
|
|
nameof(IRibbonSetEvent4.RibbonEvent), nameof(IRibbonSetEvent4.RibbonBirthday), nameof(IRibbonSetEvent4.RibbonSpecial),
|
|
|
|
|
nameof(IRibbonSetEvent4.RibbonWorld), nameof(IRibbonSetEvent4.RibbonChampionWorld), nameof(IRibbonSetEvent4.RibbonSouvenir)
|
|
|
|
|
};
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2017-06-20 04:43:44 +00:00
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetEvent4 set)
|
|
|
|
|
{
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
set.RibbonClassic,
|
|
|
|
|
set.RibbonWishing,
|
|
|
|
|
set.RibbonPremier,
|
|
|
|
|
set.RibbonEvent,
|
|
|
|
|
set.RibbonBirthday,
|
|
|
|
|
set.RibbonSpecial,
|
|
|
|
|
set.RibbonWorld,
|
|
|
|
|
set.RibbonChampionWorld,
|
|
|
|
|
set.RibbonSouvenir,
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2018-05-12 19:28:48 +00:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetEvent4 _) => RibbonSetNamesEvent4;
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|