Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
EventAssetsManagerEx Class Reference

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...
 
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...
 
var getMessage ()
 Gets the event message. More...
 
local getMessage ()
 Gets the event message. More...
 
std::string getAssetId () const
 Gets the asset id. More...
 
cocos2d::extension::AssetsManagerExgetAssetsManagerEx () 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...
 
local getPercentByFile ()
 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...
 
NodegetCurrentTarget ()
 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...
 
Refautorelease ()
 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...
 

Detailed Description

EventAssetsManagerEx is the event class which will be distributed during AssetsManagerEx updating process.

Member Function Documentation

EventCode getEventCode ( ) const
inline

Gets the event code.

The event code.

var getEventCode ( )
inline

Gets the event code.

The event code.

local getEventCode ( )
inline

Gets the event code.

The event code.

int getCURLECode ( ) const
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.

var getCURLECode ( )
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.

local getCURLECode ( )
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.

int getCURLMCode ( ) const
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.

var getCURLMCode ( )
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.

local getCURLMCode ( )
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.

std::string getMessage ( ) const
inline

Gets the event message.

The event message.

var getMessage ( )
inline

Gets the event message.

The event message.

local getMessage ( )
inline

Gets the event message.

The event message.

std::string getAssetId ( ) const
inline

Gets the asset id.

The asset id

var getAssetId ( )
inline

Gets the asset id.

The asset id

local getAssetId ( )
inline

Gets the asset id.

The asset id

cocos2d::extension::AssetsManagerEx*
getAssetsManagerEx
( ) const
inline

Gets the AssetsManagerEx object.

The AssetsManagerEx object

var getAssetsManagerEx ( )
inline

Gets the AssetsManagerEx object.

The AssetsManagerEx object

local getAssetsManagerEx ( )
inline

Gets the AssetsManagerEx object.

The AssetsManagerEx object

float getPercent ( ) const
inline

Gets the byte level download percentage.

The byte level download percentage

var getPercent ( )
inline

Gets the byte level download percentage.

The byte level download percentage

local getPercent ( )
inline

Gets the byte level download percentage.

The byte level download percentage

float getPercentByFile ( ) const
inline

Gets the file level download percentage.

The file level download percentage

var getPercentByFile ( )
inline

Gets the file level download percentage.

The file level download percentage

local getPercentByFile ( )
inline

Gets the file level download percentage.

The file level download percentage


The documentation for this class was generated from the following file: