2023-10-31 21:31:16 +08:00
|
|
|
|
2024-01-30 21:52:00 +08:00
|
|
|
#ifndef SAMPNPC_TIMERS_H
|
|
|
|
#define SAMPNPC_TIMERS_H
|
|
|
|
|
|
|
|
struct ScriptTimer_s
|
|
|
|
{
|
2024-03-14 23:24:26 +08:00
|
|
|
char _gap0[279];
|
|
|
|
void* cellParams;
|
2024-01-30 21:52:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::map<DWORD, ScriptTimer_s*> DwordTimerMap;
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class CScriptTimers
|
2023-10-31 21:31:16 +08:00
|
|
|
{
|
|
|
|
private:
|
2024-01-30 21:52:00 +08:00
|
|
|
DwordTimerMap m_Timers;
|
|
|
|
DWORD m_dwTimerCount;
|
2023-10-31 21:31:16 +08:00
|
|
|
public:
|
|
|
|
CScriptTimers();
|
2024-03-14 23:24:26 +08:00
|
|
|
~CScriptTimers();
|
2024-01-30 21:52:00 +08:00
|
|
|
|
2024-03-14 23:24:26 +08:00
|
|
|
void FreeMem(ScriptTimer_s* Timer);
|
2024-01-30 21:52:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|