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