mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
1efebe51d3
Only exists in gen6/7 games.
23 lines
746 B
C#
23 lines
746 B
C#
namespace PKHeX.Core
|
|
{
|
|
public interface IRegionOrigin
|
|
{
|
|
/// <summary> Console hardware region. </summary>
|
|
/// <see cref="RegionID"/>
|
|
byte ConsoleRegion { get; set; }
|
|
/// <summary> Console's configured Country via System Settings. </summary>
|
|
byte Country { get; set; }
|
|
/// <summary> Console's configured Region within <see cref="Country"/> via System Settings. </summary>
|
|
byte 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
|
|
}
|
|
}
|
|
}
|