123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // 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);
- /// setRootPath可以删除(历史包袱原因,接口名留着)
- void setRootPath(std::string path){};
- private:
- double _gameStartTime;
- double _gameRunTime;
- int _gameRunFram;
-
- map<std::string, std::string> _globalVarStringMap;
-
- public:
- void setGlobalDataVar(std::string key, std::string content);
-
- std::string getGlobalDataVar(std::string key, ReboltErrorInfo& errorInfo);
- };
- #endif /* BTManger_hpp */
|