2017-06-20 04:43:44 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Ribbons introduced in Generation 3 and were transferred to future Generations (4 and 5 only). </summary>
|
|
|
|
|
internal interface IRibbonSetUnique3
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Ribbon awarded for clearing Hoenn's Battle Tower's Lv. 50 challenge. </summary>
|
|
|
|
|
bool RibbonWinning { get; set; }
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2017-06-20 04:43:44 +00:00
|
|
|
|
/// <summary> Ribbon awarded for clearing Hoenn's Battle Tower's Lv. 100 challenge. </summary>
|
|
|
|
|
bool RibbonVictory { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesUnique3 =
|
|
|
|
|
{
|
|
|
|
|
nameof(IRibbonSetUnique3.RibbonWinning), nameof(IRibbonSetUnique3.RibbonVictory),
|
|
|
|
|
};
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2017-06-20 04:43:44 +00:00
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetUnique3 set)
|
|
|
|
|
{
|
|
|
|
|
if (set == null)
|
|
|
|
|
return new bool[2];
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
set.RibbonWinning,
|
|
|
|
|
set.RibbonVictory,
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2018-05-12 19:28:48 +00:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetUnique3 _) => RibbonSetNamesUnique3;
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|