mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding automatically
This commit is contained in:
parent
639ed335b3
commit
2f0eb6712d
|
@ -93,10 +93,12 @@
|
||||||
-- @return CSLoader#CSLoader self (return value: cc.CSLoader)
|
-- @return CSLoader#CSLoader self (return value: cc.CSLoader)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
--
|
-- @overload self, string, function
|
||||||
|
-- @overload self, string
|
||||||
-- @function [parent=#CSLoader] createNode
|
-- @function [parent=#CSLoader] createNode
|
||||||
-- @param self
|
-- @param self
|
||||||
-- @param #string filename
|
-- @param #string filename
|
||||||
|
-- @param #function callback
|
||||||
-- @return Node#Node ret (return value: cc.Node)
|
-- @return Node#Node ret (return value: cc.Node)
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
|
@ -640,7 +640,6 @@ int lua_cocos2dx_csloader_CSLoader_createNode(lua_State* tolua_S)
|
||||||
{
|
{
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
tolua_Error tolua_err;
|
tolua_Error tolua_err;
|
||||||
#endif
|
#endif
|
||||||
|
@ -649,22 +648,42 @@ int lua_cocos2dx_csloader_CSLoader_createNode(lua_State* tolua_S)
|
||||||
if (!tolua_isusertable(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror;
|
if (!tolua_isusertable(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
argc = lua_gettop(tolua_S) - 1;
|
argc = lua_gettop(tolua_S)-1;
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
|
if (argc == 2)
|
||||||
|
{
|
||||||
|
std::string arg0;
|
||||||
|
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.CSLoader:createNode");
|
||||||
|
if (!ok) { break; }
|
||||||
|
std::function<void (cocos2d::Ref *)> arg1;
|
||||||
|
do {
|
||||||
|
// Lambda binding for lua is not supported.
|
||||||
|
assert(false);
|
||||||
|
} while(0)
|
||||||
|
;
|
||||||
|
if (!ok) { break; }
|
||||||
|
cocos2d::Node* ret = cocos2d::CSLoader::createNode(arg0, arg1);
|
||||||
|
object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
} while (0);
|
||||||
|
ok = true;
|
||||||
|
do
|
||||||
|
{
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
{
|
{
|
||||||
std::string arg0;
|
std::string arg0;
|
||||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.CSLoader:createNode");
|
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.CSLoader:createNode");
|
||||||
if(!ok)
|
if (!ok) { break; }
|
||||||
{
|
|
||||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_createNode'", nullptr);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
cocos2d::Node* ret = cocos2d::CSLoader::createNode(arg0);
|
cocos2d::Node* ret = cocos2d::CSLoader::createNode(arg0);
|
||||||
object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret);
|
object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CSLoader:createNode",argc, 1);
|
} while (0);
|
||||||
|
ok = true;
|
||||||
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.CSLoader:createNode",argc, 1);
|
||||||
return 0;
|
return 0;
|
||||||
#if COCOS2D_DEBUG >= 1
|
#if COCOS2D_DEBUG >= 1
|
||||||
tolua_lerror:
|
tolua_lerror:
|
||||||
|
|
Loading…
Reference in New Issue