summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryCheckGameDataInt.cpp
blob: e7b4c8f58e0d149301980c242bdbff9d6c4d9010 (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
27
#include "Game/AI/Query/queryCheckGameDataInt.h"
#include <evfl/query.h>

namespace uking::query {

CheckGameDataInt::CheckGameDataInt(const InitArg& arg) : ksys::act::ai::Query(arg) {}

CheckGameDataInt::~CheckGameDataInt() = default;

// FIXME: implement
int CheckGameDataInt::doQuery() {
    return -1;
}

void CheckGameDataInt::loadParams(const evfl::QueryArg& arg) {
    loadInt(arg.param_accessor, "Value");
    loadString(arg.param_accessor, "GameDataIntName");
    loadString(arg.param_accessor, "Operator");
}

void CheckGameDataInt::loadParams() {
    getDynamicParam(&mValue, "Value");
    getDynamicParam(&mGameDataIntName, "GameDataIntName");
    getDynamicParam(&mOperator, "Operator");
}

}  // namespace uking::query