CarRace ctor

This commit is contained in:
Joshua Peisach 2023-12-27 12:45:48 -05:00
parent 5a1ba02772
commit 095c6ce4bd
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
3 changed files with 30 additions and 17 deletions

View File

@ -1,7 +1,10 @@
#include "carrace.h" #include "carrace.h"
// STUB: LEGO1 0x10016a90 DECOMP_SIZE_ASSERT(CarRace, 0x154);
// FUNCTION: LEGO1 0x10016a90
CarRace::CarRace() CarRace::CarRace()
{ {
// TODO this->m_unk0x150 = 0;
this->m_unk0x130 = MxRect32(0x16c, 0x154, 0x1ec, 0x15e);
} }

View File

@ -1,6 +1,7 @@
#ifndef CARRACE_H #ifndef CARRACE_H
#define CARRACE_H #define CARRACE_H
#include "decomp.h"
#include "legorace.h" #include "legorace.h"
// VTABLE: LEGO1 0x100d5e50 // VTABLE: LEGO1 0x100d5e50
@ -21,6 +22,10 @@ class CarRace : public LegoRace {
{ {
return !strcmp(p_name, CarRace::ClassName()) || LegoRace::IsA(p_name); return !strcmp(p_name, CarRace::ClassName()) || LegoRace::IsA(p_name);
} }
private:
undefined m_unk0x144[12];
undefined4 m_unk0x150;
}; };
#endif // CARRACE_H #endif // CARRACE_H

View File

@ -3,6 +3,7 @@
#include "decomp.h" #include "decomp.h"
#include "legoworld.h" #include "legoworld.h"
#include "mxrect32.h"
#include "mxtypes.h" #include "mxtypes.h"
// VTABLE: LEGO1 0x100d5db0 // VTABLE: LEGO1 0x100d5db0
@ -52,7 +53,11 @@ class LegoRace : public LegoWorld {
undefined4 m_unk0x124; // 0x124 - something game state undefined4 m_unk0x124; // 0x124 - something game state
undefined4 m_unk0x128; // 0x128 undefined4 m_unk0x128; // 0x128
undefined4 m_unk0x12c; // 0x12c undefined4 m_unk0x12c; // 0x12c
undefined4 m_unk0x130[4]; // unconfirmed bytes, ghidra claims these are integers
protected:
MxRect32 m_unk0x130; // unconfirmed bytes, ghidra claims these are integers
private:
undefined4 m_unk0x140; undefined4 m_unk0x140;
}; };