[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2015-04-02 01:51:14 +00:00
parent 6cf344ded6
commit dfc2390659
3 changed files with 105 additions and 70 deletions

View File

@ -11,8 +11,9 @@
-- @return float#float ret (return value: float)
--------------------------------
-- get & set high quality<br>
-- param true: is high quality, false: is low quality
-- set high quality<br>
-- The default value is based on Configuration::isHighAnimate3DQuality(). You can configure it in the config.plist. However, you can modify it using the following function<br>
-- param true: is high quality, false: is low quality.
-- @function [parent=#Animate3D] setHighQuality
-- @param self
-- @param #bool isHighQuality
@ -38,6 +39,13 @@
-- @param #float speed
-- @return Animate3D#Animate3D self (return value: cc.Animate3D)
--------------------------------
-- get high quality<br>
-- is it high quality
-- @function [parent=#Animate3D] isHighQuality
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- get & set origin interval
-- @function [parent=#Animate3D] setOriginInterval
@ -51,12 +59,6 @@
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function [parent=#Animate3D] getHighQuality
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @overload self, cc.Animation3D, float, float
-- @overload self, cc.Animation3D

View File

@ -18,9 +18,16 @@
-- @return Skybox#Skybox self (return value: cc.Skybox)
--------------------------------
--
-- @overload self, string, string, string, string, string, string
-- @overload self
-- @function [parent=#Skybox] create
-- @param self
-- @param #string positive_x
-- @param #string negative_x
-- @param #string positive_y
-- @param #string negative_y
-- @param #string positive_z
-- @param #string negative_z
-- @return Skybox#Skybox ret (return value: cc.Skybox)
--------------------------------

View File

@ -2371,6 +2371,53 @@ int lua_cocos2dx_3d_Animate3D_setSpeed(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_3d_Animate3D_isHighQuality(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Animate3D* 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.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animate3D_isHighQuality'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_isHighQuality'", nullptr);
return 0;
}
bool ret = cobj->isHighQuality();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate3D:isHighQuality",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animate3D_isHighQuality'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_3d_Animate3D_setOriginInterval(lua_State* tolua_S)
{
int argc = 0;
@ -2468,53 +2515,6 @@ int lua_cocos2dx_3d_Animate3D_getWeight(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_3d_Animate3D_getHighQuality(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Animate3D* 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.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animate3D_getHighQuality'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_getHighQuality'", nullptr);
return 0;
}
bool ret = cobj->getHighQuality();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate3D:getHighQuality",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animate3D_getHighQuality'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_3d_Animate3D_create(lua_State* tolua_S)
{
int argc = 0;
@ -2715,9 +2715,9 @@ int lua_register_cocos2dx_3d_Animate3D(lua_State* tolua_S)
tolua_function(tolua_S,"setWeight",lua_cocos2dx_3d_Animate3D_setWeight);
tolua_function(tolua_S,"getOriginInterval",lua_cocos2dx_3d_Animate3D_getOriginInterval);
tolua_function(tolua_S,"setSpeed",lua_cocos2dx_3d_Animate3D_setSpeed);
tolua_function(tolua_S,"isHighQuality",lua_cocos2dx_3d_Animate3D_isHighQuality);
tolua_function(tolua_S,"setOriginInterval",lua_cocos2dx_3d_Animate3D_setOriginInterval);
tolua_function(tolua_S,"getWeight",lua_cocos2dx_3d_Animate3D_getWeight);
tolua_function(tolua_S,"getHighQuality",lua_cocos2dx_3d_Animate3D_getHighQuality);
tolua_function(tolua_S,"create", lua_cocos2dx_3d_Animate3D_create);
tolua_function(tolua_S,"getTransitionTime", lua_cocos2dx_3d_Animate3D_getTransitionTime);
tolua_function(tolua_S,"createWithFrames", lua_cocos2dx_3d_Animate3D_createWithFrames);
@ -3331,7 +3331,6 @@ int lua_cocos2dx_3d_Skybox_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
@ -3340,20 +3339,47 @@ int lua_cocos2dx_3d_Skybox_create(lua_State* tolua_S)
if (!tolua_isusertable(tolua_S,1,"cc.Skybox",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
do
{
if(!ok)
if (argc == 6)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skybox_create'", nullptr);
return 0;
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Skybox:create");
if (!ok) { break; }
std::string arg1;
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Skybox:create");
if (!ok) { break; }
std::string arg2;
ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.Skybox:create");
if (!ok) { break; }
std::string arg3;
ok &= luaval_to_std_string(tolua_S, 5,&arg3, "cc.Skybox:create");
if (!ok) { break; }
std::string arg4;
ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.Skybox:create");
if (!ok) { break; }
std::string arg5;
ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.Skybox:create");
if (!ok) { break; }
cocos2d::Skybox* ret = cocos2d::Skybox::create(arg0, arg1, arg2, arg3, arg4, arg5);
object_to_luaval<cocos2d::Skybox>(tolua_S, "cc.Skybox",(cocos2d::Skybox*)ret);
return 1;
}
cocos2d::Skybox* ret = cocos2d::Skybox::create();
object_to_luaval<cocos2d::Skybox>(tolua_S, "cc.Skybox",(cocos2d::Skybox*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Skybox:create",argc, 0);
} while (0);
ok = true;
do
{
if (argc == 0)
{
cocos2d::Skybox* ret = cocos2d::Skybox::create();
object_to_luaval<cocos2d::Skybox>(tolua_S, "cc.Skybox",(cocos2d::Skybox*)ret);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Skybox:create",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror: