add size asserts

This commit is contained in:
itsmattkc 2023-08-03 09:49:43 -07:00
parent be850528f8
commit 1daa145ee0
6 changed files with 19 additions and 1 deletions

View File

@ -46,6 +46,7 @@ add_library(lego1 SHARED
LEGO1/jukeboxstate.cpp
LEGO1/legoact2state.cpp
LEGO1/legoactioncontrolpresenter.cpp
LEGO1/legoactor.cpp
LEGO1/legoanimactor.cpp
LEGO1/legoanimationmanager.cpp
LEGO1/legoanimmmpresenter.cpp

View File

@ -1 +1,4 @@
#include "isleactor.h"
// NOTE: This is copied from base class LegoActor. IsleActor may in fact be larger but we don't know yet.
DECOMP_SIZE_ASSERT(IsleActor, 0x78)

3
LEGO1/legoactor.cpp Normal file
View File

@ -0,0 +1,3 @@
#include "legoactor.h"
DECOMP_SIZE_ASSERT(LegoActor, 0x78)

View File

@ -1,6 +1,7 @@
#ifndef LEGOACTOR_H
#define LEGOACTOR_H
#include "decomp.h"
#include "legoentity.h"
// VTABLE 0x100d6d68
@ -20,6 +21,10 @@ class LegoActor : public LegoEntity
{
return !strcmp(name, LegoActor::ClassName()) || LegoEntity::IsA(name);
}
private:
undefined unk04_[0x68];
};
#endif // LEGOACTOR_H

View File

@ -1,5 +1,9 @@
#include "pizza.h"
#include "decomp.h"
DECOMP_SIZE_ASSERT(Pizza, 0x9c);
// OFFSET: LEGO1 0x10037ef0
Pizza::Pizza()
{

View File

@ -30,12 +30,14 @@ class Pizza : public IsleActor
return !strcmp(name, Pizza::ClassName()) || IsleActor::IsA(name);
}
private:
MxS32 m_unk78;
MxS32 m_unk7c;
MxS32 m_unk80;
MxS32 m_unk84;
MxS32 m_unk88;
MxS32 m_unk8c;
MxU32 m_unk90;
MxS32 m_unk94;
MxS32 m_unk98;
};