![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Functions | |
| bool | parse (QTextStream &in, const std::function< QString(const QString &)> &cardNameNormalizer, DeckList::Metadata &metadata, DecklistNodeTree &tree) |
| Parses a plain-text deck list into a tree and its metadata. | |
| bool DeckListPlainText::parse | ( | QTextStream & | in, |
| const std::function< QString(const QString &)> & | cardNameNormalizer, | ||
| DeckList::Metadata & | metadata, | ||
| DecklistNodeTree & | tree ) |
Parses a plain-text deck list into a tree and its metadata.
Clears the tree first, then fills both from the text.
| in | The text to load |
| cardNameNormalizer | Function that takes the parsed card name string in the text and returns the name to store |
| metadata | Deck metadata written by the parser |
| tree | Deck tree the parser adds cards to |