isle/LEGO1/mxmusicpresenter.h
DmitriLeon2000 34e09c2bb3
Clean up Destroy pattern everywhere, fix missing overrides (#202)
* Rename MxMusicPresenter function vtable38

* Rename MxMusicPresenter function vtable38

* MxMediaPresenter, MxMusicManager and MxMusicPresenter
* Refactoring Destroy functions

* MxMediaManager & MxMusicPresenter

* Fix some vtable declarations, more renames

* Fix MxEventManager

* More rename fixes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-13 18:43:45 +02:00

35 lines
811 B
C++

#ifndef MXMUSICPRESENTER_H
#define MXMUSICPRESENTER_H
#include "mxaudiopresenter.h"
// VTABLE 0x100dc9b8
// SIZE 0x54
class MxMusicPresenter : public MxAudioPresenter
{
public:
// OFFSET: LEGO1 0x100c23a0
inline virtual const char *ClassName() const override // vtable+0xc
{
// 0x10101e48
return "MxMusicPresenter";
}
// OFFSET: LEGO1 0x100c23b0
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, MxMusicPresenter::ClassName()) || MxAudioPresenter::IsA(name);
}
MxMusicPresenter();
virtual ~MxMusicPresenter() override;
virtual MxResult AddToManager() override; // vtable+0x34
virtual void Destroy() override; // vtable+0x38
private:
void Init();
void Destroy(MxBool p_fromDestructor);
};
#endif // MXMUSICPRESENTER_H