mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
Refactor LegoOmni into LegoMain/Scripts (#883)
* Refactor LegoOmni into LegoMain/Scripts * Fix guard
This commit is contained in:
committed by
GitHub
parent
6382347f73
commit
1b1d2ecde6
@@ -1,5 +1,5 @@
|
||||
#ifndef LEGOOMNI_H
|
||||
#define LEGOOMNI_H
|
||||
#ifndef LEGOMAIN_H
|
||||
#define LEGOMAIN_H
|
||||
|
||||
#include "compat.h"
|
||||
#include "mxdsaction.h"
|
||||
@@ -27,35 +27,6 @@ class MxBackgroundAudioManager;
|
||||
class MxTransitionManager;
|
||||
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
|
||||
// SIZE 0x140
|
||||
class LegoOmni : public MxOmni {
|
||||
@@ -205,12 +176,4 @@ public:
|
||||
MxBool m_unk0x13c; // 0x13c
|
||||
};
|
||||
|
||||
const char* GetNoCD_SourceName();
|
||||
|
||||
LegoEntity* PickEntity(MxLong, MxLong);
|
||||
LegoROI* PickROI(MxLong, MxLong);
|
||||
|
||||
void CreateScripts();
|
||||
void DestroyScripts();
|
||||
|
||||
#endif // LEGOOMNI_H
|
||||
#endif // LEGOMAIN_H
|
||||
@@ -11,8 +11,11 @@ class LegoEntity;
|
||||
class LegoFile;
|
||||
class LegoAnimPresenter;
|
||||
class LegoNamedTexture;
|
||||
class LegoROI;
|
||||
class LegoTreeNode;
|
||||
|
||||
LegoEntity* PickEntity(MxLong, MxLong);
|
||||
LegoROI* PickROI(MxLong, MxLong);
|
||||
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node);
|
||||
void FUN_1003e050(LegoAnimPresenter* p_presenter);
|
||||
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
|
||||
Reference in New Issue
Block a user