mirror of
https://github.com/zeldaret/ss
synced 2026-08-06 18:02:44 -04:00
d_snd_rnd
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user