mirror of https://github.com/AxioDL/metaforce.git
CCameraManager: Add names to parameters in prototypes
More self documenting and allows IDE inspections to be better.
This commit is contained in:
parent
a862b792de
commit
7bced5308b
|
@ -105,12 +105,13 @@ void CCameraManager::AddCinemaCamera(TUniqueId id, CStateManager& stateMgr) {
|
|||
}
|
||||
}
|
||||
|
||||
void CCameraManager::SetInsideFluid(bool val, TUniqueId fluidId) {
|
||||
if (val) {
|
||||
void CCameraManager::SetInsideFluid(bool isInside, TUniqueId fluidId) {
|
||||
if (isInside) {
|
||||
++x74_fluidCounter;
|
||||
x78_fluidId = fluidId;
|
||||
} else
|
||||
} else {
|
||||
--x74_fluidCounter;
|
||||
}
|
||||
}
|
||||
|
||||
void CCameraManager::Update(float dt, CStateManager& stateMgr) {
|
||||
|
|
|
@ -96,9 +96,9 @@ public:
|
|||
zeus::CTransform GetCurrentCameraTransform(const CStateManager& stateMgr) const;
|
||||
void RemoveCameraShaker(u32 id);
|
||||
int AddCameraShaker(const CCameraShakeData& data, bool sfx);
|
||||
void AddCinemaCamera(TUniqueId, CStateManager& stateMgr);
|
||||
void RemoveCinemaCamera(TUniqueId, CStateManager&);
|
||||
void SetInsideFluid(bool, TUniqueId);
|
||||
void AddCinemaCamera(TUniqueId id, CStateManager& stateMgr);
|
||||
void RemoveCinemaCamera(TUniqueId uid, CStateManager& mgr);
|
||||
void SetInsideFluid(bool isInside, TUniqueId fluidId);
|
||||
void Update(float dt, CStateManager& stateMgr);
|
||||
CGameCamera* GetCurrentCamera(CStateManager& stateMgr) const;
|
||||
const CGameCamera* GetCurrentCamera(const CStateManager& stateMgr) const;
|
||||
|
@ -134,8 +134,8 @@ public:
|
|||
void UpdateRumble(float dt, CStateManager& mgr);
|
||||
void UpdateListener(CStateManager& mgr);
|
||||
|
||||
float CalculateFogDensity(CStateManager&, const CScriptWater*) const;
|
||||
void SetFogDensity(float, float);
|
||||
float CalculateFogDensity(CStateManager& mgr, const CScriptWater* water) const;
|
||||
void SetFogDensity(float fogDensityTarget, float fogDensitySpeed);
|
||||
|
||||
void ProcessInput(const CFinalInput& input, CStateManager& stateMgr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue