implement/match global ControlManager() function

This commit is contained in:
Ramen2X 2023-10-18 15:26:59 -04:00
parent 7c26a4d2dc
commit 6c7cddae1c
3 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,8 @@ class LegoInputManager : public MxPresenter
void SetTimer(); void SetTimer();
void KillTimer(); void KillTimer();
inline LegoControlManager *GetControlManager() { return m_controlManager; }
//private: //private:
MxCriticalSection m_criticalSection; MxCriticalSection m_criticalSection;
MxList<undefined4> *m_unk0x5c; // list or hash table MxList<undefined4> *m_unk0x5c; // list or hash table

View File

@ -5,6 +5,7 @@
#include "legogamestate.h" #include "legogamestate.h"
#include "legoutil.h" #include "legoutil.h"
#include "legoobjectfactory.h" #include "legoobjectfactory.h"
#include "legoinputmanager.h"
// 0x100f4588 // 0x100f4588
MxAtomId *g_nocdSourceName = NULL; MxAtomId *g_nocdSourceName = NULL;
@ -205,6 +206,12 @@ LegoInputManager *InputManager()
return LegoOmni::GetInstance()->GetInputManager(); return LegoOmni::GetInstance()->GetInputManager();
} }
// OFFSET: LEGO1 0x10015750
LegoControlManager *ControlManager()
{
return LegoOmni::GetInstance()->GetInputManager()->GetControlManager();
}
// OFFSET: LEGO1 0x10015760 // OFFSET: LEGO1 0x10015760
LegoGameState *GameState() LegoGameState *GameState()
{ {

View File

@ -11,6 +11,7 @@ class LegoBuildingManager;
class LegoEntity; class LegoEntity;
class LegoGameState; class LegoGameState;
class LegoInputManager; class LegoInputManager;
class LegoControlManager;
class LegoNavController; class LegoNavController;
class LegoPathBoundary; class LegoPathBoundary;
class LegoPlantManager; class LegoPlantManager;