uking: Implement RandomChoice{2,3,4,8} queries

This commit is contained in:
Léo Lam
2020-12-23 14:41:05 +01:00
parent eba2713653
commit e46f921611
9 changed files with 13 additions and 33 deletions
+2 -2
View File
@@ -1,5 +1,6 @@
#include "Game/AI/Query/queryRandomChoice3.h"
#include <evfl/query.h>
#include <random/seadGlobalRandom.h>
namespace uking::query {
@@ -7,9 +8,8 @@ RandomChoice3::RandomChoice3(const InitArg& arg) : ksys::act::ai::Query(arg) {}
RandomChoice3::~RandomChoice3() = default;
// FIXME: implement
int RandomChoice3::doQuery() {
return -1;
return sead::GlobalRandom::instance()->getU32(3);
}
void RandomChoice3::loadParams(const evfl::QueryArg& arg) {}