Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
3
#include "
card_in_deck_request.h
"
4
5
#include <QJsonObject>
6
#include <QList>
7
8
class
DeckList
;
9
10
struct
CommanderSpellbookDeckRequest
11
{
12
static
CommanderSpellbookDeckRequest
fromJson
(
const
QJsonObject &json);
13
static
CommanderSpellbookDeckRequest
fromDeckList
(
const
DeckList
&deck);
14
QJsonObject
toJson
()
const
;
15
16
QList<CardInDeckRequest>
mainDeck
;
// maxItems: 600
17
QList<CardInDeckRequest>
commanderDeck
;
// maxItems: 12
18
};
19
20
#endif
// COCKATRICE_COMMANDER_SPELLBOOK_DECK_REQUEST_H
card_in_deck_request.h
DeckList
Represents a complete deck, including metadata, zones, cards, and sideboard plans.
Definition
deck_list.h:67
QList
Definition
remote_connection_controller.h:20
CommanderSpellbookDeckRequest
Definition
commander_spellbook_deck_request.h:11
CommanderSpellbookDeckRequest::toJson
QJsonObject toJson() const
Definition
commander_spellbook_deck_request.cpp:51
CommanderSpellbookDeckRequest::commanderDeck
QList< CardInDeckRequest > commanderDeck
Definition
commander_spellbook_deck_request.h:17
CommanderSpellbookDeckRequest::fromJson
static CommanderSpellbookDeckRequest fromJson(const QJsonObject &json)
Definition
commander_spellbook_deck_request.cpp:14
CommanderSpellbookDeckRequest::mainDeck
QList< CardInDeckRequest > mainDeck
Definition
commander_spellbook_deck_request.h:16
CommanderSpellbookDeckRequest::fromDeckList
static CommanderSpellbookDeckRequest fromDeckList(const DeckList &deck)
Definition
commander_spellbook_deck_request.cpp:71
cockatrice
src
interface
widgets
tabs
api
commander_spellbook
api_response
commander_spellbook_deck_request.h
Generated by
1.18.0