mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-28 22:01:12 +00:00
55ace147bc
* 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>
30 lines
978 B
C++
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
|