mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Add unknown render class stub (#347)
* Add mxrender manager class stub * fix format * rename the class * Update MxUnknown100dbdbc.cpp * rename class * fix clang format * Remove accidently committed code * Update LEGO1/legoomni.cpp Co-authored-by: Joshua Peisach <itzswirlz2020@outlook.com> * fix * fix 2 --------- Co-authored-by: Joshua Peisach <itzswirlz2020@outlook.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "mxomnicreateparam.h"
|
||||
#include "mxticklemanager.h"
|
||||
#include "mxtransitionmanager.h"
|
||||
#include "mxunknown100dbdbc.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoWorldList, 0x18);
|
||||
|
||||
@@ -385,7 +386,7 @@ void LegoOmni::Init()
|
||||
MxOmni::Init();
|
||||
m_unk0x68 = 0;
|
||||
m_inputMgr = NULL;
|
||||
m_unk0x6c = 0;
|
||||
m_renderMgr = NULL;
|
||||
m_gifManager = NULL;
|
||||
m_worldList = NULL;
|
||||
m_currentWorld = NULL;
|
||||
@@ -443,9 +444,9 @@ void LegoOmni::Destroy()
|
||||
m_gifManager = NULL;
|
||||
}
|
||||
|
||||
if (m_unk0x6c) {
|
||||
// delete m_unk0x6c; // TODO
|
||||
m_unk0x6c = NULL;
|
||||
if (m_renderMgr) {
|
||||
delete m_renderMgr;
|
||||
m_renderMgr = NULL;
|
||||
}
|
||||
|
||||
if (m_inputMgr) {
|
||||
@@ -523,15 +524,16 @@ MxResult LegoOmni::Create(MxOmniCreateParam& p_param)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: there are a few more classes here
|
||||
m_renderMgr = new MxUnknown100dbdbc();
|
||||
m_gifManager = new GifManager();
|
||||
// TODO: there is another class here
|
||||
m_plantManager = new LegoPlantManager();
|
||||
m_animationManager = new LegoAnimationManager();
|
||||
m_buildingManager = new LegoBuildingManager();
|
||||
m_gameState = new LegoGameState();
|
||||
m_worldList = new LegoWorldList(TRUE);
|
||||
|
||||
if (m_unk0x6c && m_gifManager && m_worldList && m_plantManager && m_animationManager && m_buildingManager) {
|
||||
if (m_renderMgr && m_gifManager && m_worldList && m_plantManager && m_animationManager && m_buildingManager) {
|
||||
// TODO: initialize a bunch of MxVariables
|
||||
RegisterScripts();
|
||||
FUN_1001a700();
|
||||
|
Reference in New Issue
Block a user