2023-06-19 01:36:07 -04:00
|
|
|
#ifndef MXOBJECTFACTORY_H
|
|
|
|
#define MXOBJECTFACTORY_H
|
|
|
|
|
2024-03-09 15:07:52 -05:00
|
|
|
#include "mxatom.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(MxEventPresenter) \
|
|
|
|
X(MxLoopingFlcPresenter) \
|
2024-06-16 09:26:04 -04:00
|
|
|
X(MxLoopingSmkPresenter)
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc220
|
2024-08-21 16:30:27 -04:00
|
|
|
// VTABLE: BETA10 0x101c2280
|
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-07-04 19:06:32 -04:00
|
|
|
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-07-04 19:06:32 -04:00
|
|
|
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'
|
|
|
|
|
2024-06-12 20:02:47 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x10009020
|
|
|
|
// MxObjectFactory::~MxObjectFactory
|
|
|
|
|
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
|