2017-06-20 04:43:44 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 7 </summary>
|
2019-01-26 22:48:32 +00:00
|
|
|
|
public interface IRibbonSetCommon7
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
|
|
|
|
bool RibbonChampionAlola { get; set; }
|
|
|
|
|
bool RibbonBattleRoyale { get; set; }
|
|
|
|
|
bool RibbonBattleTreeGreat { get; set; }
|
|
|
|
|
bool RibbonBattleTreeMaster { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesCommon7 =
|
|
|
|
|
{
|
|
|
|
|
nameof(IRibbonSetCommon7.RibbonChampionAlola), nameof(IRibbonSetCommon7.RibbonBattleRoyale),
|
2021-08-20 20:49:20 +00:00
|
|
|
|
nameof(IRibbonSetCommon7.RibbonBattleTreeGreat), nameof(IRibbonSetCommon7.RibbonBattleTreeMaster),
|
2017-06-20 04:43:44 +00:00
|
|
|
|
};
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2017-06-20 04:43:44 +00:00
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon7 set)
|
|
|
|
|
{
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
set.RibbonChampionAlola,
|
|
|
|
|
set.RibbonBattleRoyale,
|
|
|
|
|
set.RibbonBattleTreeGreat,
|
|
|
|
|
set.RibbonBattleTreeMaster,
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2018-05-12 19:28:48 +00:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon7 _) => RibbonSetNamesCommon7;
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|