isle-portable/LEGO1/legopalettepresenter.h
Joshua Peisach eee80250c0
LegoPalettePresenter - destroy function and destructor (#288)
* LegoPalettePresenter - destroy function and destructor

* Update legopalettepresenter.h

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-11-17 15:01:27 -05:00

36 lines
807 B
C++

#ifndef LEGOPALETTEPRESENTER_H
#define LEGOPALETTEPRESENTER_H
#include "decomp.h"
#include "mxpalette.h"
#include "mxvideopresenter.h"
// VTABLE 0x100d9aa0
// SIZE 0x68
class LegoPalettePresenter : public MxVideoPresenter {
public:
LegoPalettePresenter();
virtual ~LegoPalettePresenter() override; // vtable+0x0
// OFFSET: LEGO1 0x10079f30
inline const char* ClassName() const override // vtable+0xc
{
// 0x100f061c
return "LegoPalettePresenter";
}
// OFFSET: LEGO1 0x10079f40
inline MxBool IsA(const char* name) const override // vtable+0x10
{
return !strcmp(name, ClassName()) || MxVideoPresenter::IsA(name);
}
virtual void Destroy() override; // vtable+0x38
private:
void Init();
void Destroy(MxBool p_fromDestructor);
MxPalette* m_palette;
};
#endif // LEGOPALETTEPRESENTER_H