2023-06-29 04:10:08 -04:00
|
|
|
#ifndef LEGOCONTROLMANAGER_H
|
|
|
|
#define LEGOCONTROLMANAGER_H
|
|
|
|
|
2024-01-28 09:20:21 -05:00
|
|
|
#include "legoeventnotificationparam.h"
|
2024-01-28 16:09:33 -05:00
|
|
|
#include "legoinputmanager.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2024-01-13 15:00:11 -05:00
|
|
|
#include "mxpresenterlist.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-02 16:32:50 -05:00
|
|
|
class MxControlPresenter;
|
|
|
|
|
2024-01-28 16:09:33 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6a98
|
|
|
|
// SIZE 0x2c
|
|
|
|
class LegoControlManagerEvent : public LegoEventNotificationParam {
|
|
|
|
public:
|
|
|
|
inline LegoControlManagerEvent() : LegoEventNotificationParam()
|
|
|
|
{
|
|
|
|
m_clickedObjectId = -1;
|
|
|
|
m_clickedAtom = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline MxS32 GetClickedObjectId() const { return m_clickedObjectId; }
|
|
|
|
inline const char* GetClickedAtom() const { return m_clickedAtom; }
|
|
|
|
inline MxS16 GetUnknown0x28() const { return m_unk0x28; }
|
|
|
|
|
|
|
|
inline void SetClickedObjectId(MxS32 p_clickedObjectId) { m_clickedObjectId = p_clickedObjectId; }
|
|
|
|
inline void SetClickedAtom(const char* p_clickedAtom) { m_clickedAtom = p_clickedAtom; }
|
|
|
|
inline void SetUnknown0x28(MxS16 p_unk0x28) { m_unk0x28 = p_unk0x28; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
MxS32 m_clickedObjectId; // 0x20
|
|
|
|
const char* m_clickedAtom; // 0x24
|
|
|
|
MxS16 m_unk0x28; // 0x28
|
|
|
|
};
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10028bf0
|
|
|
|
// LegoControlManagerEvent::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10028c60
|
|
|
|
// LegoControlManagerEvent::~LegoControlManagerEvent
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6a80
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoControlManager : public MxCore {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoControlManager();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoControlManager() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: BETA10 0x1008af70
|
|
|
|
static const char* HandlerClassName()
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f31b8
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoControlManager";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: LEGO1 0x10028cb0
|
|
|
|
// FUNCTION: BETA10 0x1008af40
|
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
return HandlerClassName();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10028cc0
|
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, LegoControlManager::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-01-13 15:00:11 -05:00
|
|
|
void FUN_10028df0(MxPresenterList* p_presenterList);
|
2023-10-24 19:38:27 -04:00
|
|
|
void Register(MxCore* p_listener);
|
|
|
|
void Unregister(MxCore* p_listener);
|
2024-01-28 09:20:21 -05:00
|
|
|
MxBool FUN_10029210(LegoEventNotificationParam& p_param, MxPresenter* p_presenter);
|
2024-05-30 09:15:16 -04:00
|
|
|
void FUN_100293c0(MxU32 p_objectId, const char* p_atom, MxS16 p_unk0x4e);
|
2024-02-02 16:32:50 -05:00
|
|
|
MxControlPresenter* FUN_100294e0(MxS32 p_x, MxS32 p_y);
|
2024-01-28 16:09:33 -05:00
|
|
|
MxBool FUN_10029630();
|
|
|
|
MxBool FUN_10029750();
|
|
|
|
void FUN_100292e0();
|
2024-01-18 08:34:14 -05:00
|
|
|
|
2024-01-28 09:20:21 -05:00
|
|
|
inline undefined4 GetUnknown0x0c() { return m_unk0x0c; }
|
|
|
|
inline undefined GetUnknown0x10() { return m_unk0x10; }
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10028d40
|
|
|
|
// LegoControlManager::`scalar deleting destructor'
|
2024-01-27 16:55:59 -05:00
|
|
|
|
|
|
|
private:
|
2024-01-28 16:09:33 -05:00
|
|
|
undefined4 m_unk0x08; // 0x08
|
|
|
|
undefined4 m_unk0x0c; // 0x0c
|
|
|
|
MxBool m_unk0x10; // 0x10
|
|
|
|
MxPresenter* m_unk0x14; // 0x14
|
|
|
|
LegoControlManagerEvent m_event; // 0x18
|
|
|
|
MxPresenterList* m_presenterList; // 0x44
|
|
|
|
LegoNotifyList m_notifyList; // 0x48
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOCONTROLMANAGER_H
|