summaryrefslogtreecommitdiff
path: root/src/Game/Actor/Query/queryRandomChoice2.cpp
blob: 14d529baeb753d1d2da536834cae95ffe42146fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Game/Actor/Query/queryRandomChoice2.h"
#include <evfl/Query.h>
#include <random/seadGlobalRandom.h>

namespace uking::query {

RandomChoice2::RandomChoice2(const InitArg& arg) : ksys::act::ai::Query(arg) {}

RandomChoice2::~RandomChoice2() = default;

int RandomChoice2::doQuery() {
    return sead::GlobalRandom::instance()->getU32(2);
}

}  // namespace uking::query