2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOANIMATIONMANAGER_H
|
|
|
|
#define LEGOANIMATIONMANAGER_H
|
|
|
|
|
2024-03-15 20:43:45 -04:00
|
|
|
#include "animstate.h"
|
2024-01-12 17:27:07 -05:00
|
|
|
#include "decomp.h"
|
2024-03-15 20:43:45 -04:00
|
|
|
#include "legotraninfolist.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
|
|
|
|
2024-03-15 20:43:45 -04:00
|
|
|
// SIZE 0x18
|
|
|
|
struct Character {
|
|
|
|
char* m_name; // 0x00
|
|
|
|
undefined m_unk0x04[0x10]; // 0x04
|
|
|
|
MxBool m_active; // 0x14
|
|
|
|
};
|
|
|
|
|
2024-03-19 07:45:29 -04:00
|
|
|
namespace IsleScript
|
|
|
|
{
|
|
|
|
#ifdef COMPAT_MODE
|
|
|
|
enum Script : int;
|
|
|
|
#else
|
|
|
|
enum Script;
|
|
|
|
#endif
|
|
|
|
} // namespace IsleScript
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8c18
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x500
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoAnimationManager : public MxCore {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoAnimationManager();
|
2024-03-15 20:43:45 -04:00
|
|
|
~LegoAnimationManager() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1005ec80
|
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 0x100f7508
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoAnimationManager";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1005ec90
|
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, ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-02 12:18:46 -05:00
|
|
|
void FUN_1005ee80(MxBool);
|
2024-01-13 15:42:09 -05:00
|
|
|
void FUN_1005ef10();
|
2024-02-02 12:18:46 -05:00
|
|
|
void FUN_1005f0b0();
|
2023-12-13 05:48:14 -05:00
|
|
|
void FUN_1005f6d0(MxBool);
|
2024-03-16 14:20:44 -04:00
|
|
|
void FUN_1005f700(MxBool);
|
2024-03-15 20:43:45 -04:00
|
|
|
MxResult LoadScriptInfo(MxS32 p_scriptIndex);
|
|
|
|
MxBool FUN_10060140(char* p_name, MxU32& p_index);
|
|
|
|
MxResult ReadAnimInfo(LegoFile* p_file, AnimInfo* p_info);
|
|
|
|
MxResult ReadModelInfo(LegoFile* p_file, ModelInfo* p_info);
|
|
|
|
void FUN_100603c0();
|
2024-03-16 14:20:44 -04:00
|
|
|
undefined4 FUN_10060dc0(
|
2024-03-19 07:45:29 -04:00
|
|
|
IsleScript::Script,
|
2024-03-16 14:20:44 -04:00
|
|
|
undefined4,
|
|
|
|
undefined,
|
|
|
|
undefined,
|
|
|
|
undefined4,
|
|
|
|
undefined,
|
|
|
|
undefined,
|
|
|
|
undefined,
|
|
|
|
undefined
|
|
|
|
);
|
2024-02-02 12:18:46 -05:00
|
|
|
void FUN_10061010(undefined4);
|
2024-03-15 20:43:45 -04:00
|
|
|
void FUN_100617c0(MxS32, MxU16&, MxU32&);
|
|
|
|
MxS8 FUN_10062360(char*);
|
2024-03-16 14:20:44 -04:00
|
|
|
void FUN_100629b0(MxU32, MxBool);
|
2023-12-14 11:50:29 -05:00
|
|
|
void FUN_10064670(MxBool);
|
2024-03-16 14:20:44 -04:00
|
|
|
void FUN_10064740(MxBool);
|
2023-10-24 08:37:02 -04:00
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
static void configureLegoAnimationManager(MxS32 p_legoAnimationManagerConfig);
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1005ed10
|
|
|
|
// LegoAnimationManager::`scalar deleting destructor'
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
private:
|
|
|
|
void Init();
|
2024-02-10 20:52:16 -05:00
|
|
|
|
2024-03-15 20:43:45 -04:00
|
|
|
undefined4 m_unk0x08; // 0x08
|
|
|
|
MxU16 m_animCount; // 0x0c
|
|
|
|
MxU16 m_unk0x0e; // 0x0e
|
|
|
|
MxU32 m_unk0x10; // 0x10
|
|
|
|
AnimInfo* m_anims; // 0x14
|
|
|
|
undefined m_unk0x018[8]; // 0x18
|
|
|
|
LegoTranInfoList* m_tranInfoList; // 0x20
|
|
|
|
LegoTranInfoList* m_tranInfoList2; // 0x24
|
|
|
|
undefined4 m_unk0x28[2]; // 0x28
|
|
|
|
undefined4 m_unk0x30[2]; // 0x30
|
|
|
|
undefined m_unk0x38; // 0x38
|
|
|
|
undefined m_unk0x39; // 0x39
|
|
|
|
undefined m_unk0x3a; // 0x3a
|
|
|
|
undefined m_unk0x3b[0x3c1]; // 0x3b
|
|
|
|
undefined4 m_unk0x3fc; // 0x3fc
|
|
|
|
MxU8 m_unk0x400; // 0x400
|
|
|
|
undefined m_unk0x401; // 0x401
|
|
|
|
MxU8 m_unk0x402; // 0x402
|
|
|
|
undefined m_unk0x403[0x1d]; // 0x403
|
|
|
|
AnimState* m_animState; // 0x420
|
|
|
|
undefined4 m_unk0x424; // 0x424
|
|
|
|
undefined m_unk0x428; // 0x428
|
|
|
|
undefined m_unk0x429; // 0x429
|
|
|
|
undefined m_unk0x42a; // 0x42a
|
|
|
|
undefined m_unk0x42b; // 0x42b
|
|
|
|
undefined4 m_unk0x42c; // 0x42c
|
|
|
|
undefined m_unk0x430; // 0x430
|
|
|
|
undefined m_unk0x431[0xcf]; // 0x431
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOANIMATIONMANAGER_H
|