mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
* Implement/match Bike (#1036) * Implement/match Motocycle, consistent notification names (#1037) * Implement/match Motocycle, consistent notification names * Format * Fix * Fix return types * Fix return type * Fix annotations * Rename function * Bootstrap LegoPlantManager, add plants data (#1038) * Bootstrap LegoPlantManager, add plants data * Naming * Move * Fix * Implement/match LegoPlantManager::CreatePlant (#1039) * Implement/match LegoPlantManager::CreatePlant * Update names * Fix name * Fix * Fix * Implement/match more LegoPlantManager functions (#1040) * Implement/match LegoPlantManager interaction functions (#1041) * Implement AnimState (#1042) * Implement LegoAnim * fix: minor issues * fix ncc complaints * refactor: address review comments --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com> * Implement/match LegoPlantManager::FUN_10026c50 (#1043) * Minor fixes * Implement/match LegoPlantManager::FUN_10026c50 * Backports of isle-portable x64 fixes (#1044) * Introduce LPD3DRM_APPDATA typedef for setting d3drm appdata * Fix warning about assigning const string literals to variable char pointers * Don't cast pointers to integers on non-32-bit architectures * memset 2nd argument is int * Assume cpuid is available on x86_64, needs testing on i386 and unavailable on anything else * Store HFILE in its own member variable * Updates --------- Co-authored-by: jonschz <17198703+jonschz@users.noreply.github.com> Co-authored-by: jonschz <jonschz@users.noreply.github.com> Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
97 lines
3.0 KiB
C++
97 lines
3.0 KiB
C++
#ifndef LEGOCONTROLMANAGER_H
|
|
#define LEGOCONTROLMANAGER_H
|
|
|
|
#include "legoeventnotificationparam.h"
|
|
#include "legoinputmanager.h"
|
|
#include "mxcore.h"
|
|
#include "mxpresenterlist.h"
|
|
|
|
class MxControlPresenter;
|
|
|
|
// VTABLE: LEGO1 0x100d6a98
|
|
// SIZE 0x2c
|
|
class LegoControlManagerNotificationParam : public LegoEventNotificationParam {
|
|
public:
|
|
inline LegoControlManagerNotificationParam() : LegoEventNotificationParam()
|
|
{
|
|
m_clickedObjectId = -1;
|
|
m_clickedAtom = NULL;
|
|
}
|
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
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; }
|
|
|
|
MxS32 m_clickedObjectId; // 0x20
|
|
const char* m_clickedAtom; // 0x24
|
|
MxS16 m_unk0x28; // 0x28
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x10028bf0
|
|
// LegoControlManagerNotificationParam::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10028c60
|
|
// LegoControlManagerNotificationParam::~LegoControlManagerNotificationParam
|
|
|
|
// VTABLE: LEGO1 0x100d6a80
|
|
class LegoControlManager : public MxCore {
|
|
public:
|
|
LegoControlManager();
|
|
~LegoControlManager() override; // vtable+0x00
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
|
|
|
// FUNCTION: BETA10 0x1008af70
|
|
static const char* HandlerClassName()
|
|
{
|
|
// STRING: LEGO1 0x100f31b8
|
|
return "LegoControlManager";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10028cb0
|
|
// FUNCTION: BETA10 0x1008af40
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
return HandlerClassName();
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10028cc0
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, LegoControlManager::ClassName()) || MxCore::IsA(p_name);
|
|
}
|
|
|
|
void FUN_10028df0(MxPresenterList* p_presenterList);
|
|
void Register(MxCore* p_listener);
|
|
void Unregister(MxCore* p_listener);
|
|
MxBool FUN_10029210(LegoEventNotificationParam& p_param, MxPresenter* p_presenter);
|
|
void FUN_100293c0(MxU32 p_objectId, const char* p_atom, MxS16 p_unk0x4e);
|
|
MxControlPresenter* FUN_100294e0(MxS32 p_x, MxS32 p_y);
|
|
MxBool FUN_10029630();
|
|
MxBool FUN_10029750();
|
|
void FUN_100292e0();
|
|
|
|
inline undefined4 GetUnknown0x0c() { return m_unk0x0c; }
|
|
inline undefined GetUnknown0x10() { return m_unk0x10; }
|
|
|
|
// SYNTHETIC: LEGO1 0x10028d40
|
|
// LegoControlManager::`scalar deleting destructor'
|
|
|
|
private:
|
|
undefined4 m_unk0x08; // 0x08
|
|
undefined4 m_unk0x0c; // 0x0c
|
|
MxBool m_unk0x10; // 0x10
|
|
MxPresenter* m_unk0x14; // 0x14
|
|
LegoControlManagerNotificationParam m_event; // 0x18
|
|
MxPresenterList* m_presenterList; // 0x44
|
|
LegoNotifyList m_notifyList; // 0x48
|
|
};
|
|
|
|
#endif // LEGOCONTROLMANAGER_H
|