From 2bfad920cedf1be845dd6e852794a39eb788240c Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Thu, 16 Oct 2014 04:01:10 +0000 Subject: [PATCH] [AUTO]: updating luabinding automatically --- .../lua-bindings/auto/api/AssetsManagerEx.lua | 60 + .../lua-bindings/auto/api/Director.lua | 3 +- .../auto/api/EventAssetsManagerEx.lua | 55 + .../auto/api/EventListenerAssetsManagerEx.lua | 19 + .../lua-bindings/auto/api/Manifest.lua | 43 + .../api/lua_cocos2dx_extension_auto_api.lua | 20 + .../auto/lua_cocos2dx_extension_auto.cpp | 1072 ++++++++++++++++- .../auto/lua_cocos2dx_extension_auto.hpp | 26 + 8 files changed, 1290 insertions(+), 8 deletions(-) create mode 100644 cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua create mode 100644 cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua create mode 100644 cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua create mode 100644 cocos/scripting/lua-bindings/auto/api/Manifest.lua diff --git a/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua b/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua new file mode 100644 index 0000000000..0b0a8af401 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua @@ -0,0 +1,60 @@ + +-------------------------------- +-- @module AssetsManagerEx +-- @extend Ref +-- @parent_module cc + +-------------------------------- +-- @brief Gets the current update state. +-- @function [parent=#AssetsManagerEx] getState +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @brief Check out if there is a new version of manifest.
+-- You may use this method before updating, then let user determine whether
+-- he wants to update resources. +-- @function [parent=#AssetsManagerEx] checkUpdate +-- @param self + +-------------------------------- +-- @brief Gets storage path. +-- @function [parent=#AssetsManagerEx] getStoragePath +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @brief Update with the current local manifest. +-- @function [parent=#AssetsManagerEx] update +-- @param self + +-------------------------------- +-- @brief Function for retrieve the local manifest object +-- @function [parent=#AssetsManagerEx] getLocalManifest +-- @param self +-- @return Manifest#Manifest ret (return value: cc.Manifest) + +-------------------------------- +-- @brief Function for retrieve the remote manifest object +-- @function [parent=#AssetsManagerEx] getRemoteManifest +-- @param self +-- @return Manifest#Manifest ret (return value: cc.Manifest) + +-------------------------------- +-- @brief Reupdate all failed assets under the current AssetsManagerEx context +-- @function [parent=#AssetsManagerEx] downloadFailedAssets +-- @param self + +-------------------------------- +-- @brief Create function for creating a new AssetsManagerEx
+-- param manifestUrl The url for the local manifest file
+-- param storagePath The storage path for downloaded assetes
+-- warning The cached manifest in your storage path have higher priority and will be searched first,
+-- only if it doesn't exist, AssetsManagerEx will use the given manifestUrl. +-- @function [parent=#AssetsManagerEx] create +-- @param self +-- @param #string manifestUrl +-- @param #string storagePath +-- @return AssetsManagerEx#AssetsManagerEx ret (return value: cc.AssetsManagerEx) + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Director.lua b/cocos/scripting/lua-bindings/auto/api/Director.lua index bdabea04f8..e7b3350567 100644 --- a/cocos/scripting/lua-bindings/auto/api/Director.lua +++ b/cocos/scripting/lua-bindings/auto/api/Director.lua @@ -45,7 +45,8 @@ -- @return size_table#size_table ret (return value: size_table) -------------------------------- --- +-- Returns the Console
+-- since v3.0 -- @function [parent=#Director] getConsole -- @param self -- @return Console#Console ret (return value: cc.Console) diff --git a/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua b/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua new file mode 100644 index 0000000000..e5be0a16ef --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua @@ -0,0 +1,55 @@ + +-------------------------------- +-- @module EventAssetsManagerEx +-- @extend EventCustom +-- @parent_module cc + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getAssetsManagerEx +-- @param self +-- @return AssetsManagerEx#AssetsManagerEx ret (return value: cc.AssetsManagerEx) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getAssetId +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getCURLECode +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getMessage +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getCURLMCode +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getPercentByFile +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getEventCode +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- +-- @function [parent=#EventAssetsManagerEx] getPercent +-- @param self +-- @return float#float ret (return value: float) + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua new file mode 100644 index 0000000000..3d487d9aa8 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua @@ -0,0 +1,19 @@ + +-------------------------------- +-- @module EventListenerAssetsManagerEx +-- @extend EventListenerCustom +-- @parent_module cc + +-------------------------------- +-- +-- @function [parent=#EventListenerAssetsManagerEx] clone +-- @param self +-- @return EventListenerAssetsManagerEx#EventListenerAssetsManagerEx ret (return value: cc.EventListenerAssetsManagerEx) + +-------------------------------- +-- / Overrides +-- @function [parent=#EventListenerAssetsManagerEx] checkAvailable +-- @param self +-- @return bool#bool ret (return value: bool) + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Manifest.lua b/cocos/scripting/lua-bindings/auto/api/Manifest.lua new file mode 100644 index 0000000000..a8db33f8de --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/Manifest.lua @@ -0,0 +1,43 @@ + +-------------------------------- +-- @module Manifest +-- @extend Ref +-- @parent_module cc + +-------------------------------- +-- @brief Gets remote manifest file url. +-- @function [parent=#Manifest] getManifestFileUrl +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @brief Check whether the version informations have been fully loaded +-- @function [parent=#Manifest] isVersionLoaded +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @brief Check whether the manifest have been fully loaded +-- @function [parent=#Manifest] isLoaded +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @brief Gets remote package url. +-- @function [parent=#Manifest] getPackageUrl +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @brief Gets manifest version. +-- @function [parent=#Manifest] getVersion +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @brief Gets remote version file url. +-- @function [parent=#Manifest] getVersionFileUrl +-- @param self +-- @return string#string ret (return value: string) + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua b/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua index 99a0edbd12..f6189c9328 100644 --- a/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua +++ b/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua @@ -66,4 +66,24 @@ -- @field [parent=#cc] AssetsManager#AssetsManager AssetsManager preloaded module +-------------------------------------------------------- +-- the cc EventAssetsManagerEx +-- @field [parent=#cc] EventAssetsManagerEx#EventAssetsManagerEx EventAssetsManagerEx preloaded module + + +-------------------------------------------------------- +-- the cc Manifest +-- @field [parent=#cc] Manifest#Manifest Manifest preloaded module + + +-------------------------------------------------------- +-- the cc AssetsManagerEx +-- @field [parent=#cc] AssetsManagerEx#AssetsManagerEx AssetsManagerEx preloaded module + + +-------------------------------------------------------- +-- the cc EventListenerAssetsManagerEx +-- @field [parent=#cc] EventListenerAssetsManagerEx#EventListenerAssetsManagerEx EventListenerAssetsManagerEx preloaded module + + return nil diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp index 1f1c29dacd..f140484a15 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp @@ -11570,6 +11570,1060 @@ int lua_register_cocos2dx_extension_AssetsManager(lua_State* tolua_S) g_typeCast["AssetsManager"] = "cc.AssetsManager"; return 1; } + +int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::extension::AssetsManagerEx* ret = cobj->getAssetsManagerEx(); + object_to_luaval(tolua_S, "cc.AssetsManagerEx",(cocos2d::extension::AssetsManagerEx*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getAssetsManagerEx",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + std::string ret = cobj->getAssetId(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getAssetId",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getCURLECode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getCURLECode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getMessage'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + std::string ret = cobj->getMessage(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getMessage",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getMessage'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getCURLMCode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getCURLMCode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getPercentByFile(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getPercentByFile",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = (int)cobj->getEventCode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getEventCode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getPercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getPercent(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getPercent",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getPercent'.",&tolua_err); +#endif + + return 0; +} +static int lua_cocos2dx_extension_EventAssetsManagerEx_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (EventAssetsManagerEx)"); + return 0; +} + +int lua_register_cocos2dx_extension_EventAssetsManagerEx(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"cc.EventAssetsManagerEx"); + tolua_cclass(tolua_S,"EventAssetsManagerEx","cc.EventAssetsManagerEx","cc.EventCustom",nullptr); + + tolua_beginmodule(tolua_S,"EventAssetsManagerEx"); + tolua_function(tolua_S,"getAssetsManagerEx",lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx); + tolua_function(tolua_S,"getAssetId",lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId); + tolua_function(tolua_S,"getCURLECode",lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode); + tolua_function(tolua_S,"getMessage",lua_cocos2dx_extension_EventAssetsManagerEx_getMessage); + tolua_function(tolua_S,"getCURLMCode",lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode); + tolua_function(tolua_S,"getPercentByFile",lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile); + tolua_function(tolua_S,"getEventCode",lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode); + tolua_function(tolua_S,"getPercent",lua_cocos2dx_extension_EventAssetsManagerEx_getPercent); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocos2d::extension::EventAssetsManagerEx).name(); + g_luaType[typeName] = "cc.EventAssetsManagerEx"; + g_typeCast["EventAssetsManagerEx"] = "cc.EventAssetsManagerEx"; + return 1; +} + +int lua_cocos2dx_extension_Manifest_getManifestFileUrl(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Manifest_getManifestFileUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const std::string& ret = cobj->getManifestFileUrl(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Manifest:getManifestFileUrl",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Manifest_getManifestFileUrl'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_Manifest_isVersionLoaded(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Manifest_isVersionLoaded'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->isVersionLoaded(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Manifest:isVersionLoaded",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Manifest_isVersionLoaded'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_Manifest_isLoaded(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Manifest_isLoaded'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->isLoaded(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Manifest:isLoaded",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Manifest_isLoaded'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_Manifest_getPackageUrl(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Manifest_getPackageUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const std::string& ret = cobj->getPackageUrl(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Manifest:getPackageUrl",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Manifest_getPackageUrl'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_Manifest_getVersion(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Manifest_getVersion'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const std::string& ret = cobj->getVersion(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Manifest:getVersion",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Manifest_getVersion'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_Manifest_getVersionFileUrl(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Manifest_getVersionFileUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const std::string& ret = cobj->getVersionFileUrl(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Manifest:getVersionFileUrl",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Manifest_getVersionFileUrl'.",&tolua_err); +#endif + + return 0; +} +static int lua_cocos2dx_extension_Manifest_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (Manifest)"); + return 0; +} + +int lua_register_cocos2dx_extension_Manifest(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"cc.Manifest"); + tolua_cclass(tolua_S,"Manifest","cc.Manifest","cc.Ref",nullptr); + + tolua_beginmodule(tolua_S,"Manifest"); + tolua_function(tolua_S,"getManifestFileUrl",lua_cocos2dx_extension_Manifest_getManifestFileUrl); + tolua_function(tolua_S,"isVersionLoaded",lua_cocos2dx_extension_Manifest_isVersionLoaded); + tolua_function(tolua_S,"isLoaded",lua_cocos2dx_extension_Manifest_isLoaded); + tolua_function(tolua_S,"getPackageUrl",lua_cocos2dx_extension_Manifest_getPackageUrl); + tolua_function(tolua_S,"getVersion",lua_cocos2dx_extension_Manifest_getVersion); + tolua_function(tolua_S,"getVersionFileUrl",lua_cocos2dx_extension_Manifest_getVersionFileUrl); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocos2d::extension::Manifest).name(); + g_luaType[typeName] = "cc.Manifest"; + g_typeCast["Manifest"] = "cc.Manifest"; + return 1; +} + +int lua_cocos2dx_extension_AssetsManagerEx_getState(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_getState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = (int)cobj->getState(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:getState",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_getState'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_checkUpdate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->checkUpdate(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:checkUpdate",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_checkUpdate'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_getStoragePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const std::string& ret = cobj->getStoragePath(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:getStoragePath",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_getStoragePath'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_update(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_update'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->update(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:update",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_update'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const cocos2d::extension::Manifest* ret = cobj->getLocalManifest(); + object_to_luaval(tolua_S, "cc.Manifest",(cocos2d::extension::Manifest*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:getLocalManifest",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const cocos2d::extension::Manifest* ret = cobj->getRemoteManifest(); + object_to_luaval(tolua_S, "cc.Manifest",(cocos2d::extension::Manifest*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:getRemoteManifest",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->downloadFailedAssets(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:downloadFailedAssets",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_AssetsManagerEx_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + std::string arg0; + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AssetsManagerEx:create"); + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AssetsManagerEx:create"); + if(!ok) + return 0; + cocos2d::extension::AssetsManagerEx* ret = cocos2d::extension::AssetsManagerEx::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.AssetsManagerEx",(cocos2d::extension::AssetsManagerEx*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AssetsManagerEx:create",argc, 2); + return 0; +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_create'.",&tolua_err); +#endif + return 0; +} +static int lua_cocos2dx_extension_AssetsManagerEx_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (AssetsManagerEx)"); + return 0; +} + +int lua_register_cocos2dx_extension_AssetsManagerEx(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"cc.AssetsManagerEx"); + tolua_cclass(tolua_S,"AssetsManagerEx","cc.AssetsManagerEx","cc.Ref",nullptr); + + tolua_beginmodule(tolua_S,"AssetsManagerEx"); + tolua_function(tolua_S,"getState",lua_cocos2dx_extension_AssetsManagerEx_getState); + tolua_function(tolua_S,"checkUpdate",lua_cocos2dx_extension_AssetsManagerEx_checkUpdate); + tolua_function(tolua_S,"getStoragePath",lua_cocos2dx_extension_AssetsManagerEx_getStoragePath); + tolua_function(tolua_S,"update",lua_cocos2dx_extension_AssetsManagerEx_update); + tolua_function(tolua_S,"getLocalManifest",lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest); + tolua_function(tolua_S,"getRemoteManifest",lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest); + tolua_function(tolua_S,"downloadFailedAssets",lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets); + tolua_function(tolua_S,"create", lua_cocos2dx_extension_AssetsManagerEx_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocos2d::extension::AssetsManagerEx).name(); + g_luaType[typeName] = "cc.AssetsManagerEx"; + g_typeCast["AssetsManagerEx"] = "cc.AssetsManagerEx"; + return 1; +} + +static int lua_cocos2dx_extension_EventListenerAssetsManagerEx_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (EventListenerAssetsManagerEx)"); + return 0; +} + +int lua_register_cocos2dx_extension_EventListenerAssetsManagerEx(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"cc.EventListenerAssetsManagerEx"); + tolua_cclass(tolua_S,"EventListenerAssetsManagerEx","cc.EventListenerAssetsManagerEx","cc.EventListenerCustom",nullptr); + + tolua_beginmodule(tolua_S,"EventListenerAssetsManagerEx"); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocos2d::extension::EventListenerAssetsManagerEx).name(); + g_luaType[typeName] = "cc.EventListenerAssetsManagerEx"; + g_typeCast["EventListenerAssetsManagerEx"] = "cc.EventListenerAssetsManagerEx"; + return 1; +} TOLUA_API int register_all_cocos2dx_extension(lua_State* tolua_S) { tolua_open(tolua_S); @@ -11577,19 +12631,23 @@ TOLUA_API int register_all_cocos2dx_extension(lua_State* tolua_S) tolua_module(tolua_S,"cc",0); tolua_beginmodule(tolua_S,"cc"); + lua_register_cocos2dx_extension_AssetsManagerEx(tolua_S); lua_register_cocos2dx_extension_Control(tolua_S); + lua_register_cocos2dx_extension_ControlHuePicker(tolua_S); lua_register_cocos2dx_extension_TableViewCell(tolua_S); lua_register_cocos2dx_extension_ControlStepper(tolua_S); - lua_register_cocos2dx_extension_ControlSwitch(tolua_S); - lua_register_cocos2dx_extension_ScrollView(tolua_S); - lua_register_cocos2dx_extension_TableView(tolua_S); + lua_register_cocos2dx_extension_AssetsManager(tolua_S); + lua_register_cocos2dx_extension_ControlColourPicker(tolua_S); + lua_register_cocos2dx_extension_ControlButton(tolua_S); lua_register_cocos2dx_extension_ControlSlider(tolua_S); lua_register_cocos2dx_extension_ControlSaturationBrightnessPicker(tolua_S); - lua_register_cocos2dx_extension_ControlColourPicker(tolua_S); + lua_register_cocos2dx_extension_ScrollView(tolua_S); + lua_register_cocos2dx_extension_Manifest(tolua_S); lua_register_cocos2dx_extension_ControlPotentiometer(tolua_S); - lua_register_cocos2dx_extension_ControlButton(tolua_S); - lua_register_cocos2dx_extension_ControlHuePicker(tolua_S); - lua_register_cocos2dx_extension_AssetsManager(tolua_S); + lua_register_cocos2dx_extension_EventAssetsManagerEx(tolua_S); + lua_register_cocos2dx_extension_TableView(tolua_S); + lua_register_cocos2dx_extension_EventListenerAssetsManagerEx(tolua_S); + lua_register_cocos2dx_extension_ControlSwitch(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp index 483cbe013a..fdeaeb9c57 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp @@ -244,6 +244,32 @@ int register_all_cocos2dx_extension(lua_State* tolua_S); + + + + + + + + + + + + + + + + + + + + + + + + + +