Fixed typos and made all assert functions optional
This commit is contained in:
parent
af6e132b37
commit
c798e1bacd
@ -85,6 +85,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CAnimBlendAssociation) == 0x40, "CAnimBlendAssociation: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CAnimBlendAssociation, 0x40);
|
||||
|
@ -26,7 +26,7 @@ struct AnimBlendFrameData
|
||||
#endif
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(AnimBlendFrameData) == 0x14, "AnimBlendFrameData: error");
|
||||
VALIDATE_SIZE(AnimBlendFrameData, 0x14);
|
||||
#endif
|
||||
|
||||
|
||||
@ -51,5 +51,5 @@ public:
|
||||
void ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void *arg);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CAnimBlendClumpData) == 0x14, "CAnimBlendClumpData: error");
|
||||
VALIDATE_SIZE(CAnimBlendClumpData, 0x14);
|
||||
#endif
|
||||
|
@ -25,6 +25,4 @@ public:
|
||||
void RemoveUncompressedData(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CAnimBlendHierarchy) == 0x28, "CAnimBlendHierarchy: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CAnimBlendHierarchy, 0x28);
|
@ -27,6 +27,5 @@ public:
|
||||
void GetEndTranslation(CVector &trans, float weight);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CAnimBlendNode) == 0x1C, "CAnimBlendNode: error");
|
||||
#endif
|
||||
|
||||
VALIDATE_SIZE(CAnimBlendNode, 0x1C);
|
||||
|
@ -51,5 +51,5 @@ public:
|
||||
#endif
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CAnimBlendSequence) == 0x2C, "CAnimBlendSequence: error");
|
||||
VALIDATE_SIZE(CAnimBlendSequence, 0x2C);
|
||||
#endif
|
||||
|
@ -20,9 +20,7 @@ public:
|
||||
// no methods
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(cAudioCollision) == 40, "cAudioCollision: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(cAudioCollision, 40);
|
||||
|
||||
class cAudioCollisionManager
|
||||
{
|
||||
@ -37,6 +35,4 @@ public:
|
||||
void AddCollisionToRequestedQueue();
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(cAudioCollisionManager) == 852, "cAudioCollisionManager: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(cAudioCollisionManager, 852);
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
int8 m_nVolumeChange;
|
||||
};
|
||||
|
||||
static_assert(sizeof(tSound) == 92, "tSound: error");
|
||||
VALIDATE_SIZE(tSound, 92);
|
||||
|
||||
class CPhysical;
|
||||
class CAutomobile;
|
||||
@ -52,9 +52,7 @@ public:
|
||||
uint8 m_AudioEvents;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(tAudioEntity) == 40, "tAudioEntity: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(tAudioEntity, 40);
|
||||
|
||||
class tPedComment
|
||||
{
|
||||
@ -67,7 +65,7 @@ public:
|
||||
int8 m_nProcess;
|
||||
};
|
||||
|
||||
static_assert(sizeof(tPedComment) == 28, "tPedComment: error");
|
||||
VALIDATE_SIZE(tPedComment, 28);
|
||||
|
||||
class cPedComments
|
||||
{
|
||||
@ -82,7 +80,7 @@ public:
|
||||
void Process();
|
||||
};
|
||||
|
||||
static_assert(sizeof(cPedComments) == 1164, "cPedComments: error");
|
||||
VALIDATE_SIZE(cPedComments, 1164);
|
||||
|
||||
class CEntity;
|
||||
|
||||
@ -98,8 +96,7 @@ public:
|
||||
int32 m_nMissionAudioCounter;
|
||||
bool m_bIsPlayed;
|
||||
};
|
||||
|
||||
static_assert(sizeof(cMissionAudio) == 32, "cMissionAudio: error");
|
||||
VALIDATE_SIZE(cMissionAudio, 32);
|
||||
|
||||
// name made up
|
||||
class cAudioScriptObjectManager
|
||||
@ -137,9 +134,7 @@ public:
|
||||
float m_fVelocityChange;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(cVehicleParams) == 0x18, "cVehicleParams: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(cVehicleParams, 0x18);
|
||||
|
||||
enum {
|
||||
/*
|
||||
|
@ -148,6 +148,6 @@ public:
|
||||
static void SaveAllAudioScriptObjects(uint8 *buf, uint32 *size);
|
||||
};
|
||||
|
||||
static_assert(sizeof(cAudioScriptObject) == 20, "cAudioScriptObject: error");
|
||||
VALIDATE_SIZE(cAudioScriptObject, 20);
|
||||
|
||||
extern void PlayOneShotScriptObject(uint8 id, CVector const &pos);
|
@ -84,6 +84,6 @@ public:
|
||||
bool ChangeRadioChannel();
|
||||
};
|
||||
|
||||
static_assert(sizeof(cMusicManager) == 0x95C, "cMusicManager: error");
|
||||
VALIDATE_SIZE(cMusicManager, 0x95C);
|
||||
|
||||
extern cMusicManager MusicManager;
|
||||
|
@ -15,7 +15,7 @@ struct cAMCrime {
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(sizeof(cAMCrime) == 20, "cAMCrime: error ");
|
||||
VALIDATE_SIZE(cAMCrime, 20);
|
||||
|
||||
class cPoliceRadioQueue
|
||||
{
|
||||
@ -43,4 +43,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(sizeof(cPoliceRadioQueue) == 444, "cPoliceRadioQueue: error ");
|
||||
VALIDATE_SIZE(cPoliceRadioQueue, 444);
|
||||
|
@ -120,6 +120,4 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CAutoPilot) == 0x70, "CAutoPilot: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CAutoPilot, 0x70);
|
||||
|
@ -75,7 +75,7 @@ public:
|
||||
CVehicle* RestoreCar();
|
||||
};
|
||||
|
||||
static_assert(sizeof(CStoredCar) == 0x28, "CStoredCar");
|
||||
VALIDATE_SIZE(CStoredCar, 0x28);
|
||||
|
||||
#define SWITCH_GARAGE_DISTANCE_CLOSE 40.0f
|
||||
|
||||
@ -172,9 +172,7 @@ class CGarage
|
||||
friend class CCamera;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CGarage) == 140, "CGarage");
|
||||
#endif
|
||||
VALIDATE_SIZE(CGarage, 140);
|
||||
|
||||
class CGarages
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
void ProcessForDisplayCounter();
|
||||
};
|
||||
|
||||
static_assert(sizeof(COnscreenTimerEntry) == 0x74, "COnscreenTimerEntry: error");
|
||||
VALIDATE_SIZE(COnscreenTimerEntry, 0x74);
|
||||
|
||||
class COnscreenTimer
|
||||
{
|
||||
@ -46,4 +46,4 @@ public:
|
||||
void AddClock(uint32 offset, char* text);
|
||||
};
|
||||
|
||||
static_assert(sizeof(COnscreenTimer) == 0x78, "COnscreenTimer: error");
|
||||
VALIDATE_SIZE(COnscreenTimer, 0x78);
|
||||
|
@ -42,9 +42,7 @@ struct CPedPathNode
|
||||
CPedPathNode* next;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPedPathNode) == 0x10, "CPedPathNode: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPedPathNode, 0x10);
|
||||
|
||||
class CPedPath {
|
||||
public:
|
||||
@ -225,10 +223,7 @@ public:
|
||||
void DisplayPathData(void);
|
||||
};
|
||||
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPathFind) == 0x49bf4, "CPathFind: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPathFind, 0x49bf4);
|
||||
|
||||
extern CPathFind ThePaths;
|
||||
|
||||
|
@ -32,9 +32,7 @@ public:
|
||||
~CPhone() { }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPhone) == 0x34, "CPhone: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPhone, 0x34);
|
||||
|
||||
class CPhoneInfo {
|
||||
public:
|
||||
|
@ -47,9 +47,7 @@ private:
|
||||
void Remove();
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPickup) == 0x1C, "CPickup: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPickup, 0x1C);
|
||||
|
||||
struct tPickupMessage
|
||||
{
|
||||
|
@ -109,9 +109,7 @@ class CReplay
|
||||
CVector player_pos;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(tGeneralPacket) == 88, "tGeneralPacket: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(tGeneralPacket, 88);
|
||||
|
||||
struct tClockPacket
|
||||
{
|
||||
@ -121,7 +119,7 @@ class CReplay
|
||||
private:
|
||||
uint8 __align;
|
||||
};
|
||||
static_assert(sizeof(tClockPacket) == 4, "tClockPacket: error");
|
||||
VALIDATE_SIZE(tClockPacket, 4);
|
||||
|
||||
struct tWeatherPacket
|
||||
{
|
||||
@ -130,14 +128,14 @@ class CReplay
|
||||
uint8 new_weather;
|
||||
float interpolation;
|
||||
};
|
||||
static_assert(sizeof(tWeatherPacket) == 8, "tWeatherPacket: error");
|
||||
VALIDATE_SIZE(tWeatherPacket, 8);
|
||||
|
||||
struct tTimerPacket
|
||||
{
|
||||
uint8 type;
|
||||
uint32 timer;
|
||||
};
|
||||
static_assert(sizeof(tTimerPacket) == 8, "tTimerPacket: error");
|
||||
VALIDATE_SIZE(tTimerPacket, 8);
|
||||
|
||||
struct tPedHeaderPacket
|
||||
{
|
||||
@ -148,7 +146,7 @@ class CReplay
|
||||
private:
|
||||
uint8 __align[3];
|
||||
};
|
||||
static_assert(sizeof(tPedHeaderPacket) == 8, "tPedHeaderPacket: error");
|
||||
VALIDATE_SIZE(tPedHeaderPacket, 8);
|
||||
|
||||
struct tBulletTracePacket
|
||||
{
|
||||
@ -159,7 +157,7 @@ class CReplay
|
||||
CVector inf;
|
||||
CVector sup;
|
||||
};
|
||||
static_assert(sizeof(tBulletTracePacket) == 28, "tBulletTracePacket: error");
|
||||
VALIDATE_SIZE(tBulletTracePacket, 28);
|
||||
|
||||
struct tEndOfFramePacket
|
||||
{
|
||||
@ -167,7 +165,7 @@ class CReplay
|
||||
private:
|
||||
uint8 __align[3];
|
||||
};
|
||||
static_assert(sizeof(tEndOfFramePacket) == 4, "tEndOfFramePacket: error");
|
||||
VALIDATE_SIZE(tEndOfFramePacket, 4);
|
||||
|
||||
struct tPedUpdatePacket
|
||||
{
|
||||
@ -180,7 +178,7 @@ class CReplay
|
||||
int8 assoc_group_id;
|
||||
uint8 weapon_model;
|
||||
};
|
||||
static_assert(sizeof(tPedUpdatePacket) == 40, "tPedUpdatePacket: error");
|
||||
VALIDATE_SIZE(tPedUpdatePacket, 40);
|
||||
|
||||
struct tVehicleUpdatePacket
|
||||
{
|
||||
@ -205,7 +203,7 @@ class CReplay
|
||||
uint8 primary_color;
|
||||
uint8 secondary_color;
|
||||
};
|
||||
static_assert(sizeof(tVehicleUpdatePacket) == 48, "tVehicleUpdatePacket: error");
|
||||
VALIDATE_SIZE(tVehicleUpdatePacket, 48);
|
||||
|
||||
private:
|
||||
static uint8 Mode;
|
||||
|
@ -68,7 +68,9 @@ static const char* pCommandStrings[] = {
|
||||
"Save Movie", "Load Movie", "Play Movie", "END"
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(ARRAY_SIZE(pCommandStrings) == CSceneEdit::MOVIE_TOTAL_COMMANDS, "Scene edit: not all commands have names");
|
||||
#endif
|
||||
|
||||
static int32 NextValidModelId(int32 mi, int32 step)
|
||||
{
|
||||
|
@ -11205,7 +11205,9 @@ INITSAVEBUF
|
||||
WriteSaveBuf(buf, varSpace);
|
||||
for (uint32 i = 0; i < varSpace; i++)
|
||||
WriteSaveBuf(buf, ScriptSpace[i]);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(SCRIPT_DATA_SIZE == 968, "CTheScripts::SaveAllScripts");
|
||||
#endif
|
||||
uint32 script_data_size = SCRIPT_DATA_SIZE;
|
||||
WriteSaveBuf(buf, script_data_size);
|
||||
WriteSaveBuf(buf, OnAMissionFlag);
|
||||
@ -11631,12 +11633,16 @@ void CRunningScript::Save(uint8*& buf)
|
||||
for (int i = 0; i < 8; i++)
|
||||
WriteSaveBuf<char>(buf, m_abScriptName[i]);
|
||||
WriteSaveBuf<uint32>(buf, m_nIp);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(MAX_STACK_DEPTH == 6, "Compatibility loss: MAX_STACK_DEPTH != 6");
|
||||
#endif
|
||||
for (int i = 0; i < MAX_STACK_DEPTH; i++)
|
||||
WriteSaveBuf<uint32>(buf, m_anStack[i]);
|
||||
WriteSaveBuf<uint16>(buf, m_nStackPointer);
|
||||
SkipSaveBuf(buf, 2);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(NUM_LOCAL_VARS + NUM_TIMERS == 18, "Compatibility loss: NUM_LOCAL_VARS + NUM_TIMERS != 18");
|
||||
#endif
|
||||
for (int i = 0; i < NUM_LOCAL_VARS + NUM_TIMERS; i++)
|
||||
WriteSaveBuf<int32>(buf, m_anLocalVariables[i]);
|
||||
WriteSaveBuf<bool>(buf, m_bCondResult);
|
||||
@ -11662,12 +11668,16 @@ void CRunningScript::Load(uint8*& buf)
|
||||
for (int i = 0; i < 8; i++)
|
||||
m_abScriptName[i] = ReadSaveBuf<char>(buf);
|
||||
m_nIp = ReadSaveBuf<uint32>(buf);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(MAX_STACK_DEPTH == 6, "Compatibility loss: MAX_STACK_DEPTH != 6");
|
||||
#endif
|
||||
for (int i = 0; i < MAX_STACK_DEPTH; i++)
|
||||
m_anStack[i] = ReadSaveBuf<uint32>(buf);
|
||||
m_nStackPointer = ReadSaveBuf<uint16>(buf);
|
||||
SkipSaveBuf(buf, 2);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(NUM_LOCAL_VARS + NUM_TIMERS == 18, "Compatibility loss: NUM_LOCAL_VARS + NUM_TIMERS != 18");
|
||||
#endif
|
||||
for (int i = 0; i < NUM_LOCAL_VARS + NUM_TIMERS; i++)
|
||||
m_anLocalVariables[i] = ReadSaveBuf<int32>(buf);
|
||||
m_bCondResult = ReadSaveBuf<bool>(buf);
|
||||
|
@ -27,7 +27,7 @@ struct intro_script_rectangle
|
||||
~intro_script_rectangle() { }
|
||||
};
|
||||
|
||||
static_assert(sizeof(intro_script_rectangle) == 0x18, "Script.h: error");
|
||||
VALIDATE_SIZE(intro_script_rectangle, 0x18);
|
||||
|
||||
enum {
|
||||
SCRIPT_TEXT_MAX_LENGTH = 500
|
||||
@ -78,7 +78,7 @@ struct intro_text_line
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(sizeof(intro_text_line) == 0x414, "Script.h: error");
|
||||
VALIDATE_SIZE(intro_text_line, 0x414);
|
||||
|
||||
struct script_sphere_struct
|
||||
{
|
||||
|
@ -261,8 +261,8 @@ public:
|
||||
void Process_FollowCar_SA(const CVector &CameraTarget, float TargetOrientation, float, float);
|
||||
};
|
||||
|
||||
VALIDATE_SIZE(CCam, 0x1A4);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CCam) == 0x1A4, "CCam: wrong size");
|
||||
static_assert(offsetof(CCam, Alpha) == 0xA8, "CCam: error");
|
||||
static_assert(offsetof(CCam, Front) == 0x140, "CCam: error");
|
||||
#endif
|
||||
|
@ -23,9 +23,7 @@ struct CdReadInfo
|
||||
OVERLAPPED Overlapped;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
VALIDATE_SIZE(CdReadInfo, 0x30);
|
||||
#endif
|
||||
|
||||
char gCdImageNames[MAX_CDIMAGES+1][64];
|
||||
int32 gNumImages;
|
||||
|
@ -25,9 +25,7 @@ struct Queue
|
||||
int32 size;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
VALIDATE_SIZE(Queue, 0x10);
|
||||
#endif
|
||||
|
||||
void CdStreamInitThread(void);
|
||||
void CdStreamInit(int32 numChannels);
|
||||
|
@ -658,7 +658,7 @@ public:
|
||||
};
|
||||
|
||||
#ifndef IMPROVED_VIDEOMODE
|
||||
static_assert(sizeof(CMenuManager) == 0x564, "CMenuManager: error");
|
||||
VALIDATE_SIZE(CMenuManager, 0x564);
|
||||
#endif
|
||||
|
||||
extern CMenuManager FrontEndMenuManager;
|
||||
|
@ -32,6 +32,4 @@ public:
|
||||
bool IsWithinArea(float x1, float y1, float z1, float x2, float y2, float z2);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPlaceable) == 0x4C, "CPlaceable: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPlaceable, 0x4C);
|
||||
|
@ -81,6 +81,4 @@ public:
|
||||
~CPlayerInfo() { };
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPlayerInfo) == 0x13C, "CPlayerInfo: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPlayerInfo, 0x13C);
|
||||
|
@ -76,7 +76,9 @@ CSprite2d *CRadar::RadarSprites[RADAR_SPRITE_COUNT] = {
|
||||
|
||||
#define RADAR_NUM_TILES (8)
|
||||
#define RADAR_TILE_SIZE (RADAR_SIZE_X / RADAR_NUM_TILES)
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(RADAR_TILE_SIZE == (RADAR_SIZE_Y / RADAR_NUM_TILES), "CRadar: not a square");
|
||||
#endif
|
||||
|
||||
#define RADAR_MIN_RANGE (120.0f)
|
||||
#define RADAR_MAX_RANGE (350.0f)
|
||||
|
@ -71,7 +71,7 @@ struct sRadarTrace
|
||||
uint16 m_eBlipDisplay; // eBlipDisplay
|
||||
uint16 m_eRadarSprite; // eRadarSprite
|
||||
};
|
||||
static_assert(sizeof(sRadarTrace) == 0x30, "sRadarTrace: error");
|
||||
VALIDATE_SIZE(sRadarTrace, 0x30);
|
||||
|
||||
// Values for screen space
|
||||
#define RADAR_LEFT (40.0f)
|
||||
|
@ -54,6 +54,4 @@ public:
|
||||
static void SetMaximumWantedLevel(int32 level);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CWanted) == 0x204, "CWanted: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CWanted, 0x204);
|
||||
|
@ -46,10 +46,7 @@ public:
|
||||
CPtrList m_lists[NUMSECTORENTITYLISTS];
|
||||
};
|
||||
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CSector) == 0x28, "CSector: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CSector, 0x28);
|
||||
|
||||
class CEntity;
|
||||
struct CColPoint;
|
||||
|
@ -17,6 +17,5 @@ public:
|
||||
virtual bool GetIsATreadable(void) { return false; }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CBuilding) == 0x64, "CBuilding: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CBuilding, 0x64);
|
||||
|
||||
|
@ -16,6 +16,5 @@ public:
|
||||
static void operator delete(void*, size_t);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CDummy) == 0x68, "CDummy: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CDummy, 0x68);
|
||||
|
||||
|
@ -173,6 +173,4 @@ public:
|
||||
static void AddSteamsFromGround(CPtrList& list);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CEntity) == 0x64, "CEntity: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CEntity, 0x64);
|
||||
|
@ -161,6 +161,4 @@ public:
|
||||
bool CheckCollision_SimpleCar(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPhysical) == 0x128, "CPhysical: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPhysical, 0x128);
|
||||
|
@ -13,6 +13,5 @@ public:
|
||||
bool GetIsATreadable(void) { return true; }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CTreadable) == 0x94, "CTreadable: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CTreadable, 0x94);
|
||||
|
||||
|
@ -15,7 +15,7 @@ enum ModelInfoType : uint8
|
||||
MITYPE_PED = 6,
|
||||
MITYPE_XTRACOMPS = 7,
|
||||
};
|
||||
static_assert(sizeof(ModelInfoType) == 1, "ModeInfoType: error");
|
||||
VALIDATE_SIZE(ModelInfoType, 1);
|
||||
|
||||
class C2dEffect;
|
||||
|
||||
@ -70,6 +70,4 @@ public:
|
||||
uint16 GetNumRefs() const { return m_refCount; }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CBaseModelInfo) == 0x30, "CBaseModelInfo: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CBaseModelInfo, 0x30);
|
||||
|
@ -51,6 +51,4 @@ public:
|
||||
static RwFrame *GetFrameFromId(RpClump *clump, int32 id);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CClumpModelInfo) == 0x34, "CClumpModelInfo: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CClumpModelInfo, 0x34);
|
||||
|
@ -55,5 +55,5 @@ public:
|
||||
#endif
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CPedModelInfo) == 0x48, "CPedModelInfo: error");
|
||||
VALIDATE_SIZE(CPedModelInfo, 0x48);
|
||||
#endif
|
@ -50,6 +50,4 @@ public:
|
||||
m_atomics[2] = (RpAtomic*)m; }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CSimpleModelInfo) == 0x4C, "CSimpleModelInfo: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CSimpleModelInfo, 0x4C);
|
||||
|
@ -18,6 +18,4 @@ public:
|
||||
CTimeModelInfo *FindOtherTimeModel(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CTimeModelInfo, 0x58);
|
||||
|
@ -124,6 +124,4 @@ public:
|
||||
static void SetComponentsToUse(int8 c1, int8 c2) { ms_compsToUse[0] = c1; ms_compsToUse[1] = c2; }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CVehicleModelInfo) == 0x1F8, "CVehicleModelInfo: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CVehicleModelInfo, 0x1F8);
|
||||
|
@ -24,5 +24,5 @@ public:
|
||||
void PlayAnimation(const char *animName);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CCutsceneHead) == 0x19C, "CCutsceneHead: error");
|
||||
VALIDATE_SIZE(CCutsceneHead, 0x19C);
|
||||
#endif
|
||||
|
@ -29,5 +29,5 @@ public:
|
||||
void RemoveLighting(bool reset);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CCutsceneObject) == 0x198, "CCutsceneObject: error");
|
||||
VALIDATE_SIZE(CCutsceneObject, 0x198);
|
||||
#endif
|
||||
|
@ -11,6 +11,4 @@ public:
|
||||
CDummyObject(CObject *obj);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CDummyObject) == 0x68, "CDummyObject: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CDummyObject, 0x68);
|
||||
|
@ -98,6 +98,4 @@ public:
|
||||
static void DeleteAllTempObjectsInArea(CVector point, float fRadius);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CObject) == 0x198, "CObject: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CObject, 0x198);
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
uint8 m_nSpecialCollisionResponseCases;
|
||||
bool m_bCameraToAvoidThisObject;
|
||||
};
|
||||
static_assert(sizeof(CObjectInfo) == 0x20, "CObjectInfo: error");
|
||||
VALIDATE_SIZE(CObjectInfo, 0x20);
|
||||
|
||||
class CObjectData
|
||||
{
|
||||
|
@ -12,5 +12,5 @@ public:
|
||||
void ProcessControl(void);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CCivilianPed) == 0x53C, "CCivilianPed: error");
|
||||
VALIDATE_SIZE(CCivilianPed, 0x53C);
|
||||
#endif
|
||||
|
@ -37,5 +37,5 @@ public:
|
||||
};
|
||||
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CCopPed) == 0x558, "CCopPed: error");
|
||||
VALIDATE_SIZE(CCopPed, 0x558);
|
||||
#endif
|
||||
|
@ -9,6 +9,4 @@ class CDummyPed : CDummy
|
||||
int32 unknown;
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CDummyPed) == 0x70, "CDummyPed: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CDummyPed, 0x70);
|
||||
|
@ -37,5 +37,5 @@ public:
|
||||
void MedicAI(void);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CEmergencyPed) == 0x554, "CEmergencyPed: error");
|
||||
VALIDATE_SIZE(CEmergencyPed, 0x554);
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@ struct CGangInfo
|
||||
CGangInfo();
|
||||
};
|
||||
|
||||
static_assert(sizeof(CGangInfo) == 0x10, "CGangInfo: error");
|
||||
VALIDATE_SIZE(CGangInfo, 0x10);
|
||||
|
||||
enum {
|
||||
GANG_MAFIA = 0,
|
||||
|
@ -82,7 +82,7 @@ struct FightMove
|
||||
uint8 damage;
|
||||
uint8 flags;
|
||||
};
|
||||
static_assert(sizeof(FightMove) == 0x18, "FightMove: error");
|
||||
VALIDATE_SIZE(FightMove, 0x18);
|
||||
|
||||
// TODO: This is eFightState on mobile.
|
||||
enum PedFightMoves
|
||||
@ -896,6 +896,7 @@ public:
|
||||
void FinishFuckUCB(CAnimBlendAssociation *assoc, void *arg);
|
||||
|
||||
#ifndef PED_SKIN
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(offsetof(CPed, m_nPedState) == 0x224, "CPed: error");
|
||||
static_assert(offsetof(CPed, m_pCurSurface) == 0x2FC, "CPed: error");
|
||||
static_assert(offsetof(CPed, m_pMyVehicle) == 0x310, "CPed: error");
|
||||
@ -907,5 +908,6 @@ static_assert(offsetof(CPed, m_lookTimer) == 0x4CC, "CPed: error");
|
||||
static_assert(offsetof(CPed, m_bodyPartBleeding) == 0x4F2, "CPed: error");
|
||||
static_assert(offsetof(CPed, m_pedInObjective) == 0x16C, "CPed: error");
|
||||
static_assert(offsetof(CPed, m_pEventEntity) == 0x19C, "CPed: error");
|
||||
static_assert(sizeof(CPed) == 0x53C, "CPed: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPed, 0x53C);
|
||||
#endif
|
||||
|
@ -65,6 +65,4 @@ public:
|
||||
bool RestoreLookAt(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPedIK) == 0x28, "CPedIK: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPedIK, 0x28);
|
||||
|
@ -76,4 +76,5 @@ public:
|
||||
static void LoadPedStats(void);
|
||||
static ePedStats GetPedStatType(char *name);
|
||||
};
|
||||
static_assert(sizeof(CPedStats) == 0x34, "CPedStats: error");
|
||||
|
||||
VALIDATE_SIZE(CPedStats, 0x34);
|
||||
|
@ -91,4 +91,4 @@ public:
|
||||
static bool IsThreat(int type, int threat) { return ms_apPedType[type]->m_threats & threat; }
|
||||
};
|
||||
|
||||
static_assert(sizeof(CPedType) == 0x20, "CPedType: error");
|
||||
VALIDATE_SIZE(CPedType, 0x20);
|
||||
|
@ -85,5 +85,5 @@ public:
|
||||
};
|
||||
|
||||
#ifndef PED_SKIN
|
||||
static_assert(sizeof(CPlayerPed) == 0x5F0, "CPlayerPed: error");
|
||||
VALIDATE_SIZE(CPlayerPed, 0x5F0);
|
||||
#endif
|
||||
|
@ -90,6 +90,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(C2dEffect) == 0x34, "C2dEffect: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(C2dEffect, 0x34);
|
||||
|
@ -39,9 +39,7 @@ struct CRegisteredCorona
|
||||
void Update(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CRegisteredCorona) == 0x80, "CRegisteredCorona: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CRegisteredCorona, 0x80);
|
||||
|
||||
class CCoronas
|
||||
{
|
||||
|
@ -21,9 +21,7 @@ public:
|
||||
void Render(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
VALIDATE_SIZE(CFallingGlassPane, 0x70);
|
||||
#endif
|
||||
|
||||
enum
|
||||
{
|
||||
|
@ -91,6 +91,4 @@ public:
|
||||
static void AddYardieDoorSmoke(CVector const &vecPos, CMatrix const &matMatrix);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
VALIDATE_SIZE(CParticle, 0x68);
|
||||
#endif
|
@ -13,7 +13,7 @@ public:
|
||||
int8 fogType;
|
||||
bool castExtraShadows;
|
||||
};
|
||||
static_assert(sizeof(CRegisteredPointLight) == 0x2C, "CRegisteredPointLight: error");
|
||||
VALIDATE_SIZE(CRegisteredPointLight, 0x2C);
|
||||
|
||||
class CPointLights
|
||||
{
|
||||
|
@ -124,9 +124,8 @@ public:
|
||||
CPermanentShadow()
|
||||
{ }
|
||||
};
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
|
||||
VALIDATE_SIZE(CPermanentShadow, 0x38);
|
||||
#endif
|
||||
|
||||
class CPtrList;
|
||||
class CAutomobile;
|
||||
|
@ -25,7 +25,7 @@ public:
|
||||
void PushPeds(void);
|
||||
};
|
||||
|
||||
static_assert(sizeof(CWaterCannon) == 412, "CWaterCannon: error");
|
||||
VALIDATE_SIZE(CWaterCannon, 412);
|
||||
|
||||
class CWaterCannons
|
||||
{
|
||||
|
@ -90,9 +90,7 @@ static psGlobalType PsGlobal;
|
||||
#include "Sprite2d.h"
|
||||
#include "AnimViewer.h"
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
VALIDATE_SIZE(psGlobalType, 0x28);
|
||||
#endif
|
||||
|
||||
// DirectShow interfaces
|
||||
IGraphBuilder *pGB = nil;
|
||||
|
@ -14,9 +14,7 @@ struct CKeyEntry
|
||||
};
|
||||
|
||||
// If this fails, CKeyArray::Load will have to be fixed
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CKeyEntry) == 12, "CKeyEntry: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CKeyEntry, 12);
|
||||
|
||||
class CKeyArray
|
||||
{
|
||||
|
@ -197,9 +197,7 @@ public:
|
||||
static void SetAllTaxiLights(bool set);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CAutomobile) == 0x5A8, "CAutomobile: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CAutomobile, 0x5A8);
|
||||
|
||||
inline uint8 GetCarDoorFlag(int32 carnode) {
|
||||
switch (carnode) {
|
||||
|
@ -72,9 +72,7 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CBoat) == 0x484, "CBoat: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CBoat, 0x484);
|
||||
|
||||
extern float MAX_WAKE_LENGTH;
|
||||
extern float MIN_WAKE_INTERVAL;
|
||||
|
@ -72,9 +72,7 @@ public:
|
||||
float GetHeightToDropoffHeight() { return m_fDropoffHeight + (m_bIsCrusher ? 7.0f : 2.0f); }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CCrane) == 128, "CCrane: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CCrane, 128);
|
||||
|
||||
class CCranes
|
||||
{
|
||||
|
@ -96,6 +96,5 @@ public:
|
||||
static void ActivateHeli(bool activate);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CHeli) == 0x33C, "CHeli: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CHeli, 0x33C);
|
||||
|
||||
|
@ -64,9 +64,7 @@ public:
|
||||
static bool HasDropOffCesnaBeenShotDown(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPlane) == 0x29C, "CPlane: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPlane, 0x29C);
|
||||
|
||||
extern float LandingPoint;
|
||||
extern float TakeOffPoint;
|
||||
|
@ -92,6 +92,4 @@ public:
|
||||
static void UpdateTrains(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CTrain) == 0x2E4, "CTrain: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CTrain, 0x2E4);
|
||||
|
@ -291,8 +291,8 @@ public:
|
||||
static bool m_bDisableMouseSteering;
|
||||
};
|
||||
|
||||
VALIDATE_SIZE(CVehicle, 0x288);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CVehicle) == 0x288, "CVehicle: error");
|
||||
static_assert(offsetof(CVehicle, m_pCurGroundEntity) == 0x1E0, "CVehicle: error");
|
||||
static_assert(offsetof(CVehicle, m_nAlarmState) == 0x1A0, "CVehicle: error");
|
||||
static_assert(offsetof(CVehicle, m_nLastWeaponDamage) == 0x228, "CVehicle: error");
|
||||
|
@ -46,4 +46,4 @@ public:
|
||||
static void Shutdown(void);
|
||||
};
|
||||
|
||||
static_assert(sizeof(CWeaponInfo) == 0x54, "CWeaponInfo: error");
|
||||
VALIDATE_SIZE(CWeaponInfo, 0x54);
|
Loading…
Reference in New Issue
Block a user