mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
* [Refactor] Move game logic into libcockatrice_game * [Refactor] Include card_state.h in player_actions.h * [Game] Inject settings providers into libcockatrice_game, drop Widgets * [Game] Follow base rename to createCardRequested after rebase * [Game] Drop unused CardItem forward declaration * [Game] Fix includes after moving game logic into libcockatrice_game --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
23 lines
829 B
C++
23 lines
829 B
C++
#ifndef COCKATRICE_SETTINGS_CARD_PREFERENCE_PROVIDER_H
|
|
#define COCKATRICE_SETTINGS_CARD_PREFERENCE_PROVIDER_H
|
|
#include "../../client/settings/cache_settings.h"
|
|
|
|
#include <QObject>
|
|
#include <libcockatrice/interfaces/interface_card_preference_provider.h>
|
|
#include <libcockatrice/settings/card_override_settings.h>
|
|
#include <libcockatrice/settings/cards_display_settings.h>
|
|
|
|
class SettingsCardPreferenceProvider : public QObject, public ICardPreferenceProvider
|
|
{
|
|
public:
|
|
explicit SettingsCardPreferenceProvider(QObject *parent = nullptr) : QObject(parent)
|
|
{
|
|
}
|
|
|
|
[[nodiscard]] QString getCardPreferenceOverride(const QString &cardName) const override
|
|
{
|
|
return SettingsCache::instance().cardOverrides().getCardPreferenceOverride(cardName);
|
|
}
|
|
};
|
|
|
|
#endif // COCKATRICE_SETTINGS_CARD_PREFERENCE_PROVIDER_H
|