New DeckList method to return cards as CardInfoPtrs

Saner update to prevent crashes.
This commit is contained in:
Lukas Brübach 2025-03-01 12:47:58 +01:00
parent f994ffa02d
commit 443f8717a3
6 changed files with 75 additions and 31 deletions

View file

@ -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;