mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Refactor: use ExactCard to represent specific printings (#6049)
* Create new class * Update CardInfo and CardDatabase * Use new class instead of CardInfoPtr * fix cmake
This commit is contained in:
parent
4a2a646943
commit
ae2c55c33b
79 changed files with 715 additions and 642 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef PICTURE_LOADER_LOCAL_H
|
||||
#define PICTURE_LOADER_LOCAL_H
|
||||
|
||||
#include "../../../game/cards/card_info.h"
|
||||
#include "../../../game/cards/exact_card.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QObject>
|
||||
|
|
@ -20,7 +20,7 @@ class PictureLoaderLocal : public QObject
|
|||
public:
|
||||
explicit PictureLoaderLocal(QObject *parent);
|
||||
|
||||
QImage tryLoad(const CardInfoPtr &toLoad) const;
|
||||
QImage tryLoad(const ExactCard &toLoad) const;
|
||||
|
||||
private:
|
||||
QString picsPath, customPicsPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue