Functions | |
| void | () |
| bool | () |
| Checks whether CocosPlay is enabled. More... | |
| bool | () |
| Checks whether CocosPlay is in demo mode. More... | |
| void | (const std::string &filePath) |
| Updates assets by filePath, if the file doesn't exist, CocosPlay will show a progress page of downloading. More... | |
| bool | (const std::string &filePath) |
| Checks whether the file exists. More... | |
| void | (const std::string &filePath) |
| Notifies to Cocos Play SDK that a file was loaded It will do nothing if game doesn't run on Cocos Play. More... | |
| std::string | () |
| Gets the resource root path of current game. More... | |
| void | () |
| Purges the file searching cache. More... | |
| void | (const std::string &filePath) |
| Purges the file searching cache by giving file path. More... | |
| void | () |
| Notifies that the game demo was ended. More... | |
| void cocosplay::lazyInit | ( | ) |
| var lazyInit | ( | ) |
| local lazyInit | ( | ) |
| bool cocosplay::isEnabled | ( | ) |
Checks whether CocosPlay is enabled.
| var isEnabled | ( | ) |
Checks whether CocosPlay is enabled.
| local isEnabled | ( | ) |
Checks whether CocosPlay is enabled.
| bool cocosplay::isDemo | ( | ) |
Checks whether CocosPlay is in demo mode.
| var isDemo | ( | ) |
Checks whether CocosPlay is in demo mode.
| local isDemo | ( | ) |
Checks whether CocosPlay is in demo mode.
| void cocosplay::updateAssets | ( | const std::string & | filePath | ) |
Updates assets by filePath, if the file doesn't exist, CocosPlay will show a progress page of downloading.
And this interface will be hung up until the scene package was downloaded.
| var updateAssets | ( | var | filePath | ) |
Updates assets by filePath, if the file doesn't exist, CocosPlay will show a progress page of downloading.
And this interface will be hung up until the scene package was downloaded.
| local updateAssets | ( | local | filePath | ) |
Updates assets by filePath, if the file doesn't exist, CocosPlay will show a progress page of downloading.
And this interface will be hung up until the scene package was downloaded.
| bool cocosplay::fileExists | ( | const std::string & | filePath | ) |
Checks whether the file exists.
| var fileExists | ( | var | filePath | ) |
Checks whether the file exists.
| local fileExists | ( | local | filePath | ) |
Checks whether the file exists.
| void cocosplay::notifyFileLoaded | ( | const std::string & | filePath | ) |
Notifies to Cocos Play SDK that a file was loaded It will do nothing if game doesn't run on Cocos Play.
| var notifyFileLoaded | ( | var | filePath | ) |
Notifies to Cocos Play SDK that a file was loaded It will do nothing if game doesn't run on Cocos Play.
| local notifyFileLoaded | ( | local | filePath | ) |
Notifies to Cocos Play SDK that a file was loaded It will do nothing if game doesn't run on Cocos Play.
| std::string cocosplay::getGameRoot | ( | ) |
Gets the resource root path of current game.
| var getGameRoot | ( | ) |
Gets the resource root path of current game.
| local getGameRoot | ( | ) |
Gets the resource root path of current game.
| void cocosplay::purgeCachedEntries | ( | ) |
Purges the file searching cache.
| var purgeCachedEntries | ( | ) |
Purges the file searching cache.
| local purgeCachedEntries | ( | ) |
Purges the file searching cache.
| void cocosplay::purgeCachedByFile | ( | const std::string & | filePath | ) |
Purges the file searching cache by giving file path.
| var purgeCachedByFile | ( | var | filePath | ) |
Purges the file searching cache by giving file path.
| local purgeCachedByFile | ( | local | filePath | ) |
Purges the file searching cache by giving file path.
| void cocosplay::notifyDemoEnded | ( | ) |
Notifies that the game demo was ended.
| var notifyDemoEnded | ( | ) |
Notifies that the game demo was ended.
| local notifyDemoEnded | ( | ) |
Notifies that the game demo was ended.