PKHeX/PKHeX.Core/Ribbons/IRibbonSetCommon3.cs
Kurt 147b676d8c Misc api accessibility tweaks
disable GeneratePKMs from throwing an exception (it's a testing flag,
not to leak out if someone wants a debug dll I guess)
expose FixedGenderFromBiGender
expose ribbon interfaces
2019-01-26 14:48:32 -08:00

32 lines
988 B
C#

namespace PKHeX.Core
{
/// <summary> Common Ribbons introduced in Generation 3 </summary>
public interface IRibbonSetCommon3
{
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)
};
internal static bool[] RibbonBits(this IRibbonSetCommon3 set)
{
if (set == null)
return new bool[3];
return new[]
{
set.RibbonChampionG3Hoenn,
set.RibbonArtist,
set.RibbonEffort,
};
}
internal static string[] RibbonNames(this IRibbonSetCommon3 _) => RibbonSetNamesCommon3;
}
}