diff options
Diffstat (limited to 'src/Game/Actor/Query/queryGeneralChoice3.cpp')
| -rw-r--r-- | src/Game/Actor/Query/queryGeneralChoice3.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Game/Actor/Query/queryGeneralChoice3.cpp b/src/Game/Actor/Query/queryGeneralChoice3.cpp new file mode 100644 index 00000000..90bc6b11 --- /dev/null +++ b/src/Game/Actor/Query/queryGeneralChoice3.cpp @@ -0,0 +1,23 @@ +#include "Game/Actor/Query/queryGeneralChoice3.h" +#include <evfl/Query.h> +#include "KingSystem/ActorSystem/actActorUtil.h" + +namespace uking::query { + +GeneralChoice3::GeneralChoice3(const InitArg& arg) : ksys::act::ai::Query(arg) {} + +GeneralChoice3::~GeneralChoice3() = default; + +int GeneralChoice3::doQuery() { + s32 idx = ksys::act::getSelectedChoiceIdx(3, getName()); + if (idx < 0) + return 0; + + return idx; +} + +void GeneralChoice3::loadParams(const evfl::QueryArg& arg) {} + +void GeneralChoice3::loadParams() {} + +} // namespace uking::query |
