PKHeX/PKHeX.Core/PKM/Shared/IRegionOrigin.cs
Kurt 3822981590
Rework EncounterCriteria to be ability indexed rather than direct ability (#3179)
* 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
2021-03-23 17:05:15 -07:00

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
}
}
}