mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
21 lines
617 B
C#
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,
|
|
};
|
|
}
|