mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): add SI2::s_SoundCategory
This commit is contained in:
parent
e1bd0926cf
commit
50554c5bd0
@ -9,6 +9,27 @@
|
|||||||
TSGrowableArray<SOUNDKITDEF*> SI2::s_SoundKitDefs;
|
TSGrowableArray<SOUNDKITDEF*> SI2::s_SoundKitDefs;
|
||||||
TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> SI2::s_SoundKitLookupTable;
|
TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> SI2::s_SoundKitLookupTable;
|
||||||
|
|
||||||
|
char SI2::s_SoundCategory[32][18] = {
|
||||||
|
"SFX",
|
||||||
|
"MUSIC",
|
||||||
|
"AMBIENCE",
|
||||||
|
"CINEMATIC",
|
||||||
|
"SCRIPTSOUND",
|
||||||
|
"SCRIPTMUSIC",
|
||||||
|
"RACIALCINEMATIC",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
"SFX",
|
||||||
|
};
|
||||||
|
|
||||||
SOUNDKITDEF* SI2::GetSoundKitDef(int32_t id) {
|
SOUNDKITDEF* SI2::GetSoundKitDef(int32_t id) {
|
||||||
if (id >= SI2::s_SoundKitDefs.Count() || id <= 0) {
|
if (id >= SI2::s_SoundKitDefs.Count() || id <= 0) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
@ -16,6 +16,7 @@ class SI2 {
|
|||||||
static FrameScript_Method s_ScriptFunctions[NUM_SCRIPT_FUNCTIONS_SI2];
|
static FrameScript_Method s_ScriptFunctions[NUM_SCRIPT_FUNCTIONS_SI2];
|
||||||
static TSGrowableArray<SOUNDKITDEF*> s_SoundKitDefs;
|
static TSGrowableArray<SOUNDKITDEF*> s_SoundKitDefs;
|
||||||
static TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> s_SoundKitLookupTable;
|
static TSHashTable<SOUNDKITLOOKUP, HASHKEY_CONSTSTRI> s_SoundKitLookupTable;
|
||||||
|
static char s_SoundCategory[32][18];
|
||||||
|
|
||||||
// Static functions
|
// Static functions
|
||||||
static SOUNDKITDEF* GetSoundKitDef(int32_t id);
|
static SOUNDKITDEF* GetSoundKitDef(int32_t id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user