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

namespace uking::query {

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

HasPouchItemByPouchCategory::~HasPouchItemByPouchCategory() = default;

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

void HasPouchItemByPouchCategory::loadParams(const evfl::QueryArg& arg) {
    loadInt(arg.param_accessor, "Category");
    loadInt(arg.param_accessor, "Count");
}

void HasPouchItemByPouchCategory::loadParams() {
    getDynamicParam(&mCategory, "Category");
    getDynamicParam(&mCount, "Count");
}

}  // namespace uking::query