![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <deck_list.h>
Public Member Functions | |
| bool | isEmpty () const |
| Checks if all values (except for lastLoadedTimestamp) in the metadata is empty. | |
| bool | readElement (QXmlStreamReader *xml, const QString &childName) |
| Reads a single deck metadata element from a Cockatrice deck XML stream. | |
| void | write (QXmlStreamWriter *xml) const |
| Writes the deck metadata section of a Cockatrice deck XML file. | |
Public Attributes | |
| QString | name |
| User-defined deck name. | |
| QString | comments |
| Free-form comments or notes. | |
| QString | gameFormat |
| The name of the game format this deck contains legal cards for. | |
| CardRef | bannerCard |
| Optional representative card for the deck. | |
| QStringList | tags |
| User-defined tags for deck classification. | |
| QString | lastLoadedTimestamp |
| Timestamp string of last load. | |
| PlaymatInfo | playmat |
| Optional playmat background for table+stack zones. | |
| bool DeckList::Metadata::isEmpty | ( | ) | const |
Checks if all values (except for lastLoadedTimestamp) in the metadata is empty.
| bool DeckList::Metadata::readElement | ( | QXmlStreamReader * | xml, |
| const QString & | childName ) |
Reads a single deck metadata element from a Cockatrice deck XML stream.
| xml | Reader positioned at the element. |
| childName | Name of the current element. |
childName is not a metadata element. | void DeckList::Metadata::write | ( | QXmlStreamWriter * | xml | ) | const |
Writes the deck metadata section of a Cockatrice deck XML file.
| xml | Writer to append the metadata elements to. |
| CardRef DeckList::Metadata::bannerCard |
Optional representative card for the deck.
| QString DeckList::Metadata::comments |
Free-form comments or notes.
| QString DeckList::Metadata::gameFormat |
The name of the game format this deck contains legal cards for.
| QString DeckList::Metadata::lastLoadedTimestamp |
Timestamp string of last load.
| QString DeckList::Metadata::name |
User-defined deck name.
| PlaymatInfo DeckList::Metadata::playmat |
Optional playmat background for table+stack zones.
| QStringList DeckList::Metadata::tags |
User-defined tags for deck classification.