mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Introduce clang-format (#240)
This commit is contained in:

committed by
GitHub

parent
e928fc9425
commit
b449da1fa3
@@ -1,7 +1,7 @@
|
||||
#include "legoobjectfactory.h"
|
||||
|
||||
#include "infocenterstate.h"
|
||||
#include "decomp.h"
|
||||
#include "infocenterstate.h"
|
||||
|
||||
// TODO: Uncomment once we have all the relevant types ready
|
||||
// DECOMP_SIZE_ASSERT(LegoObjectFactory, 0x1c8);
|
||||
@@ -10,25 +10,29 @@
|
||||
LegoObjectFactory::LegoObjectFactory()
|
||||
{
|
||||
#define X(V) this->m_id##V = MxAtomId(#V, LookupMode_Exact);
|
||||
FOR_LEGOOBJECTFACTORY_OBJECTS(X)
|
||||
FOR_LEGOOBJECTFACTORY_OBJECTS(X)
|
||||
#undef X
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10009a90
|
||||
MxCore *LegoObjectFactory::Create(const char *p_name)
|
||||
MxCore* LegoObjectFactory::Create(const char* p_name)
|
||||
{
|
||||
MxAtomId atom(p_name, LookupMode_Exact);
|
||||
MxAtomId atom(p_name, LookupMode_Exact);
|
||||
|
||||
#define X(V) if (this->m_id##V == atom) { return new V; } else
|
||||
FOR_LEGOOBJECTFACTORY_OBJECTS(X)
|
||||
#define X(V) \
|
||||
if (this->m_id##V == atom) { \
|
||||
return new V; \
|
||||
} \
|
||||
else
|
||||
FOR_LEGOOBJECTFACTORY_OBJECTS(X)
|
||||
#undef X
|
||||
{
|
||||
return MxObjectFactory::Create(p_name);
|
||||
}
|
||||
{
|
||||
return MxObjectFactory::Create(p_name);
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x1000fb30 STUB
|
||||
void LegoObjectFactory::Destroy(MxCore *p_object)
|
||||
void LegoObjectFactory::Destroy(MxCore* p_object)
|
||||
{
|
||||
// TODO
|
||||
// TODO
|
||||
}
|
||||
|
Reference in New Issue
Block a user