mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
494a556f8e
* 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 commitd87d665127
. * Revert "FUNCTION to SYNTHETIC where needed" This reverts commit8c815418d2
. * 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>
53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
#ifndef MXTICKLEMANAGER_H
|
|
#define MXTICKLEMANAGER_H
|
|
|
|
#include "compat.h"
|
|
#include "mxcore.h"
|
|
#include "mxtypes.h"
|
|
|
|
class MxTickleClient {
|
|
public:
|
|
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 flags) { m_flags = flags; }
|
|
|
|
private:
|
|
MxCore* m_client; // 0x0
|
|
MxTime m_interval; // 0x4
|
|
MxTime m_lastUpdateTime; // 0x8
|
|
MxU16 m_flags; // 0xc
|
|
};
|
|
|
|
typedef list<MxTickleClient*> MxTickleClientPtrList;
|
|
|
|
// VTABLE: LEGO1 0x100d86d8
|
|
class MxTickleManager : public MxCore {
|
|
public:
|
|
inline MxTickleManager() {}
|
|
virtual ~MxTickleManager(); // vtable+0x0 (scalar deleting destructor)
|
|
|
|
virtual MxResult Tickle(); // vtable+0x8
|
|
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
|
|
|
|
private:
|
|
MxTickleClientPtrList m_clients; // 0x8
|
|
};
|
|
|
|
#define TICKLE_MANAGER_NOT_FOUND 0x80000000
|
|
|
|
#endif // MXTICKLEMANAGER_H
|