PKHeX/PKHeX.Core/Editing/LocationEdits.cs
2022-08-21 01:39:16 -07:00

21 lines
617 B
C#

namespace PKHeX.Core;
/// <summary>
/// Logic for locations of a <see cref="PKM"/>.
/// </summary>
public static class LocationEdits
{
/// <summary>
/// Gets the "None" location index for a specific <see cref="PKM"/> context.
/// </summary>
public static int GetNoneLocation(PKM pk) => GetNoneLocation(pk.Context);
/// <summary>
/// Gets the "None" location index for a specific <see cref="PKM"/> context.
/// </summary>
public static int GetNoneLocation(EntityContext context) => context switch
{
EntityContext.Gen8b => Locations.Default8bNone,
_ => 0,
};
}