Minor: Additional functions (#25)

* several functions. fixes #1 and #2

* multi selection functionality
This commit is contained in:
Sebastian Dine
2026-08-03 08:35:38 +02:00
committed by GitHub
parent 2eb7c59f78
commit d3b4762b76
60 changed files with 1859 additions and 172 deletions
@@ -3,6 +3,7 @@
#include "ccm/games/IGameModule.hpp"
#include "ccm/games/yugioh/YuGiOhCardPreviewSource.hpp"
#include "ccm/games/yugioh/YuGiOhSetSource.hpp"
#include "ccm/services/YuGiOhSetCatalogService.hpp"
namespace ccm {
@@ -17,6 +18,15 @@ public:
ISetSource& setSource() override { return setSource_; }
ICardPreviewSource* cardPreviewSource() noexcept override { return &previewSource_; }
// Wire offline set catalog for set+setNo → name reverse auto-detect.
void setCatalogService(YuGiOhSetCatalogService* catalogStore) noexcept {
previewSource_.setCatalogService(catalogStore);
}
[[nodiscard]] YuGiOhCardPreviewSource& previewSource() noexcept {
return previewSource_;
}
private:
YuGiOhSetSource setSource_;
YuGiOhCardPreviewSource previewSource_;