axmol/core/platform/wasm/devtools-wasm.h

36 lines
583 B
C
Raw Normal View History

#ifndef __DEVTOOLS_EMSCRIPTEN_H__
#define __DEVTOOLS_EMSCRIPTEN_H__
#include "platform/PlatformConfig.h"
#if AX_TARGET_PLATFORM == AX_PLATFORM_WASM
2023-09-15 19:33:25 +08:00
#include "base/Scheduler.h"
#include "base/Director.h"
2023-09-15 19:33:25 +08:00
NS_AX_BEGIN
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
#endif // AX_TARGET_PLATFORM == AX_PLATFORM_WASM
#endif // __DEVTOOLS_EMSCRIPTEN_H__