2023-06-19 01:36:07 -04:00
|
|
|
#ifndef MXOBJECTFACTORY_H
|
|
|
|
#define MXOBJECTFACTORY_H
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
#include "mxatomid.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxcore.h"
|
2023-07-02 03:00:28 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#define FOR_MXOBJECTFACTORY_OBJECTS(X) \
|
|
|
|
X(MxPresenter) \
|
|
|
|
X(MxCompositePresenter) \
|
|
|
|
X(MxVideoPresenter) \
|
|
|
|
X(MxFlcPresenter) \
|
|
|
|
X(MxSmkPresenter) \
|
|
|
|
X(MxStillPresenter) \
|
|
|
|
X(MxWavePresenter) \
|
|
|
|
X(MxMIDIPresenter) \
|
|
|
|
X(MxEventPresenter) \
|
|
|
|
X(MxLoopingFlcPresenter) \
|
|
|
|
X(MxLoopingSmkPresenter) \
|
|
|
|
X(MxLoopingMIDIPresenter)
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc220
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxObjectFactory : public MxCore {
|
2023-07-02 03:00:28 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxObjectFactory();
|
2023-10-12 12:18:24 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10008f70
|
2024-02-01 15:42:10 -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 0x100f0730
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxObjectFactory";
|
|
|
|
}
|
2023-10-12 12:18:24 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10008f80
|
2024-02-01 15:42:10 -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, MxObjectFactory::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-10-12 12:18:24 -04:00
|
|
|
|
2024-03-06 13:25:45 -05:00
|
|
|
virtual MxCore* Create(const char* p_name); // vtable+0x14
|
|
|
|
virtual void Destroy(MxCore* p_object); // vtable+0x18
|
2023-11-24 12:10:09 -05:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b1160
|
|
|
|
// MxObjectFactory::`scalar deleting destructor'
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
private:
|
|
|
|
#define X(V) MxAtomId m_id##V;
|
2023-10-24 19:38:27 -04:00
|
|
|
FOR_MXOBJECTFACTORY_OBJECTS(X)
|
2023-07-02 03:00:28 -04:00
|
|
|
#undef X
|
2023-06-19 01:36:07 -04:00
|
|
|
};
|
|
|
|
|
2023-07-02 02:53:54 -04:00
|
|
|
#endif // MXOBJECTFACTORY_H
|