mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-30 03:26:12 -05:00
9e686e2a87
* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed
.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
62 lines
1.9 KiB
C++
62 lines
1.9 KiB
C++
#ifndef MXTICKLEMANAGER_H
|
|
#define MXTICKLEMANAGER_H
|
|
|
|
#include "mxcore.h"
|
|
#include "mxstl/stlcompat.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 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;
|
|
|
|
// VTABLE: LEGO1 0x100d86d8
|
|
class MxTickleManager : public MxCore {
|
|
public:
|
|
inline MxTickleManager() {}
|
|
~MxTickleManager() override; // vtable+0x00 (scalar deleting destructor)
|
|
|
|
MxResult Tickle() override; // vtable+0x08
|
|
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
|
|
};
|
|
|
|
#define TICKLE_MANAGER_NOT_FOUND 0x80000000
|
|
|
|
// TEMPLATE: LEGO1 0x1005a4a0
|
|
// list<MxTickleClient *,allocator<MxTickleClient *> >::~list<MxTickleClient *,allocator<MxTickleClient *> >
|
|
|
|
// TEMPLATE: LEGO1 0x1005a530
|
|
// List<MxTickleClient *>::~List<MxTickleClient *>
|
|
|
|
#endif // MXTICKLEMANAGER_H
|