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