blob: 2026f83c761d31643604e04df8a3c79204f0f896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "Game/AI/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
|