Skip to content

Commit 69752f2

Browse files
axmol-bothalx99
andauthored
Committing luabindings for commit fe9d98c (#2439)
Co-authored-by: halx99 <[email protected]>
1 parent fe9d98c commit 69752f2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,6 +3161,40 @@ int lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible(lua_State* tolua_S)
31613161

31623162
return 0;
31633163
}
3164+
int lua_ax_spine_SkeletonAnimation_create(lua_State* tolua_S)
3165+
{
3166+
int argc = 0;
3167+
bool ok = true;
3168+
3169+
#if _AX_DEBUG >= 1
3170+
tolua_Error tolua_err;
3171+
#endif
3172+
3173+
#if _AX_DEBUG >= 1
3174+
if (!tolua_isusertable(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror;
3175+
#endif
3176+
3177+
argc = lua_gettop(tolua_S) - 1;
3178+
3179+
if (argc == 0)
3180+
{
3181+
if(!ok)
3182+
{
3183+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_create'", nullptr);
3184+
return 0;
3185+
}
3186+
auto&& ret = spine::SkeletonAnimation::create();
3187+
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
3188+
return 1;
3189+
}
3190+
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "sp.SkeletonAnimation:create",argc, 0);
3191+
return 0;
3192+
#if _AX_DEBUG >= 1
3193+
tolua_lerror:
3194+
tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_create'.",&tolua_err);
3195+
#endif
3196+
return 0;
3197+
}
31643198
int lua_ax_spine_SkeletonAnimation_createWithJsonFile(lua_State* tolua_S)
31653199
{
31663200
int argc = 0;
@@ -3379,6 +3413,7 @@ int lua_register_ax_spine_SkeletonAnimation(lua_State* tolua_S)
33793413
tolua_function(tolua_S,"setTrackCompleteListener",lua_ax_spine_SkeletonAnimation_setTrackCompleteListener);
33803414
tolua_function(tolua_S,"setTrackEventListener",lua_ax_spine_SkeletonAnimation_setTrackEventListener);
33813415
tolua_function(tolua_S,"setUpdateOnlyIfVisible",lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible);
3416+
tolua_function(tolua_S,"create", lua_ax_spine_SkeletonAnimation_create);
33823417
tolua_function(tolua_S,"createWithJsonFile", lua_ax_spine_SkeletonAnimation_createWithJsonFile);
33833418
tolua_function(tolua_S,"createWithBinaryFile", lua_ax_spine_SkeletonAnimation_createWithBinaryFile);
33843419
tolua_endmodule(tolua_S);

0 commit comments

Comments
 (0)