Add size assertions for legoomni and fix sizes

This commit is contained in:
Nathan 2024-03-22 17:53:03 -04:00
parent 7ff8f85d65
commit 6c9f888ea3
90 changed files with 313 additions and 55 deletions

View file

@ -1,3 +1,6 @@
#ifndef ACT2ACTOR_H
#define ACT2ACTOR_H
#include "legoanimactor.h" #include "legoanimactor.h"
/* /*
@ -6,6 +9,7 @@
*/ */
// SIZE 0x1a8 // SIZE 0x1a8
class Act2Actor : public LegoAnimActor { class Act2Actor : public LegoAnimActor {
public:
Act2Actor(); Act2Actor();
// SYNTHETIC: LEGO1 0x1001a090 // SYNTHETIC: LEGO1 0x1001a090
@ -14,3 +18,5 @@ class Act2Actor : public LegoAnimActor {
private: private:
undefined m_unk0x1c[0x34]; // 0x1c undefined m_unk0x1c[0x34]; // 0x1c
}; };
#endif // ACT2ACTOR_H

View file

@ -30,6 +30,14 @@ class Act2Brick : public LegoPathActor {
// SYNTHETIC: LEGO1 0x1007a450 // SYNTHETIC: LEGO1 0x1007a450
// Act2Brick::`scalar deleting destructor' // Act2Brick::`scalar deleting destructor'
private:
undefined4 m_unk0x154; // 0x154
undefined m_unk0x158[0x0c]; // 0x158
undefined4 m_unk0x164; // 0x164
Mx3DPointFloat m_unk0x168; // 0x168
Mx3DPointFloat m_unk0x17c; // 0x17c
undefined4 m_unk0x190; // 0x190
}; };
#endif // ACT2BRICK_H #endif // ACT2BRICK_H

View file

@ -18,6 +18,9 @@ class Act3Actor : public LegoAnimActor {
// STRING: LEGO1 0x100f03ac // STRING: LEGO1 0x100f03ac
return "Act3Actor"; return "Act3Actor";
} }
private:
undefined4 m_unk0x1c; // 0x1c
}; };
#endif // ACT3ACTOR_H #endif // ACT3ACTOR_H

View file

@ -34,6 +34,12 @@ class Act3Shark : public LegoAnimActor {
// SYNTHETIC: LEGO1 0x10043020 // SYNTHETIC: LEGO1 0x10043020
// Act3Shark::`scalar deleting destructor' // Act3Shark::`scalar deleting destructor'
list<void*> m_unk0x1c; // 0x1c
undefined4 m_unk0x28; // 0x28
undefined4 m_unk0x2c; // 0x2c
undefined m_unk0x30[0x0c]; // 0x30
Mx3DPointFloat m_unk0x3c; // 0x3c
}; };
#endif // ACT3SHARK_H #endif // ACT3SHARK_H

View file

@ -26,6 +26,15 @@ class Doors : public LegoPathActor {
// SYNTHETIC: LEGO1 0x1000e580 // SYNTHETIC: LEGO1 0x1000e580
// Doors::`scalar deleting destructor' // Doors::`scalar deleting destructor'
private:
undefined4 m_unk0x154; // 0x154
undefined4 m_unk0x158; // 0x158
undefined4 m_unk0x15c; // 0x15c
undefined4 m_unk0x160; // 0x160
MxMatrix m_unk0x164; // 0x164
MxMatrix m_unk0x1ac; // 0x1fc
undefined4 m_unk0x1f4; // 0x1f4
}; };
#endif // DOORS_H #endif // DOORS_H

View file

@ -1,6 +1,7 @@
#ifndef LEGOACT2_H #ifndef LEGOACT2_H
#define LEGOACT2_H #define LEGOACT2_H
#include "act2brick.h"
#include "legocarraceactor.h" #include "legocarraceactor.h"
#include "legopathactor.h" #include "legopathactor.h"
#include "legoworld.h" #include "legoworld.h"
@ -20,6 +21,28 @@ class LegoAct2 : public LegoWorld {
// SYNTHETIC: LEGO1 0x1004fe20 // SYNTHETIC: LEGO1 0x1004fe20
// LegoAct2::`scalar deleting destructor' // LegoAct2::`scalar deleting destructor'
Act2Brick m_bricks[10]; // 0xf8
undefined m_unk0x10c0; // 0x10c0
undefined m_unk0x10c1; // 0x10c1
undefined m_unk0x10c2; // 0x10c2
undefined4 m_unk0x10c4; // 0x10c4
undefined4 m_unk0x10c8; // 0x10c8
undefined4 m_unk0x10cc; // 0x10cc
undefined4 m_unk0x10d0; // 0x10d0
char* m_unk0x10d4; // 0x10d4
undefined4 m_unk0x10d8; // 0x10d8
MxMatrix m_unk0x10dc; // 0x10dc
undefined4 m_unk0x1124; // 0x1124
undefined4 m_unk0x1128; // 0x1128
undefined4 m_unk0x112c; // 0x112c
undefined4 m_unk0x1130; // 0x1130
undefined4 m_unk0x1134; // 0x1134
undefined4 m_unk0x1138; // 0x1138
undefined m_unk0x113c; // 0x113c
undefined4 m_unk0x1140; // 0x1140
undefined4 m_unk0x1144; // 0x1144
undefined m_unk0x1148[0x08]; // 0x1148
undefined4 m_unk0x1150; // 0x1150
}; };
#endif // LEGOACT2_H #endif // LEGOACT2_H

View file

@ -35,8 +35,8 @@ class LegoAnimActor : public virtual LegoPathActor {
// LegoAnimActor::`scalar deleting destructor' // LegoAnimActor::`scalar deleting destructor'
private: private:
vector<void*> m_vector; // 0x00 vector<void*> m_unk0x08; // 0x08
MxU16 m_index; // 0x14 MxU16 m_index; // 0x18
}; };
#endif // LEGOANIMACTOR_H #endif // LEGOANIMACTOR_H

View file

@ -10,7 +10,7 @@ class LegoWorld;
class LegoAnimClass; class LegoAnimClass;
// VTABLE: LEGO1 0x100d90c8 // VTABLE: LEGO1 0x100d90c8
// SIZE 0xc0 // SIZE 0xbc
class LegoAnimPresenter : public MxVideoPresenter { class LegoAnimPresenter : public MxVideoPresenter {
public: public:
enum { enum {
@ -93,7 +93,6 @@ class LegoAnimPresenter : public MxVideoPresenter {
undefined4 m_unk0xa0; // 0xa0 undefined4 m_unk0xa0; // 0xa0
undefined4 m_unk0xa4; // 0xa4 undefined4 m_unk0xa4; // 0xa4
Mx3DPointFloat m_unk0xa8; // 0xa8 Mx3DPointFloat m_unk0xa8; // 0xa8
undefined4 m_unk0xbc; // 0xbc
}; };
// SYNTHETIC: LEGO1 0x10068650 // SYNTHETIC: LEGO1 0x10068650

View file

@ -34,6 +34,59 @@ class LegoCarBuild : public LegoWorld {
// SYNTHETIC: LEGO1 0x10022a60 // SYNTHETIC: LEGO1 0x10022a60
// LegoCarBuild::`scalar deleting destructor' // LegoCarBuild::`scalar deleting destructor'
private:
undefined4 m_unk0xf8; // 0xf8
undefined m_unk0xfc[0x8]; // 0xfc
undefined4 m_unk0x104; // 0x104
undefined m_unk0x108; // 0x108
undefined m_unk0x109; // 0x109
undefined4 m_unk0x10c; // 0x10c
undefined4 m_unk0x110; // 0x110
Mx3DPointFloat m_unk0x114; // 0x114
undefined4 m_unk0x128; // 0x128
MxMatrix m_unk0x12c; // 0x12c
undefined m_unk0x174; // 0x174
MxMatrix m_unk0x178; // 0x178
MxMatrix m_unk0x1c0; // 0x1c0
MxMatrix m_unk0x208; // 0x208
undefined m_unk0x250[0x08]; // 0x250
undefined4 m_unk0x258; // 0x258
Mx4DPointFloat m_unk0x25c; // 0x25c
Mx4DPointFloat m_unk0x274; // 0x274
undefined m_unk0x28c[0x18]; // 0x28c
Mx4DPointFloat m_unk0x2a4; // 0x2a4
Mx4DPointFloat m_unk0x2bc; // 0x2bc
undefined m_unk0x2d4; // 0x2d4
undefined4 m_unk0x2dc; // 0x2dc
undefined4 m_unk0x2e0; // 0x2e0
undefined4 m_unk0x2e4; // 0x2e4
undefined4 m_unk0x2e8; // 0x2e8
undefined4 m_unk0x2ec; // 0x2ec
undefined4 m_unk0x2f0; // 0x2f0
undefined4 m_unk0x2f4; // 0x2f4
undefined4 m_unk0x2f8; // 0x2f8
undefined4 m_unk0x2fc; // 0x2fc
undefined4 m_unk0x300; // 0x300
undefined4 m_unk0x304; // 0x304
undefined4 m_unk0x308; // 0x308
undefined4 m_unk0x30c; // 0x30c
undefined4 m_unk0x310; // 0x310
undefined4 m_unk0x314; // 0x314
undefined4 m_unk0x318; // 0x318
undefined4 m_unk0x31c; // 0x31c
undefined4 m_unk0x320; // 0x320
undefined4 m_unk0x324; // 0x324
undefined4 m_unk0x328; // 0x328
undefined4 m_unk0x2d8; // 0x2d8
undefined4 m_unk0x32c; // 0x32c
undefined4 m_unk0x330; // 0x330
undefined4 m_unk0x334; // 0x334
undefined4 m_unk0x338; // 0x338
undefined4 m_unk0x33c; // 0x33c
undefined4 m_unk0x340; // 0x340
undefined4 m_unk0x344; // 0x344
undefined4 m_unk0x348; // 0x348
}; };
#endif // LEGOCARBUILD_H #endif // LEGOCARBUILD_H

View file

@ -31,6 +31,24 @@ class LegoCarBuildAnimPresenter : public LegoAnimPresenter {
// SYNTHETIC: LEGO1 0x10078660 // SYNTHETIC: LEGO1 0x10078660
// LegoCarBuildAnimPresenter::`scalar deleting destructor' // LegoCarBuildAnimPresenter::`scalar deleting destructor'
private:
undefined2 m_unk0xbc; // 0xbc
undefined2 m_unk0xbe; // 0xbe
undefined2 m_unk0xc0; // 0xc0
undefined4 m_unk0xc4; // 0xc4
LegoAnim m_unk0xc8; // 0xc8
MxMatrix m_unk0xe0; // 0xe0
undefined4 m_unk0x128; // 0x128
undefined4 m_unk0x12c; // 0x12c
undefined4 m_unk0x130; // 0x130
undefined4 m_unk0x134; // 0x134
undefined4 m_unk0x138; // 0x138
undefined4 m_unk0x13c; // 0x13c
undefined4 m_unk0x140; // 0x140
MxS32 m_unk0x144; // 0x144
MxS32 m_unk0x148; // 0x148
undefined4 m_unk0x14c; // 0x14c
}; };
#endif // LEGOCARBUILDANIMPRESENTER_H #endif // LEGOCARBUILDANIMPRESENTER_H

View file

@ -47,7 +47,7 @@ class LegoCarRaceActor : public virtual LegoRaceActor {
virtual void FUN_10012bf0(float p_unk0x18) { m_unk0x18 = p_unk0x18; } virtual void FUN_10012bf0(float p_unk0x18) { m_unk0x18 = p_unk0x18; }
// FUNCTION: LEGO1 0x10012c00 // FUNCTION: LEGO1 0x10012c00
virtual float FUN_10012c00() { return m_unk0x18; } virtual float FUN_10012c00() { return m_unk0x18; }
virtual void FUN_10080740(); virtual void VTable0x1c(); // vtable+0x1c
// SYNTHETIC: LEGO1 0x10081610 // SYNTHETIC: LEGO1 0x10081610
// LegoCarRaceActor::`scalar deleting destructor' // LegoCarRaceActor::`scalar deleting destructor'

View file

@ -30,6 +30,7 @@ class LegoJetskiRaceActor : public virtual LegoCarRaceActor {
void VTable0x70(float p_float) override; // vtable+0x70 void VTable0x70(float p_float) override; // vtable+0x70
void VTable0x98() override; // vtable+0x98 void VTable0x98() override; // vtable+0x98
void VTable0x9c() override; // vtable+0x9c void VTable0x9c() override; // vtable+0x9c
void VTable0x1c() override; // vtable+0x1c
// SYNTHETIC: LEGO1 0x10081d40 // SYNTHETIC: LEGO1 0x10081d40
// LegoJetskiRaceActor::`scalar deleting destructor' // LegoJetskiRaceActor::`scalar deleting destructor'

View file

@ -22,6 +22,9 @@ class LegoLoopingAnimPresenter : public LegoAnimPresenter {
void StreamingTickle() override; // vtable+0x20 void StreamingTickle() override; // vtable+0x20
void PutFrame() override; // vtable+0x6c void PutFrame() override; // vtable+0x6c
private:
undefined4 m_unk0xbc; // 0xbc
}; };
// SYNTHETIC: LEGO1 0x1006d000 // SYNTHETIC: LEGO1 0x1006d000

View file

@ -59,8 +59,8 @@
X(DuneBuggy) \ X(DuneBuggy) \
X(Pizza) \ X(Pizza) \
X(PizzaMissionState) \ X(PizzaMissionState) \
/*X(Act2Actor)*/ \ X(Act2Actor) \
/*X(Act2Brick)*/ \ X(Act2Brick) \
/*X(Act2GenActor)*/ \ /*X(Act2GenActor)*/ \
X(Act2PoliceStation) \ X(Act2PoliceStation) \
X(Act3) \ X(Act3) \
@ -98,7 +98,7 @@
X(MxCompositeMediaPresenter) \ X(MxCompositeMediaPresenter) \
X(JukeBox) \ X(JukeBox) \
X(JukeBoxState) \ X(JukeBoxState) \
/*X(RaceSkel)*/ \ X(RaceSkel) \
X(AnimState) X(AnimState)
// VTABLE: LEGO1 0x100d4768 // VTABLE: LEGO1 0x100d4768

View file

@ -38,6 +38,19 @@ class LegoPathController : public MxCore {
undefined4 FUN_10046770(IslePathActor* p_actor); undefined4 FUN_10046770(IslePathActor* p_actor);
MxResult FUN_10046b30(LegoPathBoundary** p_path, MxS32& p_value); MxResult FUN_10046b30(LegoPathBoundary** p_path, MxS32& p_value);
void Enable(MxBool p_enable); void Enable(MxBool p_enable);
private:
undefined4 m_unk0x08; // 0x08
undefined4 m_unk0x0c; // 0x0c
undefined4 m_unk0x10; // 0x10
undefined4 m_unk0x14; // 0x14
undefined2 m_unk0x18; // 0x18
undefined2 m_unk0x1a; // 0x1a
undefined2 m_unk0x1c; // 0x1c
undefined2 m_unk0x1e; // 0x1e
// These 2 are some sort of template class
undefined m_unk0x20[0x10]; // 0x20
undefined m_unk0x30[0x10]; // 0x30
}; };
#endif // LEGOPATHCONTROLLER_H #endif // LEGOPATHCONTROLLER_H

View file

@ -45,7 +45,9 @@ class LegoRaceCar : public LegoCarRaceActor, public LegoRaceMap {
// SYNTHETIC: LEGO1 0x10014230 // SYNTHETIC: LEGO1 0x10014230
// LegoRaceCar::`scalar deleting destructor' // LegoRaceCar::`scalar deleting destructor'
byte m_unk0x54; // 0x54
private:
undefined m_unk0x54; // 0x54
undefined4 m_unk0x58; // 0x58 undefined4 m_unk0x58; // 0x58
Mx3DPointFloat m_unk0x5c; // 0x5c Mx3DPointFloat m_unk0x5c; // 0x5c
undefined4 m_unk0x70; // 0x70 undefined4 m_unk0x70; // 0x70

View file

@ -7,6 +7,8 @@
// SIZE 0x84 // SIZE 0x84
class Pizzeria : public IsleActor { class Pizzeria : public IsleActor {
public: public:
Pizzeria() : m_unk0x7c(0) {}
// FUNCTION: LEGO1 0x1000e780 // FUNCTION: LEGO1 0x1000e780
inline const char* ClassName() const override // vtable+0x0c inline const char* ClassName() const override // vtable+0x0c
{ {
@ -24,6 +26,11 @@ class Pizzeria : public IsleActor {
// SYNTHETIC: LEGO1 0x1000e8d0 // SYNTHETIC: LEGO1 0x1000e8d0
// Pizzeria::`scalar deleting destructor' // Pizzeria::`scalar deleting destructor'
private:
undefined4 m_unk0x78; // 0x78
undefined4 m_unk0x7c; // 0x7c
undefined4 m_unk0x80; // 0x80
}; };
#endif // PIZZERIA_H #endif // PIZZERIA_H

View file

@ -3,8 +3,17 @@
#include "legostate.h" #include "legostate.h"
// SIZE 0x14
struct PizzeriaStateStruct {
undefined4 m_unk0x00; // 0x00
undefined4 m_unk0x04; // 0x04
undefined4 m_unk0x08; // 0x08
undefined4 m_unk0x0c; // 0x0c
undefined4 m_unk0x10; // 0x10
};
// VTABLE: LEGO1 0x100d5ee8 // VTABLE: LEGO1 0x100d5ee8
// SIZE 0xb4 // SIZE 0x58
class PizzeriaState : public LegoState { class PizzeriaState : public LegoState {
public: public:
PizzeriaState(); PizzeriaState();
@ -26,6 +35,10 @@ class PizzeriaState : public LegoState {
// SYNTHETIC: LEGO1 0x10017ce0 // SYNTHETIC: LEGO1 0x10017ce0
// PizzeriaState::`scalar deleting destructor' // PizzeriaState::`scalar deleting destructor'
private:
Playlist m_unk0x08[5]; // 0x08
PizzeriaStateStruct m_unk0x44; // 0x44
}; };
#endif // PIZZERIASTATE_H #endif // PIZZERIASTATE_H

View file

@ -11,6 +11,9 @@
class RaceSkel : public LegoAnimActor { class RaceSkel : public LegoAnimActor {
public: public:
RaceSkel(); RaceSkel();
private:
undefined4 m_unk0x1c; // 0x1c
}; };
#endif // RACESKEL_H #endif // RACESKEL_H

View file

@ -1,5 +1,7 @@
#include "act3shark.h" #include "act3shark.h"
DECOMP_SIZE_ASSERT(Act3Shark, 0x1a8)
// STUB: LEGO1 0x1001a1c0 // STUB: LEGO1 0x1001a1c0
void Act3Shark::VTable0x74(Matrix4& p_transform) void Act3Shark::VTable0x74(Matrix4& p_transform)
{ {

View file

@ -1,5 +1,7 @@
#include "act3state.h" #include "act3state.h"
DECOMP_SIZE_ASSERT(Act3State, 0x0c)
// FUNCTION: LEGO1 0x1000e2f0 // FUNCTION: LEGO1 0x1000e2f0
MxBool Act3State::VTable0x14() MxBool Act3State::VTable0x14()
{ {

View file

@ -1,5 +1,7 @@
#include "act2actor.h" #include "act2actor.h"
DECOMP_SIZE_ASSERT(Act2Actor, 0x1a8)
// STUB: LEGO1 0x100187e0 // STUB: LEGO1 0x100187e0
Act2Actor::Act2Actor() Act2Actor::Act2Actor()
{ {

View file

@ -1,7 +1,9 @@
#include "act3actor.h" #include "act3actor.h"
DECOMP_SIZE_ASSERT(Act3Actor, 0x178)
// STUB: LEGO1 0x1003fa50 // STUB: LEGO1 0x1003fa50
Act3Actor::Act3Actor() Act3Actor::Act3Actor()
{ {
// TODO m_unk0x1c = 0;
} }

View file

@ -2,7 +2,7 @@
#include "decomp.h" #include "decomp.h"
DECOMP_SIZE_ASSERT(Ambulance, 0x184); DECOMP_SIZE_ASSERT(Ambulance, 0x184)
// FUNCTION: LEGO1 0x10035ee0 // FUNCTION: LEGO1 0x10035ee0
Ambulance::Ambulance() Ambulance::Ambulance()

View file

@ -8,7 +8,7 @@
#include "legoworld.h" #include "legoworld.h"
#include "misc.h" #include "misc.h"
DECOMP_SIZE_ASSERT(Bike, 0x164); DECOMP_SIZE_ASSERT(Bike, 0x164)
// FUNCTION: LEGO1 0x10076670 // FUNCTION: LEGO1 0x10076670
Bike::Bike() Bike::Bike()

View file

@ -1,5 +1,7 @@
#include "bumpbouy.h" #include "bumpbouy.h"
DECOMP_SIZE_ASSERT(BumpBouy, 0x174)
// STUB: LEGO1 0x1000fd00 // STUB: LEGO1 0x1000fd00
void BumpBouy::ParseAction(char*) void BumpBouy::ParseAction(char*)
{ {

View file

@ -1,5 +1,7 @@
#include "doors.h" #include "doors.h"
DECOMP_SIZE_ASSERT(Doors, 0x1f8)
// STUB: LEGO1 0x10066100 // STUB: LEGO1 0x10066100
MxS32 Doors::VTable0x94() MxS32 Doors::VTable0x94()
{ {

View file

@ -2,7 +2,7 @@
#include "decomp.h" #include "decomp.h"
DECOMP_SIZE_ASSERT(DuneBuggy, 0x16c); DECOMP_SIZE_ASSERT(DuneBuggy, 0x16c)
// FUNCTION: LEGO1 0x10067bb0 // FUNCTION: LEGO1 0x10067bb0
DuneBuggy::DuneBuggy() DuneBuggy::DuneBuggy()

View file

@ -1,6 +1,6 @@
#include "jetski.h" #include "jetski.h"
DECOMP_SIZE_ASSERT(Jetski, 0x164); DECOMP_SIZE_ASSERT(Jetski, 0x164)
// FUNCTION: LEGO1 0x1007e3b0 // FUNCTION: LEGO1 0x1007e3b0
Jetski::Jetski() Jetski::Jetski()

View file

@ -14,6 +14,8 @@
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
#include "mxtransitionmanager.h" #include "mxtransitionmanager.h"
DECOMP_SIZE_ASSERT(JukeBoxEntity, 0x6c)
// FUNCTION: LEGO1 0x10085bc0 // FUNCTION: LEGO1 0x10085bc0
JukeBoxEntity::JukeBoxEntity() JukeBoxEntity::JukeBoxEntity()
{ {

View file

@ -1,6 +1,6 @@
#include "motocycle.h" #include "motocycle.h"
DECOMP_SIZE_ASSERT(Motocycle, 0x16c); DECOMP_SIZE_ASSERT(Motocycle, 0x16c)
// FUNCTION: LEGO1 0x100357b0 // FUNCTION: LEGO1 0x100357b0
Motocycle::Motocycle() Motocycle::Motocycle()

View file

@ -3,7 +3,7 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxticklemanager.h" #include "mxticklemanager.h"
DECOMP_SIZE_ASSERT(Pizza, 0x9c); DECOMP_SIZE_ASSERT(Pizza, 0x9c)
// FUNCTION: LEGO1 0x10037ef0 // FUNCTION: LEGO1 0x10037ef0
Pizza::Pizza() Pizza::Pizza()

View file

@ -1,5 +1,7 @@
#include "pizzeria.h" #include "pizzeria.h"
DECOMP_SIZE_ASSERT(Pizzeria, 0x84)
// STUB: LEGO1 0x100179c0 // STUB: LEGO1 0x100179c0
MxResult Pizzeria::Create(MxDSAction& p_dsAction) MxResult Pizzeria::Create(MxDSAction& p_dsAction)
{ {

View file

@ -3,7 +3,7 @@
#include "legocontrolmanager.h" #include "legocontrolmanager.h"
#include "misc.h" #include "misc.h"
DECOMP_SIZE_ASSERT(RaceCar, 0x164); DECOMP_SIZE_ASSERT(RaceCar, 0x164)
// FUNCTION: LEGO1 0x10028200 // FUNCTION: LEGO1 0x10028200
RaceCar::RaceCar() RaceCar::RaceCar()

View file

@ -10,7 +10,7 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
DECOMP_SIZE_ASSERT(Radio, 0x10); DECOMP_SIZE_ASSERT(Radio, 0x10)
// FUNCTION: LEGO1 0x1002c850 // FUNCTION: LEGO1 0x1002c850
Radio::Radio() Radio::Radio()

View file

@ -4,7 +4,7 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
DECOMP_SIZE_ASSERT(SkateBoard, 0x168); DECOMP_SIZE_ASSERT(SkateBoard, 0x168)
// FUNCTION: LEGO1 0x1000fd40 // FUNCTION: LEGO1 0x1000fd40
SkateBoard::SkateBoard() SkateBoard::SkateBoard()

View file

@ -1,6 +1,6 @@
#include "towtrack.h" #include "towtrack.h"
DECOMP_SIZE_ASSERT(TowTrack, 0x180); DECOMP_SIZE_ASSERT(TowTrack, 0x180)
// FUNCTION: LEGO1 0x1004c720 // FUNCTION: LEGO1 0x1004c720
TowTrack::TowTrack() TowTrack::TowTrack()

View file

@ -3,6 +3,8 @@
#include "mxautolock.h" #include "mxautolock.h"
#include "mxomni.h" #include "mxomni.h"
DECOMP_SIZE_ASSERT(LegoSoundManager, 0x44)
// FUNCTION: LEGO1 0x100298a0 // FUNCTION: LEGO1 0x100298a0
LegoSoundManager::LegoSoundManager() LegoSoundManager::LegoSoundManager()
{ {

View file

@ -3,6 +3,8 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
DECOMP_SIZE_ASSERT(BuildingEntity, 0x68)
// FUNCTION: LEGO1 0x10014e20 // FUNCTION: LEGO1 0x10014e20
BuildingEntity::BuildingEntity() BuildingEntity::BuildingEntity()
{ {

View file

@ -1 +1,3 @@
#include "helicopterstate.h" #include "helicopterstate.h"
DECOMP_SIZE_ASSERT(HelicopterState, 0x0c)

View file

@ -1,5 +1,7 @@
#include "legocarbuild.h" #include "legocarbuild.h"
DECOMP_SIZE_ASSERT(LegoCarBuild, 0x34c)
// STUB: LEGO1 0x100226d0 // STUB: LEGO1 0x100226d0
LegoCarBuild::LegoCarBuild() LegoCarBuild::LegoCarBuild()
{ {

View file

@ -1,5 +1,7 @@
#include "legoobjectfactory.h" #include "legoobjectfactory.h"
#include "act2actor.h"
#include "act2brick.h"
#include "carrace.h" #include "carrace.h"
#include "decomp.h" #include "decomp.h"
#include "dunebuggy.h" #include "dunebuggy.h"
@ -56,8 +58,6 @@
#include "score.h" #include "score.h"
#include "scorestate.h" #include "scorestate.h"
#include "skateboard.h" #include "skateboard.h"
// #include "act2actor.h"
#include "act2brick.h"
// #include "act2genactor.h" // #include "act2genactor.h"
#include "act2policestation.h" #include "act2policestation.h"
#include "act3.h" #include "act3.h"
@ -77,6 +77,7 @@
#include "act1state.h" #include "act1state.h"
#include "act3actor.h" #include "act3actor.h"
#include "act3shark.h" #include "act3shark.h"
#include "animstate.h"
#include "beachhouseentity.h" #include "beachhouseentity.h"
#include "bumpbouy.h" #include "bumpbouy.h"
#include "carracestate.h" #include "carracestate.h"
@ -93,10 +94,9 @@
#include "pizzeria.h" #include "pizzeria.h"
#include "pizzeriastate.h" #include "pizzeriastate.h"
#include "policeentity.h" #include "policeentity.h"
#include "raceskel.h"
#include "racestandsentity.h" #include "racestandsentity.h"
#include "radiostate.h" #include "radiostate.h"
// #include "raceskel.h"
#include "animstate.h"
// TODO: Before HospitalState, add all of the different LegoVehicleBuildState's // TODO: Before HospitalState, add all of the different LegoVehicleBuildState's

View file

@ -6,7 +6,7 @@
#include "misc/legotexture.h" #include "misc/legotexture.h"
#include "tgl/d3drm/impl.h" #include "tgl/d3drm/impl.h"
DECOMP_SIZE_ASSERT(LegoTextureInfo, 0x10); DECOMP_SIZE_ASSERT(LegoTextureInfo, 0x10)
// FUNCTION: LEGO1 0x10065bf0 // FUNCTION: LEGO1 0x10065bf0
LegoTextureInfo::LegoTextureInfo() LegoTextureInfo::LegoTextureInfo()

View file

@ -11,7 +11,7 @@
#include "mxticklemanager.h" #include "mxticklemanager.h"
#include "mxvideopresenter.h" #include "mxvideopresenter.h"
DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900); DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900)
// GLOBAL: LEGO1 0x100f4378 // GLOBAL: LEGO1 0x100f4378
RECT g_fullScreenRect = {0, 0, 640, 480}; RECT g_fullScreenRect = {0, 0, 640, 480};

View file

@ -1,5 +1,7 @@
#include "act2brick.h" #include "act2brick.h"
DECOMP_SIZE_ASSERT(Act2Brick, 0x194)
// STUB: LEGO1 0x1007a2b0 // STUB: LEGO1 0x1007a2b0
Act2Brick::Act2Brick() Act2Brick::Act2Brick()
{ {

View file

@ -1,5 +1,7 @@
#include "act2policestation.h" #include "act2policestation.h"
DECOMP_SIZE_ASSERT(Act2PoliceStation, 0x68)
// STUB: LEGO1 0x1004e0e0 // STUB: LEGO1 0x1004e0e0
MxLong Act2PoliceStation::Notify(MxParam& p_param) MxLong Act2PoliceStation::Notify(MxParam& p_param)
{ {

View file

@ -3,6 +3,8 @@
#include "legoentity.h" #include "legoentity.h"
#include "misc.h" #include "misc.h"
DECOMP_SIZE_ASSERT(LegoActorPresenter, 0x50)
// FUNCTION: LEGO1 0x10076c30 // FUNCTION: LEGO1 0x10076c30
void LegoActorPresenter::ReadyTickle() void LegoActorPresenter::ReadyTickle()
{ {

View file

@ -6,7 +6,7 @@
#include "misc.h" #include "misc.h"
#include "realtime/realtime.h" #include "realtime/realtime.h"
DECOMP_SIZE_ASSERT(LegoCameraController, 0xc8); DECOMP_SIZE_ASSERT(LegoCameraController, 0xc8)
// FUNCTION: LEGO1 0x10011d50 // FUNCTION: LEGO1 0x10011d50
LegoCameraController::LegoCameraController() LegoCameraController::LegoCameraController()

View file

@ -3,6 +3,8 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxvariabletable.h" #include "mxvariabletable.h"
DECOMP_SIZE_ASSERT(LegoCarRaceActor, 0x1a0)
// GLOBAL: LEGO1 0x100f7af0 // GLOBAL: LEGO1 0x100f7af0
// STRING: LEGO1 0x100f7ae4 // STRING: LEGO1 0x100f7ae4
const char* g_fuel = "FUEL"; const char* g_fuel = "FUEL";
@ -51,7 +53,7 @@ void LegoCarRaceActor::FUN_10080590()
} }
// STUB: LEGO1 0x10080740 // STUB: LEGO1 0x10080740
void LegoCarRaceActor::FUN_10080740() void LegoCarRaceActor::VTable0x1c()
{ {
} }

View file

@ -4,7 +4,7 @@
#include "legovideomanager.h" #include "legovideomanager.h"
#include "misc.h" #include "misc.h"
DECOMP_SIZE_ASSERT(LegoEntityPresenter, 0x50); DECOMP_SIZE_ASSERT(LegoEntityPresenter, 0x50)
// FUNCTION: LEGO1 0x10053440 // FUNCTION: LEGO1 0x10053440
LegoEntityPresenter::LegoEntityPresenter() LegoEntityPresenter::LegoEntityPresenter()

View file

@ -3,6 +3,9 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
DECOMP_SIZE_ASSERT(LegoJetski, 0x1dc)
// Currently wrong due to a missing compiler added top pointer (See also missing code block in constructor)
// FUNCTION: LEGO1 0x100136f0 // FUNCTION: LEGO1 0x100136f0
void LegoJetski::FUN_100136f0(float p_worldSpeed) void LegoJetski::FUN_100136f0(float p_worldSpeed)
{ {

View file

@ -1,5 +1,13 @@
#include "legojetskiraceactor.h" #include "legojetskiraceactor.h"
DECOMP_SIZE_ASSERT(LegoJetskiRaceActor, 0x1a8)
// STUB: LEGO1 0x10014220
void LegoJetskiRaceActor::VTable0x1c()
{
// TODO
}
// FUNCTION: LEGO1 0x10080ef0 // FUNCTION: LEGO1 0x10080ef0
LegoJetskiRaceActor::LegoJetskiRaceActor() LegoJetskiRaceActor::LegoJetskiRaceActor()
{ {

View file

@ -11,8 +11,8 @@
#include "realtime/realtime.h" #include "realtime/realtime.h"
#include "roi/legoroi.h" #include "roi/legoroi.h"
DECOMP_SIZE_ASSERT(LegoMouseController, 0x20); DECOMP_SIZE_ASSERT(LegoMouseController, 0x20)
DECOMP_SIZE_ASSERT(LegoPointOfViewController, 0x38); DECOMP_SIZE_ASSERT(LegoPointOfViewController, 0x38)
// GLOBAL: LEGO1 0x100f75ac // GLOBAL: LEGO1 0x100f75ac
MxBool g_unk0x100f75ac = FALSE; MxBool g_unk0x100f75ac = FALSE;

View file

@ -29,6 +29,8 @@
#include <io.h> #include <io.h>
DECOMP_SIZE_ASSERT(LegoWorldPresenter, 0x54)
// GLOBAL: LEGO1 0x100f75d4 // GLOBAL: LEGO1 0x100f75d4
MxS32 g_legoWorldPresenterQuality = 1; MxS32 g_legoWorldPresenterQuality = 1;

View file

@ -1 +1,3 @@
#include "gasstationentity.h" #include "gasstationentity.h"
DECOMP_SIZE_ASSERT(GasStationEntity, 0x68)

View file

@ -1,6 +1,6 @@
#include "gasstationstate.h" #include "gasstationstate.h"
DECOMP_SIZE_ASSERT(GasStationState, 0x24); DECOMP_SIZE_ASSERT(GasStationState, 0x24)
// FUNCTION: LEGO1 0x10005eb0 // FUNCTION: LEGO1 0x10005eb0
GasStationState::GasStationState() GasStationState::GasStationState()

View file

@ -1,6 +1,6 @@
#include "ambulancemissionstate.h" #include "ambulancemissionstate.h"
DECOMP_SIZE_ASSERT(AmbulanceMissionState, 0x24); DECOMP_SIZE_ASSERT(AmbulanceMissionState, 0x24)
// FUNCTION: LEGO1 0x100373a0 // FUNCTION: LEGO1 0x100373a0
AmbulanceMissionState::AmbulanceMissionState() AmbulanceMissionState::AmbulanceMissionState()

View file

@ -1 +1,3 @@
#include "hospitalentity.h" #include "hospitalentity.h"
DECOMP_SIZE_ASSERT(HospitalEntity, 0x68)

View file

@ -1 +1,3 @@
#include "infocenterentity.h" #include "infocenterentity.h"
DECOMP_SIZE_ASSERT(InfoCenterEntity, 0x68)

View file

@ -3,7 +3,7 @@
#include "infocenter.h" #include "infocenter.h"
#include "infomain_actions.h" #include "infomain_actions.h"
DECOMP_SIZE_ASSERT(InfocenterState, 0x94); DECOMP_SIZE_ASSERT(InfocenterState, 0x94)
// GLOBAL: LEGO1 0x100f76a8 // GLOBAL: LEGO1 0x100f76a8
InfomainScript::Script g_exitDialogueAct1[14] = { InfomainScript::Script g_exitDialogueAct1[14] = {

View file

@ -1,6 +1,6 @@
#include "scorestate.h" #include "scorestate.h"
DECOMP_SIZE_ASSERT(ScoreState, 0x0c); DECOMP_SIZE_ASSERT(ScoreState, 0x0c)
// FUNCTION: LEGO1 0x1000de20 // FUNCTION: LEGO1 0x1000de20
MxBool ScoreState::VTable0x14() MxBool ScoreState::VTable0x14()

View file

@ -1 +1,3 @@
#include "beachhouseentity.h" #include "beachhouseentity.h"
DECOMP_SIZE_ASSERT(BeachHouseEntity, 0x68)

View file

@ -1,5 +1,7 @@
#include "jukeboxstate.h" #include "jukeboxstate.h"
DECOMP_SIZE_ASSERT(JukeBoxState, 0x10)
// FUNCTION: LEGO1 0x1000f300 // FUNCTION: LEGO1 0x1000f300
MxBool JukeBoxState::VTable0x14() MxBool JukeBoxState::VTable0x14()
{ {

View file

@ -6,6 +6,8 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxtimer.h" #include "mxtimer.h"
DECOMP_SIZE_ASSERT(RadioState, 0x30)
// GLOBAL: LEGO1 0x100f3218 // GLOBAL: LEGO1 0x100f3218
JukeboxScript::Script g_unk0x100f3218[6] = { JukeboxScript::Script g_unk0x100f3218[6] = {
JukeboxScript::c_sns002ra_Audio, JukeboxScript::c_sns002ra_Audio,

View file

@ -2,4 +2,4 @@
#include "decomp.h" #include "decomp.h"
DECOMP_SIZE_ASSERT(LegoEventNotificationParam, 0x20); DECOMP_SIZE_ASSERT(LegoEventNotificationParam, 0x20)

View file

@ -1,5 +1,7 @@
#include "legoanimactor.h" #include "legoanimactor.h"
DECOMP_SIZE_ASSERT(LegoAnimActor, 0x174)
// STUB: LEGO1 0x1001c1f0 // STUB: LEGO1 0x1001c1f0
MxResult LegoAnimActor::FUN_1001c1f0(float& p_out) MxResult LegoAnimActor::FUN_1001c1f0(float& p_out)
{ {

View file

@ -1,5 +1,7 @@
#include "legoextraactor.h" #include "legoextraactor.h"
DECOMP_SIZE_ASSERT(LegoExtraActor, 0x1dc)
// STUB: LEGO1 0x1002a500 // STUB: LEGO1 0x1002a500
LegoExtraActor::LegoExtraActor() LegoExtraActor::LegoExtraActor()
{ {

View file

@ -1,5 +1,7 @@
#include "legopathcontroller.h" #include "legopathcontroller.h"
DECOMP_SIZE_ASSERT(LegoPathController, 0x40)
// STUB: LEGO1 0x10044f40 // STUB: LEGO1 0x10044f40
LegoPathController::LegoPathController() LegoPathController::LegoPathController()
{ {

View file

@ -4,7 +4,7 @@
#include "misc.h" #include "misc.h"
#include "mxautolock.h" #include "mxautolock.h"
DECOMP_SIZE_ASSERT(LegoPathPresenter, 0x54); DECOMP_SIZE_ASSERT(LegoPathPresenter, 0x54)
// FUNCTION: LEGO1 0x100448d0 // FUNCTION: LEGO1 0x100448d0
LegoPathPresenter::LegoPathPresenter() LegoPathPresenter::LegoPathPresenter()

View file

@ -1,5 +1,7 @@
#include "pizzeriastate.h" #include "pizzeriastate.h"
DECOMP_SIZE_ASSERT(PizzeriaState, 0x58)
// STUB: LEGO1 0x10017af0 // STUB: LEGO1 0x10017af0
PizzeriaState::PizzeriaState() PizzeriaState::PizzeriaState()
{ {

View file

@ -1 +1,3 @@
#include "policeentity.h" #include "policeentity.h"
DECOMP_SIZE_ASSERT(PoliceEntity, 0x68)

View file

@ -1,6 +1,6 @@
#include "carrace.h" #include "carrace.h"
DECOMP_SIZE_ASSERT(CarRace, 0x154); DECOMP_SIZE_ASSERT(CarRace, 0x154)
// FUNCTION: LEGO1 0x10016a90 // FUNCTION: LEGO1 0x10016a90
CarRace::CarRace() CarRace::CarRace()

View file

@ -1,5 +1,7 @@
#include "jetskirace.h" #include "jetskirace.h"
DECOMP_SIZE_ASSERT(JetskiRace, 0x144)
// STUB: LEGO1 0x100162c0 // STUB: LEGO1 0x100162c0
MxResult JetskiRace::Create(MxDSAction& p_dsAction) MxResult JetskiRace::Create(MxDSAction& p_dsAction)
{ {

View file

@ -1,5 +1,7 @@
#include "legoraceactor.h" #include "legoraceactor.h"
DECOMP_SIZE_ASSERT(LegoRaceActor, 0x180)
// STUB: LEGO1 0x10014190 // STUB: LEGO1 0x10014190
void LegoRaceActor::VTable0x74(Matrix4& p_transform) void LegoRaceActor::VTable0x74(Matrix4& p_transform)
{ {

View file

@ -3,6 +3,8 @@
#include "mxmisc.h" #include "mxmisc.h"
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
DECOMP_SIZE_ASSERT(LegoRaceCar, 0x200)
// FUNCTION: LEGO1 0x10012950 // FUNCTION: LEGO1 0x10012950
LegoRaceCar::LegoRaceCar() LegoRaceCar::LegoRaceCar()
{ {

View file

@ -3,6 +3,8 @@
#include "legocontrolmanager.h" #include "legocontrolmanager.h"
#include "misc.h" #include "misc.h"
DECOMP_SIZE_ASSERT(LegoRaceMap, 0x1b4)
// FUNCTION: LEGO1 0x1005d0d0 // FUNCTION: LEGO1 0x1005d0d0
LegoRaceMap::LegoRaceMap() LegoRaceMap::LegoRaceMap()
{ {

View file

@ -1,5 +1,7 @@
#include "raceskel.h" #include "raceskel.h"
DECOMP_SIZE_ASSERT(RaceSkel, 0x178)
// STUB: LEGO1 0x100719b0 // STUB: LEGO1 0x100719b0
RaceSkel::RaceSkel() RaceSkel::RaceSkel()
{ {

View file

@ -1 +1,3 @@
#include "racestandsentity.h" #include "racestandsentity.h"
DECOMP_SIZE_ASSERT(RaceStandsEntity, 0x68)

View file

@ -1,5 +1,7 @@
#include "legounknown100d7c88.h" #include "legounknown100d7c88.h"
DECOMP_SIZE_ASSERT(LegoUnknown100d7c88, 0x18)
// FUNCTION: LEGO1 0x10044e50 // FUNCTION: LEGO1 0x10044e50
LegoUnknown100d7c88::~LegoUnknown100d7c88() LegoUnknown100d7c88::~LegoUnknown100d7c88()
{ {

View file

@ -13,7 +13,7 @@
#include "mxvideomanager.h" #include "mxvideomanager.h"
#include "realtime/realtime.h" #include "realtime/realtime.h"
DECOMP_SIZE_ASSERT(LegoAnimPresenter, 0xc0) DECOMP_SIZE_ASSERT(LegoAnimPresenter, 0xbc)
// FUNCTION: LEGO1 0x10068420 // FUNCTION: LEGO1 0x10068420
LegoAnimPresenter::LegoAnimPresenter() LegoAnimPresenter::LegoAnimPresenter()

View file

@ -1,5 +1,7 @@
#include "legocarbuildanimpresenter.h" #include "legocarbuildanimpresenter.h"
DECOMP_SIZE_ASSERT(LegoCarBuildAnimPresenter, 0x150)
// STUB: LEGO1 0x10078400 // STUB: LEGO1 0x10078400
LegoCarBuildAnimPresenter::LegoCarBuildAnimPresenter() LegoCarBuildAnimPresenter::LegoCarBuildAnimPresenter()
{ {

View file

@ -1,5 +1,7 @@
#include "legoloopinganimpresenter.h" #include "legoloopinganimpresenter.h"
DECOMP_SIZE_ASSERT(LegoLoopingAnimPresenter, 0xc0)
// STUB: LEGO1 0x1006caa0 // STUB: LEGO1 0x1006caa0
void LegoLoopingAnimPresenter::StreamingTickle() void LegoLoopingAnimPresenter::StreamingTickle()
{ {

View file

@ -16,6 +16,8 @@
#include "realtime/realtime.h" #include "realtime/realtime.h"
#include "roi/legoroi.h" #include "roi/legoroi.h"
DECOMP_SIZE_ASSERT(LegoModelPresenter, 0x6c)
// GLOBAL: LEGO1 0x100f7ae0 // GLOBAL: LEGO1 0x100f7ae0
MxS32 g_modelPresenterConfig = 1; MxS32 g_modelPresenterConfig = 1;

View file

@ -1,6 +1,6 @@
#include "legophonemepresenter.h" #include "legophonemepresenter.h"
DECOMP_SIZE_ASSERT(LegoPhonemePresenter, 0x88); DECOMP_SIZE_ASSERT(LegoPhonemePresenter, 0x88)
// FUNCTION: LEGO1 0x1004e180 // FUNCTION: LEGO1 0x1004e180
LegoPhonemePresenter::LegoPhonemePresenter() LegoPhonemePresenter::LegoPhonemePresenter()

View file

@ -11,9 +11,9 @@
#include "tgl/d3drm/impl.h" #include "tgl/d3drm/impl.h"
#include "viewmanager/viewroi.h" #include "viewmanager/viewroi.h"
DECOMP_SIZE_ASSERT(LegoVideoManager, 0x590); DECOMP_SIZE_ASSERT(LegoVideoManager, 0x590)
DECOMP_SIZE_ASSERT(MxStopWatch, 0x18); DECOMP_SIZE_ASSERT(MxStopWatch, 0x18)
DECOMP_SIZE_ASSERT(MxFrequencyMeter, 0x20); DECOMP_SIZE_ASSERT(MxFrequencyMeter, 0x20)
// FUNCTION: LEGO1 0x1007aa20 // FUNCTION: LEGO1 0x1007aa20
LegoVideoManager::LegoVideoManager() LegoVideoManager::LegoVideoManager()

View file

@ -8,6 +8,8 @@
#include "mxnotificationmanager.h" #include "mxnotificationmanager.h"
#include "mxticklemanager.h" #include "mxticklemanager.h"
DECOMP_SIZE_ASSERT(GasStation, 0x128)
// GLOBAL: LEGO1 0x100f0160 // GLOBAL: LEGO1 0x100f0160
undefined4 g_unk0x100f0160 = 3; undefined4 g_unk0x100f0160 = 3;

View file

@ -32,7 +32,7 @@
#include <vec.h> #include <vec.h>
DECOMP_SIZE_ASSERT(Isle, 0x140); DECOMP_SIZE_ASSERT(Isle, 0x140)
// GLOBAL: LEGO1 0x100f1198 // GLOBAL: LEGO1 0x100f1198
undefined4 g_unk0x100f1198 = 0x7f; undefined4 g_unk0x100f1198 = 0x7f;

View file

@ -1,5 +1,7 @@
#include "legoact2.h" #include "legoact2.h"
DECOMP_SIZE_ASSERT(LegoAct2, 0x1154)
// FUNCTION: LEGO1 0x1004fe10 // FUNCTION: LEGO1 0x1004fe10
MxBool LegoAct2::VTable0x5c() MxBool LegoAct2::VTable0x5c()
{ {