2023-09-01 16:31:14 +08:00
|
|
|
#ifndef __DEVTOOLS_EMSCRIPTEN_H__
|
|
|
|
#define __DEVTOOLS_EMSCRIPTEN_H__
|
|
|
|
|
|
|
|
#include "platform/PlatformConfig.h"
|
2023-09-05 22:17:18 +08:00
|
|
|
#if AX_TARGET_PLATFORM == AX_PLATFORM_WASM
|
2023-09-01 16:31:14 +08:00
|
|
|
|
2023-09-15 19:33:25 +08:00
|
|
|
#include "base/Scheduler.h"
|
|
|
|
#include "base/Director.h"
|
2023-09-01 16:31:14 +08:00
|
|
|
|
2023-09-15 19:33:25 +08:00
|
|
|
NS_AX_BEGIN
|
2023-09-01 16:31:14 +08:00
|
|
|
|
|
|
|
class DevToolsImpl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DevToolsImpl();
|
|
|
|
|
|
|
|
void update(float /*dt*/);
|
|
|
|
|
|
|
|
void step();
|
|
|
|
|
|
|
|
void pause();
|
|
|
|
|
|
|
|
void resume();
|
|
|
|
|
|
|
|
static DevToolsImpl* getInstance();
|
|
|
|
|
|
|
|
private:
|
|
|
|
unsigned int _tick;
|
|
|
|
Scheduler* _scheduler;
|
|
|
|
Director* _director;
|
|
|
|
};
|
|
|
|
|
2023-09-15 19:33:25 +08:00
|
|
|
NS_AX_END
|
|
|
|
|
2023-09-05 22:17:18 +08:00
|
|
|
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_WASM
|
2023-09-01 16:31:14 +08:00
|
|
|
#endif // __DEVTOOLS_EMSCRIPTEN_H__
|