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

namespace uking::query {

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

CompareGameDataInt::~CompareGameDataInt() = default;

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

void CompareGameDataInt::loadParams(const evfl::QueryArg& arg) {
    loadString(arg.param_accessor, "GameDataIntName_A");
    loadString(arg.param_accessor, "GameDataIntName_B");
    loadString(arg.param_accessor, "Operator");
}

void CompareGameDataInt::loadParams() {
    getDynamicParam(&mGameDataIntName_A, "GameDataIntName_A");
    getDynamicParam(&mGameDataIntName_B, "GameDataIntName_B");
    getDynamicParam(&mOperator, "Operator");
}

}  // namespace uking::query