summaryrefslogtreecommitdiff
path: root/src/Game/Actor/Query/queryRandomChoice8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game/Actor/Query/queryRandomChoice8.cpp')
-rw-r--r--src/Game/Actor/Query/queryRandomChoice8.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Game/Actor/Query/queryRandomChoice8.cpp b/src/Game/Actor/Query/queryRandomChoice8.cpp
new file mode 100644
index 00000000..ac772d7a
--- /dev/null
+++ b/src/Game/Actor/Query/queryRandomChoice8.cpp
@@ -0,0 +1,16 @@
+#include "Game/Actor/Query/queryRandomChoice8.h"
+#include <evfl/Query.h>
+#include <random/seadGlobalRandom.h>
+
+namespace uking::query {
+
+RandomChoice8::RandomChoice8(const InitArg& arg) : ksys::act::ai::Query(arg) {}
+
+RandomChoice8::~RandomChoice8() = default;
+
+// FIXME: implement
+int RandomChoice8::doQuery() {
+ return sead::GlobalRandom::instance()->getU32(8);
+}
+
+} // namespace uking::query