2018-03-29 01:52:50 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-07-31 20:53:42 +00:00
|
|
|
|
public sealed class SimpleTrainerInfo : ITrainerInfo, IRegionOrigin
|
2018-03-29 01:52:50 +00:00
|
|
|
|
{
|
|
|
|
|
public string OT { get; set; } = "PKHeX";
|
2018-04-28 18:06:58 +00:00
|
|
|
|
public int TID { get; set; } = 12345;
|
|
|
|
|
public int SID { get; set; } = 54321;
|
2018-03-29 01:52:50 +00:00
|
|
|
|
public int Gender { get; set; } = 0;
|
|
|
|
|
public int Language { get; set; } = (int)LanguageID.English;
|
|
|
|
|
|
2021-08-03 02:43:57 +00:00
|
|
|
|
// IRegionOrigin for generation 6/7
|
|
|
|
|
public byte ConsoleRegion { get; set; } = 1; // North America
|
|
|
|
|
public byte Region { get; set; } = 7; // California
|
|
|
|
|
public byte Country { get; set; } = 49; // USA
|
2018-03-29 01:52:50 +00:00
|
|
|
|
|
2019-11-27 00:55:28 +00:00
|
|
|
|
public int Game { get; }
|
2018-03-29 01:52:50 +00:00
|
|
|
|
public int Generation { get; set; } = PKX.Generation;
|
2019-11-27 00:55:28 +00:00
|
|
|
|
|
|
|
|
|
public SimpleTrainerInfo(GameVersion game = GameVersion.SW)
|
|
|
|
|
{
|
|
|
|
|
Game = (int) game;
|
2020-08-07 01:24:20 +00:00
|
|
|
|
if (GameVersion.Gen7b.Contains(game) || game.GetGeneration() >= 8)
|
2020-07-31 20:53:42 +00:00
|
|
|
|
ConsoleRegion = Region = Country = 0;
|
2019-11-27 00:55:28 +00:00
|
|
|
|
}
|
2018-03-29 01:52:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|