mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-29 02:55:48 -05:00
Refactor LegoOmni into LegoMain/Scripts (#883)
* Refactor LegoOmni into LegoMain/Scripts * Fix guard
This commit is contained in:
parent
6382347f73
commit
1b1d2ecde6
46 changed files with 301 additions and 281 deletions
|
@ -367,7 +367,8 @@ add_library(lego1 SHARED
|
||||||
LEGO1/lego/legoomni/src/isle/beachhouseentity.cpp
|
LEGO1/lego/legoomni/src/isle/beachhouseentity.cpp
|
||||||
LEGO1/lego/legoomni/src/isle/jukeboxstate.cpp
|
LEGO1/lego/legoomni/src/isle/jukeboxstate.cpp
|
||||||
LEGO1/lego/legoomni/src/isle/radiostate.cpp
|
LEGO1/lego/legoomni/src/isle/radiostate.cpp
|
||||||
LEGO1/lego/legoomni/src/main/legoomni.cpp
|
LEGO1/lego/legoomni/src/main/legomain.cpp
|
||||||
|
LEGO1/lego/legoomni/src/main/scripts.cpp
|
||||||
LEGO1/lego/legoomni/src/notify/legoeventnotificationparam.cpp
|
LEGO1/lego/legoomni/src/notify/legoeventnotificationparam.cpp
|
||||||
LEGO1/lego/legoomni/src/paths/legoanimactor.cpp
|
LEGO1/lego/legoomni/src/paths/legoanimactor.cpp
|
||||||
LEGO1/lego/legoomni/src/paths/legoextraactor.cpp
|
LEGO1/lego/legoomni/src/paths/legoextraactor.cpp
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#include "legobuildingmanager.h"
|
#include "legobuildingmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
|
#include "legomain.h"
|
||||||
#include "legomodelpresenter.h"
|
#include "legomodelpresenter.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legopartpresenter.h"
|
#include "legopartpresenter.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
#include "legoworldpresenter.h"
|
#include "legoworldpresenter.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef LEGOOMNI_H
|
#ifndef LEGOMAIN_H
|
||||||
#define LEGOOMNI_H
|
#define LEGOMAIN_H
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "mxdsaction.h"
|
#include "mxdsaction.h"
|
||||||
|
@ -27,35 +27,6 @@ class MxBackgroundAudioManager;
|
||||||
class MxTransitionManager;
|
class MxTransitionManager;
|
||||||
class ViewLODListManager;
|
class ViewLODListManager;
|
||||||
|
|
||||||
extern MxAtomId* g_copterScript;
|
|
||||||
extern MxAtomId* g_dunecarScript;
|
|
||||||
extern MxAtomId* g_jetskiScript;
|
|
||||||
extern MxAtomId* g_racecarScript;
|
|
||||||
extern MxAtomId* g_carraceScript;
|
|
||||||
extern MxAtomId* g_carracerScript;
|
|
||||||
extern MxAtomId* g_jetraceScript;
|
|
||||||
extern MxAtomId* g_jetracerScript;
|
|
||||||
extern MxAtomId* g_isleScript;
|
|
||||||
extern MxAtomId* g_elevbottScript;
|
|
||||||
extern MxAtomId* g_infodoorScript;
|
|
||||||
extern MxAtomId* g_infomainScript;
|
|
||||||
extern MxAtomId* g_infoscorScript;
|
|
||||||
extern MxAtomId* g_regbookScript;
|
|
||||||
extern MxAtomId* g_histbookScript;
|
|
||||||
extern MxAtomId* g_hospitalScript;
|
|
||||||
extern MxAtomId* g_policeScript;
|
|
||||||
extern MxAtomId* g_garageScript;
|
|
||||||
extern MxAtomId* g_act2mainScript;
|
|
||||||
extern MxAtomId* g_act3Script;
|
|
||||||
extern MxAtomId* g_jukeboxScript;
|
|
||||||
extern MxAtomId* g_pz5Script;
|
|
||||||
extern MxAtomId* g_introScript;
|
|
||||||
extern MxAtomId* g_testScript;
|
|
||||||
extern MxAtomId* g_jukeboxwScript;
|
|
||||||
extern MxAtomId* g_sndAnimScript;
|
|
||||||
extern MxAtomId* g_creditsScript;
|
|
||||||
extern MxAtomId* g_nocdSourceName;
|
|
||||||
|
|
||||||
// VTABLE: LEGO1 0x100d8638
|
// VTABLE: LEGO1 0x100d8638
|
||||||
// SIZE 0x140
|
// SIZE 0x140
|
||||||
class LegoOmni : public MxOmni {
|
class LegoOmni : public MxOmni {
|
||||||
|
@ -205,12 +176,4 @@ class LegoOmni : public MxOmni {
|
||||||
MxBool m_unk0x13c; // 0x13c
|
MxBool m_unk0x13c; // 0x13c
|
||||||
};
|
};
|
||||||
|
|
||||||
const char* GetNoCD_SourceName();
|
#endif // LEGOMAIN_H
|
||||||
|
|
||||||
LegoEntity* PickEntity(MxLong, MxLong);
|
|
||||||
LegoROI* PickROI(MxLong, MxLong);
|
|
||||||
|
|
||||||
void CreateScripts();
|
|
||||||
void DestroyScripts();
|
|
||||||
|
|
||||||
#endif // LEGOOMNI_H
|
|
|
@ -11,8 +11,11 @@ class LegoEntity;
|
||||||
class LegoFile;
|
class LegoFile;
|
||||||
class LegoAnimPresenter;
|
class LegoAnimPresenter;
|
||||||
class LegoNamedTexture;
|
class LegoNamedTexture;
|
||||||
|
class LegoROI;
|
||||||
class LegoTreeNode;
|
class LegoTreeNode;
|
||||||
|
|
||||||
|
LegoEntity* PickEntity(MxLong, MxLong);
|
||||||
|
LegoROI* PickROI(MxLong, MxLong);
|
||||||
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node);
|
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node);
|
||||||
void FUN_1003e050(LegoAnimPresenter* p_presenter);
|
void FUN_1003e050(LegoAnimPresenter* p_presenter);
|
||||||
Extra::ActionType MatchActionString(const char*);
|
Extra::ActionType MatchActionString(const char*);
|
||||||
|
|
39
LEGO1/lego/legoomni/include/scripts.h
Normal file
39
LEGO1/lego/legoomni/include/scripts.h
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
#ifndef SCRIPTS_H
|
||||||
|
#define SCRIPTS_H
|
||||||
|
|
||||||
|
class MxAtomId;
|
||||||
|
|
||||||
|
extern MxAtomId* g_copterScript;
|
||||||
|
extern MxAtomId* g_dunecarScript;
|
||||||
|
extern MxAtomId* g_jetskiScript;
|
||||||
|
extern MxAtomId* g_racecarScript;
|
||||||
|
extern MxAtomId* g_carraceScript;
|
||||||
|
extern MxAtomId* g_carracerScript;
|
||||||
|
extern MxAtomId* g_jetraceScript;
|
||||||
|
extern MxAtomId* g_jetracerScript;
|
||||||
|
extern MxAtomId* g_isleScript;
|
||||||
|
extern MxAtomId* g_elevbottScript;
|
||||||
|
extern MxAtomId* g_infodoorScript;
|
||||||
|
extern MxAtomId* g_infomainScript;
|
||||||
|
extern MxAtomId* g_infoscorScript;
|
||||||
|
extern MxAtomId* g_regbookScript;
|
||||||
|
extern MxAtomId* g_histbookScript;
|
||||||
|
extern MxAtomId* g_hospitalScript;
|
||||||
|
extern MxAtomId* g_policeScript;
|
||||||
|
extern MxAtomId* g_garageScript;
|
||||||
|
extern MxAtomId* g_act2mainScript;
|
||||||
|
extern MxAtomId* g_act3Script;
|
||||||
|
extern MxAtomId* g_jukeboxScript;
|
||||||
|
extern MxAtomId* g_pz5Script;
|
||||||
|
extern MxAtomId* g_introScript;
|
||||||
|
extern MxAtomId* g_testScript;
|
||||||
|
extern MxAtomId* g_jukeboxwScript;
|
||||||
|
extern MxAtomId* g_sndAnimScript;
|
||||||
|
extern MxAtomId* g_creditsScript;
|
||||||
|
extern MxAtomId* g_nocdSourceName;
|
||||||
|
|
||||||
|
void CreateScripts();
|
||||||
|
void DestroyScripts();
|
||||||
|
const char* GetNoCD_SourceName();
|
||||||
|
|
||||||
|
#endif // SCRIPTS_H
|
|
@ -4,7 +4,6 @@
|
||||||
#include "decomp.h"
|
#include "decomp.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legovariables.h"
|
#include "legovariables.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -12,6 +11,7 @@
|
||||||
#include "mxticklemanager.h"
|
#include "mxticklemanager.h"
|
||||||
#include "mxtimer.h"
|
#include "mxtimer.h"
|
||||||
#include "mxvariabletable.h"
|
#include "mxvariabletable.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Ambulance, 0x184)
|
DECOMP_SIZE_ASSERT(Ambulance, 0x184)
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
#include "isle_actions.h"
|
#include "isle_actions.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Bike, 0x164)
|
DECOMP_SIZE_ASSERT(Bike, 0x164)
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
#include "legocameracontroller.h"
|
#include "legocameracontroller.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Helicopter, 0x230)
|
DECOMP_SIZE_ASSERT(Helicopter, 0x230)
|
||||||
DECOMP_SIZE_ASSERT(Mx3DPointFloat, 0x14)
|
DECOMP_SIZE_ASSERT(Mx3DPointFloat, 0x14)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include "isleactor.h"
|
#include "isleactor.h"
|
||||||
|
|
||||||
#include "legoentity.h"
|
#include "legoentity.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxnotificationparam.h"
|
#include "mxnotificationparam.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(IsleActor, 0x7c)
|
DECOMP_SIZE_ASSERT(IsleActor, 0x7c)
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
#include "jukebox_actions.h"
|
#include "jukebox_actions.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legonavcontroller.h"
|
#include "legonavcontroller.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legopathboundary.h"
|
#include "legopathboundary.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxnotificationparam.h"
|
#include "mxnotificationparam.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(IslePathActor, 0x160)
|
DECOMP_SIZE_ASSERT(IslePathActor, 0x160)
|
||||||
DECOMP_SIZE_ASSERT(IslePathActor::SpawnLocation, 0x38)
|
DECOMP_SIZE_ASSERT(IslePathActor::SpawnLocation, 0x38)
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "jukebox_actions.h"
|
#include "jukebox_actions.h"
|
||||||
#include "jukeboxstate.h"
|
#include "jukeboxstate.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
|
@ -14,6 +13,7 @@
|
||||||
#include "mxnotificationmanager.h"
|
#include "mxnotificationmanager.h"
|
||||||
#include "mxnotificationparam.h"
|
#include "mxnotificationparam.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(JukeBoxEntity, 0x6c)
|
DECOMP_SIZE_ASSERT(JukeBoxEntity, 0x6c)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "isle_actions.h"
|
#include "isle_actions.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxactionnotificationparam.h"
|
#include "mxactionnotificationparam.h"
|
||||||
|
@ -12,6 +11,7 @@
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "mxnotificationmanager.h"
|
#include "mxnotificationmanager.h"
|
||||||
#include "radiostate.h"
|
#include "radiostate.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Radio, 0x10)
|
DECOMP_SIZE_ASSERT(Radio, 0x10)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "jukebox_actions.h"
|
#include "jukebox_actions.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
|
@ -15,6 +14,7 @@
|
||||||
#include "mxstillpresenter.h"
|
#include "mxstillpresenter.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
#include "pizza.h"
|
#include "pizza.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(SkateBoard, 0x168)
|
DECOMP_SIZE_ASSERT(SkateBoard, 0x168)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
|
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxaudiopresenter.h"
|
#include "mxaudiopresenter.h"
|
||||||
#include "mxcompositepresenter.h"
|
#include "mxcompositepresenter.h"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "define.h"
|
#include "define.h"
|
||||||
#include "extra.h"
|
#include "extra.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "mxcompositepresenter.h"
|
#include "mxcompositepresenter.h"
|
||||||
#include "mxdssubscriber.h"
|
#include "mxdssubscriber.h"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "legoendanimnotificationparam.h"
|
#include "legoendanimnotificationparam.h"
|
||||||
#include "legoextraactor.h"
|
#include "legoextraactor.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legoroilist.h"
|
#include "legoroilist.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
#include "legobuildingmanager.h"
|
#include "legobuildingmanager.h"
|
||||||
#include "legocharactermanager.h"
|
#include "legocharactermanager.h"
|
||||||
#include "legofullscreenmovie.h"
|
#include "legofullscreenmovie.h"
|
||||||
|
#include "legomain.h"
|
||||||
#include "legonavcontroller.h"
|
#include "legonavcontroller.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoplantmanager.h"
|
#include "legoplantmanager.h"
|
||||||
#include "legostate.h"
|
#include "legostate.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
|
@ -54,6 +54,7 @@
|
||||||
#include "racecar_actions.h"
|
#include "racecar_actions.h"
|
||||||
#include "regbook_actions.h"
|
#include "regbook_actions.h"
|
||||||
#include "roi/legoroi.h"
|
#include "roi/legoroi.h"
|
||||||
|
#include "scripts.h"
|
||||||
#include "sndanim_actions.h"
|
#include "sndanim_actions.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#include "legoanimpresenter.h"
|
#include "legoanimpresenter.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
|
#include "legomain.h"
|
||||||
#include "legonamedtexture.h"
|
#include "legonamedtexture.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legosoundmanager.h"
|
#include "legosoundmanager.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
|
@ -23,11 +23,25 @@
|
||||||
#include "mxutilities.h"
|
#include "mxutilities.h"
|
||||||
#include "mxvariabletable.h"
|
#include "mxvariabletable.h"
|
||||||
#include "realtime/realtime.h"
|
#include "realtime/realtime.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vec.h>
|
#include <vec.h>
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x1003dd70
|
||||||
|
LegoROI* PickROI(MxLong p_a, MxLong p_b)
|
||||||
|
{
|
||||||
|
return (LegoROI*) VideoManager()->Get3DManager()->GetLego3DView()->Pick(p_a, p_b);
|
||||||
|
}
|
||||||
|
|
||||||
|
// STUB: LEGO1 0x1003ddc0
|
||||||
|
LegoEntity* PickEntity(MxLong, MxLong)
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003df90
|
// FUNCTION: LEGO1 0x1003df90
|
||||||
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node)
|
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
|
|
||||||
#include "3dmanager/lego3dmanager.h"
|
#include "3dmanager/lego3dmanager.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "roi/legoroi.h"
|
#include "roi/legoroi.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4c58
|
// GLOBAL: LEGO1 0x100f4c58
|
||||||
MxBool g_isWorldActive = TRUE;
|
MxBool g_isWorldActive = TRUE;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "legocameralocations.h"
|
#include "legocameralocations.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legosoundmanager.h"
|
#include "legosoundmanager.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "3dmanager/lego3dview.h"
|
#include "3dmanager/lego3dview.h"
|
||||||
#include "legoentity.h"
|
#include "legoentity.h"
|
||||||
|
#include "legomain.h"
|
||||||
#include "legonavcontroller.h"
|
#include "legonavcontroller.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legopointofviewcontroller.h"
|
#include "legopointofviewcontroller.h"
|
||||||
#include "legosoundmanager.h"
|
#include "legosoundmanager.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legolocomotionanimpresenter.h"
|
#include "legolocomotionanimpresenter.h"
|
||||||
|
#include "legomain.h"
|
||||||
#include "legonavcontroller.h"
|
#include "legonavcontroller.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoplantmanager.h"
|
#include "legoplantmanager.h"
|
||||||
#include "legosoundmanager.h"
|
#include "legosoundmanager.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legobuildingmanager.h"
|
#include "legobuildingmanager.h"
|
||||||
#include "legoentity.h"
|
#include "legoentity.h"
|
||||||
|
#include "legomain.h"
|
||||||
#include "legomodelpresenter.h"
|
#include "legomodelpresenter.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legopartpresenter.h"
|
#include "legopartpresenter.h"
|
||||||
#include "legoplantmanager.h"
|
#include "legoplantmanager.h"
|
||||||
#include "legotexturepresenter.h"
|
#include "legotexturepresenter.h"
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(GasStationEntity, 0x68)
|
DECOMP_SIZE_ASSERT(GasStationEntity, 0x68)
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(HospitalEntity, 0x68)
|
DECOMP_SIZE_ASSERT(HospitalEntity, 0x68)
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
#include "legoact2state.h"
|
#include "legoact2state.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(InfoCenterEntity, 0x68)
|
DECOMP_SIZE_ASSERT(InfoCenterEntity, 0x68)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
#include "legocameracontroller.h"
|
#include "legocameracontroller.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
|
#include "legoutils.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(BeachHouseEntity, 0x68)
|
DECOMP_SIZE_ASSERT(BeachHouseEntity, 0x68)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
#include "jukebox.h"
|
#include "jukebox.h"
|
||||||
#include "jukebox_actions.h"
|
#include "jukebox_actions.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "mxtimer.h"
|
#include "mxtimer.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(RadioState, 0x30)
|
DECOMP_SIZE_ASSERT(RadioState, 0x30)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
|
|
||||||
#include "3dmanager/lego3dmanager.h"
|
#include "3dmanager/lego3dmanager.h"
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
#include "mxticklemanager.h"
|
#include "mxticklemanager.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
#include "mxvariabletable.h"
|
#include "mxvariabletable.h"
|
||||||
|
#include "scripts.h"
|
||||||
#include "viewmanager/viewmanager.h"
|
#include "viewmanager/viewmanager.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(LegoOmni, 0x140)
|
DECOMP_SIZE_ASSERT(LegoOmni, 0x140)
|
||||||
|
@ -37,209 +38,10 @@ DECOMP_SIZE_ASSERT(LegoOmni::ScriptContainer, 0x1c)
|
||||||
DECOMP_SIZE_ASSERT(LegoWorldList, 0x18)
|
DECOMP_SIZE_ASSERT(LegoWorldList, 0x18)
|
||||||
DECOMP_SIZE_ASSERT(LegoWorldListCursor, 0x10)
|
DECOMP_SIZE_ASSERT(LegoWorldListCursor, 0x10)
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f451c
|
|
||||||
MxAtomId* g_copterScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4520
|
|
||||||
MxAtomId* g_dunecarScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4524
|
|
||||||
MxAtomId* g_jetskiScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4528
|
|
||||||
MxAtomId* g_racecarScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f452c
|
|
||||||
MxAtomId* g_carraceScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4530
|
|
||||||
MxAtomId* g_carracerScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4534
|
|
||||||
MxAtomId* g_jetraceScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4538
|
|
||||||
MxAtomId* g_jetracerScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f453c
|
|
||||||
MxAtomId* g_isleScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4540
|
|
||||||
MxAtomId* g_elevbottScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4544
|
|
||||||
MxAtomId* g_infodoorScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4548
|
|
||||||
MxAtomId* g_infomainScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f454c
|
|
||||||
MxAtomId* g_infoscorScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4550
|
|
||||||
MxAtomId* g_regbookScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4554
|
|
||||||
MxAtomId* g_histbookScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4558
|
|
||||||
MxAtomId* g_hospitalScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f455c
|
|
||||||
MxAtomId* g_policeScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4560
|
|
||||||
MxAtomId* g_garageScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4564
|
|
||||||
MxAtomId* g_act2mainScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4568
|
|
||||||
MxAtomId* g_act3Script = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f456c
|
|
||||||
MxAtomId* g_jukeboxScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4570
|
|
||||||
MxAtomId* g_pz5Script = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4574
|
|
||||||
MxAtomId* g_introScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4578
|
|
||||||
MxAtomId* g_testScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f457c
|
|
||||||
MxAtomId* g_jukeboxwScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4580
|
|
||||||
MxAtomId* g_sndAnimScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4584
|
|
||||||
MxAtomId* g_creditsScript = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f4588
|
|
||||||
MxAtomId* g_nocdSourceName = NULL;
|
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f6718
|
// GLOBAL: LEGO1 0x100f6718
|
||||||
// STRING: LEGO1 0x100f6710
|
// STRING: LEGO1 0x100f6710
|
||||||
const char* g_current = "current";
|
const char* g_current = "current";
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003dd70
|
|
||||||
LegoROI* PickROI(MxLong p_a, MxLong p_b)
|
|
||||||
{
|
|
||||||
return (LegoROI*) VideoManager()->Get3DManager()->GetLego3DView()->Pick(p_a, p_b);
|
|
||||||
}
|
|
||||||
|
|
||||||
// STUB: LEGO1 0x1003ddc0
|
|
||||||
LegoEntity* PickEntity(MxLong, MxLong)
|
|
||||||
{
|
|
||||||
// TODO
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100528e0
|
|
||||||
void CreateScripts()
|
|
||||||
{
|
|
||||||
g_copterScript = new MxAtomId("\\lego\\scripts\\build\\copter", e_lowerCase2);
|
|
||||||
g_dunecarScript = new MxAtomId("\\lego\\scripts\\build\\dunecar", e_lowerCase2);
|
|
||||||
g_jetskiScript = new MxAtomId("\\lego\\scripts\\build\\jetski", e_lowerCase2);
|
|
||||||
g_racecarScript = new MxAtomId("\\lego\\scripts\\build\\racecar", e_lowerCase2);
|
|
||||||
g_carraceScript = new MxAtomId("\\lego\\scripts\\race\\carrace", e_lowerCase2);
|
|
||||||
g_carracerScript = new MxAtomId("\\lego\\scripts\\race\\carracer", e_lowerCase2);
|
|
||||||
g_jetraceScript = new MxAtomId("\\lego\\scripts\\race\\jetrace", e_lowerCase2);
|
|
||||||
g_jetracerScript = new MxAtomId("\\lego\\scripts\\race\\jetracer", e_lowerCase2);
|
|
||||||
g_isleScript = new MxAtomId("\\lego\\scripts\\isle\\isle", e_lowerCase2);
|
|
||||||
g_elevbottScript = new MxAtomId("\\lego\\scripts\\infocntr\\elevbott", e_lowerCase2);
|
|
||||||
g_infodoorScript = new MxAtomId("\\lego\\scripts\\infocntr\\infodoor", e_lowerCase2);
|
|
||||||
g_infomainScript = new MxAtomId("\\lego\\scripts\\infocntr\\infomain", e_lowerCase2);
|
|
||||||
g_infoscorScript = new MxAtomId("\\lego\\scripts\\infocntr\\infoscor", e_lowerCase2);
|
|
||||||
g_regbookScript = new MxAtomId("\\lego\\scripts\\infocntr\\regbook", e_lowerCase2);
|
|
||||||
g_histbookScript = new MxAtomId("\\lego\\scripts\\infocntr\\histbook", e_lowerCase2);
|
|
||||||
g_hospitalScript = new MxAtomId("\\lego\\scripts\\hospital\\hospital", e_lowerCase2);
|
|
||||||
g_policeScript = new MxAtomId("\\lego\\scripts\\police\\police", e_lowerCase2);
|
|
||||||
g_garageScript = new MxAtomId("\\lego\\scripts\\garage\\garage", e_lowerCase2);
|
|
||||||
g_act2mainScript = new MxAtomId("\\lego\\scripts\\act2\\act2main", e_lowerCase2);
|
|
||||||
g_act3Script = new MxAtomId("\\lego\\scripts\\act3\\act3", e_lowerCase2);
|
|
||||||
g_jukeboxScript = new MxAtomId("\\lego\\scripts\\isle\\jukebox", e_lowerCase2);
|
|
||||||
g_pz5Script = new MxAtomId("\\lego\\scripts\\isle\\pz5", e_lowerCase2);
|
|
||||||
g_introScript = new MxAtomId("\\lego\\scripts\\intro", e_lowerCase2);
|
|
||||||
g_testScript = new MxAtomId("\\lego\\scripts\\test\\test", e_lowerCase2);
|
|
||||||
g_jukeboxwScript = new MxAtomId("\\lego\\scripts\\isle\\jukeboxw", e_lowerCase2);
|
|
||||||
g_sndAnimScript = new MxAtomId("\\lego\\scripts\\sndanim", e_lowerCase2);
|
|
||||||
g_creditsScript = new MxAtomId("\\lego\\scripts\\credits", e_lowerCase2);
|
|
||||||
g_nocdSourceName = new MxAtomId("\\lego\\scripts\\nocd", e_lowerCase2);
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100530c0
|
|
||||||
void DestroyScripts()
|
|
||||||
{
|
|
||||||
delete g_copterScript;
|
|
||||||
delete g_dunecarScript;
|
|
||||||
delete g_jetskiScript;
|
|
||||||
delete g_racecarScript;
|
|
||||||
delete g_carraceScript;
|
|
||||||
delete g_carracerScript;
|
|
||||||
delete g_jetraceScript;
|
|
||||||
delete g_jetracerScript;
|
|
||||||
delete g_isleScript;
|
|
||||||
delete g_elevbottScript;
|
|
||||||
delete g_infodoorScript;
|
|
||||||
delete g_infomainScript;
|
|
||||||
delete g_infoscorScript;
|
|
||||||
delete g_regbookScript;
|
|
||||||
delete g_histbookScript;
|
|
||||||
delete g_hospitalScript;
|
|
||||||
delete g_policeScript;
|
|
||||||
delete g_garageScript;
|
|
||||||
delete g_act2mainScript;
|
|
||||||
delete g_act3Script;
|
|
||||||
delete g_jukeboxScript;
|
|
||||||
delete g_pz5Script;
|
|
||||||
delete g_introScript;
|
|
||||||
delete g_testScript;
|
|
||||||
delete g_jukeboxwScript;
|
|
||||||
delete g_sndAnimScript;
|
|
||||||
delete g_creditsScript;
|
|
||||||
delete g_nocdSourceName;
|
|
||||||
|
|
||||||
g_copterScript = NULL;
|
|
||||||
g_dunecarScript = NULL;
|
|
||||||
g_jetskiScript = NULL;
|
|
||||||
g_racecarScript = NULL;
|
|
||||||
g_carraceScript = NULL;
|
|
||||||
g_carracerScript = NULL;
|
|
||||||
g_jetraceScript = NULL;
|
|
||||||
g_jetracerScript = NULL;
|
|
||||||
g_isleScript = NULL;
|
|
||||||
g_elevbottScript = NULL;
|
|
||||||
g_infodoorScript = NULL;
|
|
||||||
g_infomainScript = NULL;
|
|
||||||
g_infoscorScript = NULL;
|
|
||||||
g_regbookScript = NULL;
|
|
||||||
g_histbookScript = NULL;
|
|
||||||
g_hospitalScript = NULL;
|
|
||||||
g_policeScript = NULL;
|
|
||||||
g_garageScript = NULL;
|
|
||||||
g_act2mainScript = NULL;
|
|
||||||
g_act3Script = NULL;
|
|
||||||
g_jukeboxScript = NULL;
|
|
||||||
g_pz5Script = NULL;
|
|
||||||
g_introScript = NULL;
|
|
||||||
g_testScript = NULL;
|
|
||||||
g_testScript = NULL;
|
|
||||||
g_jukeboxwScript = NULL;
|
|
||||||
g_sndAnimScript = NULL;
|
|
||||||
g_creditsScript = NULL;
|
|
||||||
g_nocdSourceName = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10053430
|
|
||||||
const char* GetNoCD_SourceName()
|
|
||||||
{
|
|
||||||
return g_nocdSourceName->GetInternal();
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10058a00
|
// FUNCTION: LEGO1 0x10058a00
|
||||||
LegoOmni::LegoOmni()
|
LegoOmni::LegoOmni()
|
||||||
{
|
{
|
189
LEGO1/lego/legoomni/src/main/scripts.cpp
Normal file
189
LEGO1/lego/legoomni/src/main/scripts.cpp
Normal file
|
@ -0,0 +1,189 @@
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
|
#include "mxatom.h"
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f451c
|
||||||
|
MxAtomId* g_copterScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4520
|
||||||
|
MxAtomId* g_dunecarScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4524
|
||||||
|
MxAtomId* g_jetskiScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4528
|
||||||
|
MxAtomId* g_racecarScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f452c
|
||||||
|
MxAtomId* g_carraceScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4530
|
||||||
|
MxAtomId* g_carracerScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4534
|
||||||
|
MxAtomId* g_jetraceScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4538
|
||||||
|
MxAtomId* g_jetracerScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f453c
|
||||||
|
MxAtomId* g_isleScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4540
|
||||||
|
MxAtomId* g_elevbottScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4544
|
||||||
|
MxAtomId* g_infodoorScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4548
|
||||||
|
MxAtomId* g_infomainScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f454c
|
||||||
|
MxAtomId* g_infoscorScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4550
|
||||||
|
MxAtomId* g_regbookScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4554
|
||||||
|
MxAtomId* g_histbookScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4558
|
||||||
|
MxAtomId* g_hospitalScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f455c
|
||||||
|
MxAtomId* g_policeScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4560
|
||||||
|
MxAtomId* g_garageScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4564
|
||||||
|
MxAtomId* g_act2mainScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4568
|
||||||
|
MxAtomId* g_act3Script = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f456c
|
||||||
|
MxAtomId* g_jukeboxScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4570
|
||||||
|
MxAtomId* g_pz5Script = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4574
|
||||||
|
MxAtomId* g_introScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4578
|
||||||
|
MxAtomId* g_testScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f457c
|
||||||
|
MxAtomId* g_jukeboxwScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4580
|
||||||
|
MxAtomId* g_sndAnimScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4584
|
||||||
|
MxAtomId* g_creditsScript = NULL;
|
||||||
|
|
||||||
|
// GLOBAL: LEGO1 0x100f4588
|
||||||
|
MxAtomId* g_nocdSourceName = NULL;
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x100528e0
|
||||||
|
void CreateScripts()
|
||||||
|
{
|
||||||
|
g_copterScript = new MxAtomId("\\lego\\scripts\\build\\copter", e_lowerCase2);
|
||||||
|
g_dunecarScript = new MxAtomId("\\lego\\scripts\\build\\dunecar", e_lowerCase2);
|
||||||
|
g_jetskiScript = new MxAtomId("\\lego\\scripts\\build\\jetski", e_lowerCase2);
|
||||||
|
g_racecarScript = new MxAtomId("\\lego\\scripts\\build\\racecar", e_lowerCase2);
|
||||||
|
g_carraceScript = new MxAtomId("\\lego\\scripts\\race\\carrace", e_lowerCase2);
|
||||||
|
g_carracerScript = new MxAtomId("\\lego\\scripts\\race\\carracer", e_lowerCase2);
|
||||||
|
g_jetraceScript = new MxAtomId("\\lego\\scripts\\race\\jetrace", e_lowerCase2);
|
||||||
|
g_jetracerScript = new MxAtomId("\\lego\\scripts\\race\\jetracer", e_lowerCase2);
|
||||||
|
g_isleScript = new MxAtomId("\\lego\\scripts\\isle\\isle", e_lowerCase2);
|
||||||
|
g_elevbottScript = new MxAtomId("\\lego\\scripts\\infocntr\\elevbott", e_lowerCase2);
|
||||||
|
g_infodoorScript = new MxAtomId("\\lego\\scripts\\infocntr\\infodoor", e_lowerCase2);
|
||||||
|
g_infomainScript = new MxAtomId("\\lego\\scripts\\infocntr\\infomain", e_lowerCase2);
|
||||||
|
g_infoscorScript = new MxAtomId("\\lego\\scripts\\infocntr\\infoscor", e_lowerCase2);
|
||||||
|
g_regbookScript = new MxAtomId("\\lego\\scripts\\infocntr\\regbook", e_lowerCase2);
|
||||||
|
g_histbookScript = new MxAtomId("\\lego\\scripts\\infocntr\\histbook", e_lowerCase2);
|
||||||
|
g_hospitalScript = new MxAtomId("\\lego\\scripts\\hospital\\hospital", e_lowerCase2);
|
||||||
|
g_policeScript = new MxAtomId("\\lego\\scripts\\police\\police", e_lowerCase2);
|
||||||
|
g_garageScript = new MxAtomId("\\lego\\scripts\\garage\\garage", e_lowerCase2);
|
||||||
|
g_act2mainScript = new MxAtomId("\\lego\\scripts\\act2\\act2main", e_lowerCase2);
|
||||||
|
g_act3Script = new MxAtomId("\\lego\\scripts\\act3\\act3", e_lowerCase2);
|
||||||
|
g_jukeboxScript = new MxAtomId("\\lego\\scripts\\isle\\jukebox", e_lowerCase2);
|
||||||
|
g_pz5Script = new MxAtomId("\\lego\\scripts\\isle\\pz5", e_lowerCase2);
|
||||||
|
g_introScript = new MxAtomId("\\lego\\scripts\\intro", e_lowerCase2);
|
||||||
|
g_testScript = new MxAtomId("\\lego\\scripts\\test\\test", e_lowerCase2);
|
||||||
|
g_jukeboxwScript = new MxAtomId("\\lego\\scripts\\isle\\jukeboxw", e_lowerCase2);
|
||||||
|
g_sndAnimScript = new MxAtomId("\\lego\\scripts\\sndanim", e_lowerCase2);
|
||||||
|
g_creditsScript = new MxAtomId("\\lego\\scripts\\credits", e_lowerCase2);
|
||||||
|
g_nocdSourceName = new MxAtomId("\\lego\\scripts\\nocd", e_lowerCase2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x100530c0
|
||||||
|
void DestroyScripts()
|
||||||
|
{
|
||||||
|
delete g_copterScript;
|
||||||
|
delete g_dunecarScript;
|
||||||
|
delete g_jetskiScript;
|
||||||
|
delete g_racecarScript;
|
||||||
|
delete g_carraceScript;
|
||||||
|
delete g_carracerScript;
|
||||||
|
delete g_jetraceScript;
|
||||||
|
delete g_jetracerScript;
|
||||||
|
delete g_isleScript;
|
||||||
|
delete g_elevbottScript;
|
||||||
|
delete g_infodoorScript;
|
||||||
|
delete g_infomainScript;
|
||||||
|
delete g_infoscorScript;
|
||||||
|
delete g_regbookScript;
|
||||||
|
delete g_histbookScript;
|
||||||
|
delete g_hospitalScript;
|
||||||
|
delete g_policeScript;
|
||||||
|
delete g_garageScript;
|
||||||
|
delete g_act2mainScript;
|
||||||
|
delete g_act3Script;
|
||||||
|
delete g_jukeboxScript;
|
||||||
|
delete g_pz5Script;
|
||||||
|
delete g_introScript;
|
||||||
|
delete g_testScript;
|
||||||
|
delete g_jukeboxwScript;
|
||||||
|
delete g_sndAnimScript;
|
||||||
|
delete g_creditsScript;
|
||||||
|
delete g_nocdSourceName;
|
||||||
|
|
||||||
|
g_copterScript = NULL;
|
||||||
|
g_dunecarScript = NULL;
|
||||||
|
g_jetskiScript = NULL;
|
||||||
|
g_racecarScript = NULL;
|
||||||
|
g_carraceScript = NULL;
|
||||||
|
g_carracerScript = NULL;
|
||||||
|
g_jetraceScript = NULL;
|
||||||
|
g_jetracerScript = NULL;
|
||||||
|
g_isleScript = NULL;
|
||||||
|
g_elevbottScript = NULL;
|
||||||
|
g_infodoorScript = NULL;
|
||||||
|
g_infomainScript = NULL;
|
||||||
|
g_infoscorScript = NULL;
|
||||||
|
g_regbookScript = NULL;
|
||||||
|
g_histbookScript = NULL;
|
||||||
|
g_hospitalScript = NULL;
|
||||||
|
g_policeScript = NULL;
|
||||||
|
g_garageScript = NULL;
|
||||||
|
g_act2mainScript = NULL;
|
||||||
|
g_act3Script = NULL;
|
||||||
|
g_jukeboxScript = NULL;
|
||||||
|
g_pz5Script = NULL;
|
||||||
|
g_introScript = NULL;
|
||||||
|
g_testScript = NULL;
|
||||||
|
g_testScript = NULL;
|
||||||
|
g_jukeboxwScript = NULL;
|
||||||
|
g_sndAnimScript = NULL;
|
||||||
|
g_creditsScript = NULL;
|
||||||
|
g_nocdSourceName = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x10053430
|
||||||
|
const char* GetNoCD_SourceName()
|
||||||
|
{
|
||||||
|
return g_nocdSourceName->GetInternal();
|
||||||
|
}
|
|
@ -6,11 +6,11 @@
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(PoliceEntity, 0x68)
|
DECOMP_SIZE_ASSERT(PoliceEntity, 0x68)
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#include "policestate.h"
|
#include "policestate.h"
|
||||||
|
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxdsaction.h"
|
#include "mxdsaction.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "police.h"
|
#include "police.h"
|
||||||
#include "police_actions.h"
|
#include "police_actions.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
#include "islepathactor.h"
|
#include "islepathactor.h"
|
||||||
#include "legoanimationmanager.h"
|
#include "legoanimationmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(RaceStandsEntity, 0x68)
|
DECOMP_SIZE_ASSERT(RaceStandsEntity, 0x68)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "legolocomotionanimpresenter.h"
|
#include "legolocomotionanimpresenter.h"
|
||||||
|
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "3dmanager/lego3dmanager.h"
|
#include "3dmanager/lego3dmanager.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxdirectx/mxdirect3d.h"
|
#include "mxdirectx/mxdirect3d.h"
|
||||||
#include "mxdirectx/mxstopwatch.h"
|
#include "mxdirectx/mxstopwatch.h"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legovariables.h"
|
#include "legovariables.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
|
@ -18,6 +18,7 @@
|
||||||
#include "mxtimer.h"
|
#include "mxtimer.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
#include "radio.h"
|
#include "radio.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(GasStation, 0x128)
|
DECOMP_SIZE_ASSERT(GasStation, 0x128)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "jukebox_actions.h"
|
#include "jukebox_actions.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxactionnotificationparam.h"
|
#include "mxactionnotificationparam.h"
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
#include "mxticklemanager.h"
|
#include "mxticklemanager.h"
|
||||||
#include "mxtimer.h"
|
#include "mxtimer.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Hospital, 0x12c)
|
DECOMP_SIZE_ASSERT(Hospital, 0x12c)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legoplantmanager.h"
|
#include "legoplantmanager.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
#include "mxutilities.h"
|
#include "mxutilities.h"
|
||||||
#include "radiostate.h"
|
#include "radiostate.h"
|
||||||
|
#include "scripts.h"
|
||||||
#include "sndanim_actions.h"
|
#include "sndanim_actions.h"
|
||||||
#include "viewmanager/viewmanager.h"
|
#include "viewmanager/viewmanager.h"
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,14 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxactionnotificationparam.h"
|
#include "mxactionnotificationparam.h"
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "mxnotificationmanager.h"
|
#include "mxnotificationmanager.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(InfocenterDoor, 0xfc)
|
DECOMP_SIZE_ASSERT(InfocenterDoor, 0xfc)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "legobackgroundcolor.h"
|
#include "legobackgroundcolor.h"
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
#include "legovariables.h"
|
#include "legovariables.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
|
@ -31,6 +31,7 @@
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
#include "mxvariabletable.h"
|
#include "mxvariabletable.h"
|
||||||
#include "pizza.h"
|
#include "pizza.h"
|
||||||
|
#include "scripts.h"
|
||||||
#include "skateboard.h"
|
#include "skateboard.h"
|
||||||
#include "towtrack.h"
|
#include "towtrack.h"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "mxnotificationmanager.h"
|
#include "mxnotificationmanager.h"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxactionnotificationparam.h"
|
#include "mxactionnotificationparam.h"
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "mxactionnotificationparam.h"
|
#include "mxactionnotificationparam.h"
|
||||||
#include "mxbackgroundaudiomanager.h"
|
#include "mxbackgroundaudiomanager.h"
|
||||||
|
@ -17,6 +16,7 @@
|
||||||
#include "mxtimer.h"
|
#include "mxtimer.h"
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
#include "regbook_actions.h"
|
#include "regbook_actions.h"
|
||||||
|
#include "scripts.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(RegistrationBook, 0x2d0)
|
DECOMP_SIZE_ASSERT(RegistrationBook, 0x2d0)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "legocontrolmanager.h"
|
#include "legocontrolmanager.h"
|
||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legoomni.h"
|
#include "legomain.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "misc/legocontainer.h"
|
#include "misc/legocontainer.h"
|
||||||
#include "mxactionnotificationparam.h"
|
#include "mxactionnotificationparam.h"
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
#include "pizzamissionstate.h"
|
#include "pizzamissionstate.h"
|
||||||
#include "racestate.h"
|
#include "racestate.h"
|
||||||
#include "scorestate.h"
|
#include "scorestate.h"
|
||||||
|
#include "scripts.h"
|
||||||
#include "towtrackmissionstate.h"
|
#include "towtrackmissionstate.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Score, 0x104)
|
DECOMP_SIZE_ASSERT(Score, 0x104)
|
||||||
|
|
Loading…
Reference in a new issue