2018-06-24 05:00:01 +00:00
|
|
|
|
using System.Collections.Generic;
|
2016-03-12 17:16:41 +00:00
|
|
|
|
using System.Linq;
|
2017-03-25 17:24:56 +00:00
|
|
|
|
using static PKHeX.Core.LegalityCheckStrings;
|
2016-03-11 04:36:32 +00:00
|
|
|
|
|
2017-01-08 07:54:09 +00:00
|
|
|
|
namespace PKHeX.Core
|
2016-03-11 04:36:32 +00:00
|
|
|
|
{
|
2016-03-14 03:19:04 +00:00
|
|
|
|
public partial class LegalityAnalysis
|
|
|
|
|
{
|
2018-06-24 05:00:01 +00:00
|
|
|
|
private static readonly Verifier Language = new LanguageVerifier();
|
|
|
|
|
private static readonly Verifier Nickname = new NicknameVerifier();
|
|
|
|
|
private static readonly Verifier EffortValues = new EffortValueVerifier();
|
|
|
|
|
private static readonly Verifier IndividualValues = new IndividualValueVerifier();
|
|
|
|
|
private static readonly Verifier Ball = new BallVerifier();
|
|
|
|
|
private static readonly Verifier Form = new FormVerifier();
|
|
|
|
|
private static readonly Verifier ConsoleRegion = new ConsoleRegionVerifier();
|
|
|
|
|
private static readonly Verifier Ability = new AbilityVerifier();
|
|
|
|
|
private static readonly Verifier Medal = new MedalVerifier();
|
2019-11-16 01:34:18 +00:00
|
|
|
|
public static readonly Verifier Ribbon = new RibbonVerifier();
|
2018-06-24 05:00:01 +00:00
|
|
|
|
private static readonly Verifier Item = new ItemVerifier();
|
|
|
|
|
private static readonly Verifier EncounterType = new EncounterTypeVerifier();
|
|
|
|
|
private static readonly Verifier HyperTraining = new HyperTrainingVerifier();
|
|
|
|
|
private static readonly Verifier Gender = new GenderVerifier();
|
|
|
|
|
private static readonly Verifier PIDEC = new PIDVerifier();
|
|
|
|
|
private static readonly Verifier NHarmonia = new NHarmoniaVerifier();
|
|
|
|
|
private static readonly Verifier CXD = new CXDVerifier();
|
2018-07-02 02:17:37 +00:00
|
|
|
|
private static readonly Verifier Memory = new MemoryVerifier();
|
2019-12-08 02:12:31 +00:00
|
|
|
|
private static readonly Verifier History = new HistoryVerifier();
|
2020-05-10 03:47:32 +00:00
|
|
|
|
private static readonly Verifier Contest = new ContestStatVerifier();
|
2018-06-24 05:00:01 +00:00
|
|
|
|
|
|
|
|
|
private static readonly TrainerNameVerifier Trainer = new TrainerNameVerifier();
|
|
|
|
|
private static readonly LevelVerifier Level = new LevelVerifier();
|
|
|
|
|
private static readonly MiscVerifier Misc = new MiscVerifier();
|
|
|
|
|
private static readonly TransferVerifier Transfer = new TransferVerifier();
|
2020-04-06 23:32:23 +00:00
|
|
|
|
private static readonly MarkVerifier Mark = new MarkVerifier();
|
2018-06-24 05:00:01 +00:00
|
|
|
|
|
2020-09-06 17:53:13 +00:00
|
|
|
|
internal static IReadOnlyList<string> MoveStrings = Util.GetMovesList(GameLanguage.DefaultLanguage);
|
|
|
|
|
internal static IReadOnlyList<string> SpeciesStrings = Util.GetSpeciesList(GameLanguage.DefaultLanguage);
|
|
|
|
|
internal static IEnumerable<string> GetMoveNames(IEnumerable<int> moves) => moves.Select(m => (uint)m >= MoveStrings.Count ? L_AError : MoveStrings[m]);
|
|
|
|
|
|
|
|
|
|
public static void ChangeLocalizationStrings(IReadOnlyList<string> moves, IReadOnlyList<string> species)
|
|
|
|
|
{
|
|
|
|
|
SpeciesStrings = species;
|
|
|
|
|
MoveStrings = moves;
|
|
|
|
|
}
|
2016-03-11 04:36:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|