2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOOMNI_H
|
|
|
|
#define LEGOOMNI_H
|
|
|
|
|
2023-07-02 02:53:54 -04:00
|
|
|
#include "compat.h"
|
2023-06-19 01:36:07 -04:00
|
|
|
#include "legoentity.h"
|
|
|
|
#include "legoinputmanager.h"
|
|
|
|
#include "legogamestate.h"
|
|
|
|
#include "legonavcontroller.h"
|
2023-06-30 14:34:39 -04:00
|
|
|
#include "legopathboundary.h"
|
2023-06-19 01:36:07 -04:00
|
|
|
#include "legoroi.h"
|
|
|
|
#include "legovideomanager.h"
|
|
|
|
#include "mxatomid.h"
|
2023-04-27 22:19:39 -04:00
|
|
|
#include "mxbackgroundaudiomanager.h"
|
|
|
|
#include "mxdsaction.h"
|
2023-06-11 21:03:54 -04:00
|
|
|
#include "mxdsfile.h"
|
|
|
|
#include "mxdsobject.h"
|
2023-06-19 01:36:07 -04:00
|
|
|
#include "mxomni.h"
|
2023-04-27 22:19:39 -04:00
|
|
|
#include "mxtransitionmanager.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "isle.h"
|
|
|
|
#include "legobuildingmanager.h"
|
|
|
|
#include "legoplantmanager.h"
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
class LegoSoundManager;
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// VTABLE 0x100d8638
|
|
|
|
// SIZE: 0x140
|
2023-06-19 01:36:07 -04:00
|
|
|
class LegoOmni : public MxOmni
|
2023-04-27 22:19:39 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
__declspec(dllexport) void CreateBackgroundAudio();
|
2023-07-02 04:05:49 -04:00
|
|
|
__declspec(dllexport) void RemoveWorld(const MxAtomId &p1, MxLong p2);
|
2023-06-30 14:34:39 -04:00
|
|
|
__declspec(dllexport) static int GetCurrPathInfo(LegoPathBoundary **,int &);
|
2023-04-27 22:19:39 -04:00
|
|
|
__declspec(dllexport) static void CreateInstance();
|
|
|
|
__declspec(dllexport) static LegoOmni *GetInstance();
|
|
|
|
|
2023-06-19 02:19:40 -04:00
|
|
|
LegoOmni();
|
2023-06-19 01:36:07 -04:00
|
|
|
virtual ~LegoOmni(); // vtable+00
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-09-25 16:28:25 -04:00
|
|
|
virtual MxLong Notify(MxParam &p) override; // vtable+04
|
2023-06-25 21:34:13 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10058aa0
|
2023-09-25 16:28:25 -04:00
|
|
|
inline virtual const char *ClassName() const override // vtable+0c
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
|
|
|
// 0x100f671c
|
|
|
|
return "LegoOmni";
|
|
|
|
}
|
2023-06-25 21:34:13 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x10058ab0
|
2023-09-25 16:28:25 -04:00
|
|
|
inline virtual MxBool IsA(const char *name) const override // vtable+10
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
|
|
|
return !strcmp(name, LegoOmni::ClassName()) || MxOmni::IsA(name);
|
|
|
|
}
|
2023-06-25 21:34:13 -04:00
|
|
|
|
2023-09-25 16:28:25 -04:00
|
|
|
virtual void Init() override; // vtable+14
|
|
|
|
virtual MxResult Create(COMPAT_CONST MxOmniCreateParam &p) override; // vtable+18
|
|
|
|
virtual void Destroy() override; // vtable+1c
|
|
|
|
virtual void vtable0x20() override;
|
|
|
|
virtual void DeleteObject(MxDSAction &ds) override;
|
|
|
|
virtual MxBool DoesEntityExist(MxDSAction &ds) override;
|
|
|
|
virtual void vtable0x2c() override;
|
|
|
|
virtual int vtable0x30(char*, int, MxCore*) override;
|
|
|
|
virtual void NotifyCurrentEntity() override;
|
|
|
|
virtual void StartTimer() override;
|
|
|
|
virtual void vtable0x3c() override;
|
|
|
|
virtual MxBool vtable40();
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-06-19 01:36:07 -04:00
|
|
|
LegoVideoManager *GetVideoManager() { return (LegoVideoManager *) m_videoManager; }
|
2023-06-22 12:23:54 -04:00
|
|
|
LegoSoundManager *GetSoundManager() { return (LegoSoundManager *)m_soundManager;}
|
|
|
|
MxBackgroundAudioManager *GetBackgroundAudioManager() { return m_bkgAudioManager; }
|
2023-04-27 22:19:39 -04:00
|
|
|
LegoInputManager *GetInputManager() { return m_inputMgr; }
|
2023-06-29 04:10:08 -04:00
|
|
|
Isle *GetIsle() { return m_isle; }
|
|
|
|
LegoBuildingManager *GetLegoBuildingManager() { return m_buildingManager; }
|
|
|
|
LegoPlantManager *GetLegoPlantManager() { return m_plantManager; }
|
2023-06-22 12:23:54 -04:00
|
|
|
LegoGameState *GetGameState() { return m_gameState; }
|
|
|
|
LegoNavController *GetNavController() { return m_navController; }
|
2023-06-29 13:02:47 -04:00
|
|
|
MxTransitionManager *GetTransitionManager() { return m_transitionManager; }
|
2023-04-27 22:19:39 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
int m_unk68;
|
|
|
|
int m_unk6c;
|
2023-06-19 01:36:07 -04:00
|
|
|
LegoInputManager *m_inputMgr; // 0x70
|
|
|
|
char m_unk74[0x10];
|
|
|
|
LegoNavController *m_navController; // 0x84
|
2023-06-29 04:10:08 -04:00
|
|
|
Isle* m_isle; // 0x88
|
|
|
|
char m_unk8c[0x4];
|
|
|
|
LegoPlantManager* m_plantManager; // 0x90
|
|
|
|
char m_unk94[0x4];
|
|
|
|
LegoBuildingManager* m_buildingManager; // 0x98
|
2023-06-19 01:36:07 -04:00
|
|
|
LegoGameState *m_gameState; // 0x9c
|
2023-06-29 13:02:47 -04:00
|
|
|
MxDSAction m_action;
|
2023-06-19 01:36:07 -04:00
|
|
|
MxBackgroundAudioManager *m_bkgAudioManager; // 0x134
|
|
|
|
MxTransitionManager *m_transitionManager; // 0x138
|
2023-06-29 04:10:08 -04:00
|
|
|
int m_unk13c;
|
2023-06-11 01:11:05 -04:00
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
__declspec(dllexport) MxBackgroundAudioManager * BackgroundAudioManager();
|
2023-07-02 05:07:11 -04:00
|
|
|
__declspec(dllexport) MxDSObject * CreateStreamObject(MxDSFile *,MxS16);
|
2023-06-11 21:03:54 -04:00
|
|
|
__declspec(dllexport) LegoGameState * GameState();
|
|
|
|
__declspec(dllexport) const char * GetNoCD_SourceName();
|
|
|
|
__declspec(dllexport) LegoInputManager * InputManager();
|
|
|
|
__declspec(dllexport) LegoOmni * Lego();
|
|
|
|
__declspec(dllexport) void MakeSourceName(char *, const char *);
|
2023-07-02 04:05:49 -04:00
|
|
|
__declspec(dllexport) LegoEntity * PickEntity(MxLong,MxLong);
|
|
|
|
__declspec(dllexport) LegoROI * PickROI(MxLong,MxLong);
|
2023-06-11 21:03:54 -04:00
|
|
|
__declspec(dllexport) void SetOmniUserMessage(void (*)(const char *,int));
|
|
|
|
__declspec(dllexport) LegoSoundManager * SoundManager();
|
2023-07-02 04:05:49 -04:00
|
|
|
__declspec(dllexport) MxLong Start(MxDSAction *);
|
2023-06-11 21:03:54 -04:00
|
|
|
__declspec(dllexport) MxTransitionManager * TransitionManager();
|
|
|
|
__declspec(dllexport) LegoVideoManager * VideoManager();
|
2023-07-02 04:05:49 -04:00
|
|
|
__declspec(dllexport) MxLong Start(MxDSAction *a);
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoBuildingManager* BuildingManager();
|
|
|
|
Isle* GetIsle();
|
|
|
|
LegoPlantManager* PlantManager();
|
2023-09-27 15:16:46 -04:00
|
|
|
MxBool KeyValueStringParse(char *, const char *, const char *);
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
#endif // LEGOOMNI_H
|