mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
147b676d8c
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
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary> Ribbons introduced in Generation 3 and were transferred to future Generations (4 and 5 only). </summary>
|
|
public interface IRibbonSetUnique3
|
|
{
|
|
/// <summary> Ribbon awarded for clearing Hoenn's Battle Tower's Lv. 50 challenge. </summary>
|
|
bool RibbonWinning { get; set; }
|
|
|
|
/// <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),
|
|
};
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetUnique3 set)
|
|
{
|
|
if (set == null)
|
|
return new bool[2];
|
|
return new[]
|
|
{
|
|
set.RibbonWinning,
|
|
set.RibbonVictory,
|
|
};
|
|
}
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetUnique3 _) => RibbonSetNamesUnique3;
|
|
}
|
|
}
|