mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Rename more functions
This commit is contained in:
parent
b19f2e4c29
commit
4de5484df4
@ -111,7 +111,7 @@ class LegoOmni : public MxOmni {
|
|||||||
LegoSoundManager* GetSoundManager() { return (LegoSoundManager*) m_soundManager; }
|
LegoSoundManager* GetSoundManager() { return (LegoSoundManager*) m_soundManager; }
|
||||||
LegoInputManager* GetInputManager() { return m_inputMgr; }
|
LegoInputManager* GetInputManager() { return m_inputMgr; }
|
||||||
GifManager* GetGifManager() { return m_gifManager; }
|
GifManager* GetGifManager() { return m_gifManager; }
|
||||||
LegoWorld* GetCurrentOmniWorld() { return m_currentWorld; }
|
LegoWorld* GetCurrentWorld() { return m_currentWorld; }
|
||||||
LegoNavController* GetNavController() { return m_navController; }
|
LegoNavController* GetNavController() { return m_navController; }
|
||||||
IslePathActor* GetCurrentVehicle() { return m_currentVehicle; }
|
IslePathActor* GetCurrentVehicle() { return m_currentVehicle; }
|
||||||
LegoPlantManager* GetLegoPlantManager() { return m_plantManager; }
|
LegoPlantManager* GetLegoPlantManager() { return m_plantManager; }
|
||||||
@ -174,7 +174,7 @@ LegoUnkSaveDataWriter* GetUnkSaveDataWriter();
|
|||||||
GifManager* GetGifManager();
|
GifManager* GetGifManager();
|
||||||
void FUN_10015820(MxBool p_disable, MxU16 p_flags);
|
void FUN_10015820(MxBool p_disable, MxU16 p_flags);
|
||||||
void FUN_10015860(const char*, MxU8);
|
void FUN_10015860(const char*, MxU8);
|
||||||
LegoEntity* FindEntityByAtomIdOrEntityId(const MxAtomId& p_atom, MxS32 p_entityid);
|
LegoEntity* FindWorld(const MxAtomId& p_atom, MxS32 p_entityid);
|
||||||
MxDSAction& GetCurrentAction();
|
MxDSAction& GetCurrentAction();
|
||||||
|
|
||||||
void PlayMusic(MxU32 p_index);
|
void PlayMusic(MxU32 p_index);
|
||||||
|
|||||||
@ -398,13 +398,13 @@ void LegoGameState::SetSomeEnumState(undefined4 p_state)
|
|||||||
// FUNCTION: LEGO1 0x1003ceb0
|
// FUNCTION: LEGO1 0x1003ceb0
|
||||||
void LegoGameState::FUN_1003ceb0()
|
void LegoGameState::FUN_1003ceb0()
|
||||||
{
|
{
|
||||||
if (FindEntityByAtomIdOrEntityId(*g_isleScript, 0)) {
|
if (FindWorld(*g_isleScript, 0)) {
|
||||||
m_currentAct = 0;
|
m_currentAct = 0;
|
||||||
}
|
}
|
||||||
else if (FindEntityByAtomIdOrEntityId(*g_act2mainScript, 0)) {
|
else if (FindWorld(*g_act2mainScript, 0)) {
|
||||||
m_currentAct = 1;
|
m_currentAct = 1;
|
||||||
}
|
}
|
||||||
else if (FindEntityByAtomIdOrEntityId(*g_act3Script, 0)) {
|
else if (FindWorld(*g_act3Script, 0)) {
|
||||||
m_currentAct = 2;
|
m_currentAct = 2;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -99,7 +99,7 @@ void InvokeAction(Extra::ActionType p_actionId, MxAtomId& p_pAtom, int p_targetE
|
|||||||
// FUNCTION: LEGO1 0x1003e670
|
// FUNCTION: LEGO1 0x1003e670
|
||||||
MxBool CheckIfEntityExists(MxBool p_enable, const char* p_filename, MxS32 p_entityId)
|
MxBool CheckIfEntityExists(MxBool p_enable, const char* p_filename, MxS32 p_entityId)
|
||||||
{
|
{
|
||||||
LegoWorld* world = (LegoWorld*) FindEntityByAtomIdOrEntityId(MxAtomId(p_filename, e_lowerCase2), p_entityId);
|
LegoWorld* world = (LegoWorld*) FindWorld(MxAtomId(p_filename, e_lowerCase2), p_entityId);
|
||||||
if (world) {
|
if (world) {
|
||||||
world->VTable0x68(p_enable);
|
world->VTable0x68(p_enable);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
@ -179,7 +179,7 @@ IslePathActor* GetCurrentVehicle()
|
|||||||
// FUNCTION: LEGO1 0x100157a0
|
// FUNCTION: LEGO1 0x100157a0
|
||||||
LegoWorld* GetCurrentWorld()
|
LegoWorld* GetCurrentWorld()
|
||||||
{
|
{
|
||||||
return LegoOmni::GetInstance()->GetCurrentOmniWorld();
|
return LegoOmni::GetInstance()->GetCurrentWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100157b0
|
// FUNCTION: LEGO1 0x100157b0
|
||||||
@ -219,7 +219,7 @@ void FUN_10015860(const char*, MxU8)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100158c0
|
// FUNCTION: LEGO1 0x100158c0
|
||||||
LegoEntity* FindEntityByAtomIdOrEntityId(const MxAtomId& p_atom, MxS32 p_entityid)
|
LegoEntity* FindWorld(const MxAtomId& p_atom, MxS32 p_entityid)
|
||||||
{
|
{
|
||||||
return LegoOmni::GetInstance()->FindWorld(p_atom, p_entityid);
|
return LegoOmni::GetInstance()->FindWorld(p_atom, p_entityid);
|
||||||
}
|
}
|
||||||
@ -674,11 +674,11 @@ MxBool LegoOmni::DoesEntityExist(MxDSAction& p_dsAction)
|
|||||||
// FUNCTION: LEGO1 0x1005b400
|
// FUNCTION: LEGO1 0x1005b400
|
||||||
MxS32 LegoOmni::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
MxS32 LegoOmni::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
||||||
{
|
{
|
||||||
if (GetCurrentWorld() == NULL) {
|
if (::GetCurrentWorld() == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return GetCurrentWorld()->GetCurrPathInfo(p_path, p_value);
|
return ::GetCurrentWorld()->GetCurrPathInfo(p_path, p_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1005b4f0
|
// FUNCTION: LEGO1 0x1005b4f0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user