2023-06-29 04:10:08 -04:00
|
|
|
#ifndef LEGOANIMPRESENTER_H
|
|
|
|
#define LEGOANIMPRESENTER_H
|
|
|
|
|
2024-02-25 12:04:30 -05:00
|
|
|
#include "legoroilist.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "mxatom.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxvideopresenter.h"
|
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoAnim;
|
2024-01-15 14:37:50 -05:00
|
|
|
class LegoWorld;
|
2024-03-26 13:51:52 -04:00
|
|
|
class LegoAnimActor;
|
2024-04-24 09:51:28 -04:00
|
|
|
class LegoPathBoundary;
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxMatrix;
|
|
|
|
class Vector3;
|
2024-01-15 14:37:50 -05:00
|
|
|
|
2024-04-12 11:53:22 -04:00
|
|
|
struct LegoAnimStructComparator {
|
|
|
|
MxBool operator()(const char* const& p_a, const char* const& p_b) const { return strcmp(p_a, p_b) < 0; }
|
|
|
|
};
|
|
|
|
|
2024-04-25 10:00:58 -04:00
|
|
|
struct LegoAnimSubstComparator {
|
|
|
|
MxBool operator()(const char* const& p_a, const char* const& p_b) const { return strcmp(p_a, p_b) < 0; }
|
|
|
|
};
|
|
|
|
|
2024-04-12 11:53:22 -04:00
|
|
|
// SIZE 0x08
|
|
|
|
struct LegoAnimStruct {
|
2024-04-13 09:55:26 -04:00
|
|
|
LegoROI* m_roi; // 0x00
|
|
|
|
MxU32 m_index; // 0x04
|
2024-04-12 11:53:22 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef map<const char*, LegoAnimStruct, LegoAnimStructComparator> LegoAnimPresenterMap;
|
2024-04-25 10:00:58 -04:00
|
|
|
typedef map<const char*, const char*, LegoAnimSubstComparator> LegoAnimSubstMap;
|
2024-04-12 11:53:22 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d90c8
|
2024-03-22 21:30:58 -04:00
|
|
|
// SIZE 0xbc
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoAnimPresenter : public MxVideoPresenter {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-02-27 11:49:31 -05:00
|
|
|
enum {
|
2024-04-25 10:00:58 -04:00
|
|
|
c_hideOnStop = 0x01,
|
|
|
|
c_mustSucceed = 0x02
|
2024-02-27 11:49:31 -05:00
|
|
|
};
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoAnimPresenter();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoAnimPresenter() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10068530
|
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 0x100f071c
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoAnimPresenter";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10068540
|
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, LegoAnimPresenter::ClassName()) || MxVideoPresenter::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-04-25 11:27:55 -04:00
|
|
|
void ReadyTickle() override; // vtable+0x18
|
|
|
|
void StartingTickle() override; // vtable+0x1c
|
|
|
|
void StreamingTickle() override; // vtable+0x20
|
|
|
|
void DoneTickle() override; // vtable+0x2c
|
|
|
|
void ParseExtra() override; // vtable+0x30
|
|
|
|
MxResult AddToManager() override; // vtable+0x34
|
|
|
|
void Destroy() override; // vtable+0x38
|
|
|
|
MxResult StartAction(MxStreamController* p_controller, MxDSAction* p_action) override; // vtable+0x3c
|
|
|
|
void EndAction() override; // vtable+0x40
|
|
|
|
void PutFrame() override; // vtable+0x6c
|
|
|
|
virtual MxResult CreateAnim(MxStreamChunk* p_chunk); // vtable+0x88
|
|
|
|
virtual void VTable0x8c(); // vtable+0x8c
|
|
|
|
virtual void VTable0x90(); // vtable+0x90
|
|
|
|
virtual MxU32 VTable0x94(Vector3& p_vec1, Vector3& p_vec2, float p_f1, float p_f2, Vector3& p_vec3); // vtable+0x94
|
|
|
|
virtual MxResult VTable0x98(LegoPathBoundary* p_boundary); // vtable+0x98
|
2024-02-27 11:49:31 -05:00
|
|
|
|
2024-04-13 09:55:26 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000c990
|
2024-04-20 11:40:23 -04:00
|
|
|
virtual LegoROI** GetROIMap(MxU32& p_roiMapSize)
|
2024-04-04 06:26:03 -04:00
|
|
|
{
|
2024-04-20 11:40:23 -04:00
|
|
|
p_roiMapSize = m_roiMapSize;
|
|
|
|
return m_roiMap;
|
2024-04-04 06:26:03 -04:00
|
|
|
} // vtable+0x9c
|
2024-02-27 11:49:31 -05:00
|
|
|
|
2024-04-24 09:51:28 -04:00
|
|
|
virtual void VTable0xa0(Matrix4& p_matrix); // vtable+0xa0
|
2024-01-15 14:37:50 -05:00
|
|
|
|
2024-04-24 08:24:59 -04:00
|
|
|
MxResult FUN_1006afc0(MxMatrix*& p_matrix, float p_und);
|
2024-04-20 10:07:58 -04:00
|
|
|
MxResult FUN_1006b140(LegoROI* p_roi);
|
2024-04-24 09:51:28 -04:00
|
|
|
const char* GetActionObjectName();
|
2024-03-26 13:51:52 -04:00
|
|
|
|
2024-02-18 12:43:42 -05:00
|
|
|
inline LegoAnim* GetAnimation() { return m_anim; }
|
2024-01-26 17:52:03 -05:00
|
|
|
|
2024-01-21 09:58:15 -05:00
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
void Init();
|
2024-01-15 14:37:50 -05:00
|
|
|
void Destroy(MxBool p_fromDestructor);
|
2024-02-27 10:13:00 -05:00
|
|
|
LegoChar* FUN_10069150(const LegoChar* p_und1);
|
2024-02-25 12:04:30 -05:00
|
|
|
void FUN_100692b0();
|
2024-02-25 12:55:57 -05:00
|
|
|
void FUN_100695c0();
|
2024-02-26 12:41:18 -05:00
|
|
|
LegoChar* FUN_100697c0(const LegoChar* p_und1, const LegoChar* p_und2);
|
2024-03-02 14:26:19 -05:00
|
|
|
LegoBool FUN_100698b0(const CompoundObject& p_rois, const LegoChar* p_und2);
|
2024-04-13 10:02:55 -04:00
|
|
|
LegoROI* FUN_100699e0(const LegoChar* p_und);
|
2024-02-27 11:49:31 -05:00
|
|
|
void FUN_10069b10();
|
2024-04-13 08:57:18 -04:00
|
|
|
void FUN_1006a3c0(LegoAnimPresenterMap& p_map, LegoTreeNode* p_node, LegoROI* p_roi);
|
2024-04-12 11:53:22 -04:00
|
|
|
void FUN_1006a4f0(LegoAnimPresenterMap& p_map, LegoAnimNodeData* p_data, const LegoChar* p_und, LegoROI* p_roi);
|
2024-04-25 10:24:06 -04:00
|
|
|
void FUN_1006aa60();
|
2024-04-22 09:42:52 -04:00
|
|
|
void FUN_1006ab70();
|
2024-02-27 11:49:31 -05:00
|
|
|
LegoBool FUN_1006aba0();
|
2024-04-13 10:35:55 -04:00
|
|
|
MxBool FUN_1006abb0(LegoTreeNode* p_node, LegoROI* p_roi);
|
2024-04-25 10:36:28 -04:00
|
|
|
void SubstituteVariables();
|
2024-04-24 08:51:20 -04:00
|
|
|
void FUN_1006b900(LegoAnim* p_anim, MxLong p_time, Matrix4* p_matrix);
|
2024-04-13 12:05:43 -04:00
|
|
|
void FUN_1006b9a0(LegoAnim* p_anim, MxLong p_time, Matrix4* p_matrix);
|
2024-04-13 10:11:24 -04:00
|
|
|
void FUN_1006c8a0(MxBool p_bool);
|
2024-01-15 14:37:50 -05:00
|
|
|
|
2024-04-25 10:00:58 -04:00
|
|
|
LegoAnim* m_anim; // 0x64
|
|
|
|
LegoROI** m_roiMap; // 0x68
|
|
|
|
MxU32 m_roiMapSize; // 0x6c
|
|
|
|
LegoROIList* m_unk0x70; // 0x70
|
|
|
|
LegoROIList* m_unk0x74; // 0x74
|
|
|
|
MxMatrix* m_unk0x78; // 0x78
|
|
|
|
MxU32 m_flags; // 0x7c
|
|
|
|
LegoWorld* m_currentWorld; // 0x80
|
|
|
|
MxAtomId m_worldAtom; // 0x84
|
|
|
|
MxS32 m_worldId; // 0x88
|
|
|
|
LegoROI** m_unk0x8c; // 0x8c
|
|
|
|
char** m_unk0x90; // 0x90
|
|
|
|
MxU8 m_unk0x94; // 0x94
|
|
|
|
undefined m_unk0x95; // 0x95
|
|
|
|
MxBool m_unk0x96; // 0x96
|
|
|
|
undefined m_unk0x97; // 0x97
|
|
|
|
LegoAnimSubstMap* m_substMap; // 0x98
|
|
|
|
MxS16 m_unk0x9c; // 0x9c
|
2024-04-25 10:24:06 -04:00
|
|
|
undefined4* m_unk0xa0; // 0xa0
|
2024-04-25 11:27:55 -04:00
|
|
|
float m_unk0xa4; // 0xa4
|
2024-04-25 10:00:58 -04:00
|
|
|
Mx3DPointFloat m_unk0xa8; // 0xa8
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-04-12 11:53:22 -04:00
|
|
|
// clang-format off
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10068650
|
|
|
|
// LegoAnimPresenter::`scalar deleting destructor'
|
|
|
|
|
2024-04-25 10:00:58 -04:00
|
|
|
// TEMPLATE: LEGO1 0x100689c0
|
|
|
|
// map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::~map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10068a10
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::~_Tree<char const *,pair<char const * const,char const *>,map
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10068ae0
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::iterator::_Inc
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10068b20
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::erase
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10068f70
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::_Erase
|
|
|
|
|
2024-04-13 09:55:26 -04:00
|
|
|
// TEMPLATE: LEGO1 0x10069d80
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::~_Tree<char const *,pair<char const * const,LegoAni
|
|
|
|
|
2024-04-15 14:42:25 -04:00
|
|
|
// TEMPLATE: LEGO1 0x10069e50
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::iterator::_Inc
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x10069e90
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::erase
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1006a2e0
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Erase
|
|
|
|
|
2024-04-13 09:55:26 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1006a320
|
|
|
|
// Map<char const *,LegoAnimStruct,LegoAnimStructComparator>::~Map<char const *,LegoAnimStruct,LegoAnimStructComparator>
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1006a370
|
|
|
|
// map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::~map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >
|
|
|
|
|
2024-04-12 11:53:22 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1006a750
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::iterator::_Dec
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1006a7a0
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Insert
|
|
|
|
|
2024-04-25 10:00:58 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1006c1b0
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::iterator::_Dec
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1006c200
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::_Insert
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1006c4b0
|
|
|
|
// list<char *,allocator<char *> >::~list<char *,allocator<char *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1006c520
|
|
|
|
// List<char *>::~List<char *>
|
|
|
|
|
|
|
|
// GLOBAL: LEGO1 0x100f7680
|
|
|
|
// _Tree<char const *,pair<char const * const,char const *>,map<char const *,char const *,LegoAnimSubstComparator,allocator<char const *> >::_Kfn,LegoAnimSubstComparator,allocator<char const *> >::_Nil
|
|
|
|
|
2024-04-12 11:53:22 -04:00
|
|
|
// GLOBAL: LEGO1 0x100f7688
|
|
|
|
// _Tree<char const *,pair<char const * const,LegoAnimStruct>,map<char const *,LegoAnimStruct,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Kfn,LegoAnimStructComparator,allocator<LegoAnimStruct> >::_Nil
|
|
|
|
// clang-format on
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // LEGOANIMPRESENTER_H
|