diff options
Diffstat (limited to 'src/Game/Actor/Query/queryCheckItemShopDecide.cpp')
| -rw-r--r-- | src/Game/Actor/Query/queryCheckItemShopDecide.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Game/Actor/Query/queryCheckItemShopDecide.cpp b/src/Game/Actor/Query/queryCheckItemShopDecide.cpp new file mode 100644 index 00000000..390e1932 --- /dev/null +++ b/src/Game/Actor/Query/queryCheckItemShopDecide.cpp @@ -0,0 +1,26 @@ +#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 |
