// // BTManger.hpp // redream_runtime // // Created by zhu on 2022/11/26. // #ifndef BTManger_hpp #define BTManger_hpp #include "cocos2d.h" #include "ReboltRunDelegate.hpp" class BTManger : Ref{ public: static BTManger* getInstance(); BTManger(); ~BTManger(); void startGame(); void updateTime(float dt); void update(float dt); void setRootPath(std::string path); private: double _gameStartTime; double _gameRunTime; int _gameRunFram; map _globalVarStringMap; public: void setGlobalDataVar(std::string key, std::string content); std::string getGlobalDataVar(std::string key, ReboltErrorInfo& errorInfo); }; #endif /* BTManger_hpp */