Delete unused logic

This commit is contained in:
Kurt 2022-08-11 00:25:16 -07:00
parent d1959d90a4
commit af87d038aa
2 changed files with 0 additions and 52 deletions

View File

@ -1,29 +0,0 @@
using System;
namespace PKHeX.Core;
public enum RNGType
{
/// <summary> No RNG type specified </summary>
None,
/// <summary> <see cref="RNG.LCRNG"/> </summary>
LCRNG,
/// <summary> <see cref="RNG.XDRNG"/> </summary>
XDRNG,
/// <summary> <see cref="RNG.ARNG"/> </summary>
ARNG,
}
public static class RNGTypeUtil
{
public static LCRNG GetRNG(this RNGType type) => type switch
{
RNGType.LCRNG => RNG.LCRNG,
RNGType.XDRNG => RNG.XDRNG,
RNGType.ARNG => RNG.ARNG,
_ => throw new ArgumentOutOfRangeException(nameof(type)),
};
}

View File

@ -1,5 +1,3 @@
using static PKHeX.Core.PIDType;
namespace PKHeX.Core;
/// <summary>
@ -191,24 +189,3 @@ public enum PIDType
#endregion
}
public static class PIDTypeExtensions
{
public static RNGType GetRNGType(this PIDType type) => type switch
{
0 => RNGType.None,
<= ChainShiny => RNGType.LCRNG,
<= PokeSpot => RNGType.XDRNG,
G4MGAntiShiny => RNGType.ARNG,
_ => RNGType.None,
};
public static bool IsReversedPID(this PIDType type) => type switch
{
CXD or CXDAnti => true,
BACD_R or BACD_R_A or BACD_R_S => true,
BACD_U or BACD_U_A or BACD_U_S => true,
Method_1_Unown or Method_2_Unown or Method_3_Unown or Method_4_Unown => true,
_ => false,
};
}