2023-06-19 01:36:07 -04:00
|
|
|
#ifndef MXOBJECTFACTORY_H
|
|
|
|
#define MXOBJECTFACTORY_H
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2023-07-02 03:00:28 -04:00
|
|
|
#include "mxatomid.h"
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
// VTABLE 0x100dc220
|
|
|
|
class MxObjectFactory : public MxCore
|
2023-06-19 01:36:07 -04:00
|
|
|
{
|
2023-07-02 03:00:28 -04:00
|
|
|
public:
|
|
|
|
MxObjectFactory();
|
2023-10-12 12:18:24 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10008f70
|
|
|
|
inline virtual const char *ClassName() const override // vtable+0xc
|
|
|
|
{
|
|
|
|
// 0x100f0730
|
|
|
|
return "MxObjectFactory";
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10008f80
|
|
|
|
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxObjectFactory::ClassName()) || MxCore::IsA(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual MxCore *Create(const char *p_name); // vtable 0x14
|
2023-10-14 08:59:06 -04:00
|
|
|
virtual void Destroy(MxCore *p_object); // vtable 0x18
|
2023-07-02 03:00:28 -04:00
|
|
|
private:
|
|
|
|
#define X(V) MxAtomId m_id##V;
|
|
|
|
FOR_MXOBJECTFACTORY_OBJECTS(X)
|
|
|
|
#undef X
|
2023-06-19 01:36:07 -04:00
|
|
|
};
|
|
|
|
|
2023-07-02 02:53:54 -04:00
|
|
|
#endif // MXOBJECTFACTORY_H
|