Implement/Match LegoPathActor ctor

This commit is contained in:
Nathan 2024-04-06 04:43:37 -04:00
parent 32f1621ec7
commit 09d715f558
2 changed files with 43 additions and 9 deletions

View File

@ -8,6 +8,13 @@
class LegoPathController;
struct LegoActorStruct {
LegoActorStruct();
~LegoActorStruct();
Mx3DPointFloat m_unk0x00[4]; // 0x00
};
// VTABLE: LEGO1 0x100d6e28
// SIZE 0x154
class LegoPathActor : public LegoActor {
@ -101,16 +108,15 @@ class LegoPathActor : public LegoActor {
MxFloat m_actorTime; // 0x80
MxFloat m_lastTime; // 0x84
LegoPathBoundary* m_boundary; // 0x88
undefined m_unk0x8c[0x14]; // 0x8c
MxFloat m_unk0xa0; // 0xa0
undefined m_unk0xa4[0x38]; // 0xa4
LegoActorStruct m_unk0x8c; // 0x8c
MxU32 m_state; // 0xdc
Edge* m_destEdge; // 0xe0
undefined4 m_unk0xe4; // 0xe4
undefined2 m_unk0xe8; // 0xe8
undefined m_unk0xe8; // 0xe8
undefined m_unk0xe9; // 0xe9
MxBool m_userNavFlag; // 0xea
MxMatrix m_unk0xec; // 0xec
undefined4 m_unk0x134; // 0x134
undefined* m_unk0x134; // 0x134
LegoPathController* m_controller; // 0x138
MxFloat m_unk0x13c; // 0x13c
MxFloat m_unk0x140; // 0x140

View File

@ -2,16 +2,31 @@
DECOMP_SIZE_ASSERT(LegoPathActor, 0x154)
// STUB: LEGO1 0x1002d700
LegoPathActor::LegoPathActor()
// FUNCTION: LEGO1 0x1002d700
LegoPathActor::LegoPathActor() : m_unk0x8c()
{
// TODO
m_boundary = NULL;
m_actorTime = 0;
m_lastTime = 0;
m_unk0x7c = 0;
m_userNavFlag = FALSE;
m_state = 0;
m_unk0x134 = NULL;
m_controller = NULL;
m_unk0xe8 = 0;
m_unk0x148 = 0;
m_unk0x14c = 0;
m_unk0x140 = 0.0099999998f;
m_unk0x144 = 0.80000001f;
m_unk0x150 = 2.0f;
}
// STUB: LEGO1 0x1002d820
LegoPathActor::~LegoPathActor()
{
// TODO
if (m_unk0x134) {
delete m_unk0x134;
}
}
// STUB: LEGO1 0x1002d8d0
@ -92,3 +107,16 @@ void LegoPathActor::VTable0xa8()
{
// TODO
}
// FUNCTION: LEGO1 0x1009a0f0
LegoActorStruct::LegoActorStruct()
{
for (int i = 0; i < 4; i++) {
m_unk0x00[i].Clear();
}
}
// FUNCTION: LEGO1 0x1009a130
LegoActorStruct::~LegoActorStruct()
{
}