isle-portable/LEGO1/omni/include/mxticklemanager.h

63 lines
1.9 KiB
C
Raw Normal View History

2023-04-27 22:19:39 -04:00
#ifndef MXTICKLEMANAGER_H
#define MXTICKLEMANAGER_H
#include "mxcore.h"
2023-12-11 16:33:46 -05:00
#include "mxstl/stlcompat.h"
#include "mxtypes.h"
2023-10-24 19:38:27 -04:00
class MxTickleClient {
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; }
inline void SetFlags(MxU16 p_flags) { m_flags = p_flags; }
private:
MxCore* m_client; // 0x00
MxTime m_interval; // 0x04
MxTime m_lastUpdateTime; // 0x08
MxU16 m_flags; // 0x0c
};
typedef list<MxTickleClient*> MxTickleClientPtrList;
(Proposal) Adjustments to "decomp" language (#308) * Adjustments to "decomp" language * Fix a comment * Fix accidental clang-formatting * Fix order * Fix order * Remove junk * Fix OFFSET * Adjustments based on new suggestions * Annotate globals * Globals in ISLE * More globals * Merge from parser2 branch * Allow prepending space for exact marker match * To eliminate noise, require the 0x prefix on offset for marker match * fix test from previous * Count tab stops for indented functions to reduce MISSED_END_OF_FUNCTION noise * FUNCTION to SYNTHETIC where needed * Missed marker conversion on SetAtomId * pylint cleanup, remove unused code * Fix unexpected function end, add more unit tests * Be more strict about synthetic name syntax * Revert "Missed marker conversion on SetAtomId" This reverts commit d87d665127fae7dd6e5bd48d9af14a0a829bf9e2. * Revert "FUNCTION to SYNTHETIC where needed" This reverts commit 8c815418d261ba8c5f67a9a2cae349fe4ac92db8. * Implicit lookup by name for functions * Fix VTABLE SYNTHETIC and other decomp markers * Get vtable class name * Vtable marker should identify struct * No colon for SIZE comment * Update README.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Update CONTRIBUTING.md * Fix destructor/annotation * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md --------- Co-authored-by: disinvite <disinvite@users.noreply.github.com>
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() {}
~MxTickleManager() override; // vtable+0x00 (scalar deleting destructor)
MxResult Tickle() override; // 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
// SYNTHETIC: LEGO1 0x1005a510
// MxTickleManager::`scalar deleting destructor'
private:
MxTickleClientPtrList m_clients; // 0x08
2023-04-27 22:19:39 -04:00
};
#define TICKLE_MANAGER_NOT_FOUND 0x80000000
// 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