Fix size assertions

This commit is contained in:
Joshua Peisach 2023-08-22 19:27:51 -04:00
parent e378ad4224
commit 35382ac9e5
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
8 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,5 @@
#include "bike.h" #include "bike.h"
#include "decomp.h"
DECOMP_SIZE_ASSERT(Bike, 0x164); DECOMP_SIZE_ASSERT(Bike, 0x164);
// OFFSET: LEGO1 0x10076670 // OFFSET: LEGO1 0x10076670

View File

@ -1,6 +1,7 @@
#ifndef BIKE_H #ifndef BIKE_H
#define BIKE_H #define BIKE_H
#include "decomp.h"
#include "islepathactor.h" #include "islepathactor.h"
// VTABLE 0x100d9808 // VTABLE 0x100d9808
@ -22,7 +23,9 @@ class Bike : public IslePathActor
{ {
return !strcmp(name, Bike::ClassName()) || IslePathActor::IsA(name); return !strcmp(name, Bike::ClassName()) || IslePathActor::IsA(name);
} }
private:
// TODO: Bike fields
undefined m_unk160[4];
}; };

View File

@ -1,7 +1,5 @@
#include "jetski.h" #include "jetski.h"
#include "decomp.h"
DECOMP_SIZE_ASSERT(Jetski, 0x164); DECOMP_SIZE_ASSERT(Jetski, 0x164);
// OFFSET: LEGO1 0x1007e3b0 // OFFSET: LEGO1 0x1007e3b0

View File

@ -1,6 +1,7 @@
#ifndef JETSKI_H #ifndef JETSKI_H
#define JETSKI_H #define JETSKI_H
#include "decomp.h"
#include "islepathactor.h" #include "islepathactor.h"
// VTABLE 0x100d9ec8 // VTABLE 0x100d9ec8
@ -22,7 +23,9 @@ class Jetski : public IslePathActor
{ {
return !strcmp(name, Jetski::ClassName()) || IslePathActor::IsA(name); return !strcmp(name, Jetski::ClassName()) || IslePathActor::IsA(name);
} }
private:
// TODO: Jetski fields
undefined m_unk160[4];
}; };

View File

@ -1,7 +1,5 @@
#include "racecar.h" #include "racecar.h"
#include "decomp.h"
DECOMP_SIZE_ASSERT(RaceCar, 0x164); DECOMP_SIZE_ASSERT(RaceCar, 0x164);
// OFFSET: LEGO1 0x10028200 // OFFSET: LEGO1 0x10028200

View File

@ -1,6 +1,7 @@
#ifndef RACECAR_H #ifndef RACECAR_H
#define RACECAR_H #define RACECAR_H
#include "decomp.h"
#include "islepathactor.h" #include "islepathactor.h"
// VTABLE 0x100d6918 // VTABLE 0x100d6918
@ -23,7 +24,9 @@ class RaceCar : public IslePathActor
{ {
return !strcmp(name, RaceCar::ClassName()) || IslePathActor::IsA(name); return !strcmp(name, RaceCar::ClassName()) || IslePathActor::IsA(name);
} }
private:
// TODO: RaceCar fields
undefined m_unk160[4];
}; };
#endif // RACECAR_H #endif // RACECAR_H

View File

@ -1,7 +1,5 @@
#include "towtrack.h" #include "towtrack.h"
#include "decomp.h"
DECOMP_SIZE_ASSERT(TowTrack, 0x180); DECOMP_SIZE_ASSERT(TowTrack, 0x180);
// OFFSET: LEGO1 0x1004c720 // OFFSET: LEGO1 0x1004c720

View File

@ -26,7 +26,7 @@ class TowTrack : public IslePathActor
private: private:
// TODO: TowTrack field types // TODO: TowTrack field types
undefined m_unk160[0x4]; undefined m_unk154[0x8];
MxS32 m_unk164; MxS32 m_unk164;
MxS16 m_unk168; MxS16 m_unk168;
MxS16 m_unk16a; MxS16 m_unk16a;