PKHeX/PKHeX.Core/PKM/Shared/IRegionOrigin.cs
Kurt b7211000b0 Split Country/Region/ConsoleRegion from ITrainerInfo
Only present in mainline gen6/7 game pairs, so it's not wise to have it for all games
2020-07-31 13:53:42 -07:00

19 lines
456 B
C#

namespace PKHeX.Core
{
public interface IRegionOrigin
{
int ConsoleRegion { get; set; }
int Country { get; set; }
int Region { get; set; }
}
public static partial class Extensions
{
public static void SetDefaultRegionOrigins(this IRegionOrigin o)
{
o.ConsoleRegion = 1; // North America
o.Region = 7; // California
o.Country = 49; // USA
}
}
}