mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-10 08:03:13 +00:00
Implement a few functions in LegoEntity (#201)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user