Add remaining classes, implement/match LegoObjectFactory (#1026)

* Add missing classes

* Match LegoObjectFactory

* Remove semicolon

* Add symbol

* Fix
This commit is contained in:
Christian Semmler
2024-06-12 20:02:47 -04:00
committed by GitHub
parent abb4483e18
commit cf576ca78f
24 changed files with 657 additions and 51 deletions

View File

@@ -42,6 +42,9 @@ public:
// SYNTHETIC: LEGO1 0x100b1160
// MxObjectFactory::`scalar deleting destructor'
// SYNTHETIC: LEGO1 0x10009020
// MxObjectFactory::~MxObjectFactory
private:
#define X(V) MxAtomId m_id##V;
FOR_MXOBJECTFACTORY_OBJECTS(X)

View File

@@ -19,7 +19,7 @@ DECOMP_SIZE_ASSERT(MxObjectFactory, 0x38); // 100af1db
// FUNCTION: LEGO1 0x100b0d80
MxObjectFactory::MxObjectFactory()
{
#define X(V) this->m_id##V = MxAtomId(#V, e_exact);
#define X(V) m_id##V = MxAtomId(#V, e_exact);
FOR_MXOBJECTFACTORY_OBJECTS(X)
#undef X
}
@@ -33,7 +33,7 @@ MxCore* MxObjectFactory::Create(const char* p_name)
if (0) {
}
#define X(V) \
else if (this->m_id##V == atom) \
else if (m_id##V == atom) \
{ \
object = new V; \
}