mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Limited match on LegoRaceCar::ParseAction
This commit is contained in:
parent
e781b71f5c
commit
96ef1e04e4
@ -128,6 +128,10 @@ const char* g_strWORLD = "WORLD";
|
|||||||
// STRING: LEGO1 0x10101ed0
|
// STRING: LEGO1 0x10101ed0
|
||||||
const char* g_strANIMMAN_ID = "ANIMMAN_ID";
|
const char* g_strANIMMAN_ID = "ANIMMAN_ID";
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x101020d8
|
||||||
|
// STRING: LEGO1 0x10101ec8
|
||||||
|
const char* g_strCOMP = "COMP";
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x101020e0
|
// GLOBAL: LEGO1 0x101020e0
|
||||||
// STRING: LEGO1 0x10101eb0
|
// STRING: LEGO1 0x10101eb0
|
||||||
const char* g_strBMP_ISMAP = "BMP_ISMAP";
|
const char* g_strBMP_ISMAP = "BMP_ISMAP";
|
||||||
|
|||||||
@ -31,6 +31,7 @@ extern const char* g_strBOTTOM_TO_TOP;
|
|||||||
extern const char* g_strTOP_TO_BOTTOM;
|
extern const char* g_strTOP_TO_BOTTOM;
|
||||||
extern const char* g_strFILLER_INDEX;
|
extern const char* g_strFILLER_INDEX;
|
||||||
extern const char* g_strVARIABLE;
|
extern const char* g_strVARIABLE;
|
||||||
|
extern const char* g_strCOMP;
|
||||||
extern const char* g_strBMP_ISMAP;
|
extern const char* g_strBMP_ISMAP;
|
||||||
extern const char* g_strAUTO_CREATE;
|
extern const char* g_strAUTO_CREATE;
|
||||||
extern const char* g_strDB_CREATE;
|
extern const char* g_strDB_CREATE;
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
#include "decomp.h"
|
#include "decomp.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legostate.h"
|
#include "legostate.h"
|
||||||
|
#include "legoracemap.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "mxrect32.h"
|
#include "mxrect32.h"
|
||||||
#include "mxtypes.h"
|
#include "mxtypes.h"
|
||||||
@ -124,7 +125,7 @@ class LegoRace : public LegoWorld {
|
|||||||
virtual MxLong HandleType0Notification(MxNotificationParam&) { return 0; } // vtable+0x78
|
virtual MxLong HandleType0Notification(MxNotificationParam&) { return 0; } // vtable+0x78
|
||||||
|
|
||||||
// STUB: LEGO1 0x1000dac0
|
// STUB: LEGO1 0x1000dac0
|
||||||
virtual void VTable0x7c(undefined4, undefined4) {} // vtable+0x7c
|
virtual void VTable0x7c(LegoRaceMap *, undefined4) {} // vtable+0x7c
|
||||||
|
|
||||||
// SYNTHETIC: LEGO1 0x10015cc0
|
// SYNTHETIC: LEGO1 0x10015cc0
|
||||||
// LegoRace::`scalar deleting destructor'
|
// LegoRace::`scalar deleting destructor'
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class LegoRaceActor : public virtual LegoAnimActor {
|
|||||||
// SYNTHETIC: LEGO1 0x10014ac0
|
// SYNTHETIC: LEGO1 0x10014ac0
|
||||||
// LegoRaceActor::`scalar deleting destructor'
|
// LegoRaceActor::`scalar deleting destructor'
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
undefined4 m_unk0x08; // 0x08
|
undefined4 m_unk0x08; // 0x08
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,39 @@
|
|||||||
#include "legocarraceactor.h"
|
#include "legocarraceactor.h"
|
||||||
#include "legoracemap.h"
|
#include "legoracemap.h"
|
||||||
|
|
||||||
|
struct EdgeReference {
|
||||||
|
char* name;
|
||||||
|
LegoPathBoundary* data;
|
||||||
|
};
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f0a20
|
||||||
|
static EdgeReference g_edgeReferences[] = {
|
||||||
|
{// STRING: LEGO1 0x100f0a10
|
||||||
|
"EDG03_772",
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
{// STRING: LEGO1 0x100f0a04
|
||||||
|
"EDG03_773",
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
{// STRING: LEGO1 0x100f09f8
|
||||||
|
"EDG03_774",
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
{// STRING: LEGO1 0x100f09ec
|
||||||
|
"EDG03_775",
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
{// STRING: LEGO1 0x100f09e0
|
||||||
|
"EDG03_776",
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
{// STRING: LEGO1 0x100f09d4
|
||||||
|
"EDG03_777",
|
||||||
|
NULL
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// VTABLE: LEGO1 0x100d58a0 LegoRaceActor
|
// VTABLE: LEGO1 0x100d58a0 LegoRaceActor
|
||||||
// VTABLE: LEGO1 0x100d58a8 LegoAnimActor
|
// VTABLE: LEGO1 0x100d58a8 LegoAnimActor
|
||||||
// VTABLE: LEGO1 0x100d58b8 LegoPathActor
|
// VTABLE: LEGO1 0x100d58b8 LegoPathActor
|
||||||
@ -54,13 +87,13 @@ class LegoRaceCar : public LegoCarRaceActor, public LegoRaceMap {
|
|||||||
// LegoRaceCar::`scalar deleting destructor'
|
// LegoRaceCar::`scalar deleting destructor'
|
||||||
|
|
||||||
private:
|
private:
|
||||||
undefined m_unk0x54; // 0x54
|
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
|
||||||
undefined4 m_unk0x74; // 0x74
|
undefined4 m_unk0x74; // 0x74
|
||||||
undefined4 m_unk0x78; // 0x78
|
LegoPathBoundary* m_unk0x78; // 0x78
|
||||||
undefined4 m_unk0x7c; // 0x7c
|
LegoPathBoundary* m_unk0x7c; // 0x7c
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LEGORACECAR_H
|
#endif // LEGORACECAR_H
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
#include "legoracecar.h"
|
#include "legoracecar.h"
|
||||||
|
|
||||||
|
#include "define.h"
|
||||||
|
#include "legorace.h"
|
||||||
|
#include "misc.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "mxnotificationmanager.h"
|
#include "mxnotificationmanager.h"
|
||||||
|
#include "mxutilities.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(LegoRaceCar, 0x200)
|
DECOMP_SIZE_ASSERT(LegoRaceCar, 0x200)
|
||||||
|
|
||||||
@ -56,10 +60,34 @@ void LegoRaceCar::SetMaxLinearVelocity(float p_maxLinearVelocity)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10012ef0
|
// FUNCTION: LEGO1 0x10012ef0
|
||||||
void LegoRaceCar::ParseAction(char*)
|
void LegoRaceCar::ParseAction(char* p_extra)
|
||||||
{
|
{
|
||||||
// TODO
|
char local_100[256];
|
||||||
|
LegoAnimActor::ParseAction(p_extra);
|
||||||
|
LegoRaceMap::ParseAction(p_extra);
|
||||||
|
LegoRace* current_world = (LegoRace*) CurrentWorld();
|
||||||
|
if (KeyValueStringParse(local_100, g_strCOMP, p_extra) && current_world) {
|
||||||
|
current_world->VTable0x7c(this, atoi(local_100));
|
||||||
|
}
|
||||||
|
if (!m_userNavFlag) {
|
||||||
|
for (MxU32 i = 0; i++;) {
|
||||||
|
undefined4 temp = LegoRaceActor::m_unk0x08;
|
||||||
|
if (LegoCarRaceActor::m_unk0x0c == FALSE
|
||||||
|
// || LegoCarRaceActor::m_unk0x10 <= i
|
||||||
|
) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// STRING: LEGO1 0x100f0bc4
|
||||||
|
m_unk0x78 = current_world->FindPathBoundary("EDG03_44");
|
||||||
|
// STRING: LEGO1 0x100f0bb8
|
||||||
|
m_unk0x7c = current_world->FindPathBoundary("EDG03_54");
|
||||||
|
|
||||||
|
for (MxS32 i = 0; i < sizeOfArray(g_edgeReferences); i++) {
|
||||||
|
g_edgeReferences[i].data = current_world->FindPathBoundary(g_edgeReferences[i].name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10012ff0
|
// STUB: LEGO1 0x10012ff0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user