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
|
2024-10-06 10:50:34 -04:00
|
|
|
// VTABLE: BETA10 0x101bcd88
|
2024-03-22 21:30:58 -04:00
|
|
|
// SIZE 0x6c
|
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
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: BETA10 0x100a7180
|
|
|
|
static const char* HandlerClassName()
|
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
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000ccb0
|
|
|
|
// FUNCTION: BETA10 0x100a7150
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-05-30 13:10:41 -04:00
|
|
|
{
|
|
|
|
return HandlerClassName();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000ccc0
|
2024-07-04 19:06:32 -04:00
|
|
|
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-19 14:44:42 -04:00
|
|
|
MxResult FUN_1007ff70(MxDSChunk& p_chunk, LegoEntity* p_entity, MxBool p_roiVisible, LegoWorld* p_world);
|
2024-03-03 20:34:55 -05:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void Reset()
|
2024-03-03 20:34:55 -05:00
|
|
|
{
|
|
|
|
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-03-04 12:26:36 -05:00
|
|
|
MxResult CreateROI(MxDSChunk* p_chunk);
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOMODELPRESENTER_H
|