PKHeX/PKHeX.Core/Legality/Structures/SimpleTrainerInfo.cs
Kurt b7211000b0 Split Country/Region/ConsoleRegion from ITrainerInfo
Only present in mainline gen6/7 game pairs, so it's not wise to have it for all games
2020-07-31 13:53:42 -07:00

26 lines
897 B
C#

namespace PKHeX.Core
{
public sealed class SimpleTrainerInfo : ITrainerInfo, IRegionOrigin
{
public string OT { get; set; } = "PKHeX";
public int TID { get; set; } = 12345;
public int SID { get; set; } = 54321;
public int Gender { get; set; } = 0;
public int Language { get; set; } = (int)LanguageID.English;
public int ConsoleRegion { get; set; } = 1; // North America
public int Region { get; set; } = 7; // California
public int Country { get; set; } = 49; // USA
public int Game { get; }
public int Generation { get; set; } = PKX.Generation;
public SimpleTrainerInfo(GameVersion game = GameVersion.SW)
{
Game = (int) game;
if (GameVersion.GG.Contains(game) || game.GetGeneration() >= 8)
ConsoleRegion = Region = Country = 0;
}
}
}