2020-07-31 13:53:42 -07:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
public interface IRegionOrigin
|
|
|
|
|
{
|
2021-03-23 17:05:15 -07:00
|
|
|
|
/// <summary> Console hardware region. </summary>
|
2021-08-02 20:59:40 -07:00
|
|
|
|
/// <see cref="Region3DSIndex"/>
|
2021-08-02 19:43:57 -07:00
|
|
|
|
byte ConsoleRegion { get; set; }
|
2021-03-23 17:05:15 -07:00
|
|
|
|
/// <summary> Console's configured Country via System Settings. </summary>
|
2021-08-02 19:43:57 -07:00
|
|
|
|
byte Country { get; set; }
|
2021-03-23 17:05:15 -07:00
|
|
|
|
/// <summary> Console's configured Region within <see cref="Country"/> via System Settings. </summary>
|
2021-08-02 19:43:57 -07:00
|
|
|
|
byte Region { get; set; }
|
2020-07-31 13:53:42 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|