defined out asserts.

This commit is contained in:
bigbossbro08
2020-05-10 19:54:37 +06:00
parent d9a3533438
commit af6e132b37
48 changed files with 156 additions and 6 deletions

View File

@ -89,4 +89,7 @@ public:
}
}
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(C2dEffect) == 0x34, "C2dEffect: error");
#endif

View File

@ -38,7 +38,10 @@ struct CRegisteredCorona
void Update(void);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CRegisteredCorona) == 0x80, "CRegisteredCorona: error");
#endif
class CCoronas
{

View File

@ -21,7 +21,9 @@ public:
void Render(void);
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CFallingGlassPane, 0x70);
#endif
enum
{

View File

@ -91,4 +91,6 @@ public:
static void AddYardieDoorSmoke(CVector const &vecPos, CMatrix const &matMatrix);
};
VALIDATE_SIZE(CParticle, 0x68);
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CParticle, 0x68);
#endif

View File

@ -64,8 +64,10 @@ struct tParticleSystemData
RwRaster **m_ppRaster;
CParticle *m_pParticles;
};
VALIDATE_SIZE(tParticleSystemData, 0x88);
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(tParticleSystemData, 0x88);
#endif
class cParticleSystemMgr
{
@ -125,6 +127,8 @@ public:
void RangeCheck(tParticleSystemData *pData) { }
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(cParticleSystemMgr, 0x2420);
#endif
extern cParticleSystemMgr mod_ParticleSystemManager;

View File

@ -51,7 +51,10 @@ public:
CStoredShadow()
{ }
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CStoredShadow, 0x30);
#endif
class CPolyBunch
{
@ -65,7 +68,10 @@ public:
CPolyBunch()
{ }
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CPolyBunch, 0x6C);
#endif
class CStaticShadow
{
@ -93,7 +99,10 @@ public:
void Free();
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CStaticShadow, 0x40);
#endif
class CPermanentShadow
{
@ -115,7 +124,9 @@ public:
CPermanentShadow()
{ }
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CPermanentShadow, 0x38);
#endif
class CPtrList;
class CAutomobile;