summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryGeneralChoice4.cpp
blob: cc7b9599928a051dc671dbca2d069b9f93301650 (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
#include "Game/AI/Query/queryGeneralChoice4.h"
#include <evfl/Query.h>
#include "KingSystem/ActorSystem/actActorUtil.h"

namespace uking::query {

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

GeneralChoice4::~GeneralChoice4() = default;

// FIXME: implement
int GeneralChoice4::doQuery() {
    s32 idx = ksys::act::getSelectedChoiceIdx(4, getName());
    if (idx < 0)
        return 0;

    return idx;
}

void GeneralChoice4::loadParams(const evfl::QueryArg& arg) {}

void GeneralChoice4::loadParams() {}

}  // namespace uking::query