Files
botw/src/Game/Actor/Query/queryCheckItemShopDecide.cpp
T
Léo Lam f4cd38c43b Actor: move all AI code under Game/Actor
Link order shows one sorted actor tree, not a separate AI project: the
Action/AI/Query folders and per-feature folders (Camera, Player, Horse,
...) come out of the same archive rounds as the actor classes.

(AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
2026-09-14 00:02:22 +02:00

27 lines
711 B
C++

#include "Game/Actor/Query/queryCheckItemShopDecide.h"
#include <evfl/Query.h>
#include "KingSystem/GameData/gdtManager.h"
namespace uking::query {
CheckItemShopDecide::CheckItemShopDecide(const InitArg& arg) : ksys::act::ai::Query(arg) {}
CheckItemShopDecide::~CheckItemShopDecide() = default;
int CheckItemShopDecide::doQuery() {
bool decide = false;
auto* gdm = ksys::gdt::Manager::instance();
if (gdm != nullptr) {
if (gdm->getParam().get().getBool(&decide, "Shop_IsDecide") && decide) {
return 1;
}
}
return 0;
}
void CheckItemShopDecide::loadParams(const evfl::QueryArg& arg) {}
void CheckItemShopDecide::loadParams() {}
} // namespace uking::query