mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 09:28:01 -05:00
07912eb05a
* Stubbed a bunch of classes and annotated them for later use. Heavily wip and more of pseudocode right now. * Converted pseudocode into real code! * Created a bunch more classes and added more information to exisiting ones Did not error check, this was pushed just for reference * More classes and implementation details. Still not checked for any errors * Fixed code and decided on a way to handle virtual table stubs * Some additional fixes * More smaller fixes * Added classes to project and made it compile * Fixed function adresses that caused the python script to fail * More classes and virtual function resolves. Builds and compares fine. * Again more classes and virtual function resolves. Builds and compares fine. * No clue, I guess forced update for line endings * Finished up some work, compiles fine. All functions are STUB annotated to not pollute reccmp.py output. * line ending change * rename GetClassName/IsClass Mirroring recent changes from master * further conform to current master * update project * cleanup * project only updates when you close msdev --------- Co-authored-by: Cydra <cydra95@gmail.com> Co-authored-by: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
122 lines
4.1 KiB
C++
122 lines
4.1 KiB
C++
#ifndef LEGOOMNI_H
|
|
#define LEGOOMNI_H
|
|
|
|
#include "legoentity.h"
|
|
#include "legoinputmanager.h"
|
|
#include "legogamestate.h"
|
|
#include "legonavcontroller.h"
|
|
#include "legoroi.h"
|
|
#include "legovideomanager.h"
|
|
#include "mxatomid.h"
|
|
#include "mxbackgroundaudiomanager.h"
|
|
#include "mxdsaction.h"
|
|
#include "mxdsfile.h"
|
|
#include "mxdsobject.h"
|
|
#include "mxomni.h"
|
|
#include "mxtransitionmanager.h"
|
|
#include "isle.h"
|
|
#include "legobuildingmanager.h"
|
|
#include "legoplantmanager.h"
|
|
|
|
class LegoSoundManager;
|
|
|
|
// VTABLE 0x100d8638
|
|
// SIZE: 0x140
|
|
class LegoOmni : public MxOmni
|
|
{
|
|
public:
|
|
__declspec(dllexport) void CreateBackgroundAudio();
|
|
__declspec(dllexport) void RemoveWorld(const MxAtomId &p1, long p2);
|
|
__declspec(dllexport) static int GetCurrPathInfo(class LegoPathBoundary * *,int &);
|
|
__declspec(dllexport) static void CreateInstance();
|
|
__declspec(dllexport) static LegoOmni *GetInstance();
|
|
|
|
LegoOmni();
|
|
virtual ~LegoOmni(); // vtable+00
|
|
|
|
virtual long Notify(MxParam &p); // vtable+04
|
|
|
|
// OFFSET: LEGO1 0x10058aa0
|
|
inline virtual const char *ClassName() const // vtable+0c
|
|
{
|
|
// 0x100f671c
|
|
return "LegoOmni";
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10058ab0
|
|
inline virtual MxBool IsA(const char *name) const // vtable+10
|
|
{
|
|
return !strcmp(name, LegoOmni::ClassName()) || MxOmni::IsA(name);
|
|
}
|
|
|
|
virtual void Init(); // vtable+14
|
|
virtual MxResult Create(MxOmniCreateParam &p); // vtable+18
|
|
virtual void Destroy(); // vtable+1c
|
|
virtual void vtable20();
|
|
virtual void vtable24(MxDSAction &ds);
|
|
virtual MxBool vtable28(MxDSAction &ds);
|
|
virtual void vtable2c();
|
|
virtual void vtable30();
|
|
virtual void vtable34();
|
|
virtual void vtable38();
|
|
virtual void vtable3c();
|
|
virtual unsigned char vtable40();
|
|
|
|
LegoVideoManager *GetVideoManager() { return (LegoVideoManager *) m_videoManager; }
|
|
LegoSoundManager *GetSoundManager() { return (LegoSoundManager *)m_soundManager;}
|
|
MxBackgroundAudioManager *GetBackgroundAudioManager() { return m_bkgAudioManager; }
|
|
LegoInputManager *GetInputManager() { return m_inputMgr; }
|
|
Isle *GetIsle() { return m_isle; }
|
|
LegoBuildingManager *GetLegoBuildingManager() { return m_buildingManager; }
|
|
LegoPlantManager *GetLegoPlantManager() { return m_plantManager; }
|
|
LegoGameState *GetGameState() { return m_gameState; }
|
|
LegoNavController *GetNavController() { return m_navController; }
|
|
|
|
private:
|
|
int m_unk68;
|
|
int m_unk6c;
|
|
LegoInputManager *m_inputMgr; // 0x70
|
|
char m_unk74[0x10];
|
|
LegoNavController *m_navController; // 0x84
|
|
Isle* m_isle; // 0x88
|
|
char m_unk8c[0x4];
|
|
LegoPlantManager* m_plantManager; // 0x90
|
|
char m_unk94[0x4];
|
|
LegoBuildingManager* m_buildingManager; // 0x98
|
|
LegoGameState *m_gameState; // 0x9c
|
|
char m_unka0[0x94];
|
|
MxBackgroundAudioManager *m_bkgAudioManager; // 0x134
|
|
MxTransitionManager *m_transitionManager; // 0x138
|
|
int m_unk13c;
|
|
|
|
};
|
|
|
|
__declspec(dllexport) MxBackgroundAudioManager * BackgroundAudioManager();
|
|
__declspec(dllexport) MxDSObject * CreateStreamObject(MxDSFile *,short);
|
|
__declspec(dllexport) MxEventManager * EventManager();
|
|
__declspec(dllexport) LegoGameState * GameState();
|
|
__declspec(dllexport) const char * GetNoCD_SourceName();
|
|
__declspec(dllexport) LegoInputManager * InputManager();
|
|
__declspec(dllexport) LegoOmni * Lego();
|
|
__declspec(dllexport) MxSoundManager * MSoundManager();
|
|
__declspec(dllexport) void MakeSourceName(char *, const char *);
|
|
__declspec(dllexport) MxMusicManager * MusicManager();
|
|
__declspec(dllexport) MxNotificationManager * NotificationManager();
|
|
__declspec(dllexport) LegoEntity * PickEntity(long,long);
|
|
__declspec(dllexport) LegoROI * PickROI(long,long);
|
|
__declspec(dllexport) void SetOmniUserMessage(void (*)(const char *,int));
|
|
__declspec(dllexport) LegoSoundManager * SoundManager();
|
|
__declspec(dllexport) long Start(MxDSAction *);
|
|
__declspec(dllexport) MxStreamer * Streamer();
|
|
__declspec(dllexport) MxTickleManager * TickleManager();
|
|
__declspec(dllexport) MxTransitionManager * TransitionManager();
|
|
__declspec(dllexport) MxVariableTable * VariableTable();
|
|
__declspec(dllexport) LegoVideoManager * VideoManager();
|
|
|
|
__declspec(dllexport) long Start(MxDSAction *a);
|
|
|
|
LegoBuildingManager* BuildingManager();
|
|
Isle* GetIsle();
|
|
LegoPlantManager* PlantManager();
|
|
|
|
#endif // LEGOOMNI_H
|