Files
Card-Collection-Manager-3-s…/core/include/ccm/games/magic/MagicGameModule.hpp
T
Sebastian Dine 55ace147bc major: initial release
* initial development

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* pokemon

* pokemon

* pokemon

* pokemon

* pokemon

* pokemon

* improvements

* improvements

* ci/cd

* ci/cd

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

---------

Co-authored-by: sdine <sdine@sdine.com>
2026-05-09 11:05:47 +02:00

30 lines
978 B
C++

#pragma once
// MagicGameModule: IGameModule for Magic the Gathering. Owns its set source
// and card preview source, reports the canonical "magic" subdirectory name
// used on disk.
#include "ccm/games/IGameModule.hpp"
#include "ccm/games/magic/MagicCardPreviewSource.hpp"
#include "ccm/games/magic/MagicSetSource.hpp"
namespace ccm {
class MagicGameModule final : public IGameModule {
public:
explicit MagicGameModule(IHttpClient& http);
[[nodiscard]] Game id() const noexcept override { return Game::Magic; }
[[nodiscard]] std::string dirName() const override { return "magic"; }
[[nodiscard]] std::string displayName() const override { return "Magic"; }
ISetSource& setSource() override { return setSource_; }
ICardPreviewSource* cardPreviewSource() noexcept override { return &previewSource_; }
private:
MagicSetSource setSource_;
MagicCardPreviewSource previewSource_;
};
} // namespace ccm