@@ -22950,6 +22950,53 @@ int lua_ax_base_SpriteFrame_initWithTextureFilename(lua_State* tolua_S)
22950
22950
22951
22951
return 0;
22952
22952
}
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
+ }
22953
23000
int lua_ax_base_SpriteFrame_create(lua_State* tolua_S)
22954
23001
{
22955
23002
int argc = 0;
@@ -23151,6 +23198,7 @@ int lua_register_ax_base_SpriteFrame(lua_State* tolua_S)
23151
23198
tolua_function(tolua_S,"clone",lua_ax_base_SpriteFrame_clone);
23152
23199
tolua_function(tolua_S,"initWithTexture",lua_ax_base_SpriteFrame_initWithTexture);
23153
23200
tolua_function(tolua_S,"initWithTextureFilename",lua_ax_base_SpriteFrame_initWithTextureFilename);
23201
+ tolua_function(tolua_S,"getName",lua_ax_base_SpriteFrame_getName);
23154
23202
tolua_function(tolua_S,"create", lua_ax_base_SpriteFrame_create);
23155
23203
tolua_function(tolua_S,"createWithTexture", lua_ax_base_SpriteFrame_createWithTexture);
23156
23204
tolua_endmodule(tolua_S);
0 commit comments