Skip to content

Commit

Permalink
Merge pull request cocos2d#14468 from CocosRobot/update_lua_bindings_…
Browse files Browse the repository at this point in the history
…1448348167

[ci skip][AUTO]: updating luabinding & jsbinding automatically
  • Loading branch information
zilongshanren committed Nov 24, 2015
2 parents 378cfa3 + ded045a commit 2c87211
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1329,11 +1329,11 @@ jsb.Terrain = {

/**
* @method initHeightMap
* @param {char} arg0
* @param {String} arg0
* @return {bool}
*/
initHeightMap : function (
char
str
)
{
return false;
Expand Down Expand Up @@ -1373,10 +1373,10 @@ map

/**
* @method resetHeightMap
* @param {char} arg0
* @param {String} arg0
*/
resetHeightMap : function (
char
str
)
{
},
Expand Down
8 changes: 4 additions & 4 deletions cocos/scripting/js-bindings/auto/jsb_cocos2dx_3d_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3823,8 +3823,8 @@ bool js_cocos2dx_3d_Terrain_initHeightMap(JSContext *cx, uint32_t argc, jsval *v
cocos2d::Terrain* cobj = (cocos2d::Terrain *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_Terrain_initHeightMap : Invalid Native Object");
if (argc == 1) {
const char* arg0 = nullptr;
std::string arg0_tmp; ok &= jsval_to_std_string(cx, args.get(0), &arg0_tmp); arg0 = arg0_tmp.c_str();
std::string arg0;
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Terrain_initHeightMap : Error processing arguments");
bool ret = cobj->initHeightMap(arg0);
jsval jsret = JSVAL_NULL;
Expand Down Expand Up @@ -3908,8 +3908,8 @@ bool js_cocos2dx_3d_Terrain_resetHeightMap(JSContext *cx, uint32_t argc, jsval *
cocos2d::Terrain* cobj = (cocos2d::Terrain *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_Terrain_resetHeightMap : Invalid Native Object");
if (argc == 1) {
const char* arg0 = nullptr;
std::string arg0_tmp; ok &= jsval_to_std_string(cx, args.get(0), &arg0_tmp); arg0 = arg0_tmp.c_str();
std::string arg0;
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Terrain_resetHeightMap : Error processing arguments");
cobj->resetHeightMap(arg0);
args.rval().setUndefined();
Expand Down
4 changes: 2 additions & 2 deletions cocos/scripting/lua-bindings/auto/api/Terrain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- initialize heightMap data
-- @function [parent=#Terrain] initHeightMap
-- @param self
-- @param #char heightMap
-- @param #string heightMap
-- @return bool#bool ret (return value: bool)

--------------------------------
Expand Down Expand Up @@ -44,7 +44,7 @@
-- reset the heightmap data.
-- @function [parent=#Terrain] resetHeightMap
-- @param self
-- @param #char heightMap
-- @param #string heightMap
-- @return Terrain#Terrain self (return value: cc.Terrain)

--------------------------------
Expand Down
8 changes: 4 additions & 4 deletions cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4969,9 +4969,9 @@ int lua_cocos2dx_3d_Terrain_initHeightMap(lua_State* tolua_S)
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
const char* arg0;
std::string arg0;

std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Terrain:initHeightMap"); arg0 = arg0_tmp.c_str();
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Terrain:initHeightMap");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_initHeightMap'", nullptr);
Expand Down Expand Up @@ -5220,9 +5220,9 @@ int lua_cocos2dx_3d_Terrain_resetHeightMap(lua_State* tolua_S)
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
const char* arg0;
std::string arg0;

std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Terrain:resetHeightMap"); arg0 = arg0_tmp.c_str();
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Terrain:resetHeightMap");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_resetHeightMap'", nullptr);
Expand Down

0 comments on commit 2c87211

Please sign in to comment.