2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOMODELPRESENTER_H
|
|
|
|
#define LEGOMODELPRESENTER_H
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxvideopresenter.h"
|
|
|
|
|
2024-02-17 10:07:34 -05:00
|
|
|
class LegoROI;
|
2024-03-03 20:34:55 -05:00
|
|
|
class LegoWorld;
|
|
|
|
class LegoEntity;
|
|
|
|
class MxDSChunk;
|
2024-01-22 10:18:46 -05:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d4e50
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x6c (discovered through inline constructor at 0x10009ae6)
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoModelPresenter : public MxVideoPresenter {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2024-03-03 20:34:55 -05:00
|
|
|
LegoModelPresenter() { Reset(); }
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10067a10
|
2024-02-16 13:15:53 -05:00
|
|
|
~LegoModelPresenter() override { Destroy(TRUE); }
|
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
static void configureLegoModelPresenter(MxS32 p_modelPresenterConfig);
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000ccb0
|
2024-01-29 16:17:17 -05:00
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f067c
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoModelPresenter";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000ccc0
|
2023-12-13 05:48:14 -05:00
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-26 19:44:55 -05:00
|
|
|
return !strcmp(p_name, ClassName()) || MxVideoPresenter::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2024-01-04 20:01:04 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void ReadyTickle() override; // vtable+0x18
|
|
|
|
void ParseExtra() override; // vtable+0x30
|
|
|
|
void Destroy() override; // vtable+0x38
|
2024-01-04 20:01:04 -05:00
|
|
|
|
2024-03-03 20:34:55 -05:00
|
|
|
void FUN_1007ff70(MxDSChunk& p_chunk, LegoEntity* p_entity, undefined p_modelUnknown0x34, LegoWorld* p_world);
|
|
|
|
|
|
|
|
inline void Reset()
|
|
|
|
{
|
|
|
|
m_roi = NULL;
|
|
|
|
m_addedToView = FALSE;
|
|
|
|
}
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1000cdd0
|
|
|
|
// LegoModelPresenter::`scalar deleting destructor'
|
|
|
|
|
2024-01-04 20:01:04 -05:00
|
|
|
protected:
|
|
|
|
void Destroy(MxBool p_fromDestructor);
|
2024-01-12 17:30:50 -05:00
|
|
|
|
|
|
|
private:
|
2024-02-17 10:07:34 -05:00
|
|
|
LegoROI* m_roi; // 0x64
|
2024-01-12 17:30:50 -05:00
|
|
|
MxBool m_addedToView; // 0x68
|
2024-02-09 18:41:35 -05:00
|
|
|
|
2024-02-11 09:03:56 -05:00
|
|
|
MxResult CreateROI(MxStreamChunk* p_chunk);
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOMODELPRESENTER_H
|