Skip to content

Commit ec8eebd

Browse files
axmol-bothalx99
andauthored
Committing luabindings for commit 7f669db (#2449)
Co-authored-by: halx99 <[email protected]>
1 parent 7f669db commit ec8eebd

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22950,6 +22950,53 @@ int lua_ax_base_SpriteFrame_initWithTextureFilename(lua_State* tolua_S)
2295022950

2295122951
return 0;
2295222952
}
22953+
int lua_ax_base_SpriteFrame_getName(lua_State* tolua_S)
22954+
{
22955+
int argc = 0;
22956+
ax::SpriteFrame* cobj = nullptr;
22957+
bool ok = true;
22958+
22959+
#if _AX_DEBUG >= 1
22960+
tolua_Error tolua_err;
22961+
#endif
22962+
22963+
22964+
#if _AX_DEBUG >= 1
22965+
if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror;
22966+
#endif
22967+
22968+
cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0);
22969+
22970+
#if _AX_DEBUG >= 1
22971+
if (!cobj)
22972+
{
22973+
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getName'", nullptr);
22974+
return 0;
22975+
}
22976+
#endif
22977+
22978+
argc = lua_gettop(tolua_S)-1;
22979+
if (argc == 0)
22980+
{
22981+
if(!ok)
22982+
{
22983+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getName'", nullptr);
22984+
return 0;
22985+
}
22986+
auto&& ret = cobj->getName();
22987+
lua_pushlstring(tolua_S,ret.data(),ret.length());
22988+
return 1;
22989+
}
22990+
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getName",argc, 0);
22991+
return 0;
22992+
22993+
#if _AX_DEBUG >= 1
22994+
tolua_lerror:
22995+
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getName'.",&tolua_err);
22996+
#endif
22997+
22998+
return 0;
22999+
}
2295323000
int lua_ax_base_SpriteFrame_create(lua_State* tolua_S)
2295423001
{
2295523002
int argc = 0;
@@ -23151,6 +23198,7 @@ int lua_register_ax_base_SpriteFrame(lua_State* tolua_S)
2315123198
tolua_function(tolua_S,"clone",lua_ax_base_SpriteFrame_clone);
2315223199
tolua_function(tolua_S,"initWithTexture",lua_ax_base_SpriteFrame_initWithTexture);
2315323200
tolua_function(tolua_S,"initWithTextureFilename",lua_ax_base_SpriteFrame_initWithTextureFilename);
23201+
tolua_function(tolua_S,"getName",lua_ax_base_SpriteFrame_getName);
2315423202
tolua_function(tolua_S,"create", lua_ax_base_SpriteFrame_create);
2315523203
tolua_function(tolua_S,"createWithTexture", lua_ax_base_SpriteFrame_createWithTexture);
2315623204
tolua_endmodule(tolua_S);

0 commit comments

Comments
 (0)