Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
commander_spellbook_deck_request.h
Go to the documentation of this file.
1#ifndef COCKATRICE_COMMANDER_SPELLBOOK_DECK_REQUEST_H
2#define COCKATRICE_COMMANDER_SPELLBOOK_DECK_REQUEST_H
5
6#include <QJsonObject>
7#include <QList>
8
10{
11 static CommanderSpellbookDeckRequest fromJson(const QJsonObject &json);
13 QJsonObject toJson() const;
14
15 QList<CardInDeckRequest> mainDeck; // maxItems: 600
16 QList<CardInDeckRequest> commanderDeck; // maxItems: 12
17};
18
19#endif // COCKATRICE_COMMANDER_SPELLBOOK_DECK_REQUEST_H
Represents a complete deck, including metadata, zones, cards, and sideboard plans.
Definition deck_list.h:63
Defines the DeckList class, which manages a full deck structure including cards, zones,...
Definition commander_spellbook_deck_request.h:10
QJsonObject toJson() const
Definition commander_spellbook_deck_request.cpp:43
QList< CardInDeckRequest > commanderDeck
Definition commander_spellbook_deck_request.h:16
static CommanderSpellbookDeckRequest fromJson(const QJsonObject &json)
Definition commander_spellbook_deck_request.cpp:6
QList< CardInDeckRequest > mainDeck
Definition commander_spellbook_deck_request.h:15
static CommanderSpellbookDeckRequest fromDeckList(const DeckList &deck)
Definition commander_spellbook_deck_request.cpp:63