summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryRandomChoice2.cpp
blob: 88732dc6093ab0a34ffc3e69c43f694e95f97448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Game/AI/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