2023-06-11 21:03:54 -04:00
|
|
|
#ifndef LEGOWORLD_H
|
|
|
|
#define LEGOWORLD_H
|
|
|
|
|
2023-10-23 07:16:21 -04:00
|
|
|
#include "legocameracontroller.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "legoentity.h"
|
2024-01-15 15:44:04 -05:00
|
|
|
#include "legoentitylist.h"
|
2023-11-19 07:23:30 -05:00
|
|
|
#include "legopathcontrollerlist.h"
|
2024-01-15 15:44:04 -05:00
|
|
|
#include "mxcorelist.h"
|
2023-10-25 16:51:59 -04:00
|
|
|
#include "mxpresenter.h"
|
2023-11-19 07:23:30 -05:00
|
|
|
#include "mxpresenterlist.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
class IslePathActor;
|
2023-12-16 13:14:01 -05:00
|
|
|
class LegoPathBoundary;
|
2023-12-14 11:50:29 -05:00
|
|
|
|
2024-01-22 10:18:46 -05:00
|
|
|
struct PresenterSetCompare {
|
2024-01-24 12:12:57 -05:00
|
|
|
MxS32 operator()(MxPresenter* const& p_a, MxPresenter* const& p_b) const { return p_a > p_b; }
|
2024-01-22 10:18:46 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef set<MxPresenter*, PresenterSetCompare> MxPresenterSet;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6280
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0xf8
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoWorld : public LegoEntity {
|
2023-06-11 21:03:54 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
__declspec(dllexport) LegoWorld();
|
2024-01-24 12:12:57 -05:00
|
|
|
__declspec(dllexport) virtual ~LegoWorld() override; // vtable+0x0
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
|
2023-12-14 11:50:29 -05:00
|
|
|
virtual MxResult Tickle() override; // vtable+0x8
|
2023-10-25 16:51:59 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001d690
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0058
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoWorld";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001d6a0
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, LegoWorld::ClassName()) || LegoEntity::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
|
|
|
|
2024-01-13 15:00:11 -05:00
|
|
|
virtual MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
2024-01-18 20:24:15 -05:00
|
|
|
virtual void Destroy(MxBool p_fromDestructor) override; // vtable+0x1c
|
2024-01-13 15:00:11 -05:00
|
|
|
virtual void VTable0x50(); // vtable+0x50
|
|
|
|
virtual LegoCameraController* VTable0x54(); // vtable+0x54
|
|
|
|
virtual void VTable0x58(MxCore* p_object); // vtable+0x58
|
|
|
|
virtual MxBool VTable0x5c(); // vtable+0x5c
|
2024-01-15 15:44:04 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x100010a0
|
2024-01-15 15:44:04 -05:00
|
|
|
virtual void VTable0x60() {} // vtable+0x60
|
|
|
|
|
2024-01-13 15:00:11 -05:00
|
|
|
virtual MxBool VTable0x64(); // vtable+0x64
|
|
|
|
virtual void VTable0x68(MxBool p_add); // vtable+0x68
|
2023-12-14 11:50:29 -05:00
|
|
|
|
2024-01-13 15:00:11 -05:00
|
|
|
inline LegoCameraController* GetCamera() { return m_cameraController; }
|
2024-01-12 17:27:07 -05:00
|
|
|
inline undefined4 GetUnknown0xec() { return m_unk0xec; }
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-12-29 13:04:18 -05:00
|
|
|
undefined FUN_100220e0();
|
2023-12-15 17:29:32 -05:00
|
|
|
void EndAction(MxCore* p_object);
|
2023-12-14 11:50:29 -05:00
|
|
|
void FUN_1001fc80(IslePathActor* p_actor);
|
2024-01-12 19:34:38 -05:00
|
|
|
MxBool FUN_100727e0(MxU32, Mx3DPointFloat& p_loc, Mx3DPointFloat& p_dir, Mx3DPointFloat& p_up);
|
|
|
|
MxBool FUN_10072980(MxU32, Mx3DPointFloat& p_loc, Mx3DPointFloat& p_dir, Mx3DPointFloat& p_up);
|
2023-12-14 11:50:29 -05:00
|
|
|
void FUN_10073400();
|
|
|
|
void FUN_10073430();
|
2023-12-16 13:14:01 -05:00
|
|
|
MxS32 GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value);
|
2024-01-17 11:53:53 -05:00
|
|
|
MxPresenter* FindPresenter(const char* p_presenter, const char* p_name);
|
2024-01-21 12:38:22 -05:00
|
|
|
MxPresenter* FUN_10021790(MxAtomId& p_atom, MxS32 p_entityId);
|
2023-10-23 07:16:21 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1001dee0
|
|
|
|
// LegoWorld::`scalar deleting destructor'
|
|
|
|
|
2023-10-23 07:16:21 -04:00
|
|
|
protected:
|
2024-01-13 15:00:11 -05:00
|
|
|
LegoPathControllerList m_list0x68; // 0x68
|
|
|
|
MxPresenterList m_list0x80; // 0x80
|
|
|
|
LegoCameraController* m_cameraController; // 0x98
|
2024-01-15 15:44:04 -05:00
|
|
|
LegoEntityList* m_entityList; // 0x9c
|
|
|
|
MxCoreList* m_coreList; // 0xa0
|
2024-01-22 10:18:46 -05:00
|
|
|
undefined m_unk0xa4; // 0xa4
|
|
|
|
MxPresenterSet m_set0xa8; // 0xa8
|
2024-01-13 15:00:11 -05:00
|
|
|
MxPresenterList m_list0xb8; // 0xb8
|
2024-01-22 10:18:46 -05:00
|
|
|
MxPresenterSet m_set0xd0; // 0xd0
|
|
|
|
list<AutoROI*> m_list0xe0; // 0xe0
|
2024-01-13 15:00:11 -05:00
|
|
|
undefined4 m_unk0xec; // 0xec
|
|
|
|
undefined4 m_unk0xf0; // 0xf0
|
|
|
|
MxS16 m_unk0xf4; // 0xf4
|
|
|
|
MxBool m_worldStarted; // 0xf6
|
|
|
|
undefined m_unk0xf7; // 0xf7
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
2024-01-22 10:18:46 -05:00
|
|
|
// clang-format off
|
|
|
|
// TEMPLATE: LEGO1 0x1001d780
|
|
|
|
// _Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >::~_Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001d850
|
|
|
|
// _Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >::iterator::_Inc
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001d890
|
|
|
|
// _Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >::erase
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001dcf0
|
|
|
|
// _Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >::_Erase
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001dd30
|
|
|
|
// _Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >::_Init
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001ddf0
|
|
|
|
// list<AutoROI *,allocator<AutoROI *> >::~list<AutoROI *,allocator<AutoROI *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001df50
|
|
|
|
// List<AutoROI *>::~List<AutoROI *>
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001de60
|
|
|
|
// list<AutoROI *,allocator<AutoROI *> >::_Buynode
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001de90
|
|
|
|
// set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >::~set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001df00
|
|
|
|
// Set<MxPresenter *,PresenterSetCompare>::~Set<MxPresenter *,PresenterSetCompare>
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1001eed0
|
|
|
|
// MxPresenterListCursor::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001ef40
|
|
|
|
// MxPtrListCursor<MxPresenter>::~MxPtrListCursor<MxPresenter>
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1001ef90
|
|
|
|
// MxListCursor<MxPresenter *>::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1001f000
|
|
|
|
// MxPtrListCursor<MxPresenter>::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001f070
|
|
|
|
// MxListCursor<MxPresenter *>::~MxListCursor<MxPresenter *>
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1001f0c0
|
|
|
|
// MxPresenterListCursor::~MxPresenterListCursor
|
|
|
|
|
2024-01-06 12:06:50 -05:00
|
|
|
// TEMPLATE: LEGO1 0x10020760
|
|
|
|
// MxListCursor<MxPresenter *>::MxListCursor<MxPresenter *>
|
|
|
|
|
2024-01-22 10:18:46 -05:00
|
|
|
// GLOBAL: LEGO1 0x100f11a0
|
2024-01-24 12:12:57 -05:00
|
|
|
// _Tree<MxPresenter *,MxPresenter *,set<MxPresenter *,PresenterSetCompare,allocator<MxPresenter *>>::_Kfn,PresenterSetCompare,allocator<MxPresenter *> >::_Nil
|
|
|
|
// clang-format on
|
2024-01-22 10:18:46 -05:00
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
#endif // LEGOWORLD_H
|