mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
New DeckList method to return cards as CardInfoPtrs
Saner update to prevent crashes.
This commit is contained in:
parent
f994ffa02d
commit
443f8717a3
6 changed files with 75 additions and 31 deletions
|
|
@ -5,6 +5,8 @@
|
|||
#include <QVector>
|
||||
|
||||
// Required on Mac. Forward declaration doesn't work. Don't ask why.
|
||||
#include "../cockatrice/src/game/cards/card_database.h"
|
||||
|
||||
#include <QtCore/QXmlStreamReader>
|
||||
#include <QtCore/QXmlStreamWriter>
|
||||
#include <common/pb/move_card_to_zone.pb.h>
|
||||
|
|
@ -364,6 +366,8 @@ public:
|
|||
}
|
||||
QStringList getCardList() const;
|
||||
QMap<QString, QString> getCardListWithProviderId() const;
|
||||
QList<CardInfoPtr> *getCardsAsCardInfoPtrs() const;
|
||||
QList<CardInfoPtr> *getCardsAsCardInfoPtrsForZone(QString zoneName) const;
|
||||
|
||||
int getSideboardSize() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue