mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 13:03:06 +00:00
3822981590
* Exploration: rework ability criteria to ability numbers desired * Sync remaining changes * Update EncounterCriteria.cs * Add xmldoc * Improve speed of IsDualGender check * More xmldoc updates Should be doing this on main but meh, this branch is gonna get merged later * Fix typo * Update WC7.cs * Update PersonalInfo.cs
23 lines
743 B
C#
23 lines
743 B
C#
namespace PKHeX.Core
|
|
{
|
|
public interface IRegionOrigin
|
|
{
|
|
/// <summary> Console hardware region. </summary>
|
|
/// <see cref="RegionID"/>
|
|
int ConsoleRegion { get; set; }
|
|
/// <summary> Console's configured Country via System Settings. </summary>
|
|
int Country { get; set; }
|
|
/// <summary> Console's configured Region within <see cref="Country"/> via System Settings. </summary>
|
|
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
|
|
}
|
|
}
|
|
}
|