mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
* [DeckList] Extract plain-text deck parser into own file DeckList::loadFromStream_Plain was a 160-line god-method mixing deck clearing, name/comment detection, sideboard heuristics, set and multiplier extraction and normalization. The parsing logic moves verbatim into DeckListPlainText::parse() so it lives in a dedicated, testable unit; DeckList keeps a thin delegating wrapper and still refreshes the deck hash exactly as before (also on the empty-input path, to match cleanList's original behavior). The *F* foil suffix handling is relocated unchanged. * [DeckList] Harden plain-text parser regexes and move metadata clearing up --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> |
||
|---|---|---|
| .. | ||
| tree | ||
| deck_list.cpp | ||
| deck_list.h | ||
| deck_list_history_manager.cpp | ||
| deck_list_history_manager.h | ||
| deck_list_memento.h | ||
| deck_list_node_tree.cpp | ||
| deck_list_node_tree.h | ||
| deck_list_plain_text_parser.cpp | ||
| deck_list_plain_text_parser.h | ||
| playmat_resolver.cpp | ||
| playmat_resolver.h | ||
| sideboard_plan.cpp | ||
| sideboard_plan.h | ||