summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryGeneralChoice2.cpp
blob: 9bb73aaf0f87976074a43a97278431f21e933255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "Game/AI/Query/queryGeneralChoice2.h"
#include <evfl/Query.h>
#include "KingSystem/ActorSystem/actActorUtil.h"

namespace uking::query {

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

GeneralChoice2::~GeneralChoice2() = default;

int GeneralChoice2::doQuery() {
    s32 idx = ksys::act::getSelectedChoiceIdx(2, getName());
    if (idx < 0)
        return 0;

    return idx;
}

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

void GeneralChoice2::loadParams() {}

}  // namespace uking::query