summaryrefslogtreecommitdiff
path: root/src/Game/Actor/Query/queryCheckTime.cpp
blob: de712d7e37443cc027c6542a6e656d54b365cdd9 (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/Actor/Query/queryCheckTime.h"
#include <evfl/Query.h>

namespace uking::query {

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

CheckTime::~CheckTime() = default;

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

void CheckTime::loadParams(const evfl::QueryArg& arg) {
    loadInt(arg.param_accessor, "Hour");
    loadInt(arg.param_accessor, "Minute");
    loadString(arg.param_accessor, "ConditionType");
}

void CheckTime::loadParams() {
    getDynamicParam(&mHour, "Hour");
    getDynamicParam(&mMinute, "Minute");
    getDynamicParam(&mConditionType, "ConditionType");
}

}  // namespace uking::query