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

namespace uking::query {

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

GeneralChoice8::~GeneralChoice8() = default;

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

    return idx;
}

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

void GeneralChoice8::loadParams() {}

}  // namespace uking::query