2024-06-03 12:53:25 -04:00
|
|
|
#ifndef LEGOCARBUILDPRESENTER_H
|
|
|
|
#define LEGOCARBUILDPRESENTER_H
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "anim/legoanim.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoanimpresenter.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d99e0
|
2024-09-12 15:51:33 -04:00
|
|
|
// VTABLE: BETA10 0x101bb988
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x150
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoCarBuildAnimPresenter : public LegoAnimPresenter {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-10-20 17:00:44 -04:00
|
|
|
enum {
|
|
|
|
c_bit1 = 0x01
|
|
|
|
};
|
|
|
|
|
2024-09-12 15:51:33 -04:00
|
|
|
// SIZE 0x0c
|
|
|
|
struct UnknownListEntry {
|
2024-10-11 14:21:33 -04:00
|
|
|
// FUNCTION: LEGO1 0x100795c0
|
|
|
|
// FUNCTION: BETA10 0x10073850
|
|
|
|
UnknownListEntry()
|
|
|
|
{
|
|
|
|
m_name = NULL;
|
|
|
|
m_wiredName = NULL;
|
|
|
|
m_unk0x08 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// variable name verified by BETA10 0x10071b56
|
|
|
|
LegoChar* m_name; // 0x00
|
|
|
|
|
|
|
|
// variable name verified by BETA10 0x100719f0
|
|
|
|
LegoChar* m_wiredName; // 0x04
|
|
|
|
|
|
|
|
undefined2 m_unk0x08; // 0x08
|
2024-09-12 15:51:33 -04:00
|
|
|
};
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoCarBuildAnimPresenter();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoCarBuildAnimPresenter() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: BETA10 0x10073290
|
|
|
|
static const char* HandlerClassName()
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f05ec
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoCarBuildAnimPresenter";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: LEGO1 0x10078510
|
|
|
|
// FUNCTION: BETA10 0x10073260
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-05-30 13:10:41 -04:00
|
|
|
{
|
|
|
|
return HandlerClassName();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10078520
|
2024-07-04 19:06:32 -04:00
|
|
|
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, LegoCarBuildAnimPresenter::ClassName()) || LegoAnimPresenter::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2024-01-18 08:34:14 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void ReadyTickle() override; // vtable+0x18
|
|
|
|
void StreamingTickle() override; // vtable+0x20
|
|
|
|
void RepeatingTickle() override; // vtable+0x24
|
|
|
|
void EndAction() override; // vtable+0x40
|
|
|
|
void PutFrame() override; // vtable+0x6c
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-10-05 19:20:45 -04:00
|
|
|
void FUN_10079050(MxS16 p_index);
|
2024-10-11 14:21:33 -04:00
|
|
|
void SwapNodesByName(LegoChar* p_param1, LegoChar* p_param2);
|
2024-10-04 11:19:42 -04:00
|
|
|
void FUN_10079160();
|
2024-10-05 19:20:45 -04:00
|
|
|
void FUN_100795d0(LegoChar* p_param);
|
|
|
|
void FUN_10079680(LegoChar* p_param);
|
2024-10-11 14:21:33 -04:00
|
|
|
LegoAnimNodeData* FindNodeDataByName(LegoTreeNode* p_treeNode, const LegoChar* p_name);
|
|
|
|
LegoTreeNode* FindNodeByName(LegoTreeNode* p_treeNode, const LegoChar* p_name);
|
2024-10-04 11:19:42 -04:00
|
|
|
void RotateAroundYAxis(MxFloat p_angle);
|
2024-09-14 19:14:11 -04:00
|
|
|
MxBool FUN_10079c30(const LegoChar* p_name);
|
2024-10-20 17:00:44 -04:00
|
|
|
MxBool PartIsPlaced(const LegoChar* p_name);
|
|
|
|
void FUN_10079a90();
|
2024-10-11 14:21:33 -04:00
|
|
|
MxBool StringEqualsPlatform(const LegoChar* p_string);
|
|
|
|
MxBool StringEqualsShelf(const LegoChar* p_string);
|
2024-09-14 19:14:11 -04:00
|
|
|
MxBool FUN_10079cf0(const LegoChar* p_string);
|
2024-09-12 15:51:33 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10070180
|
|
|
|
void SetUnknown0xbc(undefined2 p_unk0xbc) { m_unk0xbc = p_unk0xbc; }
|
|
|
|
|
2024-10-11 14:21:33 -04:00
|
|
|
MxBool StringEndsOnW(LegoChar* p_param);
|
2024-09-12 15:51:33 -04:00
|
|
|
MxBool StringEndsOnYOrN(const LegoChar* p_string);
|
|
|
|
|
|
|
|
const BoundingSphere& FUN_10079e20();
|
2024-09-03 16:50:30 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10078660
|
|
|
|
// LegoCarBuildAnimPresenter::`scalar deleting destructor'
|
2024-03-22 21:30:58 -04:00
|
|
|
|
|
|
|
private:
|
2024-10-20 17:00:44 -04:00
|
|
|
void Beta10Inline0x100733d0();
|
|
|
|
|
|
|
|
MxU16 m_unk0xbc; // 0xbc
|
2024-10-11 14:21:33 -04:00
|
|
|
|
|
|
|
// variable name verified by BETA10 0x1007184f
|
|
|
|
MxS16 m_numberOfParts; // 0xbe
|
|
|
|
|
|
|
|
// name derived from LegoVehicleBuildState, field 0x4f
|
|
|
|
MxS16 m_placedPartCount; // 0xc0
|
|
|
|
|
|
|
|
LegoAnimNodeData* m_unk0xc4; // 0xc4
|
|
|
|
LegoAnim m_unk0xc8; // 0xc8
|
|
|
|
MxMatrix m_unk0xe0; // 0xe0
|
|
|
|
|
|
|
|
// variable name verified by BETA10 0x100719f0
|
|
|
|
UnknownListEntry* m_parts; // 0x128
|
|
|
|
|
|
|
|
MxFloat m_unk0x12c; // 0x12c
|
2024-10-20 17:00:44 -04:00
|
|
|
MxFloat m_unk0x130; // 0x130
|
2024-10-11 14:21:33 -04:00
|
|
|
MxFloat m_unk0x134; // 0x134
|
|
|
|
MxFloat m_unk0x138; // 0x138
|
2024-10-20 17:00:44 -04:00
|
|
|
MxLong m_unk0x13c; // 0x13c
|
2024-10-11 14:21:33 -04:00
|
|
|
LegoEntity* m_unk0x140; // 0x140
|
|
|
|
MxS32 m_unk0x144; // 0x144
|
|
|
|
MxS32 m_unk0x148; // 0x148
|
2024-10-05 19:20:45 -04:00
|
|
|
|
|
|
|
// name verified by BETA10 0x10070d63
|
|
|
|
LegoChar* m_mainSourceId; // 0x14c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
#endif // LEGOCARBUILDPRESENTER_H
|