mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
49a304d0b9
Some checks are pending
Build / Current ${{ matrix.toolchain.name }} (map[clang-tidy:true d3drm-from-wine:true dx5-libs:false msys-env:mingw-w64-i686 msystem:mingw32 name:msys2 mingw32 shell:msys2 {0} werror:true]) (push) Waiting to run
Build / Current ${{ matrix.toolchain.name }} (map[clang-tidy:true d3drm-from-wine:true dx5-libs:false msys-env:mingw-w64-x86_64 msystem:mingw64 name:msys2 mingw64 shell:msys2 {0} werror:true]) (push) Waiting to run
Build / Current ${{ matrix.toolchain.name }} (map[d3drm-from-wine:false dx5-libs:true name:MSVC (32-bit) setup-cmake:true setup-msvc:true setup-ninja:true shell:sh vc-arch:amd64_x86]) (push) Waiting to run
Build / Current ${{ matrix.toolchain.name }} (map[d3drm-from-wine:true dx5-libs:false name:MSVC (64-bit) setup-cmake:true setup-msvc:true setup-ninja:true shell:sh vc-arch:amd64]) (push) Waiting to run
Format / C++ (push) Waiting to run
Naming / C++ (push) Waiting to run
52 lines
2.1 KiB
C++
52 lines
2.1 KiB
C++
#ifndef MXOBJECTFACTORY_H
|
|
#define MXOBJECTFACTORY_H
|
|
|
|
#include "mxatom.h"
|
|
#include "mxcore.h"
|
|
|
|
#define FOR_MXOBJECTFACTORY_OBJECTS(X) \
|
|
X(MxPresenter) \
|
|
X(MxCompositePresenter) \
|
|
X(MxVideoPresenter) \
|
|
X(MxFlcPresenter) \
|
|
X(MxSmkPresenter) \
|
|
X(MxStillPresenter) \
|
|
X(MxWavePresenter) \
|
|
X(MxEventPresenter) \
|
|
X(MxLoopingFlcPresenter) \
|
|
X(MxLoopingSmkPresenter)
|
|
|
|
// VTABLE: LEGO1 0x100dc220
|
|
class MxObjectFactory : public MxCore {
|
|
public:
|
|
MxObjectFactory();
|
|
|
|
// FUNCTION: LEGO1 0x10008f70
|
|
const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x100f0730
|
|
return "MxObjectFactory";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10008f80
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxObjectFactory::ClassName()) || MxCore::IsA(p_name);
|
|
}
|
|
|
|
virtual MxCore* Create(const char* p_name); // vtable+0x14
|
|
virtual void Destroy(MxCore* p_object); // vtable+0x18
|
|
|
|
// SYNTHETIC: LEGO1 0x100b1160
|
|
// MxObjectFactory::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10009020
|
|
// MxObjectFactory::~MxObjectFactory
|
|
|
|
private:
|
|
#define X(V) MxAtomId m_id##V;
|
|
FOR_MXOBJECTFACTORY_OBJECTS(X)
|
|
#undef X
|
|
};
|
|
|
|
#endif // MXOBJECTFACTORY_H
|