[DeckLoader] Extract cardNode functions to own file (#6408)

* [DeckLoader] Extract cardNode functions to own file

* update usages
This commit is contained in:
RickyRister 2025-12-08 00:47:24 -08:00 committed by GitHub
parent c8b419888a
commit 2b690f8c87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 94 additions and 112 deletions

View file

@ -6,6 +6,8 @@
#ifndef INTERFACE_JSON_DECK_PARSER_H
#define INTERFACE_JSON_DECK_PARSER_H
#include "../../../interface/deck_loader/card_node_function.h"
#include "../../../interface/deck_loader/deck_loader.h"
#include <QJsonArray>
@ -48,7 +50,7 @@ public:
}
loader->getDeckList()->loadFromStream_Plain(outStream, false);
DeckLoader::resolveSetNameAndNumberToProviderID(loader->getDeckList());
loader->getDeckList()->forEachCard(CardNodeFunction::ResolveProviderId());
return loader;
}
@ -95,7 +97,7 @@ public:
}
loader->getDeckList()->loadFromStream_Plain(outStream, false);
DeckLoader::resolveSetNameAndNumberToProviderID(loader->getDeckList());
loader->getDeckList()->forEachCard(CardNodeFunction::ResolveProviderId());
QJsonObject commandersObj = obj.value("commanders").toObject();
if (!commandersObj.isEmpty()) {