2023-06-29 04:10:08 -04:00
|
|
|
#ifndef LEGOANIMACTOR_H
|
|
|
|
#define LEGOANIMACTOR_H
|
|
|
|
|
2024-03-19 14:23:34 -04:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legopathactor.h"
|
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoAnim;
|
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
// SIZE 0x20
|
|
|
|
struct LegoAnimActorStruct {
|
|
|
|
LegoAnimActorStruct(float p_unk0x00, LegoAnim* p_AnimTreePtr, LegoROI** p_roiMap, MxU32 p_numROIs);
|
|
|
|
~LegoAnimActorStruct();
|
|
|
|
|
|
|
|
float GetDuration();
|
|
|
|
|
2024-12-15 12:09:29 -05:00
|
|
|
// FUNCTION: BETA10 0x1000fb10
|
2024-07-04 19:06:32 -04:00
|
|
|
float GetUnknown0x00() { return m_unk0x00; }
|
2024-03-30 12:18:15 -04:00
|
|
|
|
2024-07-07 08:10:46 -04:00
|
|
|
// FUNCTION: BETA10 0x10012210
|
|
|
|
LegoAnim* GetAnimTreePtr() { return m_AnimTreePtr; }
|
|
|
|
|
2024-12-12 19:54:51 -05:00
|
|
|
// FUNCTION: BETA10 0x10012240
|
|
|
|
LegoROI** GetROIMap() { return m_roiMap; }
|
|
|
|
|
2024-07-07 08:10:46 -04:00
|
|
|
// TODO: Possibly private
|
2024-03-26 13:51:52 -04:00
|
|
|
float m_unk0x00; // 0x00
|
|
|
|
LegoAnim* m_AnimTreePtr; // 0x04
|
|
|
|
LegoROI** m_roiMap; // 0x08
|
|
|
|
MxU32 m_numROIs; // 0x0c
|
|
|
|
vector<undefined*> m_unk0x10; // 0x10
|
|
|
|
};
|
|
|
|
|
|
|
|
// VTABLE: LEGO1 0x100d5440 LegoPathActor
|
|
|
|
// VTABLE: LEGO1 0x100d5510 LegoAnimActor
|
2024-08-21 16:30:27 -04:00
|
|
|
// VTABLE: BETA10 0x101b81d8 LegoPathActor
|
|
|
|
// VTABLE: BETA10 0x101b82c8 LegoAnimActor
|
2024-03-22 21:30:58 -04:00
|
|
|
// SIZE 0x174
|
|
|
|
class LegoAnimActor : public virtual LegoPathActor {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-08-21 16:30:27 -04:00
|
|
|
// FUNCTION: BETA10 0x1000f6c0
|
2024-03-26 13:51:52 -04:00
|
|
|
LegoAnimActor() { m_curAnim = -1; }
|
2024-08-21 16:30:27 -04:00
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
~LegoAnimActor() override;
|
2024-03-22 21:30:58 -04:00
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000fba0
|
2024-08-21 16:30:27 -04:00
|
|
|
// FUNCTION: BETA10 0x10012400
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-03-22 21:30:58 -04:00
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f057c
|
|
|
|
return "LegoAnimActor";
|
|
|
|
}
|
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000fbc0
|
2024-08-21 16:30:27 -04:00
|
|
|
// FUNCTION: BETA10 0x10012440
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2024-03-22 21:30:58 -04:00
|
|
|
{
|
|
|
|
return !strcmp(p_name, LegoAnimActor::ClassName()) || LegoPathActor::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
void ParseAction(char* p_extra) override; // vtable+0x20
|
|
|
|
void SetWorldSpeed(MxFloat p_worldSpeed) override; // vtable+0x30
|
2024-12-13 14:30:50 -05:00
|
|
|
void Animate(float p_time) override; // vtable+0x70
|
2024-03-26 13:51:52 -04:00
|
|
|
void VTable0x74(Matrix4& p_transform) override; // vtable+0x74
|
|
|
|
|
|
|
|
virtual MxResult FUN_1001c1f0(float& p_und);
|
|
|
|
virtual MxResult FUN_1001c360(float, Matrix4& p_transform);
|
|
|
|
virtual MxResult FUN_1001c450(LegoAnim* p_AnimTreePtr, float p_unk0x00, LegoROI** p_roiMap, MxU32 p_numROIs);
|
|
|
|
virtual void ClearMaps();
|
2024-03-22 21:30:58 -04:00
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x1000fb60
|
2024-03-22 21:30:58 -04:00
|
|
|
// LegoAnimActor::`scalar deleting destructor'
|
|
|
|
|
2024-03-26 19:24:01 -04:00
|
|
|
protected:
|
2024-03-26 13:51:52 -04:00
|
|
|
vector<LegoAnimActorStruct*> m_animMaps; // 0x08
|
|
|
|
MxS16 m_curAnim; // 0x18
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-03-27 11:53:38 -04:00
|
|
|
// clang-format off
|
2024-06-12 20:02:47 -04:00
|
|
|
// GLOBAL: LEGO1 0x100d5438
|
|
|
|
// LegoAnimActor::`vbtable'
|
|
|
|
|
2024-03-27 11:53:38 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1000da20
|
|
|
|
// vector<LegoAnimActorStruct *,allocator<LegoAnimActorStruct *> >::~vector<LegoAnimActorStruct *,allocator<LegoAnimActorStruct *> >
|
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1000da60
|
|
|
|
// Vector<LegoAnimActorStruct *>::~Vector<LegoAnimActorStruct *>
|
|
|
|
|
2024-03-27 11:53:38 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x10012b90
|
2024-11-30 16:35:07 -05:00
|
|
|
// SYNTHETIC: BETA10 0x1000fad0
|
2024-03-27 11:53:38 -04:00
|
|
|
// LegoAnimActor::`vbase destructor'
|
|
|
|
|
2024-03-26 13:51:52 -04:00
|
|
|
// TEMPLATE: LEGO1 0x1001c010
|
|
|
|
// vector<unsigned char *,allocator<unsigned char *> >::~vector<unsigned char *,allocator<unsigned char *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001c050
|
|
|
|
// Vector<unsigned char *>::~Vector<unsigned char *>
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001c7c0
|
|
|
|
// vector<LegoAnimActorStruct *,allocator<LegoAnimActorStruct *> >::size
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001c7e0
|
|
|
|
// vector<LegoAnimActorStruct *,allocator<LegoAnimActorStruct *> >::_Destroy
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001c9e0
|
|
|
|
// uninitialized_fill_n
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001ca10
|
2024-12-09 08:57:45 -05:00
|
|
|
// ?uninitialized_copy@@YAPAPAULegoAnimActorStruct@@PAPAU1@00@Z
|
2024-03-27 11:53:38 -04:00
|
|
|
// clang-format on
|
2024-03-26 13:51:52 -04:00
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // LEGOANIMACTOR_H
|