Refine MxObjectFactory (#205)

* Refine MxObjectFactory

* Change interface of Destroy

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Andrew Gutekanst
2023-10-14 08:59:06 -04:00
committed by GitHub
parent a24a798c82
commit c66b6aa123
4 changed files with 13 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ class LegoObjectFactory : public MxObjectFactory
public:
LegoObjectFactory();
virtual MxCore *Create(const char *p_name) override; // vtable 0x14
virtual void Destroy(void *p_object) override; // vtable 0x18
virtual void Destroy(MxCore *p_object) override; // vtable 0x18
private:
#define X(V) MxAtomId m_id##V;
FOR_LEGOOBJECTFACTORY_OBJECTS(X)