PKHeX/PKHeX.Core/Legality/Verifiers/Ribbons
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
..
RibbonIndex3.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonIndex4.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonResult.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonResultList.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonRules.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonStrings.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
RibbonVerifier.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierArguments.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierCommon3.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierCommon4.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierCommon6.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierCommon7.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierCommon8.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierEvent3.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierEvent4.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierOnly3.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierUnique3.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00
RibbonVerifierUnique4.cs Legality: Rewrite Ribbon Verifier (#3570) 2022-08-15 21:04:30 -07:00