2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXTICKLEMANAGER_H
|
|
|
|
#define MXTICKLEMANAGER_H
|
|
|
|
|
2023-06-19 01:36:07 -04:00
|
|
|
#include "mxcore.h"
|
2023-12-11 16:33:46 -05:00
|
|
|
#include "mxstl/stlcompat.h"
|
2023-08-03 14:19:05 -04:00
|
|
|
#include "mxtypes.h"
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxTickleClient {
|
2023-08-03 14:19:05 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxTickleClient(MxCore* p_client, MxTime p_interval);
|
|
|
|
|
|
|
|
inline MxCore* GetClient() const { return m_client; }
|
|
|
|
|
|
|
|
inline MxTime GetTickleInterval() const { return m_interval; }
|
|
|
|
|
|
|
|
inline MxTime GetLastUpdateTime() const { return m_lastUpdateTime; }
|
|
|
|
|
|
|
|
inline MxU16 GetFlags() const { return m_flags; }
|
|
|
|
|
|
|
|
inline void SetTickleInterval(MxTime p_interval) { m_interval = p_interval; }
|
|
|
|
|
|
|
|
inline void SetLastUpdateTime(MxTime p_lastUpdateTime) { m_lastUpdateTime = p_lastUpdateTime; }
|
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
inline void SetFlags(MxU16 p_flags) { m_flags = p_flags; }
|
2023-08-03 14:19:05 -04:00
|
|
|
|
|
|
|
private:
|
2024-01-29 16:17:17 -05:00
|
|
|
MxCore* m_client; // 0x00
|
|
|
|
MxTime m_interval; // 0x04
|
|
|
|
MxTime m_lastUpdateTime; // 0x08
|
|
|
|
MxU16 m_flags; // 0x0c
|
2023-08-03 14:19:05 -04:00
|
|
|
};
|
|
|
|
|
2023-10-14 20:49:07 -04:00
|
|
|
typedef list<MxTickleClient*> MxTickleClientPtrList;
|
2023-06-19 01:36:07 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d86d8
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxTickleManager : public MxCore {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxTickleManager() {}
|
2024-01-29 16:17:17 -05:00
|
|
|
virtual ~MxTickleManager(); // vtable+0x00 (scalar deleting destructor)
|
2023-08-03 14:19:05 -04:00
|
|
|
|
2024-01-29 16:17:17 -05:00
|
|
|
virtual MxResult Tickle(); // vtable+0x08
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual void RegisterClient(MxCore* p_client, MxTime p_interval); // vtable+0x14
|
|
|
|
virtual void UnregisterClient(MxCore* p_client); // vtable+0x18
|
|
|
|
virtual void SetClientTickleInterval(MxCore* p_client, MxTime p_interval); // vtable+0x1c
|
|
|
|
virtual MxTime GetClientTickleInterval(MxCore* p_client); // vtable+0x20
|
2023-08-03 14:19:05 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1005a510
|
|
|
|
// MxTickleManager::`scalar deleting destructor'
|
|
|
|
|
2023-08-03 14:19:05 -04:00
|
|
|
private:
|
2024-01-29 16:17:17 -05:00
|
|
|
MxTickleClientPtrList m_clients; // 0x08
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
2023-08-03 14:19:05 -04:00
|
|
|
#define TICKLE_MANAGER_NOT_FOUND 0x80000000
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// TEMPLATE: LEGO1 0x1005a4a0
|
|
|
|
// list<MxTickleClient *,allocator<MxTickleClient *> >::~list<MxTickleClient *,allocator<MxTickleClient *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1005a530
|
|
|
|
// List<MxTickleClient *>::~List<MxTickleClient *>
|
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
#endif // MXTICKLEMANAGER_H
|