summaryrefslogtreecommitdiff
path: root/src/Game/Actor/Query/queryGeneralChoice8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game/Actor/Query/queryGeneralChoice8.cpp')
-rw-r--r--src/Game/Actor/Query/queryGeneralChoice8.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Game/Actor/Query/queryGeneralChoice8.cpp b/src/Game/Actor/Query/queryGeneralChoice8.cpp
new file mode 100644
index 00000000..e222ab05
--- /dev/null
+++ b/src/Game/Actor/Query/queryGeneralChoice8.cpp
@@ -0,0 +1,24 @@
+#include "Game/Actor/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