2023-06-11 21:03:54 -04:00
|
|
|
#ifndef LEGOWORLD_H
|
|
|
|
#define LEGOWORLD_H
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "legoentity.h"
|
2023-11-19 07:23:30 -05:00
|
|
|
#include "legopathcontrollerlist.h"
|
|
|
|
#include "mxpresenterlist.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "roi/legoroi.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-06-01 13:45:22 -04:00
|
|
|
class LegoCacheSoundList;
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoCameraController;
|
2024-06-01 13:45:22 -04:00
|
|
|
class LegoEntityList;
|
2023-12-16 13:14:01 -05:00
|
|
|
class LegoPathBoundary;
|
2024-01-26 17:52:03 -05:00
|
|
|
class LegoHideAnimPresenter;
|
2023-12-14 11:50:29 -05:00
|
|
|
|
2024-06-25 11:56:30 -04:00
|
|
|
#if defined(_M_IX86) || defined(__i386__)
|
|
|
|
#define COMPARE_POINTER_TYPE MxS32
|
|
|
|
#else
|
|
|
|
#define COMPARE_POINTER_TYPE MxS32*
|
|
|
|
#endif
|
|
|
|
|
2024-01-26 17:52:03 -05:00
|
|
|
struct CoreSetCompare {
|
2024-06-25 11:56:30 -04:00
|
|
|
MxS32 operator()(MxCore* const& p_a, MxCore* const& p_b) const
|
|
|
|
{
|
|
|
|
return (COMPARE_POINTER_TYPE) p_a < (COMPARE_POINTER_TYPE) p_b;
|
|
|
|
}
|
2024-01-22 10:18:46 -05:00
|
|
|
};
|
|
|
|
|
2024-01-26 17:52:03 -05:00
|
|
|
typedef set<MxCore*, CoreSetCompare> MxCoreSet;
|
2024-01-22 10:18:46 -05:00
|
|
|
|
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:
|
2024-01-27 15:18:35 -05:00
|
|
|
enum StartupTicks {
|
|
|
|
e_start = 0,
|
|
|
|
e_one,
|
|
|
|
e_two,
|
|
|
|
e_three,
|
|
|
|
e_four
|
|
|
|
};
|
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
LegoWorld();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoWorld() override; // vtable+0x00
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-10-25 16:51:59 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001d690
|
2024-02-01 15:42:10 -05:00
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
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
|
2024-02-01 15:42:10 -05:00
|
|
|
inline 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-02-01 15:42:10 -05:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void Destroy(MxBool p_fromDestructor) override; // vtable+0x1c
|
|
|
|
virtual void ReadyWorld(); // vtable+0x50
|
|
|
|
virtual LegoCameraController* VTable0x54(); // vtable+0x54
|
|
|
|
virtual void Add(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-05-24 20:41:57 -04:00
|
|
|
virtual MxBool Escape(); // vtable+0x64
|
2024-02-02 12:18:46 -05:00
|
|
|
virtual void Enable(MxBool p_enable); // vtable+0x68
|
2023-12-14 11:50:29 -05:00
|
|
|
|
2024-01-27 15:18:35 -05:00
|
|
|
MxBool PresentersPending();
|
2024-01-26 16:00:02 -05:00
|
|
|
void Remove(MxCore* p_object);
|
2024-05-10 14:07:38 -04:00
|
|
|
MxResult PlaceActor(
|
|
|
|
LegoPathActor* p_actor,
|
|
|
|
const char* p_name,
|
2024-05-04 10:13:05 -04:00
|
|
|
MxS32 p_src,
|
|
|
|
float p_srcScale,
|
|
|
|
MxS32 p_dest,
|
|
|
|
float p_destScale
|
|
|
|
);
|
2024-05-29 13:24:08 -04:00
|
|
|
MxResult PlaceActor(LegoPathActor* p_actor);
|
|
|
|
MxResult PlaceActor(
|
2024-05-13 06:46:59 -04:00
|
|
|
LegoPathActor* p_actor,
|
2024-04-20 12:33:10 -04:00
|
|
|
LegoAnimPresenter* p_presenter,
|
|
|
|
Vector3& p_position,
|
|
|
|
Vector3& p_direction
|
|
|
|
);
|
2024-05-29 13:24:08 -04:00
|
|
|
void RemoveActor(LegoPathActor* p_actor);
|
2024-04-13 17:42:05 -04:00
|
|
|
void FUN_1001fda0(LegoAnimPresenter* p_presenter);
|
2024-04-24 09:51:28 -04:00
|
|
|
void FUN_1001fe90(LegoAnimPresenter* p_presenter);
|
2024-05-09 09:57:38 -04:00
|
|
|
LegoPathBoundary* FindPathBoundary(const char* p_name);
|
2024-03-24 17:30:04 -04:00
|
|
|
void AddPath(LegoPathController* p_controller);
|
2024-05-12 15:30:34 -04:00
|
|
|
MxResult GetCurrPathInfo(LegoPathBoundary** p_boundaries, MxS32& p_numL);
|
2024-01-26 16:00:02 -05:00
|
|
|
MxCore* Find(const char* p_class, const char* p_name);
|
|
|
|
MxCore* Find(const MxAtomId& p_atom, MxS32 p_entityId);
|
2023-10-23 07:16:21 -04:00
|
|
|
|
2024-03-16 14:20:44 -04:00
|
|
|
inline LegoCameraController* GetCamera() { return m_cameraController; }
|
2024-05-09 15:33:48 -04:00
|
|
|
inline LegoEntityList* GetEntityList() { return m_entityList; }
|
2024-06-18 13:35:03 -04:00
|
|
|
inline MxS32 GetWorldId() { return m_worldId; }
|
2024-06-10 08:58:05 -04:00
|
|
|
inline MxBool GetUnknown0xd0Empty() { return m_set0xd0.empty(); }
|
2024-03-16 14:20:44 -04:00
|
|
|
inline list<LegoROI*>& GetROIList() { return m_roiList; }
|
2024-05-21 15:03:50 -04:00
|
|
|
inline LegoHideAnimPresenter* GetHideAnimPresenter() { return m_hideAnimPresenter; }
|
2024-03-16 14:20:44 -04:00
|
|
|
|
2024-06-18 13:35:03 -04:00
|
|
|
inline void SetWorldId(MxS32 p_worldId) { m_worldId = p_worldId; }
|
2024-03-15 21:32:06 -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-26 17:52:03 -05:00
|
|
|
LegoPathControllerList m_list0x68; // 0x68
|
|
|
|
MxPresenterList m_animPresenters; // 0x80
|
|
|
|
LegoCameraController* m_cameraController; // 0x98
|
|
|
|
LegoEntityList* m_entityList; // 0x9c
|
|
|
|
LegoCacheSoundList* m_cacheSoundList; // 0xa0
|
2024-01-27 11:48:50 -05:00
|
|
|
MxBool m_destroyed; // 0xa4
|
2024-01-26 17:52:03 -05:00
|
|
|
MxCoreSet m_set0xa8; // 0xa8
|
|
|
|
MxPresenterList m_controlPresenters; // 0xb8
|
|
|
|
MxCoreSet m_set0xd0; // 0xd0
|
2024-03-04 12:26:36 -05:00
|
|
|
list<LegoROI*> m_roiList; // 0xe0
|
2024-06-18 13:35:03 -04:00
|
|
|
MxS32 m_worldId; // 0xec
|
2024-01-26 17:52:03 -05:00
|
|
|
LegoHideAnimPresenter* m_hideAnimPresenter; // 0xf0
|
2024-01-27 15:18:35 -05:00
|
|
|
MxS16 m_startupTicks; // 0xf4
|
2024-01-26 17:52:03 -05:00
|
|
|
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
|
2024-01-26 17:52:03 -05:00
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::~_Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001d850
|
2024-01-26 17:52:03 -05:00
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::iterator::_Inc
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001d890
|
2024-01-26 17:52:03 -05:00
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::erase
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001dcf0
|
2024-01-26 17:52:03 -05:00
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Erase
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001dd30
|
2024-01-26 17:52:03 -05:00
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Init
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001ddf0
|
2024-02-17 10:07:34 -05:00
|
|
|
// list<LegoROI *,allocator<LegoROI *> >::~list<LegoROI *,allocator<LegoROI *> >
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001df50
|
2024-02-17 10:07:34 -05:00
|
|
|
// List<LegoROI *>::~List<LegoROI *>
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001de60
|
2024-02-17 10:07:34 -05:00
|
|
|
// list<LegoROI *,allocator<LegoROI *> >::_Buynode
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001de90
|
2024-01-26 17:52:03 -05:00
|
|
|
// set<MxCore *,CoreSetCompare,allocator<MxCore *> >::~set<MxCore *,CoreSetCompare,allocator<MxCore *> >
|
2024-01-22 10:18:46 -05:00
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001df00
|
2024-01-26 17:52:03 -05:00
|
|
|
// Set<MxCore *,CoreSetCompare>::~Set<MxCore *,CoreSetCompare>
|
2024-01-22 10:18:46 -05:00
|
|
|
|
2024-01-27 11:48:50 -05:00
|
|
|
// TEMPLATE: LEGO1 0x1001f590
|
2024-02-17 10:07:34 -05:00
|
|
|
// list<LegoROI *,allocator<LegoROI *> >::erase
|
2024-01-27 11:48:50 -05:00
|
|
|
|
2024-01-26 17:52:03 -05:00
|
|
|
// TEMPLATE: LEGO1 0x100208b0
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::insert
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10020b20
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::iterator::_Dec
|
|
|
|
|
|
|
|
// XTEMPLATE LEGO1 0x10020b70
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10020bb0
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Buynode
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10020bd0
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Insert
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10020e50
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Lrotate
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10020eb0
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Rrotate
|
|
|
|
|
2024-01-27 10:10:09 -05:00
|
|
|
// TEMPLATE: LEGO1 0x10021340
|
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::find
|
|
|
|
|
2024-01-26 17:52:03 -05:00
|
|
|
// TEMPLATE: LEGO1 0x10022360
|
2024-02-13 20:25:51 -05:00
|
|
|
// ?_Construct@@YAXPAPAVMxCore@@ABQAV1@@Z
|
2024-01-26 17:52:03 -05:00
|
|
|
|
2024-01-22 10:18:46 -05:00
|
|
|
// GLOBAL: LEGO1 0x100f11a0
|
2024-01-26 17:52:03 -05:00
|
|
|
// _Tree<MxCore *,MxCore *,set<MxCore *,CoreSetCompare,allocator<MxCore *> >::_Kfn,CoreSetCompare,allocator<MxCore *> >::_Nil
|
2024-01-24 12:12:57 -05:00
|
|
|
// clang-format on
|
2024-01-22 10:18:46 -05:00
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
#endif // LEGOWORLD_H
|