PKHeX/PKHeX.Core/Legality/Verifiers
Kurt 768047cd80
Legality: Rewrite Ribbon Verifier (#3570)
* Rewrite ribbon verification
* Explicitly verifies all ribbons instead of chained iterators.
* Verifies using only the stack, using `struct` and `Span<T>`. No allocation on heap, or `IEnumerable` iterators.
* Verifies all egg ribbons using a separate method, explicitly implemented. No reflection overhead.
* Separates each ribbon interface to separate `static` classes. Easier to identify code needing change on new game update.
* Extracted logic for specific ribbons. Can easily revise complicated ribbon's acquisition rules.
* Simplifies GiveAll/RemoveAll legal ribbon mutations. No reflection overhead, and no allocation.
* Can be expanded in the future if we need to track conditions for ribbon acquisition (was Sinnoh Champ received in BDSP or Gen4?)

End result is a more performant implementation and easier to maintain & reuse logic.
2022-08-15 21:04:30 -07:00
..
Ability Use evo history to check visitation 2022-08-03 18:17:46 -07:00
Ball Refactoring: Move Source (Legality) (#3560) 2022-08-03 16:15:27 -07:00
Egg File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
Misc Use evo history to check visitation 2022-08-03 18:17:46 -07:00
Ribbons Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
AwakenedValueVerifier.cs Revise AV check string to show which stat invalid 2022-07-10 17:34:46 -07:00
ConsoleRegionVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
ContestStatVerifier.cs Use evo history to check visitation 2022-08-03 18:17:46 -07:00
CXDVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
EffortValueVerifier.cs Handle "random" AV gains from level up 2022-07-10 15:53:33 -07:00
FormVerifier.cs Use evo history to check visitation 2022-08-03 18:17:46 -07:00
GenderVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
GroundTileVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
HistoryVerifier.cs Refactoring: Move Source (Legality) (#3560) 2022-08-03 16:15:27 -07:00
HyperTrainingVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
IndividualValueVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
ItemVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
LanguageVerifier.cs Refactoring: Move Source (Legality) (#3560) 2022-08-03 16:15:27 -07:00
LegendsArceusVerifier.cs Use evo history to check visitation 2022-08-03 18:17:46 -07:00
LevelVerifier.cs Refactoring: Move Source (Legality) (#3560) 2022-08-03 16:15:27 -07:00
MarkingVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
MarkVerifier.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
MedalVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
MemoryVerifier.cs Use evo history to check visitation 2022-08-03 18:17:46 -07:00
MiscVerifier.cs Use evo history to check visitation 2022-08-03 18:17:46 -07:00
NHarmoniaVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
NicknameVerifier.cs Refactoring: Move Source (Legality) (#3560) 2022-08-03 16:15:27 -07:00
ParseSettings.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
PIDVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
TrainerIDVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
TrainerNameVerifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
TransferVerifier.cs Refactoring: Move Source (Legality) (#3560) 2022-08-03 16:15:27 -07:00
Verifier.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00