mirror of
https://github.com/zeldaret/botw
synced 2026-10-12 06:26:42 -04:00
f4cd38c43b
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)
27 lines
711 B
C++
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
|