2019-11-16 01:34:18 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 8 </summary>
|
|
|
|
|
public interface IRibbonSetCommon8
|
|
|
|
|
{
|
|
|
|
|
bool RibbonChampionGalar { get; set; }
|
|
|
|
|
bool RibbonTowerMaster { get; set; }
|
|
|
|
|
bool RibbonMasterRank { get; set; }
|
2021-11-20 02:23:49 +00:00
|
|
|
|
bool RibbonTwinklingStar { get; set; }
|
|
|
|
|
bool RibbonPioneer { get; set; }
|
2019-11-16 01:34:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesCommon8 =
|
|
|
|
|
{
|
|
|
|
|
nameof(IRibbonSetCommon8.RibbonChampionGalar), nameof(IRibbonSetCommon8.RibbonTowerMaster),
|
|
|
|
|
nameof(IRibbonSetCommon8.RibbonMasterRank),
|
2021-11-20 02:23:49 +00:00
|
|
|
|
nameof(IRibbonSetCommon8.RibbonTwinklingStar), nameof(IRibbonSetCommon8.RibbonPioneer),
|
2019-11-16 01:34:18 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon8 set)
|
|
|
|
|
{
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
set.RibbonChampionGalar,
|
|
|
|
|
set.RibbonTowerMaster,
|
|
|
|
|
set.RibbonMasterRank,
|
2021-11-20 02:23:49 +00:00
|
|
|
|
set.RibbonTwinklingStar,
|
|
|
|
|
set.RibbonPioneer,
|
2019-11-16 01:34:18 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon8 _) => RibbonSetNamesCommon8;
|
|
|
|
|
}
|
|
|
|
|
}
|