d_snd_rnd

This commit is contained in:
robojumper
2025-06-17 21:27:55 +02:00
parent 741935bc61
commit 5ddf4f86e1
8 changed files with 120 additions and 52 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef D_SND_RNG_H
#define D_SND_RNG_H
#include "common.h"
class dSndRng_c {
public:
dSndRng_c();
virtual ~dSndRng_c() {}
bool rndBool(s32 chance);
u32 rndInt(s32 max);
private:
void init();
/* 0x08 */ u64 field_0x08;
/* 0x10 */ u64 field_0x10;
};
#endif
+19
View File
@@ -0,0 +1,19 @@
#ifndef D_SND_RNG_MGR_H
#define D_SND_RNG_MGR_H
#include "d/snd/d_snd_rng.h"
#include "d/snd/d_snd_util.h"
SND_DISPOSER_FORWARD_DECL(dSndRngMgr_c)
class dSndRngMgr_c : public dSndRng_c {
public:
SND_DISPOSER_MEMBERS(dSndRngMgr_c)
u32 rndIntRange(s32 min, s32 max);
public:
dSndRngMgr_c() {}
};
#endif