LegoEntity

This commit is contained in:
Misha 2023-10-29 12:38:05 -04:00
parent 26b2455b76
commit 949fbbbba1
No known key found for this signature in database
GPG Key ID: 8441D12AEF33FED8
3 changed files with 9 additions and 11 deletions

View File

@ -23,11 +23,11 @@ class LegoActor : public LegoEntity {
return !strcmp(name, LegoActor::ClassName()) || LegoEntity::IsA(name); return !strcmp(name, LegoActor::ClassName()) || LegoEntity::IsA(name);
} }
virtual float VTable0x50(); // vtable+0x50 virtual float VTable0x50(); // vtable+0x50
virtual void VTable0x54(float p_unk); // vtable+0x54 virtual void VTable0x54(float p_unk); // vtable+0x54
virtual void VTable0x58(float p_unk); // vtable+0x58 virtual void VTable0x58(float p_unk); // vtable+0x58
virtual float VTable0x5c(); // vtable+0x5c virtual float VTable0x5c(); // vtable+0x5c
virtual undefined VTable0x60(); // vtable+0x60 virtual undefined VTable0x60(); // vtable+0x60
virtual void VTable0x64(undefined p_unk); // vtable+0x64 virtual void VTable0x64(undefined p_unk); // vtable+0x64
private: private:

View File

@ -3,6 +3,7 @@
#include "define.h" #include "define.h"
#include "legoomni.h" #include "legoomni.h"
#include "legoutil.h" #include "legoutil.h"
#include "legoworld.h"
DECOMP_SIZE_ASSERT(LegoEntity, 0x68) DECOMP_SIZE_ASSERT(LegoEntity, 0x68)
@ -60,12 +61,12 @@ void LegoEntity::Destroy(MxBool p_fromDestructor)
Init(); Init();
} }
// OFFSET: LEGO1 0x10010880 STUB // OFFSET: LEGO1 0x10010880
void LegoEntity::SetWorld() void LegoEntity::SetWorld()
{ {
LegoWorld* world = GetCurrentWorld(); LegoWorld* world = GetCurrentWorld();
if (world != NULL && world != (LegoWorld*) this) { if (world != NULL && world != (LegoWorld*) this) {
// TODO: world->AddEntity(this); world->VTable0x58(this);
} }
} }

View File

@ -13,10 +13,7 @@
class LegoEntity : public MxEntity { class LegoEntity : public MxEntity {
public: public:
// Inlined at 0x100853f7 // Inlined at 0x100853f7
inline LegoEntity() inline LegoEntity() { Init(); }
{
Init();
}
__declspec(dllexport) virtual ~LegoEntity() override; // vtable+0x0 __declspec(dllexport) virtual ~LegoEntity() override; // vtable+0x0