2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOPARTPRESENTER_H
|
|
|
|
#define LEGOPARTPRESENTER_H
|
|
|
|
|
2024-03-09 12:27:53 -05:00
|
|
|
#include "legonamedpartlist.h"
|
2023-06-30 14:34:39 -04:00
|
|
|
#include "mxmediapresenter.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d4df0
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x54 (from inlined construction at 0x10009fac)
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoPartPresenter : public MxMediaPresenter {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2024-03-03 15:35:56 -05:00
|
|
|
LegoPartPresenter() { Reset(); }
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10067300
|
2024-02-16 13:15:53 -05:00
|
|
|
~LegoPartPresenter() override { Destroy(TRUE); }
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000cf70
|
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 0x100f05d8
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoPartPresenter";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000cf80
|
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-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, LegoPartPresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void ReadyTickle() override; // vtable+0x18
|
|
|
|
MxResult AddToManager() override; // vtable+0x34
|
|
|
|
void Destroy() override; // vtable+0x38
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
static void configureLegoPartPresenter(MxS32, MxS32);
|
2024-01-18 08:34:14 -05:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1000d060
|
|
|
|
// LegoPartPresenter::`scalar deleting destructor'
|
2024-02-16 13:15:53 -05:00
|
|
|
|
2024-03-09 12:27:53 -05:00
|
|
|
inline void Reset() { m_parts = NULL; }
|
2024-03-03 15:35:56 -05:00
|
|
|
|
2024-03-03 20:34:55 -05:00
|
|
|
MxResult Read(MxDSChunk& p_chunk);
|
2024-03-03 15:35:56 -05:00
|
|
|
void FUN_1007df20();
|
|
|
|
|
2024-02-16 13:15:53 -05:00
|
|
|
private:
|
|
|
|
void Destroy(MxBool p_fromDestructor);
|
2024-03-03 15:35:56 -05:00
|
|
|
|
2024-03-09 12:27:53 -05:00
|
|
|
LegoNamedPartList* m_parts; // 0x50
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOPARTPRESENTER_H
|