implement/match ScoreState vtable (#220)

* implement/match ScoreState vtable

* add size assert for ScoreState
This commit is contained in:
Ramen2X 2023-10-19 03:26:32 -04:00 committed by GitHub
parent 52e6c9ac22
commit adbe73d664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -1 +1,15 @@
#include "scorestate.h"
DECOMP_SIZE_ASSERT(ScoreState, 0x0C);
// OFFSET: LEGO1 0x1000de20
MxBool ScoreState::VTable0x14() {
return FALSE;
}
// OFFSET: LEGO1 0x1000de30
MxBool ScoreState::VTable0x18()
{
m_unk0x08 = TRUE;
return TRUE;
}

View file

@ -21,6 +21,11 @@ public:
return !strcmp(name, ScoreState::ClassName()) || LegoState::IsA(name);
};
virtual MxBool VTable0x14() override; // vtable+0x14
virtual MxBool VTable0x18() override; // vtable+0x18
private:
MxBool m_unk0x08;
};
#endif // SCORESTATE_H