2021-09-03 05:11:04 +00:00
|
|
|
#include "../ScriptWorker.h"
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
class CJSIntervalWorker : public CScriptWorker
|
|
|
|
{
|
2021-09-03 05:11:04 +00:00
|
|
|
private:
|
|
|
|
int m_DelayMS;
|
|
|
|
bool m_bOnce;
|
|
|
|
HANDLE m_hTimerQuitEvent;
|
2022-09-26 02:31:54 +00:00
|
|
|
|
2021-09-03 05:11:04 +00:00
|
|
|
public:
|
2022-09-26 02:31:54 +00:00
|
|
|
CJSIntervalWorker(CScriptInstance * inst, void * dukObjectHeapPtr, int delayMS, bool bOnce);
|
2021-09-03 05:11:04 +00:00
|
|
|
virtual ~CJSIntervalWorker();
|
|
|
|
|
|
|
|
virtual void WorkerProc();
|
|
|
|
virtual void StopWorkerProc();
|
|
|
|
};
|