mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-29 19:05:34 -05:00
bee101b1f4
* Add clang-tidy readability-redundant-inline-specifier * fix * Update CONTRIBUTING.md * format * fix
56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
#ifndef LEGOPARTPRESENTER_H
|
|
#define LEGOPARTPRESENTER_H
|
|
|
|
#include "legonamedpartlist.h"
|
|
#include "mxmediapresenter.h"
|
|
|
|
// VTABLE: LEGO1 0x100d4df0
|
|
// SIZE 0x54
|
|
class LegoPartPresenter : public MxMediaPresenter {
|
|
public:
|
|
LegoPartPresenter() { Reset(); }
|
|
|
|
// FUNCTION: LEGO1 0x10067300
|
|
~LegoPartPresenter() override { Destroy(TRUE); }
|
|
|
|
// FUNCTION: BETA10 0x100a75d0
|
|
static const char* HandlerClassName()
|
|
{
|
|
// STRING: LEGO1 0x100f05d8
|
|
return "LegoPartPresenter";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1000cf70
|
|
// FUNCTION: BETA10 0x100a75a0
|
|
const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
return HandlerClassName();
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1000cf80
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, LegoPartPresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
|
|
}
|
|
|
|
void ReadyTickle() override; // vtable+0x18
|
|
MxResult AddToManager() override; // vtable+0x34
|
|
void Destroy() override; // vtable+0x38
|
|
|
|
static void configureLegoPartPresenter(MxS32, MxS32);
|
|
|
|
// SYNTHETIC: LEGO1 0x1000d060
|
|
// LegoPartPresenter::`scalar deleting destructor'
|
|
|
|
void Reset() { m_parts = NULL; }
|
|
|
|
MxResult Read(MxDSChunk& p_chunk);
|
|
void Store();
|
|
|
|
private:
|
|
void Destroy(MxBool p_fromDestructor);
|
|
|
|
LegoNamedPartList* m_parts; // 0x50
|
|
};
|
|
|
|
#endif // LEGOPARTPRESENTER_H
|