mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
Z2AudioLib: Migrate declarations out of functions.h to respective files (#96)
Removes the strong dependency on a single header file and moves declarations to their respective header file. This allows for making dependencies explicit in cpp files and other headers, and also makes it much easier to track where everything related to a particular component is. This change also creates a few header files that previously didn't exist, making it much nicer for people implementing things, as they won't need to create the header file, it'll just be there ready to go. Ideally functions.h wouldn't even be a thing, as this header adds a lot of preprocessing overhead due to its size, and will continue to grow significantly larger over the lifespan of the project, which can also impact the performance of editors that do dependency lookups and context-aware syntax highlighting.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#ifndef __Z2SCENEMGR_H_
|
||||
#define __Z2SCENEMGR_H_
|
||||
#ifndef Z2SCENEMGR_H_
|
||||
#define Z2SCENEMGR_H_
|
||||
|
||||
#include "JSystem/JAudio2/JAISe/JAISe.h"
|
||||
#include "Z2AudioLib/Z2SeqMgr/Z2SeqMgr.h"
|
||||
#include "global.h"
|
||||
@@ -16,7 +17,19 @@ struct Z2SoundMgr {
|
||||
JAISoundParamsMove* JAISoundParamsMove;
|
||||
};
|
||||
|
||||
struct Z2SceneMgr {
|
||||
class Z2SceneMgr {
|
||||
public:
|
||||
Z2SceneMgr(void);
|
||||
|
||||
void setInDarkness(bool param_1);
|
||||
void setSceneExist(bool param_1);
|
||||
void setFadeOutStart(u8 param_1);
|
||||
void setFadeInStart(u8 param_1);
|
||||
void setSceneName(char* stageName, long roomNum, long layerNum);
|
||||
int checkFirstWaves(void);
|
||||
void load1stDynamicWave(void);
|
||||
|
||||
private:
|
||||
long BGM_ID;
|
||||
int sceneNum;
|
||||
int timer;
|
||||
@@ -39,14 +52,25 @@ struct Z2SceneMgr {
|
||||
bool inGame;
|
||||
bool sceneExist;
|
||||
bool inDarkness;
|
||||
|
||||
Z2SceneMgr(void);
|
||||
void setInDarkness(bool param_1);
|
||||
void setSceneExist(bool param_1);
|
||||
void setFadeOutStart(u8 param_1);
|
||||
void setFadeInStart(u8 param_1);
|
||||
void setSceneName(char* stageName, long roomNum, long layerNum);
|
||||
int checkFirstWaves(void);
|
||||
void load1stDynamicWave(void);
|
||||
};
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
void __ct__10Z2SceneMgrFv(void);
|
||||
void setSceneExist__10Z2SceneMgrFb(void);
|
||||
|
||||
void Z2SceneMgr_NS_check1stDynamicWave(void);
|
||||
void Z2SceneMgr_NS_checkFirstWaves(void);
|
||||
void Z2SceneMgr_NS_eraseBgmWave(void);
|
||||
void Z2SceneMgr_NS_eraseSeWave(void);
|
||||
void Z2SceneMgr_NS_framework(void);
|
||||
void Z2SceneMgr_NS_getWaveLoadStatus(void);
|
||||
void Z2SceneMgr_NS__load1stWaveInner_1(void);
|
||||
void Z2SceneMgr_NS__load1stWaveInner_2(void);
|
||||
void Z2SceneMgr_NS_loadBgmWave(void);
|
||||
void Z2SceneMgr_NS_loadSeWave(void);
|
||||
void Z2SceneMgr_NS_loadStaticWaves(void);
|
||||
void Z2SceneMgr_NS_sceneBgmStart(void);
|
||||
void Z2SceneMgr_NS_sceneChange(void);
|
||||
}
|
||||
|
||||
#endif // Z2SCENEMGR_H_
|
||||
|
||||
Reference in New Issue
Block a user