AmbulanceMissionState/AnimState constructors (#337)

* implement a few states

* Update animstate.h

* Update animstate.cpp
This commit is contained in:
Misha 2023-12-16 09:11:10 -05:00 committed by GitHub
parent ec854c9308
commit 76b4edaa9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 10 deletions

View file

@ -2,8 +2,19 @@
DECOMP_SIZE_ASSERT(AmbulanceMissionState, 0x24);
// STUB: LEGO1 0x100373a0
// FUNCTION: LEGO1 0x100373a0
AmbulanceMissionState::AmbulanceMissionState()
{
// TODO
m_unk0x10 = 0;
m_unk0x12 = 0;
m_unk0x14 = 0;
m_unk0x8 = 0;
m_unk0x16 = 0;
m_unk0xc = 0;
m_unk0x18 = 0;
m_color1 = 0;
m_color2 = 0;
m_color3 = 0;
m_color4 = 0;
m_color5 = 0;
}

View file

@ -41,12 +41,18 @@ public:
}
protected:
undefined m_unk0x8[0x12];
MxU16 m_color1;
MxU16 m_color2;
MxU16 m_color3;
MxU16 m_color4;
MxU16 m_color5;
undefined4 m_unk0x8; // 0x08
undefined4 m_unk0xc; // 0x0c
MxU16 m_unk0x10; // 0x10
MxU16 m_unk0x12; // 0x12
MxU16 m_unk0x14; // 0x14
MxU16 m_unk0x16; // 0x16
MxU16 m_unk0x18; // 0x18
MxU16 m_color1; // 0x1a
MxU16 m_color2; // 0x1c
MxU16 m_color3; // 0x1e
MxU16 m_color4; // 0x20
MxU16 m_color5; // 0x22
};
#endif // AMBULANCEMISSIONSTATE_H

View file

@ -1,9 +1,14 @@
#include "animstate.h"
// STUB: LEGO1 0x10064ff0
DECOMP_SIZE_ASSERT(AnimState, 0x1c);
// FUNCTION: LEGO1 0x10064ff0
AnimState::AnimState()
{
// TODO
m_unk0xc = 0;
m_unk0x10 = NULL;
m_unk0x14 = 0;
m_unk0x18 = NULL;
}
// STUB: LEGO1 0x10065150
@ -11,3 +16,17 @@ AnimState::~AnimState()
{
// TODO
}
// STUB: LEGO1 0x100652d0
MxResult AnimState::VTable0x1c(LegoFileStream* p_legoFileStream)
{
// TODO
return FAILURE;
}
// STUB: LEGO1 0x100654f0
MxBool AnimState::SetFlag()
{
// TODO
return FALSE;
}

View file

@ -22,6 +22,16 @@ public:
{
return !strcmp(p_name, AnimState::ClassName()) || LegoState::IsA(p_name);
}
virtual MxBool SetFlag() override; // vtable+0x18
virtual MxResult VTable0x1c(LegoFileStream* p_legoFileStream) override; // vtable+0x1C
private:
undefined4 m_unk0x8;
undefined4 m_unk0xc;
void* m_unk0x10;
undefined4 m_unk0x14;
void* m_unk0x18;
};
#endif // ANIMSTATE_H