mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
20 lines
456 B
C#
20 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
|
|||
|
}
|
|||
|
}
|
|||
|
}
|