mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-25 08:10:48 -05:00
Delete unused logic
This commit is contained in:
parent
d1959d90a4
commit
af87d038aa
|
|
@ -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)),
|
||||
};
|
||||
}
|
||||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user