Implement a few functions in LegoEntity (#201)

This commit is contained in:
Misha
2023-10-11 18:15:36 -04:00
committed by GitHub
parent 19ee8cdc30
commit b7b0ac6ae7
3 changed files with 20 additions and 5 deletions

View File

@@ -36,10 +36,13 @@ void LegoEntity::Reset()
m_unk59 = 4;
}
// OFFSET: LEGO1 0x100107e0 STUB
void LegoEntity::vtable18()
// OFFSET: LEGO1 0x100107e0
MxResult LegoEntity::InitFromMxDSObject(MxDSObject& p_object)
{
m_mxEntityId = p_object.GetObjectId();
m_atom = p_object.GetAtomId();
AddToCurrentWorld();
return SUCCESS;
}
// OFFSET: LEGO1 0x10010810 STUB
@@ -53,6 +56,16 @@ void LegoEntity::Destroy(MxBool)
Reset();
}
// OFFSET: LEGO1 0x10010880 STUB
void LegoEntity::AddToCurrentWorld()
{
LegoWorld* world = GetCurrentWorld();
if (world != NULL && world != (LegoWorld*)this)
{
// TODO: world->vtable58(this);
}
}
// OFFSET: LEGO1 0x10010e10
void LegoEntity::ParseAction(char *p_extra)
{