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:
Misha
2023-12-21 13:21:56 -05:00
committed by GitHub
parent 2c018c117c
commit 6d0d308c37
5 changed files with 39 additions and 7 deletions

View File

@@ -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();