EventAssetsManagerEx is the event class which will be distributed during AssetsManagerEx updating process. More...
Inherits EventCustom.
Public Types | |
| enum | EventCode { ERROR_NO_LOCAL_MANIFEST, ERROR_DOWNLOAD_MANIFEST, ERROR_PARSE_MANIFEST, NEW_VERSION_FOUND, ALREADY_UP_TO_DATE, UPDATE_PROGRESSION, ASSET_UPDATED, ERROR_UPDATING, UPDATE_FINISHED, UPDATE_FAILED, ERROR_DECOMPRESS } |
| Update events code. More... | |
Public Types inherited from Event | |
| enum | Type |
| Type Event type. | |
Public Member Functions | |
| EventCode | getEventCode () const |
| Gets the event code. More... | |
| var | getEventCode () |
| Gets the event code. More... | |
| local | getEventCode () |
| Gets the event code. More... | |
| int | getCURLECode () const |
Gets the original curl error code for single file downloading curl_easy_perform. More... | |
| int | getCURLMCode () const |
Gets the original curl error code for multi file downloading curl_multi_perform. More... | |
| std::string | getMessage () const |
| Gets the event message. More... | |
| std::string | getAssetId () const |
| Gets the asset id. More... | |
| cocos2d::extension::AssetsManagerEx * | getAssetsManagerEx () const |
| Gets the AssetsManagerEx object. More... | |
| var | getAssetsManagerEx () |
| Gets the AssetsManagerEx object. More... | |
| local | getAssetsManagerEx () |
| Gets the AssetsManagerEx object. More... | |
| float | getPercent () const |
| Gets the byte level download percentage. More... | |
| float | getPercentByFile () const |
| Gets the file level download percentage. More... | |
Public Member Functions inherited from EventCustom | |
| EventCustom (const std::string &eventName) | |
| Constructor. More... | |
| void | setUserData (void *data) |
| Sets user data. More... | |
| var | setUserData ( var data) |
| Sets user data. More... | |
| local | setUserData ( local data) |
| Sets user data. More... | |
| void * | getUserData () const |
| Gets user data. More... | |
| var | getUserData () |
| Gets user data. More... | |
| local | getUserData () |
| Gets user data. More... | |
| const std::string & | getEventName () const |
| Gets event name. More... | |
Public Member Functions inherited from Event | |
| virtual | ~Event () |
| Destructor. | |
| Type | getType () const |
| Gets the event type. More... | |
| var | getType () |
| Gets the event type. More... | |
| local | getType () |
| Gets the event type. More... | |
| void | stopPropagation () |
| Stops propagation for current event. | |
| var | stopPropagation () |
| Stops propagation for current event. | |
| local | stopPropagation () |
| Stops propagation for current event. | |
| bool | isStopped () const |
| Checks whether the event has been stopped. More... | |
| var | isStopped () |
| Checks whether the event has been stopped. More... | |
| local | isStopped () |
| Checks whether the event has been stopped. More... | |
| Node * | getCurrentTarget () |
| Gets current target of the event. More... | |
| var | getCurrentTarget () |
| Gets current target of the event. More... | |
| local | getCurrentTarget () |
| Gets current target of the event. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Protected Member Functions | |
| EventAssetsManagerEx (const std::string &eventName, cocos2d::extension::AssetsManagerEx *manager, const EventCode &code, float percent=0, float percentByFile=0, const std::string &assetId="", const std::string &message="", int curle_code=0, int curlm_code=0) | |
| Constructor. | |
| EventAssetsManagerEx ( var eventName, var manager, var code, var 0, var 0, var 0, var 0) | |
| Constructor. | |
| EventAssetsManagerEx ( local eventName, local manager, local code, local 0, local 0, local 0, local 0) | |
| Constructor. | |
Protected Member Functions inherited from Event | |
| Event (Type type) | |
| Constructor. | |
| Event ( var type) | |
| Constructor. | |
| Event ( local type) | |
| Constructor. | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
EventAssetsManagerEx is the event class which will be distributed during AssetsManagerEx updating process.
|
inline |
Gets the event code.
The event code.
|
inline |
Gets the event code.
The event code.
|
inline |
Gets the event code.
The event code.
|
inline |
Gets the original curl error code for single file downloading curl_easy_perform.
Refer to the official error code document for detailed informations: http://curl.haxx.se/libcurl/c/libcurl-errors.html The curl error code.
|
inline |
Gets the original curl error code for single file downloading curl_easy_perform.
Refer to the official error code document for detailed informations: http://curl.haxx.se/libcurl/c/libcurl-errors.html The curl error code.
|
inline |
Gets the original curl error code for single file downloading curl_easy_perform.
Refer to the official error code document for detailed informations: http://curl.haxx.se/libcurl/c/libcurl-errors.html The curl error code.
|
inline |
Gets the original curl error code for multi file downloading curl_multi_perform.
Refer to the official error code document for detailed informations: http://curl.haxx.se/libcurl/c/libcurl-errors.html The curl error code.
|
inline |
Gets the original curl error code for multi file downloading curl_multi_perform.
Refer to the official error code document for detailed informations: http://curl.haxx.se/libcurl/c/libcurl-errors.html The curl error code.
|
inline |
Gets the original curl error code for multi file downloading curl_multi_perform.
Refer to the official error code document for detailed informations: http://curl.haxx.se/libcurl/c/libcurl-errors.html The curl error code.
|
inline |
Gets the event message.
The event message.
|
inline |
Gets the event message.
The event message.
|
inline |
Gets the event message.
The event message.
|
inline |
Gets the asset id.
The asset id
|
inline |
Gets the asset id.
The asset id
|
inline |
Gets the asset id.
The asset id
|
inline |
Gets the AssetsManagerEx object.
The AssetsManagerEx object
|
inline |
Gets the AssetsManagerEx object.
The AssetsManagerEx object
|
inline |
Gets the AssetsManagerEx object.
The AssetsManagerEx object
|
inline |
Gets the byte level download percentage.
The byte level download percentage
|
inline |
Gets the byte level download percentage.
The byte level download percentage
|
inline |
Gets the byte level download percentage.
The byte level download percentage
|
inline |
Gets the file level download percentage.
The file level download percentage
|
inline |
Gets the file level download percentage.
The file level download percentage
|
inline |
Gets the file level download percentage.
The file level download percentage