From 68774d831917e12ccfe5855bb09a0f91855713e8 Mon Sep 17 00:00:00 2001 From: halx99 Date: Tue, 14 Feb 2023 15:38:16 +0000 Subject: [PATCH] Committing genbindings changes --- .../lua-bindings/auto/axlua_3d_auto.cpp | 6146 +- .../auto/axlua_audioengine_auto.cpp | 1160 +- .../lua-bindings/auto/axlua_backend_auto.cpp | 2377 +- .../lua-bindings/auto/axlua_backend_auto.hpp | 7 - .../lua-bindings/auto/axlua_base_auto.cpp | 99048 ++++++++-------- .../lua-bindings/auto/axlua_base_auto.hpp | 2 - .../auto/axlua_controller_auto.cpp | 570 +- .../lua-bindings/auto/axlua_csloader_auto.cpp | 766 +- .../auto/axlua_extension_auto.cpp | 5092 +- .../lua-bindings/auto/axlua_navmesh_auto.cpp | 2224 +- .../auto/axlua_physics3d_auto.cpp | 12558 +- .../lua-bindings/auto/axlua_physics_auto.cpp | 11760 +- .../lua-bindings/auto/axlua_spine_auto.cpp | 3630 +- .../lua-bindings/auto/axlua_studio_auto.cpp | 19656 +-- .../lua-bindings/auto/axlua_studio_auto.hpp | 2 + .../lua-bindings/auto/axlua_ui_auto.cpp | 46669 ++++---- .../lua-bindings/auto/axlua_ui_auto.hpp | 1 - .../lua-bindings/auto/axlua_video_auto.cpp | 1396 +- .../lua-bindings/auto/axlua_webview_auto.cpp | 702 +- 19 files changed, 106571 insertions(+), 107195 deletions(-) diff --git a/extensions/scripting/lua-bindings/auto/axlua_3d_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_3d_auto.cpp index b8507c846a..56c1272635 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_3d_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_3d_auto.cpp @@ -4,7 +4,7 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_3d_Animation3D_initWithFile(lua_State* tolua_S) +int lua_ax_3d_Animation3D_getDuration(lua_State* tolua_S) { int argc = 0; ax::Animation3D* cobj = nullptr; @@ -24,35 +24,29 @@ int lua_ax_3d_Animation3D_initWithFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_initWithFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_getDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Animation3D:initWithFile"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Animation3D:initWithFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_initWithFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_getDuration'", nullptr); return 0; } - auto&& ret = cobj->initWithFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:initWithFile",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:getDuration",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_initWithFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_getDuration'.",&tolua_err); #endif return 0; @@ -108,7 +102,7 @@ int lua_ax_3d_Animation3D_init(lua_State* tolua_S) return 0; } -int lua_ax_3d_Animation3D_getDuration(lua_State* tolua_S) +int lua_ax_3d_Animation3D_initWithFile(lua_State* tolua_S) { int argc = 0; ax::Animation3D* cobj = nullptr; @@ -128,29 +122,35 @@ int lua_ax_3d_Animation3D_getDuration(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_getDuration'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Animation3D:initWithFile"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Animation3D:initWithFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_getDuration'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_initWithFile'", nullptr); return 0; } - auto&& ret = cobj->getDuration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->initWithFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:getDuration",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:initWithFile",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_getDuration'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_initWithFile'.",&tolua_err); #endif return 0; @@ -256,9 +256,9 @@ int lua_register_ax_3d_Animation3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Animation3D"); tolua_function(tolua_S,"new",lua_ax_3d_Animation3D_constructor); - tolua_function(tolua_S,"initWithFile",lua_ax_3d_Animation3D_initWithFile); - tolua_function(tolua_S,"init",lua_ax_3d_Animation3D_init); tolua_function(tolua_S,"getDuration",lua_ax_3d_Animation3D_getDuration); + tolua_function(tolua_S,"init",lua_ax_3d_Animation3D_init); + tolua_function(tolua_S,"initWithFile",lua_ax_3d_Animation3D_initWithFile); tolua_function(tolua_S,"create", lua_ax_3d_Animation3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Animation3D).name(); // rtti is literal storage @@ -267,59 +267,6 @@ int lua_register_ax_3d_Animation3D(lua_State* tolua_S) return 1; } -int lua_ax_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S) -{ - int argc = 0; - ax::Animate3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - ax::ValueMap arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Animate3D:setKeyFrameUserInfo"); - - ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ax.Animate3D:setKeyFrameUserInfo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'", nullptr); - return 0; - } - cobj->setKeyFrameUserInfo(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setKeyFrameUserInfo",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_Animate3D_getSpeed(lua_State* tolua_S) { int argc = 0; @@ -367,7 +314,7 @@ int lua_ax_3d_Animate3D_getSpeed(lua_State* tolua_S) return 0; } -int lua_ax_3d_Animate3D_setQuality(lua_State* tolua_S) +int lua_ax_3d_Animate3D_setSpeed(lua_State* tolua_S) { int argc = 0; ax::Animate3D* cobj = nullptr; @@ -387,7 +334,7 @@ int lua_ax_3d_Animate3D_setQuality(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setQuality'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setSpeed'", nullptr); return 0; } #endif @@ -395,24 +342,71 @@ int lua_ax_3d_Animate3D_setQuality(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Animate3DQuality arg0; + double arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Animate3D:setQuality"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setSpeed"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setQuality'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setSpeed'", nullptr); return 0; } - cobj->setQuality(arg0); + cobj->setSpeed(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setQuality",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setSpeed",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setQuality'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Animate3D_getWeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Animate3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getWeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getWeight'", nullptr); + return 0; + } + auto&& ret = cobj->getWeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getWeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getWeight'.",&tolua_err); #endif return 0; @@ -467,7 +461,7 @@ int lua_ax_3d_Animate3D_setWeight(lua_State* tolua_S) return 0; } -int lua_ax_3d_Animate3D_removeFromMap(lua_State* tolua_S) +int lua_ax_3d_Animate3D_setOriginInterval(lua_State* tolua_S) { int argc = 0; ax::Animate3D* cobj = nullptr; @@ -487,88 +481,32 @@ int lua_ax_3d_Animate3D_removeFromMap(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_removeFromMap'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setOriginInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setOriginInterval"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_removeFromMap'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setOriginInterval'", nullptr); return 0; } - cobj->removeFromMap(); + cobj->setOriginInterval(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:removeFromMap",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setOriginInterval",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_removeFromMap'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Animate3D_initWithFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Animate3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_initWithFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - ax::Animation3D* arg0; - int arg1; - int arg2; - double arg3; - - ok &= luaval_to_object(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:initWithFrames"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Animate3D:initWithFrames"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Animate3D:initWithFrames"); - - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Animate3D:initWithFrames"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_initWithFrames'", nullptr); - return 0; - } - auto&& ret = cobj->initWithFrames(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:initWithFrames",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_initWithFrames'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setOriginInterval'.",&tolua_err); #endif return 0; @@ -620,7 +558,7 @@ int lua_ax_3d_Animate3D_getOriginInterval(lua_State* tolua_S) return 0; } -int lua_ax_3d_Animate3D_setSpeed(lua_State* tolua_S) +int lua_ax_3d_Animate3D_setQuality(lua_State* tolua_S) { int argc = 0; ax::Animate3D* cobj = nullptr; @@ -640,7 +578,7 @@ int lua_ax_3d_Animate3D_setSpeed(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setSpeed'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setQuality'", nullptr); return 0; } #endif @@ -648,24 +586,171 @@ int lua_ax_3d_Animate3D_setSpeed(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Animate3DQuality arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setSpeed"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Animate3D:setQuality"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setSpeed'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setQuality'", nullptr); return 0; } - cobj->setSpeed(arg0); + cobj->setQuality(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setSpeed",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setQuality",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setSpeed'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setQuality'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Animate3D_getQuality(lua_State* tolua_S) +{ + int argc = 0; + ax::Animate3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getQuality'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getQuality'", nullptr); + return 0; + } + int ret = (int)cobj->getQuality(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getQuality",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getQuality'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S) +{ + int argc = 0; + ax::Animate3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + int arg0; + ax::ValueMap arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Animate3D:setKeyFrameUserInfo"); + + ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ax.Animate3D:setKeyFrameUserInfo"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'", nullptr); + return 0; + } + cobj->setKeyFrameUserInfo(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setKeyFrameUserInfo",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Animate3D_removeFromMap(lua_State* tolua_S) +{ + int argc = 0; + ax::Animate3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_removeFromMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_removeFromMap'", nullptr); + return 0; + } + cobj->removeFromMap(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:removeFromMap",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_removeFromMap'.",&tolua_err); #endif return 0; @@ -733,7 +818,7 @@ int lua_ax_3d_Animate3D_init(lua_State* tolua_S) return 0; } -int lua_ax_3d_Animate3D_setOriginInterval(lua_State* tolua_S) +int lua_ax_3d_Animate3D_initWithFrames(lua_State* tolua_S) { int argc = 0; ax::Animate3D* cobj = nullptr; @@ -753,126 +838,41 @@ int lua_ax_3d_Animate3D_setOriginInterval(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setOriginInterval'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_initWithFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 4) { - double arg0; + ax::Animation3D* arg0; + int arg1; + int arg2; + double arg3; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setOriginInterval"); + ok &= luaval_to_object(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:initWithFrames"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Animate3D:initWithFrames"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Animate3D:initWithFrames"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Animate3D:initWithFrames"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setOriginInterval'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_initWithFrames'", nullptr); return 0; } - cobj->setOriginInterval(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initWithFrames(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setOriginInterval",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:initWithFrames",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setOriginInterval'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Animate3D_getWeight(lua_State* tolua_S) -{ - int argc = 0; - ax::Animate3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getWeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getWeight'", nullptr); - return 0; - } - auto&& ret = cobj->getWeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getWeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getWeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Animate3D_getQuality(lua_State* tolua_S) -{ - int argc = 0; - ax::Animate3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getQuality'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getQuality'", nullptr); - return 0; - } - int ret = (int)cobj->getQuality(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getQuality",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getQuality'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_initWithFrames'.",&tolua_err); #endif return 0; @@ -931,40 +931,6 @@ int lua_ax_3d_Animate3D_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_3d_Animate3D_getTransitionTime(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getTransitionTime'", nullptr); - return 0; - } - auto&& ret = ax::Animate3D::getTransitionTime(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Animate3D:getTransitionTime",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getTransitionTime'.",&tolua_err); -#endif - return 0; -} int lua_ax_3d_Animate3D_createWithFrames(lua_State* tolua_S) { int argc = 0; @@ -1024,6 +990,40 @@ int lua_ax_3d_Animate3D_createWithFrames(lua_State* tolua_S) #endif return 0; } +int lua_ax_3d_Animate3D_getTransitionTime(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getTransitionTime'", nullptr); + return 0; + } + auto&& ret = ax::Animate3D::getTransitionTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Animate3D:getTransitionTime",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getTransitionTime'.",&tolua_err); +#endif + return 0; +} int lua_ax_3d_Animate3D_setTransitionTime(lua_State* tolua_S) { int argc = 0; @@ -1110,21 +1110,21 @@ int lua_register_ax_3d_Animate3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Animate3D"); tolua_function(tolua_S,"new",lua_ax_3d_Animate3D_constructor); - tolua_function(tolua_S,"setKeyFrameUserInfo",lua_ax_3d_Animate3D_setKeyFrameUserInfo); tolua_function(tolua_S,"getSpeed",lua_ax_3d_Animate3D_getSpeed); - tolua_function(tolua_S,"setQuality",lua_ax_3d_Animate3D_setQuality); - tolua_function(tolua_S,"setWeight",lua_ax_3d_Animate3D_setWeight); - tolua_function(tolua_S,"removeFromMap",lua_ax_3d_Animate3D_removeFromMap); - tolua_function(tolua_S,"initWithFrames",lua_ax_3d_Animate3D_initWithFrames); - tolua_function(tolua_S,"getOriginInterval",lua_ax_3d_Animate3D_getOriginInterval); tolua_function(tolua_S,"setSpeed",lua_ax_3d_Animate3D_setSpeed); - tolua_function(tolua_S,"init",lua_ax_3d_Animate3D_init); - tolua_function(tolua_S,"setOriginInterval",lua_ax_3d_Animate3D_setOriginInterval); tolua_function(tolua_S,"getWeight",lua_ax_3d_Animate3D_getWeight); + tolua_function(tolua_S,"setWeight",lua_ax_3d_Animate3D_setWeight); + tolua_function(tolua_S,"setOriginInterval",lua_ax_3d_Animate3D_setOriginInterval); + tolua_function(tolua_S,"getOriginInterval",lua_ax_3d_Animate3D_getOriginInterval); + tolua_function(tolua_S,"setQuality",lua_ax_3d_Animate3D_setQuality); tolua_function(tolua_S,"getQuality",lua_ax_3d_Animate3D_getQuality); + tolua_function(tolua_S,"setKeyFrameUserInfo",lua_ax_3d_Animate3D_setKeyFrameUserInfo); + tolua_function(tolua_S,"removeFromMap",lua_ax_3d_Animate3D_removeFromMap); + tolua_function(tolua_S,"init",lua_ax_3d_Animate3D_init); + tolua_function(tolua_S,"initWithFrames",lua_ax_3d_Animate3D_initWithFrames); tolua_function(tolua_S,"create", lua_ax_3d_Animate3D_create); - tolua_function(tolua_S,"getTransitionTime", lua_ax_3d_Animate3D_getTransitionTime); tolua_function(tolua_S,"createWithFrames", lua_ax_3d_Animate3D_createWithFrames); + tolua_function(tolua_S,"getTransitionTime", lua_ax_3d_Animate3D_getTransitionTime); tolua_function(tolua_S,"setTransitionTime", lua_ax_3d_Animate3D_setTransitionTime); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Animate3D).name(); // rtti is literal storage @@ -1133,7 +1133,7 @@ int lua_register_ax_3d_Animate3D(lua_State* tolua_S) return 1; } -int lua_ax_3d_TextureCube_getImagePaths(lua_State* tolua_S) +int lua_ax_3d_TextureCube_setTexParameters(lua_State* tolua_S) { int argc = 0; ax::TextureCube* cobj = nullptr; @@ -1153,29 +1153,32 @@ int lua_ax_3d_TextureCube_getImagePaths(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_getImagePaths'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_setTexParameters'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Texture2D::TexParams arg0; + + ok &= luaval_to_texparams(tolua_S, 2, &arg0, "ax.TextureCube:setTexParameters"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_getImagePaths'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_setTexParameters'", nullptr); return 0; } - auto&& ret = cobj->getImagePaths(); - ccvector_std_string_to_luaval(tolua_S, ret); + cobj->setTexParameters(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:getImagePaths",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:setTexParameters",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_getImagePaths'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_setTexParameters'.",&tolua_err); #endif return 0; @@ -1227,6 +1230,53 @@ int lua_ax_3d_TextureCube_getBackendTexture(lua_State* tolua_S) return 0; } +int lua_ax_3d_TextureCube_getImagePaths(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCube* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCube*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_getImagePaths'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_getImagePaths'", nullptr); + return 0; + } + auto&& ret = cobj->getImagePaths(); + ccvector_std_string_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:getImagePaths",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_getImagePaths'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_TextureCube_reloadTexture(lua_State* tolua_S) { int argc = 0; @@ -1274,56 +1324,6 @@ int lua_ax_3d_TextureCube_reloadTexture(lua_State* tolua_S) return 0; } -int lua_ax_3d_TextureCube_setTexParameters(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCube* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCube*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_setTexParameters'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D::TexParams arg0; - - ok &= luaval_to_texparams(tolua_S, 2, &arg0, "ax.TextureCube:setTexParameters"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_setTexParameters'", nullptr); - return 0; - } - cobj->setTexParameters(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:setTexParameters",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_setTexParameters'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_TextureCube_create(lua_State* tolua_S) { int argc = 0; @@ -1420,10 +1420,10 @@ int lua_register_ax_3d_TextureCube(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextureCube"); tolua_function(tolua_S,"new",lua_ax_3d_TextureCube_constructor); - tolua_function(tolua_S,"getImagePaths",lua_ax_3d_TextureCube_getImagePaths); - tolua_function(tolua_S,"getBackendTexture",lua_ax_3d_TextureCube_getBackendTexture); - tolua_function(tolua_S,"reloadTexture",lua_ax_3d_TextureCube_reloadTexture); tolua_function(tolua_S,"setTexParameters",lua_ax_3d_TextureCube_setTexParameters); + tolua_function(tolua_S,"getBackendTexture",lua_ax_3d_TextureCube_getBackendTexture); + tolua_function(tolua_S,"getImagePaths",lua_ax_3d_TextureCube_getImagePaths); + tolua_function(tolua_S,"reloadTexture",lua_ax_3d_TextureCube_reloadTexture); tolua_function(tolua_S,"create", lua_ax_3d_TextureCube_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TextureCube).name(); // rtti is literal storage @@ -1526,53 +1526,6 @@ int lua_register_ax_3d_AttachNode(lua_State* tolua_S) return 1; } -int lua_ax_3d_BillBoard_getMode(lua_State* tolua_S) -{ - int argc = 0; - ax::BillBoard* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.BillBoard",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::BillBoard*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_BillBoard_getMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_getMode'", nullptr); - return 0; - } - int ret = (int)cobj->getMode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BillBoard:getMode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_getMode'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_BillBoard_setMode(lua_State* tolua_S) { int argc = 0; @@ -1623,6 +1576,53 @@ int lua_ax_3d_BillBoard_setMode(lua_State* tolua_S) return 0; } +int lua_ax_3d_BillBoard_getMode(lua_State* tolua_S) +{ + int argc = 0; + ax::BillBoard* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.BillBoard",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::BillBoard*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_BillBoard_getMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_getMode'", nullptr); + return 0; + } + int ret = (int)cobj->getMode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BillBoard:getMode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_getMode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_BillBoard_create(lua_State* tolua_S) { int argc = 0; @@ -1833,8 +1833,8 @@ int lua_register_ax_3d_BillBoard(lua_State* tolua_S) tolua_beginmodule(tolua_S,"BillBoard"); tolua_function(tolua_S,"new",lua_ax_3d_BillBoard_constructor); - tolua_function(tolua_S,"getMode",lua_ax_3d_BillBoard_getMode); tolua_function(tolua_S,"setMode",lua_ax_3d_BillBoard_setMode); + tolua_function(tolua_S,"getMode",lua_ax_3d_BillBoard_getMode); tolua_function(tolua_S,"create", lua_ax_3d_BillBoard_create); tolua_function(tolua_S,"createWithTexture", lua_ax_3d_BillBoard_createWithTexture); tolua_endmodule(tolua_S); @@ -1844,7 +1844,7 @@ int lua_register_ax_3d_BillBoard(lua_State* tolua_S) return 1; } -int lua_ax_3d_Mesh_getMaterial(lua_State* tolua_S) +int lua_ax_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) { int argc = 0; ax::Mesh* cobj = nullptr; @@ -1864,7 +1864,7 @@ int lua_ax_3d_Mesh_getMaterial(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMaterial'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'", nullptr); return 0; } #endif @@ -1874,263 +1874,19 @@ int lua_ax_3d_Mesh_getMaterial(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMaterial'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'", nullptr); return 0; } - auto&& ret = cobj->getMaterial(); - object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMaterial",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMaterial'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'", nullptr); - return 0; - } - auto&& ret = cobj->getVertexSizeInBytes(); + auto&& ret = cobj->getMeshVertexAttribCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getVertexSizeInBytes",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMeshVertexAttribCount",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setProgramState(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setProgramState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::ProgramState* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axb.ProgramState",&arg0, "ax.Mesh:setProgramState"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setProgramState'", nullptr); - return 0; - } - cobj->setProgramState(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setProgramState",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setProgramState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setIndexFormat(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setIndexFormat'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::IndexFormat arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Mesh:setIndexFormat"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setIndexFormat'", nullptr); - return 0; - } - cobj->setIndexFormat(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setIndexFormat",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setIndexFormat'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setMaterial(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setMaterial'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Material* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Material",&arg0, "ax.Mesh:setMaterial"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setMaterial'", nullptr); - return 0; - } - cobj->setMaterial(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setMaterial",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setMaterial'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_getName(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getName'", nullptr); - return 0; - } - auto&& ret = cobj->getName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'.",&tolua_err); #endif return 0; @@ -2185,7 +1941,7 @@ int lua_ax_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S) return 0; } -int lua_ax_3d_Mesh_calculateAABB(lua_State* tolua_S) +int lua_ax_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) { int argc = 0; ax::Mesh* cobj = nullptr; @@ -2205,7 +1961,7 @@ int lua_ax_3d_Mesh_calculateAABB(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_calculateAABB'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'", nullptr); return 0; } #endif @@ -2215,19 +1971,504 @@ int lua_ax_3d_Mesh_calculateAABB(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_calculateAABB'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'", nullptr); return 0; } - cobj->calculateAABB(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getVertexSizeInBytes(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:calculateAABB",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getVertexSizeInBytes",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_calculateAABB'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_setVisible(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Mesh:setVisible"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setVisible'", nullptr); + return 0; + } + cobj->setVisible(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setVisible",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_isVisible(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_isVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_isVisible'", nullptr); + return 0; + } + auto&& ret = cobj->isVisible(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:isVisible",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_isVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_getProgramState(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getProgramState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getProgramState'", nullptr); + return 0; + } + auto&& ret = cobj->getProgramState(); + object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getProgramState",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getProgramState'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_getName(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getName'", nullptr); + return 0; + } + auto&& ret = cobj->getName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Mesh:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_setIndexFormat(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setIndexFormat'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::IndexFormat arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Mesh:setIndexFormat"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setIndexFormat'", nullptr); + return 0; + } + cobj->setIndexFormat(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setIndexFormat",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setIndexFormat'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_setProgramState(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setProgramState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::ProgramState* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axb.ProgramState",&arg0, "ax.Mesh:setProgramState"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setProgramState'", nullptr); + return 0; + } + cobj->setProgramState(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setProgramState",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setProgramState'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_setMaterial(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setMaterial'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Material* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Material",&arg0, "ax.Mesh:setMaterial"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setMaterial'", nullptr); + return 0; + } + cobj->setMaterial(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setMaterial",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setMaterial'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_getMaterial(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMaterial'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMaterial'", nullptr); + return 0; + } + auto&& ret = cobj->getMaterial(); + object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMaterial",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMaterial'.",&tolua_err); #endif return 0; @@ -2303,7 +2544,7 @@ int lua_ax_3d_Mesh_draw(lua_State* tolua_S) return 0; } -int lua_ax_3d_Mesh_getBlendFunc(lua_State* tolua_S) +int lua_ax_3d_Mesh_setSkin(lua_State* tolua_S) { int argc = 0; ax::Mesh* cobj = nullptr; @@ -2323,54 +2564,7 @@ int lua_ax_3d_Mesh_getBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setName(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setSkin'", nullptr); return 0; } #endif @@ -2378,24 +2572,24 @@ int lua_ax_3d_Mesh_setName(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + ax::MeshSkin* arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Mesh:setName"); + ok &= luaval_to_object(tolua_S, 2, "ax.MeshSkin",&arg0, "ax.Mesh:setSkin"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setSkin'", nullptr); return 0; } - cobj->setName(arg0); + cobj->setSkin(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setName",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setSkin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setSkin'.",&tolua_err); #endif return 0; @@ -2450,7 +2644,7 @@ int lua_ax_3d_Mesh_setMeshIndexData(lua_State* tolua_S) return 0; } -int lua_ax_3d_Mesh_getProgramState(lua_State* tolua_S) +int lua_ax_3d_Mesh_setName(lua_State* tolua_S) { int argc = 0; ax::Mesh* cobj = nullptr; @@ -2470,7 +2664,57 @@ int lua_ax_3d_Mesh_getProgramState(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getProgramState'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Mesh:setName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setName'", nullptr); + return 0; + } + cobj->setName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Mesh_calculateAABB(lua_State* tolua_S) +{ + int argc = 0; + ax::Mesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_calculateAABB'", nullptr); return 0; } #endif @@ -2480,263 +2724,19 @@ int lua_ax_3d_Mesh_getProgramState(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getProgramState'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_calculateAABB'", nullptr); return 0; } - auto&& ret = cobj->getProgramState(); - object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getProgramState",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getProgramState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'", nullptr); - return 0; - } - auto&& ret = cobj->getMeshVertexAttribCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMeshVertexAttribCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Mesh:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); + cobj->calculateAABB(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setBlendFunc",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:calculateAABB",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setSkin(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setSkin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MeshSkin* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.MeshSkin",&arg0, "ax.Mesh:setSkin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setSkin'", nullptr); - return 0; - } - cobj->setSkin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setSkin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setSkin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_isVisible(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_isVisible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_isVisible'", nullptr); - return 0; - } - auto&& ret = cobj->isVisible(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:isVisible",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_isVisible'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Mesh_setVisible(lua_State* tolua_S) -{ - int argc = 0; - ax::Mesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setVisible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Mesh:setVisible"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setVisible'", nullptr); - return 0; - } - cobj->setVisible(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setVisible",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setVisible'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_calculateAABB'.",&tolua_err); #endif return 0; @@ -2791,24 +2791,24 @@ int lua_register_ax_3d_Mesh(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Mesh"); tolua_function(tolua_S,"new",lua_ax_3d_Mesh_constructor); - tolua_function(tolua_S,"getMaterial",lua_ax_3d_Mesh_getMaterial); - tolua_function(tolua_S,"getVertexSizeInBytes",lua_ax_3d_Mesh_getVertexSizeInBytes); - tolua_function(tolua_S,"setProgramState",lua_ax_3d_Mesh_setProgramState); - tolua_function(tolua_S,"setIndexFormat",lua_ax_3d_Mesh_setIndexFormat); - tolua_function(tolua_S,"setMaterial",lua_ax_3d_Mesh_setMaterial); - tolua_function(tolua_S,"getName",lua_ax_3d_Mesh_getName); - tolua_function(tolua_S,"getMeshVertexAttribute",lua_ax_3d_Mesh_getMeshVertexAttribute); - tolua_function(tolua_S,"calculateAABB",lua_ax_3d_Mesh_calculateAABB); - tolua_function(tolua_S,"draw",lua_ax_3d_Mesh_draw); - tolua_function(tolua_S,"getBlendFunc",lua_ax_3d_Mesh_getBlendFunc); - tolua_function(tolua_S,"setName",lua_ax_3d_Mesh_setName); - tolua_function(tolua_S,"setMeshIndexData",lua_ax_3d_Mesh_setMeshIndexData); - tolua_function(tolua_S,"getProgramState",lua_ax_3d_Mesh_getProgramState); tolua_function(tolua_S,"getMeshVertexAttribCount",lua_ax_3d_Mesh_getMeshVertexAttribCount); - tolua_function(tolua_S,"setBlendFunc",lua_ax_3d_Mesh_setBlendFunc); - tolua_function(tolua_S,"setSkin",lua_ax_3d_Mesh_setSkin); - tolua_function(tolua_S,"isVisible",lua_ax_3d_Mesh_isVisible); + tolua_function(tolua_S,"getMeshVertexAttribute",lua_ax_3d_Mesh_getMeshVertexAttribute); + tolua_function(tolua_S,"getVertexSizeInBytes",lua_ax_3d_Mesh_getVertexSizeInBytes); tolua_function(tolua_S,"setVisible",lua_ax_3d_Mesh_setVisible); + tolua_function(tolua_S,"isVisible",lua_ax_3d_Mesh_isVisible); + tolua_function(tolua_S,"getProgramState",lua_ax_3d_Mesh_getProgramState); + tolua_function(tolua_S,"getName",lua_ax_3d_Mesh_getName); + tolua_function(tolua_S,"setBlendFunc",lua_ax_3d_Mesh_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_3d_Mesh_getBlendFunc); + tolua_function(tolua_S,"setIndexFormat",lua_ax_3d_Mesh_setIndexFormat); + tolua_function(tolua_S,"setProgramState",lua_ax_3d_Mesh_setProgramState); + tolua_function(tolua_S,"setMaterial",lua_ax_3d_Mesh_setMaterial); + tolua_function(tolua_S,"getMaterial",lua_ax_3d_Mesh_getMaterial); + tolua_function(tolua_S,"draw",lua_ax_3d_Mesh_draw); + tolua_function(tolua_S,"setSkin",lua_ax_3d_Mesh_setSkin); + tolua_function(tolua_S,"setMeshIndexData",lua_ax_3d_Mesh_setMeshIndexData); + tolua_function(tolua_S,"setName",lua_ax_3d_Mesh_setName); + tolua_function(tolua_S,"calculateAABB",lua_ax_3d_Mesh_calculateAABB); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Mesh).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Mesh"; @@ -2816,6 +2816,347 @@ int lua_register_ax_3d_Mesh(lua_State* tolua_S) return 1; } +int lua_ax_3d_Skeleton3D_getBoneCount(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneCount'", nullptr); + return 0; + } + auto&& ret = cobj->getBoneCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Skeleton3D:getBoneByIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getBoneByIndex(arg0); + object_to_luaval(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneByIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneByName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Skeleton3D:getBoneByName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneByName'", nullptr); + return 0; + } + auto&& ret = cobj->getBoneByName(arg0); + object_to_luaval(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneByName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneByName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Skeleton3D_getRootCount(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getRootCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getRootCount'", nullptr); + return 0; + } + auto&& ret = cobj->getRootCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getRootCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getRootCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Skeleton3D_getRootBone(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getRootBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Skeleton3D:getRootBone"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getRootBone'", nullptr); + return 0; + } + auto&& ret = cobj->getRootBone(arg0); + object_to_luaval(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getRootBone",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getRootBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Bone3D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Bone3D",&arg0, "ax.Skeleton3D:getBoneIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getBoneIndex(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Skeleton3D_updateBoneMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'", nullptr); + return 0; + } + cobj->updateBoneMatrix(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:updateBoneMatrix",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_Skeleton3D_removeAllBones(lua_State* tolua_S) { int argc = 0; @@ -2913,347 +3254,6 @@ int lua_ax_3d_Skeleton3D_addBone(lua_State* tolua_S) return 0; } -int lua_ax_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneByName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Skeleton3D:getBoneByName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneByName'", nullptr); - return 0; - } - auto&& ret = cobj->getBoneByName(arg0); - object_to_luaval(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneByName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneByName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Skeleton3D_getRootBone(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getRootBone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Skeleton3D:getRootBone"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getRootBone'", nullptr); - return 0; - } - auto&& ret = cobj->getRootBone(arg0); - object_to_luaval(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getRootBone",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getRootBone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Skeleton3D_updateBoneMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'", nullptr); - return 0; - } - cobj->updateBoneMatrix(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:updateBoneMatrix",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Skeleton3D:getBoneByIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getBoneByIndex(arg0); - object_to_luaval(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneByIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Skeleton3D_getRootCount(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getRootCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getRootCount'", nullptr); - return 0; - } - auto&& ret = cobj->getRootCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getRootCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getRootCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Bone3D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Bone3D",&arg0, "ax.Skeleton3D:getBoneIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getBoneIndex(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Skeleton3D_getBoneCount(lua_State* tolua_S) -{ - int argc = 0; - ax::Skeleton3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneCount'", nullptr); - return 0; - } - auto&& ret = cobj->getBoneCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneCount'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_Skeleton3D_constructor(lua_State* tolua_S) { int argc = 0; @@ -3304,15 +3304,15 @@ int lua_register_ax_3d_Skeleton3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Skeleton3D"); tolua_function(tolua_S,"new",lua_ax_3d_Skeleton3D_constructor); + tolua_function(tolua_S,"getBoneCount",lua_ax_3d_Skeleton3D_getBoneCount); + tolua_function(tolua_S,"getBoneByIndex",lua_ax_3d_Skeleton3D_getBoneByIndex); + tolua_function(tolua_S,"getBoneByName",lua_ax_3d_Skeleton3D_getBoneByName); + tolua_function(tolua_S,"getRootCount",lua_ax_3d_Skeleton3D_getRootCount); + tolua_function(tolua_S,"getRootBone",lua_ax_3d_Skeleton3D_getRootBone); + tolua_function(tolua_S,"getBoneIndex",lua_ax_3d_Skeleton3D_getBoneIndex); + tolua_function(tolua_S,"updateBoneMatrix",lua_ax_3d_Skeleton3D_updateBoneMatrix); tolua_function(tolua_S,"removeAllBones",lua_ax_3d_Skeleton3D_removeAllBones); tolua_function(tolua_S,"addBone",lua_ax_3d_Skeleton3D_addBone); - tolua_function(tolua_S,"getBoneByName",lua_ax_3d_Skeleton3D_getBoneByName); - tolua_function(tolua_S,"getRootBone",lua_ax_3d_Skeleton3D_getRootBone); - tolua_function(tolua_S,"updateBoneMatrix",lua_ax_3d_Skeleton3D_updateBoneMatrix); - tolua_function(tolua_S,"getBoneByIndex",lua_ax_3d_Skeleton3D_getBoneByIndex); - tolua_function(tolua_S,"getRootCount",lua_ax_3d_Skeleton3D_getRootCount); - tolua_function(tolua_S,"getBoneIndex",lua_ax_3d_Skeleton3D_getBoneIndex); - tolua_function(tolua_S,"getBoneCount",lua_ax_3d_Skeleton3D_getBoneCount); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Skeleton3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Skeleton3D"; @@ -3320,6 +3320,56 @@ int lua_register_ax_3d_Skeleton3D(lua_State* tolua_S) return 1; } +int lua_ax_3d_Skybox_setTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::Skybox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Skybox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Skybox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skybox_setTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextureCube* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.TextureCube",&arg0, "ax.Skybox:setTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skybox_setTexture'", nullptr); + return 0; + } + cobj->setTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skybox:setTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_setTexture'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_Skybox_reload(lua_State* tolua_S) { int argc = 0; @@ -3432,56 +3482,6 @@ int lua_ax_3d_Skybox_init(lua_State* tolua_S) return 0; } -int lua_ax_3d_Skybox_setTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::Skybox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Skybox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Skybox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skybox_setTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextureCube* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.TextureCube",&arg0, "ax.Skybox:setTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skybox_setTexture'", nullptr); - return 0; - } - cobj->setTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skybox:setTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_setTexture'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_Skybox_create(lua_State* tolua_S) { int argc = 0; @@ -3592,9 +3592,9 @@ int lua_register_ax_3d_Skybox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Skybox"); tolua_function(tolua_S,"new",lua_ax_3d_Skybox_constructor); + tolua_function(tolua_S,"setTexture",lua_ax_3d_Skybox_setTexture); tolua_function(tolua_S,"reload",lua_ax_3d_Skybox_reload); tolua_function(tolua_S,"init",lua_ax_3d_Skybox_init); - tolua_function(tolua_S,"setTexture",lua_ax_3d_Skybox_setTexture); tolua_function(tolua_S,"create", lua_ax_3d_Skybox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Skybox).name(); // rtti is literal storage @@ -3603,56 +3603,6 @@ int lua_register_ax_3d_Skybox(lua_State* tolua_S) return 1; } -int lua_ax_3d_MeshRenderer_setCullFaceEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setCullFaceEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'", nullptr); - return 0; - } - cobj->setCullFaceEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setCullFaceEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_MeshRenderer_setTexture(lua_State* tolua_S) { int argc = 0; @@ -3708,6 +3658,738 @@ int lua_ax_3d_MeshRenderer_setTexture(lua_State* tolua_S) return 0; } +int lua_ax_3d_MeshRenderer_getMeshByIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:getMeshByIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getMeshByIndex(arg0); + object_to_luaval(tolua_S, "ax.Mesh",(ax::Mesh*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshByIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_getMeshByName(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshByName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:getMeshByName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshByName'", nullptr); + return 0; + } + auto&& ret = cobj->getMeshByName(arg0); + object_to_luaval(tolua_S, "ax.Mesh",(ax::Mesh*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshByName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshByName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_getMesh(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMesh'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMesh'", nullptr); + return 0; + } + auto&& ret = cobj->getMesh(); + object_to_luaval(tolua_S, "ax.Mesh",(ax::Mesh*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMesh",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMesh'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_getMeshCount(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshCount'", nullptr); + return 0; + } + auto&& ret = cobj->getMeshCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_getSkeleton(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getSkeleton'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getSkeleton'", nullptr); + return 0; + } + auto&& ret = cobj->getSkeleton(); + object_to_luaval(tolua_S, "ax.Skeleton3D",(ax::Skeleton3D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getSkeleton",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getSkeleton'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_getAttachNode(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getAttachNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:getAttachNode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getAttachNode'", nullptr); + return 0; + } + auto&& ret = cobj->getAttachNode(arg0); + object_to_luaval(tolua_S, "ax.AttachNode",(ax::AttachNode*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getAttachNode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getAttachNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_removeAttachNode(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_removeAttachNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:removeAttachNode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_removeAttachNode'", nullptr); + return 0; + } + cobj->removeAttachNode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:removeAttachNode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_removeAttachNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_removeAllAttachNode(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'", nullptr); + return 0; + } + cobj->removeAllAttachNode(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:removeAllAttachNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MeshRenderer:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_setForceDepthWrite(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setForceDepthWrite"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'", nullptr); + return 0; + } + cobj->setForceDepthWrite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setForceDepthWrite",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_isForceDepthWrite(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'", nullptr); + return 0; + } + auto&& ret = cobj->isForceDepthWrite(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:isForceDepthWrite",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_setCullFace(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setCullFace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::CullMode arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:setCullFace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setCullFace'", nullptr); + return 0; + } + cobj->setCullFace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setCullFace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setCullFace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_setCullFaceEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setCullFaceEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'", nullptr); + return 0; + } + cobj->setCullFaceEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setCullFaceEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_MeshRenderer_setLightMask(lua_State* tolua_S) +{ + int argc = 0; + ax::MeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setLightMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.MeshRenderer:setLightMask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setLightMask'", nullptr); + return 0; + } + cobj->setLightMask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setLightMask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setLightMask'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_MeshRenderer_getLightMask(lua_State* tolua_S) { int argc = 0; @@ -3755,67 +4437,6 @@ int lua_ax_3d_MeshRenderer_getLightMask(lua_State* tolua_S) return 0; } -int lua_ax_3d_MeshRenderer_getMaterial(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr); - return 0; - } - auto&& ret = cobj->getMaterial(); - object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); - return 1; - } - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:getMaterial"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr); - return 0; - } - auto&& ret = cobj->getMaterial(arg0); - object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMaterial",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMaterial'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_MeshRenderer_setWireframe(lua_State* tolua_S) { int argc = 0; @@ -3913,150 +4534,6 @@ int lua_ax_3d_MeshRenderer_isWireframe(lua_State* tolua_S) return 0; } -int lua_ax_3d_MeshRenderer_setCullFace(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setCullFace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::CullMode arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:setCullFace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setCullFace'", nullptr); - return 0; - } - cobj->setCullFace(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setCullFace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setCullFace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getMeshes(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshes'", nullptr); - return 0; - } - auto&& ret = cobj->getMeshes(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshes",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_removeAllAttachNode(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'", nullptr); - return 0; - } - cobj->removeAllAttachNode(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:removeAllAttachNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_MeshRenderer_setMaterial(lua_State* tolua_S) { int argc = 0; @@ -4116,7 +4593,7 @@ int lua_ax_3d_MeshRenderer_setMaterial(lua_State* tolua_S) return 0; } -int lua_ax_3d_MeshRenderer_getMesh(lua_State* tolua_S) +int lua_ax_3d_MeshRenderer_getMaterial(lua_State* tolua_S) { int argc = 0; ax::MeshRenderer* cobj = nullptr; @@ -4136,7 +4613,7 @@ int lua_ax_3d_MeshRenderer_getMesh(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMesh'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr); return 0; } #endif @@ -4146,121 +4623,38 @@ int lua_ax_3d_MeshRenderer_getMesh(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMesh'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr); return 0; } - auto&& ret = cobj->getMesh(); - object_to_luaval(tolua_S, "ax.Mesh",(ax::Mesh*)ret); + auto&& ret = cobj->getMaterial(); + object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMesh",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMesh'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getMeshCount(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshCount'", nullptr); - return 0; - } - auto&& ret = cobj->getMeshCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getMeshByIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:getMeshByIndex"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:getMaterial"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr); return 0; } - auto&& ret = cobj->getMeshByIndex(arg0); - object_to_luaval(tolua_S, "ax.Mesh",(ax::Mesh*)ret); + auto&& ret = cobj->getMaterial(arg0); + object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshByIndex",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMaterial",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMaterial'.",&tolua_err); #endif return 0; } -int lua_ax_3d_MeshRenderer_isForceDepthWrite(lua_State* tolua_S) +int lua_ax_3d_MeshRenderer_getMeshes(lua_State* tolua_S) { int argc = 0; ax::MeshRenderer* cobj = nullptr; @@ -4280,7 +4674,7 @@ int lua_ax_3d_MeshRenderer_isForceDepthWrite(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshes'", nullptr); return 0; } #endif @@ -4290,216 +4684,19 @@ int lua_ax_3d_MeshRenderer_isForceDepthWrite(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshes'", nullptr); return 0; } - auto&& ret = cobj->isForceDepthWrite(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getMeshes(); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:isForceDepthWrite",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshes",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_setLightMask(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setLightMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.MeshRenderer:setLightMask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setLightMask'", nullptr); - return 0; - } - cobj->setLightMask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setLightMask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setLightMask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getAttachNode(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getAttachNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:getAttachNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getAttachNode'", nullptr); - return 0; - } - auto&& ret = cobj->getAttachNode(arg0); - object_to_luaval(tolua_S, "ax.AttachNode",(ax::AttachNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getAttachNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getAttachNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MeshRenderer:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshes'.",&tolua_err); #endif return 0; @@ -4565,203 +4762,6 @@ int lua_ax_3d_MeshRenderer_genMaterial(lua_State* tolua_S) return 0; } -int lua_ax_3d_MeshRenderer_removeAttachNode(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_removeAttachNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:removeAttachNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_removeAttachNode'", nullptr); - return 0; - } - cobj->removeAttachNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:removeAttachNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_removeAttachNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getSkeleton(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getSkeleton'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getSkeleton'", nullptr); - return 0; - } - auto&& ret = cobj->getSkeleton(); - object_to_luaval(tolua_S, "ax.Skeleton3D",(ax::Skeleton3D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getSkeleton",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getSkeleton'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_setForceDepthWrite(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setForceDepthWrite"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'", nullptr); - return 0; - } - cobj->setForceDepthWrite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setForceDepthWrite",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_MeshRenderer_getMeshByName(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshByName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:getMeshByName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshByName'", nullptr); - return 0; - } - auto&& ret = cobj->getMeshByName(arg0); - object_to_luaval(tolua_S, "ax.Mesh",(ax::Mesh*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshByName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshByName'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_MeshRenderer_create(lua_State* tolua_S) { int argc = 0; @@ -4835,29 +4835,29 @@ int lua_register_ax_3d_MeshRenderer(lua_State* tolua_S) tolua_cclass(tolua_S,"MeshRenderer","ax.MeshRenderer","ax.Node",nullptr); tolua_beginmodule(tolua_S,"MeshRenderer"); - tolua_function(tolua_S,"setCullFaceEnabled",lua_ax_3d_MeshRenderer_setCullFaceEnabled); tolua_function(tolua_S,"setTexture",lua_ax_3d_MeshRenderer_setTexture); - tolua_function(tolua_S,"getLightMask",lua_ax_3d_MeshRenderer_getLightMask); - tolua_function(tolua_S,"getMaterial",lua_ax_3d_MeshRenderer_getMaterial); - tolua_function(tolua_S,"setWireframe",lua_ax_3d_MeshRenderer_setWireframe); - tolua_function(tolua_S,"isWireframe",lua_ax_3d_MeshRenderer_isWireframe); - tolua_function(tolua_S,"setCullFace",lua_ax_3d_MeshRenderer_setCullFace); - tolua_function(tolua_S,"getMeshes",lua_ax_3d_MeshRenderer_getMeshes); - tolua_function(tolua_S,"removeAllAttachNode",lua_ax_3d_MeshRenderer_removeAllAttachNode); - tolua_function(tolua_S,"setMaterial",lua_ax_3d_MeshRenderer_setMaterial); + tolua_function(tolua_S,"getMeshByIndex",lua_ax_3d_MeshRenderer_getMeshByIndex); + tolua_function(tolua_S,"getMeshByName",lua_ax_3d_MeshRenderer_getMeshByName); tolua_function(tolua_S,"getMesh",lua_ax_3d_MeshRenderer_getMesh); tolua_function(tolua_S,"getMeshCount",lua_ax_3d_MeshRenderer_getMeshCount); - tolua_function(tolua_S,"getMeshByIndex",lua_ax_3d_MeshRenderer_getMeshByIndex); - tolua_function(tolua_S,"isForceDepthWrite",lua_ax_3d_MeshRenderer_isForceDepthWrite); - tolua_function(tolua_S,"getBlendFunc",lua_ax_3d_MeshRenderer_getBlendFunc); - tolua_function(tolua_S,"setLightMask",lua_ax_3d_MeshRenderer_setLightMask); - tolua_function(tolua_S,"getAttachNode",lua_ax_3d_MeshRenderer_getAttachNode); - tolua_function(tolua_S,"setBlendFunc",lua_ax_3d_MeshRenderer_setBlendFunc); - tolua_function(tolua_S,"genMaterial",lua_ax_3d_MeshRenderer_genMaterial); - tolua_function(tolua_S,"removeAttachNode",lua_ax_3d_MeshRenderer_removeAttachNode); tolua_function(tolua_S,"getSkeleton",lua_ax_3d_MeshRenderer_getSkeleton); + tolua_function(tolua_S,"getAttachNode",lua_ax_3d_MeshRenderer_getAttachNode); + tolua_function(tolua_S,"removeAttachNode",lua_ax_3d_MeshRenderer_removeAttachNode); + tolua_function(tolua_S,"removeAllAttachNode",lua_ax_3d_MeshRenderer_removeAllAttachNode); + tolua_function(tolua_S,"setBlendFunc",lua_ax_3d_MeshRenderer_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_3d_MeshRenderer_getBlendFunc); tolua_function(tolua_S,"setForceDepthWrite",lua_ax_3d_MeshRenderer_setForceDepthWrite); - tolua_function(tolua_S,"getMeshByName",lua_ax_3d_MeshRenderer_getMeshByName); + tolua_function(tolua_S,"isForceDepthWrite",lua_ax_3d_MeshRenderer_isForceDepthWrite); + tolua_function(tolua_S,"setCullFace",lua_ax_3d_MeshRenderer_setCullFace); + tolua_function(tolua_S,"setCullFaceEnabled",lua_ax_3d_MeshRenderer_setCullFaceEnabled); + tolua_function(tolua_S,"setLightMask",lua_ax_3d_MeshRenderer_setLightMask); + tolua_function(tolua_S,"getLightMask",lua_ax_3d_MeshRenderer_getLightMask); + tolua_function(tolua_S,"setWireframe",lua_ax_3d_MeshRenderer_setWireframe); + tolua_function(tolua_S,"isWireframe",lua_ax_3d_MeshRenderer_isWireframe); + tolua_function(tolua_S,"setMaterial",lua_ax_3d_MeshRenderer_setMaterial); + tolua_function(tolua_S,"getMaterial",lua_ax_3d_MeshRenderer_getMaterial); + tolua_function(tolua_S,"getMeshes",lua_ax_3d_MeshRenderer_getMeshes); + tolua_function(tolua_S,"genMaterial",lua_ax_3d_MeshRenderer_genMaterial); tolua_function(tolua_S,"create", lua_ax_3d_MeshRenderer_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MeshRenderer).name(); // rtti is literal storage @@ -4866,53 +4866,6 @@ int lua_register_ax_3d_MeshRenderer(lua_State* tolua_S) return 1; } -int lua_ax_3d_MeshRendererCache_removeAllMeshRenderData(lua_State* tolua_S) -{ - int argc = 0; - ax::MeshRendererCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MeshRendererCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'", nullptr); - return 0; - } - cobj->removeAllMeshRenderData(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRendererCache:removeAllMeshRenderData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_MeshRendererCache_removeMeshRenderData(lua_State* tolua_S) { int argc = 0; @@ -4963,38 +4916,51 @@ int lua_ax_3d_MeshRendererCache_removeMeshRenderData(lua_State* tolua_S) return 0; } -int lua_ax_3d_MeshRendererCache_destroyInstance(lua_State* tolua_S) +int lua_ax_3d_MeshRendererCache_removeAllMeshRenderData(lua_State* tolua_S) { int argc = 0; + ax::MeshRendererCache* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::MeshRendererCache*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_destroyInstance'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'", nullptr); return 0; } - ax::MeshRendererCache::destroyInstance(); + cobj->removeAllMeshRenderData(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshRendererCache:destroyInstance",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRendererCache:removeAllMeshRenderData",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_destroyInstance'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'.",&tolua_err); #endif + return 0; } int lua_ax_3d_MeshRendererCache_getInstance(lua_State* tolua_S) @@ -5031,6 +4997,40 @@ int lua_ax_3d_MeshRendererCache_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_3d_MeshRendererCache_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_destroyInstance'", nullptr); + return 0; + } + ax::MeshRendererCache::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshRendererCache:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_destroyInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_3d_MeshRendererCache_constructor(lua_State* tolua_S) { int argc = 0; @@ -5079,10 +5079,10 @@ int lua_register_ax_3d_MeshRendererCache(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MeshRendererCache"); tolua_function(tolua_S,"new",lua_ax_3d_MeshRendererCache_constructor); - tolua_function(tolua_S,"removeAllMeshRenderData",lua_ax_3d_MeshRendererCache_removeAllMeshRenderData); tolua_function(tolua_S,"removeMeshRenderData",lua_ax_3d_MeshRendererCache_removeMeshRenderData); - tolua_function(tolua_S,"destroyInstance", lua_ax_3d_MeshRendererCache_destroyInstance); + tolua_function(tolua_S,"removeAllMeshRenderData",lua_ax_3d_MeshRendererCache_removeAllMeshRenderData); tolua_function(tolua_S,"getInstance", lua_ax_3d_MeshRendererCache_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_3d_MeshRendererCache_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MeshRendererCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MeshRendererCache"; @@ -5137,76 +5137,6 @@ int lua_ax_3d_MeshMaterial_getMaterialType(lua_State* tolua_S) return 0; } -int lua_ax_3d_MeshMaterial_createWithFilename(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshMaterial:createWithFilename"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_createWithFilename'", nullptr); - return 0; - } - auto&& ret = ax::MeshMaterial::createWithFilename(arg0); - object_to_luaval(tolua_S, "ax.MeshMaterial",(ax::MeshMaterial*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:createWithFilename",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_createWithFilename'.",&tolua_err); -#endif - return 0; -} -int lua_ax_3d_MeshMaterial_releaseCachedMaterial(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_releaseCachedMaterial'", nullptr); - return 0; - } - ax::MeshMaterial::releaseCachedMaterial(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:releaseCachedMaterial",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_releaseCachedMaterial'.",&tolua_err); -#endif - return 0; -} int lua_ax_3d_MeshMaterial_createBuiltInMaterial(lua_State* tolua_S) { int argc = 0; @@ -5255,7 +5185,7 @@ int lua_ax_3d_MeshMaterial_createBuiltInMaterial(lua_State* tolua_S) #endif return 0; } -int lua_ax_3d_MeshMaterial_releaseBuiltInMaterial(lua_State* tolua_S) +int lua_ax_3d_MeshMaterial_createWithFilename(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -5270,22 +5200,24 @@ int lua_ax_3d_MeshMaterial_releaseBuiltInMaterial(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshMaterial:createWithFilename"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_releaseBuiltInMaterial'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_createWithFilename'", nullptr); return 0; } - ax::MeshMaterial::releaseBuiltInMaterial(); - lua_settop(tolua_S, 1); + auto&& ret = ax::MeshMaterial::createWithFilename(arg0); + object_to_luaval(tolua_S, "ax.MeshMaterial",(ax::MeshMaterial*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:releaseBuiltInMaterial",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:createWithFilename",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_releaseBuiltInMaterial'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_createWithFilename'.",&tolua_err); #endif return 0; } @@ -5325,6 +5257,74 @@ int lua_ax_3d_MeshMaterial_createWithProgramState(lua_State* tolua_S) #endif return 0; } +int lua_ax_3d_MeshMaterial_releaseBuiltInMaterial(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_releaseBuiltInMaterial'", nullptr); + return 0; + } + ax::MeshMaterial::releaseBuiltInMaterial(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:releaseBuiltInMaterial",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_releaseBuiltInMaterial'.",&tolua_err); +#endif + return 0; +} +int lua_ax_3d_MeshMaterial_releaseCachedMaterial(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_releaseCachedMaterial'", nullptr); + return 0; + } + ax::MeshMaterial::releaseCachedMaterial(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:releaseCachedMaterial",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_releaseCachedMaterial'.",&tolua_err); +#endif + return 0; +} static int lua_ax_3d_MeshMaterial_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MeshMaterial)"); @@ -5338,11 +5338,11 @@ int lua_register_ax_3d_MeshMaterial(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MeshMaterial"); tolua_function(tolua_S,"getMaterialType",lua_ax_3d_MeshMaterial_getMaterialType); - tolua_function(tolua_S,"createWithFilename", lua_ax_3d_MeshMaterial_createWithFilename); - tolua_function(tolua_S,"releaseCachedMaterial", lua_ax_3d_MeshMaterial_releaseCachedMaterial); tolua_function(tolua_S,"createBuiltInMaterial", lua_ax_3d_MeshMaterial_createBuiltInMaterial); - tolua_function(tolua_S,"releaseBuiltInMaterial", lua_ax_3d_MeshMaterial_releaseBuiltInMaterial); + tolua_function(tolua_S,"createWithFilename", lua_ax_3d_MeshMaterial_createWithFilename); tolua_function(tolua_S,"createWithProgramState", lua_ax_3d_MeshMaterial_createWithProgramState); + tolua_function(tolua_S,"releaseBuiltInMaterial", lua_ax_3d_MeshMaterial_releaseBuiltInMaterial); + tolua_function(tolua_S,"releaseCachedMaterial", lua_ax_3d_MeshMaterial_releaseCachedMaterial); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MeshMaterial).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MeshMaterial"; @@ -5350,7 +5350,7 @@ int lua_register_ax_3d_MeshMaterial(lua_State* tolua_S) return 1; } -int lua_ax_3d_Terrain_initHeightMap(lua_State* tolua_S) +int lua_ax_3d_Terrain_setLightMap(lua_State* tolua_S) { int argc = 0; ax::Terrain* cobj = nullptr; @@ -5370,7 +5370,7 @@ int lua_ax_3d_Terrain_initHeightMap(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initHeightMap'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setLightMap'", nullptr); return 0; } #endif @@ -5380,273 +5380,22 @@ int lua_ax_3d_Terrain_initHeightMap(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:initHeightMap"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:setLightMap"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initHeightMap'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setLightMap'", nullptr); return 0; } - auto&& ret = cobj->initHeightMap(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initHeightMap",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initHeightMap'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_setMaxDetailMapAmount(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:setMaxDetailMapAmount"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'", nullptr); - return 0; - } - cobj->setMaxDetailMapAmount(arg0); + cobj->setLightMap(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setMaxDetailMapAmount",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setLightMap",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_setDrawWire(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setDrawWire'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Terrain:setDrawWire"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setDrawWire'", nullptr); - return 0; - } - cobj->setDrawWire(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setDrawWire",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setDrawWire'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_getHeightData(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getHeightData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getHeightData'", nullptr); - return 0; - } - auto&& ret = cobj->getHeightData(); - ccvector_float_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getHeightData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getHeightData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_setDetailMap(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setDetailMap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - unsigned int arg0; - ax::Terrain::DetailMap arg1; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Terrain:setDetailMap"); - - #pragma warning NO CONVERSION TO NATIVE FOR DetailMap - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setDetailMap'", nullptr); - return 0; - } - cobj->setDetailMap(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setDetailMap",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setDetailMap'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_resetHeightMap(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_resetHeightMap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:resetHeightMap"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_resetHeightMap'", nullptr); - return 0; - } - cobj->resetHeightMap(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:resetHeightMap",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_resetHeightMap'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setLightMap'.",&tolua_err); #endif return 0; @@ -5701,7 +5450,7 @@ int lua_ax_3d_Terrain_setLightDir(lua_State* tolua_S) return 0; } -int lua_ax_3d_Terrain_setAlphaMap(lua_State* tolua_S) +int lua_ax_3d_Terrain_initProperties(lua_State* tolua_S) { int argc = 0; ax::Terrain* cobj = nullptr; @@ -5721,37 +5470,34 @@ int lua_ax_3d_Terrain_setAlphaMap(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setAlphaMap'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Terrain:setAlphaMap"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setAlphaMap'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initProperties'", nullptr); return 0; } - cobj->setAlphaMap(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initProperties(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setAlphaMap",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initProperties",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setAlphaMap'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initProperties'.",&tolua_err); #endif return 0; } -int lua_ax_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) +int lua_ax_3d_Terrain_initHeightMap(lua_State* tolua_S) { int argc = 0; ax::Terrain* cobj = nullptr; @@ -5771,7 +5517,7 @@ int lua_ax_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initHeightMap'", nullptr); return 0; } #endif @@ -5779,74 +5525,24 @@ int lua_ax_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + std::string_view arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Terrain:setSkirtHeightRatio"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:initHeightMap"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initHeightMap'", nullptr); return 0; } - cobj->setSkirtHeightRatio(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initHeightMap(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setSkirtHeightRatio",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initHeightMap",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_convertToTerrainSpace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Terrain:convertToTerrainSpace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_convertToTerrainSpace'", nullptr); - return 0; - } - auto&& ret = cobj->convertToTerrainSpace(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:convertToTerrainSpace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_convertToTerrainSpace'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initHeightMap'.",&tolua_err); #endif return 0; @@ -5898,7 +5594,7 @@ int lua_ax_3d_Terrain_initTextures(lua_State* tolua_S) return 0; } -int lua_ax_3d_Terrain_initProperties(lua_State* tolua_S) +int lua_ax_3d_Terrain_getNormal(lua_State* tolua_S) { int argc = 0; ax::Terrain* cobj = nullptr; @@ -5918,54 +5614,7 @@ int lua_ax_3d_Terrain_initProperties(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initProperties'", nullptr); - return 0; - } - auto&& ret = cobj->initProperties(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initProperties",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initProperties'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_initWithTerrainData(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initWithTerrainData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getNormal'", nullptr); return 0; } #endif @@ -5973,28 +5622,130 @@ int lua_ax_3d_Terrain_initWithTerrainData(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - ax::Terrain::TerrainData arg0; - ax::Terrain::CrackFixedType arg1; + int arg0; + int arg1; - #pragma warning NO CONVERSION TO NATIVE FOR TerrainData - ok = false; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:getNormal"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:initWithTerrainData"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:getNormal"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initWithTerrainData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getNormal'", nullptr); return 0; } - auto&& ret = cobj->initWithTerrainData(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getNormal(arg0, arg1); + vec3_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initWithTerrainData",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getNormal",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initWithTerrainData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getNormal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_getImageHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getImageHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + int arg0; + int arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:getImageHeight"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:getImageHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getImageHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getImageHeight(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getImageHeight",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getImageHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_setDrawWire(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setDrawWire'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Terrain:setDrawWire"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setDrawWire'", nullptr); + return 0; + } + cobj->setDrawWire(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setDrawWire",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setDrawWire'.",&tolua_err); #endif return 0; @@ -6055,256 +5806,6 @@ int lua_ax_3d_Terrain_setLODDistance(lua_State* tolua_S) return 0; } -int lua_ax_3d_Terrain_getTerrainSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getTerrainSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getTerrainSize'", nullptr); - return 0; - } - auto&& ret = cobj->getTerrainSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getTerrainSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getTerrainSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_getNormal(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getNormal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - int arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:getNormal"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:getNormal"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getNormal'", nullptr); - return 0; - } - auto&& ret = cobj->getNormal(arg0, arg1); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getNormal",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getNormal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_reload(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_reload'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_reload'", nullptr); - return 0; - } - cobj->reload(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:reload",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_reload'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_getImageHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getImageHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - int arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:getImageHeight"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:getImageHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getImageHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getImageHeight(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getImageHeight",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getImageHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_3d_Terrain_setLightMap(lua_State* tolua_S) -{ - int argc = 0; - ax::Terrain* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setLightMap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:setLightMap"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setLightMap'", nullptr); - return 0; - } - cobj->setLightMap(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setLightMap",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setLightMap'.",&tolua_err); -#endif - - return 0; -} int lua_ax_3d_Terrain_setIsEnableFrustumCull(lua_State* tolua_S) { int argc = 0; @@ -6355,6 +5856,260 @@ int lua_ax_3d_Terrain_setIsEnableFrustumCull(lua_State* tolua_S) return 0; } +int lua_ax_3d_Terrain_setAlphaMap(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setAlphaMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Terrain:setAlphaMap"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setAlphaMap'", nullptr); + return 0; + } + cobj->setAlphaMap(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setAlphaMap",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setAlphaMap'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_setDetailMap(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setDetailMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + unsigned int arg0; + ax::Terrain::DetailMap arg1; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Terrain:setDetailMap"); + + #pragma warning NO CONVERSION TO NATIVE FOR DetailMap + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setDetailMap'", nullptr); + return 0; + } + cobj->setDetailMap(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setDetailMap",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setDetailMap'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_setMaxDetailMapAmount(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:setMaxDetailMapAmount"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'", nullptr); + return 0; + } + cobj->setMaxDetailMapAmount(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setMaxDetailMapAmount",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_convertToTerrainSpace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Terrain:convertToTerrainSpace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_convertToTerrainSpace'", nullptr); + return 0; + } + auto&& ret = cobj->convertToTerrainSpace(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:convertToTerrainSpace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_convertToTerrainSpace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_resetHeightMap(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_resetHeightMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:resetHeightMap"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_resetHeightMap'", nullptr); + return 0; + } + cobj->resetHeightMap(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:resetHeightMap",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_resetHeightMap'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_Terrain_getMinHeight(lua_State* tolua_S) { int argc = 0; @@ -6449,6 +6204,251 @@ int lua_ax_3d_Terrain_getMaxHeight(lua_State* tolua_S) return 0; } +int lua_ax_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Terrain:setSkirtHeightRatio"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'", nullptr); + return 0; + } + cobj->setSkirtHeightRatio(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setSkirtHeightRatio",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_reload(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_reload'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_reload'", nullptr); + return 0; + } + cobj->reload(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:reload",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_reload'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_getTerrainSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getTerrainSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getTerrainSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTerrainSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getTerrainSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getTerrainSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_getHeightData(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getHeightData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getHeightData'", nullptr); + return 0; + } + auto&& ret = cobj->getHeightData(); + ccvector_float_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getHeightData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getHeightData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_3d_Terrain_initWithTerrainData(lua_State* tolua_S) +{ + int argc = 0; + ax::Terrain* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initWithTerrainData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Terrain::TerrainData arg0; + ax::Terrain::CrackFixedType arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR TerrainData + ok = false; + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:initWithTerrainData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initWithTerrainData'", nullptr); + return 0; + } + auto&& ret = cobj->initWithTerrainData(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initWithTerrainData",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initWithTerrainData'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_Terrain_constructor(lua_State* tolua_S) { int argc = 0; @@ -6499,28 +6499,28 @@ int lua_register_ax_3d_Terrain(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Terrain"); tolua_function(tolua_S,"new",lua_ax_3d_Terrain_constructor); - tolua_function(tolua_S,"initHeightMap",lua_ax_3d_Terrain_initHeightMap); - tolua_function(tolua_S,"setMaxDetailMapAmount",lua_ax_3d_Terrain_setMaxDetailMapAmount); - tolua_function(tolua_S,"setDrawWire",lua_ax_3d_Terrain_setDrawWire); - tolua_function(tolua_S,"getHeightData",lua_ax_3d_Terrain_getHeightData); - tolua_function(tolua_S,"setDetailMap",lua_ax_3d_Terrain_setDetailMap); - tolua_function(tolua_S,"resetHeightMap",lua_ax_3d_Terrain_resetHeightMap); - tolua_function(tolua_S,"setLightDir",lua_ax_3d_Terrain_setLightDir); - tolua_function(tolua_S,"setAlphaMap",lua_ax_3d_Terrain_setAlphaMap); - tolua_function(tolua_S,"setSkirtHeightRatio",lua_ax_3d_Terrain_setSkirtHeightRatio); - tolua_function(tolua_S,"convertToTerrainSpace",lua_ax_3d_Terrain_convertToTerrainSpace); - tolua_function(tolua_S,"initTextures",lua_ax_3d_Terrain_initTextures); - tolua_function(tolua_S,"initProperties",lua_ax_3d_Terrain_initProperties); - tolua_function(tolua_S,"initWithTerrainData",lua_ax_3d_Terrain_initWithTerrainData); - tolua_function(tolua_S,"setLODDistance",lua_ax_3d_Terrain_setLODDistance); - tolua_function(tolua_S,"getTerrainSize",lua_ax_3d_Terrain_getTerrainSize); - tolua_function(tolua_S,"getNormal",lua_ax_3d_Terrain_getNormal); - tolua_function(tolua_S,"reload",lua_ax_3d_Terrain_reload); - tolua_function(tolua_S,"getImageHeight",lua_ax_3d_Terrain_getImageHeight); tolua_function(tolua_S,"setLightMap",lua_ax_3d_Terrain_setLightMap); + tolua_function(tolua_S,"setLightDir",lua_ax_3d_Terrain_setLightDir); + tolua_function(tolua_S,"initProperties",lua_ax_3d_Terrain_initProperties); + tolua_function(tolua_S,"initHeightMap",lua_ax_3d_Terrain_initHeightMap); + tolua_function(tolua_S,"initTextures",lua_ax_3d_Terrain_initTextures); + tolua_function(tolua_S,"getNormal",lua_ax_3d_Terrain_getNormal); + tolua_function(tolua_S,"getImageHeight",lua_ax_3d_Terrain_getImageHeight); + tolua_function(tolua_S,"setDrawWire",lua_ax_3d_Terrain_setDrawWire); + tolua_function(tolua_S,"setLODDistance",lua_ax_3d_Terrain_setLODDistance); tolua_function(tolua_S,"setIsEnableFrustumCull",lua_ax_3d_Terrain_setIsEnableFrustumCull); + tolua_function(tolua_S,"setAlphaMap",lua_ax_3d_Terrain_setAlphaMap); + tolua_function(tolua_S,"setDetailMap",lua_ax_3d_Terrain_setDetailMap); + tolua_function(tolua_S,"setMaxDetailMapAmount",lua_ax_3d_Terrain_setMaxDetailMapAmount); + tolua_function(tolua_S,"convertToTerrainSpace",lua_ax_3d_Terrain_convertToTerrainSpace); + tolua_function(tolua_S,"resetHeightMap",lua_ax_3d_Terrain_resetHeightMap); tolua_function(tolua_S,"getMinHeight",lua_ax_3d_Terrain_getMinHeight); tolua_function(tolua_S,"getMaxHeight",lua_ax_3d_Terrain_getMaxHeight); + tolua_function(tolua_S,"setSkirtHeightRatio",lua_ax_3d_Terrain_setSkirtHeightRatio); + tolua_function(tolua_S,"reload",lua_ax_3d_Terrain_reload); + tolua_function(tolua_S,"getTerrainSize",lua_ax_3d_Terrain_getTerrainSize); + tolua_function(tolua_S,"getHeightData",lua_ax_3d_Terrain_getHeightData); + tolua_function(tolua_S,"initWithTerrainData",lua_ax_3d_Terrain_initWithTerrainData); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Terrain).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Terrain"; @@ -6528,6 +6528,53 @@ int lua_register_ax_3d_Terrain(lua_State* tolua_S) return 1; } +int lua_ax_3d_Bundle3D_clear(lua_State* tolua_S) +{ + int argc = 0; + ax::Bundle3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_clear'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_clear'", nullptr); + return 0; + } + cobj->clear(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:clear",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_clear'.",&tolua_err); +#endif + + return 0; +} int lua_ax_3d_Bundle3D_load(lua_State* tolua_S) { int argc = 0; @@ -6632,7 +6679,7 @@ int lua_ax_3d_Bundle3D_loadSkinData(lua_State* tolua_S) return 0; } -int lua_ax_3d_Bundle3D_clear(lua_State* tolua_S) +int lua_ax_3d_Bundle3D_loadAnimationData(lua_State* tolua_S) { int argc = 0; ax::Bundle3D* cobj = nullptr; @@ -6652,80 +6699,36 @@ int lua_ax_3d_Bundle3D_clear(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_clear'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadAnimationData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_clear'", nullptr); - return 0; - } - cobj->clear(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:clear",argc, 0); - return 0; + std::string_view arg0; + ax::Animation3DData* arg1; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_clear'.",&tolua_err); -#endif + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:loadAnimationData"); - return 0; -} -int lua_ax_3d_Bundle3D_loadMaterials(lua_State* tolua_S) -{ - int argc = 0; - ax::Bundle3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadMaterials'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MaterialDatas arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR MaterialDatas + #pragma warning NO CONVERSION TO NATIVE FOR Animation3DData* ok = false; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadMaterials'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadAnimationData'", nullptr); return 0; } - auto&& ret = cobj->loadMaterials(arg0); + auto&& ret = cobj->loadAnimationData(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadMaterials",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadAnimationData",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadMaterials'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadAnimationData'.",&tolua_err); #endif return 0; @@ -6781,7 +6784,7 @@ int lua_ax_3d_Bundle3D_loadNodes(lua_State* tolua_S) return 0; } -int lua_ax_3d_Bundle3D_loadAnimationData(lua_State* tolua_S) +int lua_ax_3d_Bundle3D_loadMaterials(lua_State* tolua_S) { int argc = 0; ax::Bundle3D* cobj = nullptr; @@ -6801,41 +6804,38 @@ int lua_ax_3d_Bundle3D_loadAnimationData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadAnimationData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadMaterials'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 1) { - std::string_view arg0; - ax::Animation3DData* arg1; + ax::MaterialDatas arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:loadAnimationData"); - - #pragma warning NO CONVERSION TO NATIVE FOR Animation3DData* + #pragma warning NO CONVERSION TO NATIVE FOR MaterialDatas ok = false; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadAnimationData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadMaterials'", nullptr); return 0; } - auto&& ret = cobj->loadAnimationData(arg0, arg1); + auto&& ret = cobj->loadMaterials(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadAnimationData",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadMaterials",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadAnimationData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadMaterials'.",&tolua_err); #endif return 0; } -int lua_ax_3d_Bundle3D_parseSamplerAddressMode(lua_State* tolua_S) +int lua_ax_3d_Bundle3D_createBundle(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -6850,24 +6850,22 @@ int lua_ax_3d_Bundle3D_parseSamplerAddressMode(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:parseSamplerAddressMode"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_parseSamplerAddressMode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_createBundle'", nullptr); return 0; } - int ret = (int)ax::Bundle3D::parseSamplerAddressMode(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = ax::Bundle3D::createBundle(); + object_to_luaval(tolua_S, "ax.Bundle3D",(ax::Bundle3D*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:parseSamplerAddressMode",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:createBundle",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_parseSamplerAddressMode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_createBundle'.",&tolua_err); #endif return 0; } @@ -6907,40 +6905,6 @@ int lua_ax_3d_Bundle3D_destroyBundle(lua_State* tolua_S) #endif return 0; } -int lua_ax_3d_Bundle3D_createBundle(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_createBundle'", nullptr); - return 0; - } - auto&& ret = ax::Bundle3D::createBundle(); - object_to_luaval(tolua_S, "ax.Bundle3D",(ax::Bundle3D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:createBundle",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_createBundle'.",&tolua_err); -#endif - return 0; -} int lua_ax_3d_Bundle3D_parseGLDataType(lua_State* tolua_S) { int argc = 0; @@ -6979,6 +6943,42 @@ int lua_ax_3d_Bundle3D_parseGLDataType(lua_State* tolua_S) #endif return 0; } +int lua_ax_3d_Bundle3D_parseSamplerAddressMode(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:parseSamplerAddressMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_parseSamplerAddressMode'", nullptr); + return 0; + } + int ret = (int)ax::Bundle3D::parseSamplerAddressMode(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:parseSamplerAddressMode",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_parseSamplerAddressMode'.",&tolua_err); +#endif + return 0; +} int lua_ax_3d_Bundle3D_constructor(lua_State* tolua_S) { int argc = 0; @@ -7027,16 +7027,16 @@ int lua_register_ax_3d_Bundle3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Bundle3D"); tolua_function(tolua_S,"new",lua_ax_3d_Bundle3D_constructor); + tolua_function(tolua_S,"clear",lua_ax_3d_Bundle3D_clear); tolua_function(tolua_S,"load",lua_ax_3d_Bundle3D_load); tolua_function(tolua_S,"loadSkinData",lua_ax_3d_Bundle3D_loadSkinData); - tolua_function(tolua_S,"clear",lua_ax_3d_Bundle3D_clear); - tolua_function(tolua_S,"loadMaterials",lua_ax_3d_Bundle3D_loadMaterials); - tolua_function(tolua_S,"loadNodes",lua_ax_3d_Bundle3D_loadNodes); tolua_function(tolua_S,"loadAnimationData",lua_ax_3d_Bundle3D_loadAnimationData); - tolua_function(tolua_S,"parseSamplerAddressMode", lua_ax_3d_Bundle3D_parseSamplerAddressMode); - tolua_function(tolua_S,"destroyBundle", lua_ax_3d_Bundle3D_destroyBundle); + tolua_function(tolua_S,"loadNodes",lua_ax_3d_Bundle3D_loadNodes); + tolua_function(tolua_S,"loadMaterials",lua_ax_3d_Bundle3D_loadMaterials); tolua_function(tolua_S,"createBundle", lua_ax_3d_Bundle3D_createBundle); + tolua_function(tolua_S,"destroyBundle", lua_ax_3d_Bundle3D_destroyBundle); tolua_function(tolua_S,"parseGLDataType", lua_ax_3d_Bundle3D_parseGLDataType); + tolua_function(tolua_S,"parseSamplerAddressMode", lua_ax_3d_Bundle3D_parseSamplerAddressMode); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Bundle3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Bundle3D"; @@ -7050,19 +7050,19 @@ TOLUA_API int register_all_ax_3d(lua_State* tolua_S) tolua_module(tolua_S,"ax",0); tolua_beginmodule(tolua_S,"ax"); + lua_register_ax_3d_Animation3D(tolua_S); + lua_register_ax_3d_Animate3D(tolua_S); lua_register_ax_3d_TextureCube(tolua_S); + lua_register_ax_3d_AttachNode(tolua_S); lua_register_ax_3d_BillBoard(tolua_S); lua_register_ax_3d_Mesh(tolua_S); - lua_register_ax_3d_Animate3D(tolua_S); - lua_register_ax_3d_AttachNode(tolua_S); - lua_register_ax_3d_Animation3D(tolua_S); lua_register_ax_3d_Skeleton3D(tolua_S); + lua_register_ax_3d_Skybox(tolua_S); + lua_register_ax_3d_MeshRenderer(tolua_S); lua_register_ax_3d_MeshRendererCache(tolua_S); + lua_register_ax_3d_MeshMaterial(tolua_S); lua_register_ax_3d_Terrain(tolua_S); lua_register_ax_3d_Bundle3D(tolua_S); - lua_register_ax_3d_MeshRenderer(tolua_S); - lua_register_ax_3d_Skybox(tolua_S); - lua_register_ax_3d_MeshMaterial(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_audioengine_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_audioengine_auto.cpp index 33d42affd9..1f4d82123f 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_audioengine_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_audioengine_auto.cpp @@ -93,117 +93,7 @@ int lua_ax_audioengine_AudioEngine_lazyInit(lua_State* tolua_S) #endif return 0; } -int lua_ax_audioengine_AudioEngine_setCurrentTime(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - int arg0; - double arg1; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setCurrentTime"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.AudioEngine:setCurrentTime"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setCurrentTime'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::setCurrentTime(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setCurrentTime",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setCurrentTime'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_getVolume(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:getVolume"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getVolume'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::getVolume(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getVolume",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getVolume'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_uncache(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AudioEngine:uncache"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_uncache'", nullptr); - return 0; - } - ax::AudioEngine::uncache(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:uncache",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_uncache'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_resumeAll(lua_State* tolua_S) +int lua_ax_audioengine_AudioEngine_end(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -222,22 +112,22 @@ int lua_ax_audioengine_AudioEngine_resumeAll(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_resumeAll'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_end'", nullptr); return 0; } - ax::AudioEngine::resumeAll(); + ax::AudioEngine::end(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:resumeAll",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:end",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_resumeAll'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_end'.",&tolua_err); #endif return 0; } -int lua_ax_audioengine_AudioEngine_stopAll(lua_State* tolua_S) +int lua_ax_audioengine_AudioEngine_getDefaultProfile(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -256,427 +146,18 @@ int lua_ax_audioengine_AudioEngine_stopAll(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_stopAll'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getDefaultProfile'", nullptr); return 0; } - ax::AudioEngine::stopAll(); - lua_settop(tolua_S, 1); + auto&& ret = ax::AudioEngine::getDefaultProfile(); + object_to_luaval(tolua_S, "ax.AudioProfile",(ax::AudioProfile*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:stopAll",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getDefaultProfile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_stopAll'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_pause(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:pause"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_pause'", nullptr); - return 0; - } - ax::AudioEngine::pause(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:pause",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_pause'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_getMaxAudioInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getMaxAudioInstance'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::getMaxAudioInstance(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getMaxAudioInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getMaxAudioInstance'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_isEnabled'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:isEnabled",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_isEnabled'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_getCurrentTime(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:getCurrentTime"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getCurrentTime'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::getCurrentTime(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getCurrentTime",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getCurrentTime'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_setMaxAudioInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setMaxAudioInstance"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setMaxAudioInstance'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::setMaxAudioInstance(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setMaxAudioInstance",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setMaxAudioInstance'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_isLoop(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:isLoop"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_isLoop'", nullptr); - return 0; - } - auto&& ret = ax::AudioEngine::isLoop(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:isLoop",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_isLoop'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_pauseAll(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_pauseAll'", nullptr); - return 0; - } - ax::AudioEngine::pauseAll(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:pauseAll",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_pauseAll'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_uncacheAll(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_uncacheAll'", nullptr); - return 0; - } - ax::AudioEngine::uncacheAll(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:uncacheAll",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_uncacheAll'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_setVolume(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - int arg0; - double arg1; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setVolume"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.AudioEngine:setVolume"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setVolume'", nullptr); - return 0; - } - ax::AudioEngine::setVolume(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setVolume",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setVolume'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_preload(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S)-1; - - do - { - if (argc == 2) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AudioEngine:preload"); - if (!ok) { break; } - std::function arg1; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if (!ok) { break; } - ax::AudioEngine::preload(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AudioEngine:preload"); - if (!ok) { break; } - ax::AudioEngine::preload(arg0); - lua_settop(tolua_S, 1); - return 1; - } - } while (0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.AudioEngine:preload",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_preload'.",&tolua_err); -#endif - return 0; -} -int lua_ax_audioengine_AudioEngine_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.AudioEngine:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setEnabled'", nullptr); - return 0; - } - ax::AudioEngine::setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setEnabled",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getDefaultProfile'.",&tolua_err); #endif return 0; } @@ -767,7 +248,45 @@ int lua_ax_audioengine_AudioEngine_play2d(lua_State* tolua_S) #endif return 0; } -int lua_ax_audioengine_AudioEngine_getState(lua_State* tolua_S) +int lua_ax_audioengine_AudioEngine_setLoop(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + int arg0; + bool arg1; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setLoop"); + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.AudioEngine:setLoop"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setLoop'", nullptr); + return 0; + } + ax::AudioEngine::setLoop(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setLoop",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setLoop'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_isLoop(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -785,21 +304,165 @@ int lua_ax_audioengine_AudioEngine_getState(lua_State* tolua_S) if (argc == 1) { int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:getState"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:isLoop"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getState'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_isLoop'", nullptr); return 0; } - int ret = (int)ax::AudioEngine::getState(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = ax::AudioEngine::isLoop(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getState",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:isLoop",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getState'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_isLoop'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_setVolume(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + int arg0; + double arg1; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setVolume"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.AudioEngine:setVolume"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setVolume'", nullptr); + return 0; + } + ax::AudioEngine::setVolume(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setVolume",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setVolume'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_getVolume(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:getVolume"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getVolume'", nullptr); + return 0; + } + auto&& ret = ax::AudioEngine::getVolume(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getVolume",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getVolume'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_pause(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:pause"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_pause'", nullptr); + return 0; + } + ax::AudioEngine::pause(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:pause",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_pause'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_pauseAll(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_pauseAll'", nullptr); + return 0; + } + ax::AudioEngine::pauseAll(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:pauseAll",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_pauseAll'.",&tolua_err); #endif return 0; } @@ -839,6 +502,40 @@ int lua_ax_audioengine_AudioEngine_resume(lua_State* tolua_S) #endif return 0; } +int lua_ax_audioengine_AudioEngine_resumeAll(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_resumeAll'", nullptr); + return 0; + } + ax::AudioEngine::resumeAll(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:resumeAll",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_resumeAll'.",&tolua_err); +#endif + return 0; +} int lua_ax_audioengine_AudioEngine_stop(lua_State* tolua_S) { int argc = 0; @@ -875,7 +572,7 @@ int lua_ax_audioengine_AudioEngine_stop(lua_State* tolua_S) #endif return 0; } -int lua_ax_audioengine_AudioEngine_end(lua_State* tolua_S) +int lua_ax_audioengine_AudioEngine_stopAll(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -894,18 +591,92 @@ int lua_ax_audioengine_AudioEngine_end(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_end'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_stopAll'", nullptr); return 0; } - ax::AudioEngine::end(); + ax::AudioEngine::stopAll(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:end",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:stopAll",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_end'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_stopAll'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_setCurrentTime(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + int arg0; + double arg1; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setCurrentTime"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.AudioEngine:setCurrentTime"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setCurrentTime'", nullptr); + return 0; + } + auto&& ret = ax::AudioEngine::setCurrentTime(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setCurrentTime",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setCurrentTime'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_getCurrentTime(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:getCurrentTime"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getCurrentTime'", nullptr); + return 0; + } + auto&& ret = ax::AudioEngine::getCurrentTime(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getCurrentTime",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getCurrentTime'.",&tolua_err); #endif return 0; } @@ -945,7 +716,7 @@ int lua_ax_audioengine_AudioEngine_getDuration(lua_State* tolua_S) #endif return 0; } -int lua_ax_audioengine_AudioEngine_setLoop(lua_State* tolua_S) +int lua_ax_audioengine_AudioEngine_getState(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -960,30 +731,28 @@ int lua_ax_audioengine_AudioEngine_setLoop(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 2) + if (argc == 1) { int arg0; - bool arg1; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setLoop"); - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.AudioEngine:setLoop"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:getState"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setLoop'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getState'", nullptr); return 0; } - ax::AudioEngine::setLoop(arg0, arg1); - lua_settop(tolua_S, 1); + int ret = (int)ax::AudioEngine::getState(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setLoop",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getState",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setLoop'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getState'.",&tolua_err); #endif return 0; } -int lua_ax_audioengine_AudioEngine_getDefaultProfile(lua_State* tolua_S) +int lua_ax_audioengine_AudioEngine_getMaxAudioInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -1002,18 +771,124 @@ int lua_ax_audioengine_AudioEngine_getDefaultProfile(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getDefaultProfile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_getMaxAudioInstance'", nullptr); return 0; } - auto&& ret = ax::AudioEngine::getDefaultProfile(); - object_to_luaval(tolua_S, "ax.AudioProfile",(ax::AudioProfile*)ret); + auto&& ret = ax::AudioEngine::getMaxAudioInstance(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getDefaultProfile",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:getMaxAudioInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getDefaultProfile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_getMaxAudioInstance'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_setMaxAudioInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AudioEngine:setMaxAudioInstance"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setMaxAudioInstance'", nullptr); + return 0; + } + auto&& ret = ax::AudioEngine::setMaxAudioInstance(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setMaxAudioInstance",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setMaxAudioInstance'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_uncache(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AudioEngine:uncache"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_uncache'", nullptr); + return 0; + } + ax::AudioEngine::uncache(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:uncache",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_uncache'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_uncacheAll(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_uncacheAll'", nullptr); + return 0; + } + ax::AudioEngine::uncacheAll(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:uncacheAll",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_uncacheAll'.",&tolua_err); #endif return 0; } @@ -1065,6 +940,61 @@ int lua_ax_audioengine_AudioEngine_getProfile(lua_State* tolua_S) #endif return 0; } +int lua_ax_audioengine_AudioEngine_preload(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S)-1; + + do + { + if (argc == 2) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AudioEngine:preload"); + if (!ok) { break; } + std::function arg1; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if (!ok) { break; } + ax::AudioEngine::preload(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AudioEngine:preload"); + if (!ok) { break; } + ax::AudioEngine::preload(arg0); + lua_settop(tolua_S, 1); + return 1; + } + } while (0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.AudioEngine:preload",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_preload'.",&tolua_err); +#endif + return 0; +} int lua_ax_audioengine_AudioEngine_getPlayingAudioCount(lua_State* tolua_S) { int argc = 0; @@ -1099,6 +1029,76 @@ int lua_ax_audioengine_AudioEngine_getPlayingAudioCount(lua_State* tolua_S) #endif return 0; } +int lua_ax_audioengine_AudioEngine_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + bool arg0; + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.AudioEngine:setEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_setEnabled'", nullptr); + return 0; + } + ax::AudioEngine::setEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setEnabled",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_setEnabled'.",&tolua_err); +#endif + return 0; +} +int lua_ax_audioengine_AudioEngine_isEnabled(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AudioEngine",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_audioengine_AudioEngine_isEnabled'", nullptr); + return 0; + } + auto&& ret = ax::AudioEngine::isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:isEnabled",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_audioengine_AudioEngine_isEnabled'.",&tolua_err); +#endif + return 0; +} static int lua_ax_audioengine_AudioEngine_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AudioEngine)"); @@ -1112,32 +1112,32 @@ int lua_register_ax_audioengine_AudioEngine(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AudioEngine"); tolua_function(tolua_S,"lazyInit", lua_ax_audioengine_AudioEngine_lazyInit); - tolua_function(tolua_S,"setCurrentTime", lua_ax_audioengine_AudioEngine_setCurrentTime); - tolua_function(tolua_S,"getVolume", lua_ax_audioengine_AudioEngine_getVolume); - tolua_function(tolua_S,"uncache", lua_ax_audioengine_AudioEngine_uncache); - tolua_function(tolua_S,"resumeAll", lua_ax_audioengine_AudioEngine_resumeAll); - tolua_function(tolua_S,"stopAll", lua_ax_audioengine_AudioEngine_stopAll); - tolua_function(tolua_S,"pause", lua_ax_audioengine_AudioEngine_pause); - tolua_function(tolua_S,"getMaxAudioInstance", lua_ax_audioengine_AudioEngine_getMaxAudioInstance); - tolua_function(tolua_S,"isEnabled", lua_ax_audioengine_AudioEngine_isEnabled); - tolua_function(tolua_S,"getCurrentTime", lua_ax_audioengine_AudioEngine_getCurrentTime); - tolua_function(tolua_S,"setMaxAudioInstance", lua_ax_audioengine_AudioEngine_setMaxAudioInstance); - tolua_function(tolua_S,"isLoop", lua_ax_audioengine_AudioEngine_isLoop); - tolua_function(tolua_S,"pauseAll", lua_ax_audioengine_AudioEngine_pauseAll); - tolua_function(tolua_S,"uncacheAll", lua_ax_audioengine_AudioEngine_uncacheAll); - tolua_function(tolua_S,"setVolume", lua_ax_audioengine_AudioEngine_setVolume); - tolua_function(tolua_S,"preload", lua_ax_audioengine_AudioEngine_preload); - tolua_function(tolua_S,"setEnabled", lua_ax_audioengine_AudioEngine_setEnabled); - tolua_function(tolua_S,"play2d", lua_ax_audioengine_AudioEngine_play2d); - tolua_function(tolua_S,"getState", lua_ax_audioengine_AudioEngine_getState); - tolua_function(tolua_S,"resume", lua_ax_audioengine_AudioEngine_resume); - tolua_function(tolua_S,"stop", lua_ax_audioengine_AudioEngine_stop); tolua_function(tolua_S,"endToLua", lua_ax_audioengine_AudioEngine_end); - tolua_function(tolua_S,"getDuration", lua_ax_audioengine_AudioEngine_getDuration); - tolua_function(tolua_S,"setLoop", lua_ax_audioengine_AudioEngine_setLoop); tolua_function(tolua_S,"getDefaultProfile", lua_ax_audioengine_AudioEngine_getDefaultProfile); + tolua_function(tolua_S,"play2d", lua_ax_audioengine_AudioEngine_play2d); + tolua_function(tolua_S,"setLoop", lua_ax_audioengine_AudioEngine_setLoop); + tolua_function(tolua_S,"isLoop", lua_ax_audioengine_AudioEngine_isLoop); + tolua_function(tolua_S,"setVolume", lua_ax_audioengine_AudioEngine_setVolume); + tolua_function(tolua_S,"getVolume", lua_ax_audioengine_AudioEngine_getVolume); + tolua_function(tolua_S,"pause", lua_ax_audioengine_AudioEngine_pause); + tolua_function(tolua_S,"pauseAll", lua_ax_audioengine_AudioEngine_pauseAll); + tolua_function(tolua_S,"resume", lua_ax_audioengine_AudioEngine_resume); + tolua_function(tolua_S,"resumeAll", lua_ax_audioengine_AudioEngine_resumeAll); + tolua_function(tolua_S,"stop", lua_ax_audioengine_AudioEngine_stop); + tolua_function(tolua_S,"stopAll", lua_ax_audioengine_AudioEngine_stopAll); + tolua_function(tolua_S,"setCurrentTime", lua_ax_audioengine_AudioEngine_setCurrentTime); + tolua_function(tolua_S,"getCurrentTime", lua_ax_audioengine_AudioEngine_getCurrentTime); + tolua_function(tolua_S,"getDuration", lua_ax_audioengine_AudioEngine_getDuration); + tolua_function(tolua_S,"getState", lua_ax_audioengine_AudioEngine_getState); + tolua_function(tolua_S,"getMaxAudioInstance", lua_ax_audioengine_AudioEngine_getMaxAudioInstance); + tolua_function(tolua_S,"setMaxAudioInstance", lua_ax_audioengine_AudioEngine_setMaxAudioInstance); + tolua_function(tolua_S,"uncache", lua_ax_audioengine_AudioEngine_uncache); + tolua_function(tolua_S,"uncacheAll", lua_ax_audioengine_AudioEngine_uncacheAll); tolua_function(tolua_S,"getProfile", lua_ax_audioengine_AudioEngine_getProfile); + tolua_function(tolua_S,"preload", lua_ax_audioengine_AudioEngine_preload); tolua_function(tolua_S,"getPlayingAudioCount", lua_ax_audioengine_AudioEngine_getPlayingAudioCount); + tolua_function(tolua_S,"setEnabled", lua_ax_audioengine_AudioEngine_setEnabled); + tolua_function(tolua_S,"isEnabled", lua_ax_audioengine_AudioEngine_isEnabled); tolua_endmodule(tolua_S); auto typeName = typeid(ax::AudioEngine).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.AudioEngine"; diff --git a/extensions/scripting/lua-bindings/auto/axlua_backend_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_backend_auto.cpp index b5f653464f..685190c16b 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_backend_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_backend_auto.cpp @@ -397,294 +397,6 @@ int lua_register_ax_backend_TextureCubeFace(lua_State* tolua_S) return 1; } -int lua_ax_backend_Program_getMaxVertexLocation(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getMaxVertexLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getMaxVertexLocation'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxVertexLocation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getMaxVertexLocation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getMaxVertexLocation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Program_getVertexLayout(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getVertexLayout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getVertexLayout'", nullptr); - return 0; - } - auto&& ret = cobj->getVertexLayout(); - object_to_luaval(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getVertexLayout",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getVertexLayout'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Program_getMaxFragmentLocation(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getMaxFragmentLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getMaxFragmentLocation'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxFragmentLocation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getMaxFragmentLocation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getMaxFragmentLocation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Program_setProgramType(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_setProgramType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.Program:setProgramType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_setProgramType'", nullptr); - return 0; - } - cobj->setProgramType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:setProgramType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_setProgramType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Program_getFragmentShader(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getFragmentShader'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getFragmentShader'", nullptr); - return 0; - } - auto&& ret = cobj->getFragmentShader(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getFragmentShader",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getFragmentShader'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Program_getUniformBufferSize(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getUniformBufferSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::ShaderStage arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axb.Program:getUniformBufferSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getUniformBufferSize'", nullptr); - return 0; - } - auto&& ret = cobj->getUniformBufferSize(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getUniformBufferSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getUniformBufferSize'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_Program_getUniformLocation(lua_State* tolua_S) { int argc = 0; @@ -740,100 +452,6 @@ int lua_ax_backend_Program_getUniformLocation(lua_State* tolua_S) return 0; } -int lua_ax_backend_Program_getProgramType(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getProgramType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getProgramType'", nullptr); - return 0; - } - auto&& ret = cobj->getProgramType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getProgramType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getProgramType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Program_getActiveAttributes(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Program* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getActiveAttributes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getActiveAttributes'", nullptr); - return 0; - } - auto&& ret = cobj->getActiveAttributes(); - program_activeattrs_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getActiveAttributes",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getActiveAttributes'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_Program_getAttributeLocation(lua_State* tolua_S) { int argc = 0; @@ -889,6 +507,147 @@ int lua_ax_backend_Program_getAttributeLocation(lua_State* tolua_S) return 0; } +int lua_ax_backend_Program_getMaxVertexLocation(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getMaxVertexLocation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getMaxVertexLocation'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxVertexLocation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getMaxVertexLocation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getMaxVertexLocation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_Program_getMaxFragmentLocation(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getMaxFragmentLocation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getMaxFragmentLocation'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxFragmentLocation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getMaxFragmentLocation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getMaxFragmentLocation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_Program_getActiveAttributes(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getActiveAttributes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getActiveAttributes'", nullptr); + return 0; + } + auto&& ret = cobj->getActiveAttributes(); + program_activeattrs_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getActiveAttributes",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getActiveAttributes'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_Program_getVertexShader(lua_State* tolua_S) { int argc = 0; @@ -936,6 +695,247 @@ int lua_ax_backend_Program_getVertexShader(lua_State* tolua_S) return 0; } +int lua_ax_backend_Program_getFragmentShader(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getFragmentShader'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getFragmentShader'", nullptr); + return 0; + } + auto&& ret = cobj->getFragmentShader(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getFragmentShader",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getFragmentShader'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_Program_getProgramType(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getProgramType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getProgramType'", nullptr); + return 0; + } + auto&& ret = cobj->getProgramType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getProgramType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getProgramType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_Program_getUniformBufferSize(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getUniformBufferSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::ShaderStage arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axb.Program:getUniformBufferSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getUniformBufferSize'", nullptr); + return 0; + } + auto&& ret = cobj->getUniformBufferSize(arg0); + #pragma warning NO CONVERSION FROM NATIVE FOR ??; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getUniformBufferSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getUniformBufferSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_Program_setProgramType(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_setProgramType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.Program:setProgramType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_setProgramType'", nullptr); + return 0; + } + cobj->setProgramType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:setProgramType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_setProgramType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_Program_getVertexLayout(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Program* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Program",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Program*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Program_getVertexLayout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getVertexLayout'", nullptr); + return 0; + } + auto&& ret = cobj->getVertexLayout(); + object_to_luaval(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getVertexLayout",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Program_getVertexLayout'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_Program_getBuiltinProgram(lua_State* tolua_S) { int argc = 0; @@ -984,17 +984,17 @@ int lua_register_ax_backend_Program(lua_State* tolua_S) tolua_cclass(tolua_S,"Program","axb.Program","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Program"); - tolua_function(tolua_S,"getMaxVertexLocation",lua_ax_backend_Program_getMaxVertexLocation); - tolua_function(tolua_S,"getVertexLayout",lua_ax_backend_Program_getVertexLayout); - tolua_function(tolua_S,"getMaxFragmentLocation",lua_ax_backend_Program_getMaxFragmentLocation); - tolua_function(tolua_S,"setProgramType",lua_ax_backend_Program_setProgramType); - tolua_function(tolua_S,"getFragmentShader",lua_ax_backend_Program_getFragmentShader); - tolua_function(tolua_S,"getUniformBufferSize",lua_ax_backend_Program_getUniformBufferSize); tolua_function(tolua_S,"getUniformLocation",lua_ax_backend_Program_getUniformLocation); - tolua_function(tolua_S,"getProgramType",lua_ax_backend_Program_getProgramType); - tolua_function(tolua_S,"getActiveAttributes",lua_ax_backend_Program_getActiveAttributes); tolua_function(tolua_S,"getAttributeLocation",lua_ax_backend_Program_getAttributeLocation); + tolua_function(tolua_S,"getMaxVertexLocation",lua_ax_backend_Program_getMaxVertexLocation); + tolua_function(tolua_S,"getMaxFragmentLocation",lua_ax_backend_Program_getMaxFragmentLocation); + tolua_function(tolua_S,"getActiveAttributes",lua_ax_backend_Program_getActiveAttributes); tolua_function(tolua_S,"getVertexShader",lua_ax_backend_Program_getVertexShader); + tolua_function(tolua_S,"getFragmentShader",lua_ax_backend_Program_getFragmentShader); + tolua_function(tolua_S,"getProgramType",lua_ax_backend_Program_getProgramType); + tolua_function(tolua_S,"getUniformBufferSize",lua_ax_backend_Program_getUniformBufferSize); + tolua_function(tolua_S,"setProgramType",lua_ax_backend_Program_setProgramType); + tolua_function(tolua_S,"getVertexLayout",lua_ax_backend_Program_getVertexLayout); tolua_function(tolua_S,"getBuiltinProgram", lua_ax_backend_Program_getBuiltinProgram); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::Program).name(); // rtti is literal storage @@ -1003,6 +1003,53 @@ int lua_register_ax_backend_Program(lua_State* tolua_S) return 1; } +int lua_ax_backend_VertexLayout_getStride(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::VertexLayout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.VertexLayout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_VertexLayout_getStride'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_VertexLayout_getStride'", nullptr); + return 0; + } + auto&& ret = cobj->getStride(); + #pragma warning NO CONVERSION FROM NATIVE FOR ??; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.VertexLayout:getStride",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_VertexLayout_getStride'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_VertexLayout_getVertexStepMode(lua_State* tolua_S) { int argc = 0; @@ -1097,165 +1144,6 @@ int lua_ax_backend_VertexLayout_isValid(lua_State* tolua_S) return 0; } -int lua_ax_backend_VertexLayout_setAttribute(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::VertexLayout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.VertexLayout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_VertexLayout_setAttribute'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - std::string_view arg0; - unsigned int arg1; - ax::backend::VertexFormat arg2; - unsigned int arg3; - bool arg4; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.VertexLayout:setAttribute"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.VertexLayout:setAttribute"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axb.VertexLayout:setAttribute"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.VertexLayout:setAttribute"); - - ok &= luaval_to_boolean(tolua_S, 6,&arg4, "axb.VertexLayout:setAttribute"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_VertexLayout_setAttribute'", nullptr); - return 0; - } - cobj->setAttribute(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.VertexLayout:setAttribute",argc, 5); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_VertexLayout_setAttribute'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_VertexLayout_getStride(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::VertexLayout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.VertexLayout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_VertexLayout_getStride'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_VertexLayout_getStride'", nullptr); - return 0; - } - auto&& ret = cobj->getStride(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.VertexLayout:getStride",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_VertexLayout_getStride'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_VertexLayout_setStride(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::VertexLayout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.VertexLayout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_VertexLayout_setStride'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.VertexLayout:setStride"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_VertexLayout_setStride'", nullptr); - return 0; - } - cobj->setStride(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.VertexLayout:setStride",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_VertexLayout_setStride'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_VertexLayout_constructor(lua_State* tolua_S) { int argc = 0; @@ -1304,11 +1192,9 @@ int lua_register_ax_backend_VertexLayout(lua_State* tolua_S) tolua_beginmodule(tolua_S,"VertexLayout"); tolua_function(tolua_S,"new",lua_ax_backend_VertexLayout_constructor); + tolua_function(tolua_S,"getStride",lua_ax_backend_VertexLayout_getStride); tolua_function(tolua_S,"getVertexStepMode",lua_ax_backend_VertexLayout_getVertexStepMode); tolua_function(tolua_S,"isValid",lua_ax_backend_VertexLayout_isValid); - tolua_function(tolua_S,"setAttribute",lua_ax_backend_VertexLayout_setAttribute); - tolua_function(tolua_S,"getStride",lua_ax_backend_VertexLayout_getStride); - tolua_function(tolua_S,"setStride",lua_ax_backend_VertexLayout_setStride); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::VertexLayout).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axb.VertexLayout"; @@ -1316,6 +1202,155 @@ int lua_register_ax_backend_VertexLayout(lua_State* tolua_S) return 1; } +int lua_ax_backend_ProgramState_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::ProgramState* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_ProgramState_getProgram(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::ProgramState* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_getProgram'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_getProgram'", nullptr); + return 0; + } + auto&& ret = cobj->getProgram(); + object_to_luaval(tolua_S, "axb.Program",(ax::backend::Program*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getProgram",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_getProgram'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_ProgramState_getAttributeLocation(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::ProgramState* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_getAttributeLocation'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::backend::Attribute arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axb.ProgramState:getAttributeLocation"); + + if (!ok) { break; } + int ret = cobj->getAttributeLocation(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.ProgramState:getAttributeLocation"); + + if (!ok) { break; } + int ret = cobj->getAttributeLocation(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getAttributeLocation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_getAttributeLocation'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_ProgramState_setTexture(lua_State* tolua_S) { int argc = 0; @@ -1403,6 +1438,106 @@ int lua_ax_backend_ProgramState_setTexture(lua_State* tolua_S) return 0; } +int lua_ax_backend_ProgramState_setParameterAutoBinding(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::ProgramState* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_setParameterAutoBinding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.ProgramState:setParameterAutoBinding"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axb.ProgramState:setParameterAutoBinding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_setParameterAutoBinding'", nullptr); + return 0; + } + cobj->setParameterAutoBinding(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:setParameterAutoBinding",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_setParameterAutoBinding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_ProgramState_getUniformID(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::ProgramState* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_getUniformID'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_getUniformID'", nullptr); + return 0; + } + auto&& ret = cobj->getUniformID(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getUniformID",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_getUniformID'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_ProgramState_updateUniformID(lua_State* tolua_S) { int argc = 0; @@ -1464,211 +1599,6 @@ int lua_ax_backend_ProgramState_updateUniformID(lua_State* tolua_S) return 0; } -int lua_ax_backend_ProgramState_getAttributeLocation(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::ProgramState* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_getAttributeLocation'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::backend::Attribute arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axb.ProgramState:getAttributeLocation"); - - if (!ok) { break; } - int ret = cobj->getAttributeLocation(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.ProgramState:getAttributeLocation"); - - if (!ok) { break; } - int ret = cobj->getAttributeLocation(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getAttributeLocation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_getAttributeLocation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_ProgramState_getProgram(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::ProgramState* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_getProgram'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_getProgram'", nullptr); - return 0; - } - auto&& ret = cobj->getProgram(); - object_to_luaval(tolua_S, "axb.Program",(ax::backend::Program*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getProgram",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_getProgram'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_ProgramState_setParameterAutoBinding(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::ProgramState* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_setParameterAutoBinding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.ProgramState:setParameterAutoBinding"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axb.ProgramState:setParameterAutoBinding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_setParameterAutoBinding'", nullptr); - return 0; - } - cobj->setParameterAutoBinding(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:setParameterAutoBinding",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_setParameterAutoBinding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_ProgramState_setVertexLayout(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::ProgramState* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_setVertexLayout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::VertexLayout arg0; - - ok &= luaval_to_vertexLayout(tolua_S, 2, arg0, "axb.ProgramState:setVertexLayout"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_setVertexLayout'", nullptr); - return 0; - } - cobj->setVertexLayout(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:setVertexLayout",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_setVertexLayout'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_ProgramState_setVertexStride(lua_State* tolua_S) { int argc = 0; @@ -1719,7 +1649,7 @@ int lua_ax_backend_ProgramState_setVertexStride(lua_State* tolua_S) return 0; } -int lua_ax_backend_ProgramState_clone(lua_State* tolua_S) +int lua_ax_backend_ProgramState_setVertexLayout(lua_State* tolua_S) { int argc = 0; ax::backend::ProgramState* cobj = nullptr; @@ -1739,91 +1669,32 @@ int lua_ax_backend_ProgramState_clone(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_clone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_setVertexLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::backend::VertexLayout arg0; + + ok &= luaval_to_vertexLayout(tolua_S, 2, arg0, "axb.ProgramState:setVertexLayout"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_clone'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_setVertexLayout'", nullptr); return 0; } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_ProgramState_setVertexAttrib(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::ProgramState* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_setVertexAttrib'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - std::string_view arg0; - unsigned int arg1; - ax::backend::VertexFormat arg2; - unsigned int arg3; - bool arg4; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.ProgramState:setVertexAttrib"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.ProgramState:setVertexAttrib"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axb.ProgramState:setVertexAttrib"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.ProgramState:setVertexAttrib"); - - ok &= luaval_to_boolean(tolua_S, 6,&arg4, "axb.ProgramState:setVertexAttrib"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_setVertexAttrib'", nullptr); - return 0; - } - cobj->setVertexAttrib(arg0, arg1, arg2, arg3, arg4); + cobj->setVertexLayout(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:setVertexAttrib",argc, 5); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:setVertexLayout",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_setVertexAttrib'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_setVertexLayout'.",&tolua_err); #endif return 0; @@ -1882,53 +1753,6 @@ int lua_ax_backend_ProgramState_validateSharedVertexLayout(lua_State* tolua_S) return 0; } -int lua_ax_backend_ProgramState_getUniformID(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::ProgramState* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.ProgramState",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_ProgramState_getUniformID'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_getUniformID'", nullptr); - return 0; - } - auto&& ret = cobj->getUniformID(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getUniformID",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_ProgramState_getUniformID'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_ProgramState_constructor(lua_State* tolua_S) { int argc = 0; @@ -1982,17 +1806,16 @@ int lua_register_ax_backend_ProgramState(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ProgramState"); tolua_function(tolua_S,"new",lua_ax_backend_ProgramState_constructor); - tolua_function(tolua_S,"setTexture",lua_ax_backend_ProgramState_setTexture); - tolua_function(tolua_S,"updateUniformID",lua_ax_backend_ProgramState_updateUniformID); - tolua_function(tolua_S,"getAttributeLocation",lua_ax_backend_ProgramState_getAttributeLocation); - tolua_function(tolua_S,"getProgram",lua_ax_backend_ProgramState_getProgram); - tolua_function(tolua_S,"setParameterAutoBinding",lua_ax_backend_ProgramState_setParameterAutoBinding); - tolua_function(tolua_S,"setVertexLayout",lua_ax_backend_ProgramState_setVertexLayout); - tolua_function(tolua_S,"setVertexStride",lua_ax_backend_ProgramState_setVertexStride); tolua_function(tolua_S,"clone",lua_ax_backend_ProgramState_clone); - tolua_function(tolua_S,"setVertexAttrib",lua_ax_backend_ProgramState_setVertexAttrib); - tolua_function(tolua_S,"validateSharedVertexLayout",lua_ax_backend_ProgramState_validateSharedVertexLayout); + tolua_function(tolua_S,"getProgram",lua_ax_backend_ProgramState_getProgram); + tolua_function(tolua_S,"getAttributeLocation",lua_ax_backend_ProgramState_getAttributeLocation); + tolua_function(tolua_S,"setTexture",lua_ax_backend_ProgramState_setTexture); + tolua_function(tolua_S,"setParameterAutoBinding",lua_ax_backend_ProgramState_setParameterAutoBinding); tolua_function(tolua_S,"getUniformID",lua_ax_backend_ProgramState_getUniformID); + tolua_function(tolua_S,"updateUniformID",lua_ax_backend_ProgramState_updateUniformID); + tolua_function(tolua_S,"setVertexStride",lua_ax_backend_ProgramState_setVertexStride); + tolua_function(tolua_S,"setVertexLayout",lua_ax_backend_ProgramState_setVertexLayout); + tolua_function(tolua_S,"validateSharedVertexLayout",lua_ax_backend_ProgramState_validateSharedVertexLayout); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::ProgramState).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axb.ProgramState"; @@ -2000,100 +1823,6 @@ int lua_register_ax_backend_ProgramState(lua_State* tolua_S) return 1; } -int lua_ax_backend_TextureBackend_getTextureFormat(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::TextureBackend* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.TextureBackend",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getTextureFormat'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getTextureFormat'", nullptr); - return 0; - } - int ret = (int)cobj->getTextureFormat(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getTextureFormat",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getTextureFormat'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_TextureBackend_generateMipmaps(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::TextureBackend* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.TextureBackend",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_generateMipmaps'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_generateMipmaps'", nullptr); - return 0; - } - cobj->generateMipmaps(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:generateMipmaps",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_generateMipmaps'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_TextureBackend_updateSamplerDescriptor(lua_State* tolua_S) { int argc = 0; @@ -2144,7 +1873,7 @@ int lua_ax_backend_TextureBackend_updateSamplerDescriptor(lua_State* tolua_S) return 0; } -int lua_ax_backend_TextureBackend_getHeight(lua_State* tolua_S) +int lua_ax_backend_TextureBackend_generateMipmaps(lua_State* tolua_S) { int argc = 0; ax::backend::TextureBackend* cobj = nullptr; @@ -2164,7 +1893,7 @@ int lua_ax_backend_TextureBackend_getHeight(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getHeight'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_generateMipmaps'", nullptr); return 0; } #endif @@ -2174,19 +1903,19 @@ int lua_ax_backend_TextureBackend_getHeight(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getHeight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_generateMipmaps'", nullptr); return 0; } - auto&& ret = cobj->getHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->generateMipmaps(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getHeight",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:generateMipmaps",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getHeight'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_generateMipmaps'.",&tolua_err); #endif return 0; @@ -2260,6 +1989,53 @@ int lua_ax_backend_TextureBackend_updateTextureDescriptor(lua_State* tolua_S) return 0; } +int lua_ax_backend_TextureBackend_getTextureFormat(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::TextureBackend* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.TextureBackend",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getTextureFormat'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getTextureFormat'", nullptr); + return 0; + } + int ret = (int)cobj->getTextureFormat(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getTextureFormat",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getTextureFormat'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_TextureBackend_getTextureUsage(lua_State* tolua_S) { int argc = 0; @@ -2307,7 +2083,7 @@ int lua_ax_backend_TextureBackend_getTextureUsage(lua_State* tolua_S) return 0; } -int lua_ax_backend_TextureBackend_getWidth(lua_State* tolua_S) +int lua_ax_backend_TextureBackend_getTextureType(lua_State* tolua_S) { int argc = 0; ax::backend::TextureBackend* cobj = nullptr; @@ -2327,7 +2103,7 @@ int lua_ax_backend_TextureBackend_getWidth(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getWidth'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getTextureType'", nullptr); return 0; } #endif @@ -2337,19 +2113,19 @@ int lua_ax_backend_TextureBackend_getWidth(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getWidth'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getTextureType'", nullptr); return 0; } - auto&& ret = cobj->getWidth(); + int ret = (int)cobj->getTextureType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getWidth",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getTextureType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getWidth'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getTextureType'.",&tolua_err); #endif return 0; @@ -2509,7 +2285,7 @@ int lua_ax_backend_TextureBackend_getHandler(lua_State* tolua_S) return 0; } -int lua_ax_backend_TextureBackend_getTextureType(lua_State* tolua_S) +int lua_ax_backend_TextureBackend_getWidth(lua_State* tolua_S) { int argc = 0; ax::backend::TextureBackend* cobj = nullptr; @@ -2529,7 +2305,7 @@ int lua_ax_backend_TextureBackend_getTextureType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getTextureType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getWidth'", nullptr); return 0; } #endif @@ -2539,19 +2315,66 @@ int lua_ax_backend_TextureBackend_getTextureType(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getTextureType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getWidth'", nullptr); return 0; } - int ret = (int)cobj->getTextureType(); + auto&& ret = cobj->getWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getTextureType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getTextureType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_backend_TextureBackend_getHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::TextureBackend* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.TextureBackend",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_TextureBackend_getHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_TextureBackend_getHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.TextureBackend:getHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_TextureBackend_getHeight'.",&tolua_err); #endif return 0; @@ -2568,17 +2391,17 @@ int lua_register_ax_backend_TextureBackend(lua_State* tolua_S) tolua_cclass(tolua_S,"TextureBackend","axb.TextureBackend","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"TextureBackend"); - tolua_function(tolua_S,"getTextureFormat",lua_ax_backend_TextureBackend_getTextureFormat); - tolua_function(tolua_S,"generateMipmaps",lua_ax_backend_TextureBackend_generateMipmaps); tolua_function(tolua_S,"updateSamplerDescriptor",lua_ax_backend_TextureBackend_updateSamplerDescriptor); - tolua_function(tolua_S,"getHeight",lua_ax_backend_TextureBackend_getHeight); + tolua_function(tolua_S,"generateMipmaps",lua_ax_backend_TextureBackend_generateMipmaps); tolua_function(tolua_S,"updateTextureDescriptor",lua_ax_backend_TextureBackend_updateTextureDescriptor); + tolua_function(tolua_S,"getTextureFormat",lua_ax_backend_TextureBackend_getTextureFormat); tolua_function(tolua_S,"getTextureUsage",lua_ax_backend_TextureBackend_getTextureUsage); - tolua_function(tolua_S,"getWidth",lua_ax_backend_TextureBackend_getWidth); + tolua_function(tolua_S,"getTextureType",lua_ax_backend_TextureBackend_getTextureType); tolua_function(tolua_S,"hasMipmaps",lua_ax_backend_TextureBackend_hasMipmaps); tolua_function(tolua_S,"getCount",lua_ax_backend_TextureBackend_getCount); tolua_function(tolua_S,"getHandler",lua_ax_backend_TextureBackend_getHandler); - tolua_function(tolua_S,"getTextureType",lua_ax_backend_TextureBackend_getTextureType); + tolua_function(tolua_S,"getWidth",lua_ax_backend_TextureBackend_getWidth); + tolua_function(tolua_S,"getHeight",lua_ax_backend_TextureBackend_getHeight); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::TextureBackend).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axb.TextureBackend"; @@ -2586,53 +2409,6 @@ int lua_register_ax_backend_TextureBackend(lua_State* tolua_S) return 1; } -int lua_ax_backend_Texture2DBackend_getHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Texture2DBackend* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Texture2DBackend_getHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_getHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:getHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Texture2DBackend_getHeight'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_Texture2DBackend_getWidth(lua_State* tolua_S) { int argc = 0; @@ -2667,7 +2443,7 @@ int lua_ax_backend_Texture2DBackend_getWidth(lua_State* tolua_S) return 0; } auto&& ret = cobj->getWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + #pragma warning NO CONVERSION FROM NATIVE FOR ??; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:getWidth",argc, 0); @@ -2680,7 +2456,7 @@ int lua_ax_backend_Texture2DBackend_getWidth(lua_State* tolua_S) return 0; } -int lua_ax_backend_Texture2DBackend_updateData(lua_State* tolua_S) +int lua_ax_backend_Texture2DBackend_getHeight(lua_State* tolua_S) { int argc = 0; ax::backend::Texture2DBackend* cobj = nullptr; @@ -2700,366 +2476,29 @@ int lua_ax_backend_Texture2DBackend_updateData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Texture2DBackend_updateData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Texture2DBackend_getHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 0) { - unsigned char* arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_getHeight'", nullptr); return 0; } - cobj->updateData(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getHeight(); + #pragma warning NO CONVERSION FROM NATIVE FOR ??; return 1; } - if (argc == 5) - { - unsigned char* arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - int arg4; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateData"); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "axb.Texture2DBackend:updateData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateData'", nullptr); - return 0; - } - cobj->updateData(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:updateData",argc, 4); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:getHeight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Texture2DBackend_updateData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Texture2DBackend_updateCompressedData(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Texture2DBackend* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Texture2DBackend_updateCompressedData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - unsigned char* arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - unsigned int arg4; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_uint32(tolua_S, 6,&arg4, "axb.Texture2DBackend:updateCompressedData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateCompressedData'", nullptr); - return 0; - } - cobj->updateCompressedData(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 6) - { - unsigned char* arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - unsigned int arg4; - int arg5; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_uint32(tolua_S, 6,&arg4, "axb.Texture2DBackend:updateCompressedData"); - - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axb.Texture2DBackend:updateCompressedData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateCompressedData'", nullptr); - return 0; - } - cobj->updateCompressedData(arg0, arg1, arg2, arg3, arg4, arg5); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:updateCompressedData",argc, 5); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Texture2DBackend_updateCompressedData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Texture2DBackend_updateSubData(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Texture2DBackend* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Texture2DBackend_updateSubData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 6) - { - unsigned int arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - unsigned int arg4; - unsigned char* arg5; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 6,&arg4, "axb.Texture2DBackend:updateSubData"); - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateSubData'", nullptr); - return 0; - } - cobj->updateSubData(arg0, arg1, arg2, arg3, arg4, arg5); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 7) - { - unsigned int arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - unsigned int arg4; - unsigned char* arg5; - int arg6; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateSubData"); - - ok &= luaval_to_uint32(tolua_S, 6,&arg4, "axb.Texture2DBackend:updateSubData"); - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - - ok &= luaval_to_int32(tolua_S, 8,(int *)&arg6, "axb.Texture2DBackend:updateSubData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateSubData'", nullptr); - return 0; - } - cobj->updateSubData(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:updateSubData",argc, 6); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Texture2DBackend_updateSubData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_backend_Texture2DBackend_updateCompressedSubData(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Texture2DBackend* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Texture2DBackend_updateCompressedSubData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 7) - { - unsigned int arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - unsigned int arg4; - unsigned int arg5; - unsigned char* arg6; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 6,&arg4, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 7,&arg5, "axb.Texture2DBackend:updateCompressedSubData"); - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateCompressedSubData'", nullptr); - return 0; - } - cobj->updateCompressedSubData(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 8) - { - unsigned int arg0; - unsigned int arg1; - unsigned int arg2; - unsigned int arg3; - unsigned int arg4; - unsigned int arg5; - unsigned char* arg6; - int arg7; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 6,&arg4, "axb.Texture2DBackend:updateCompressedSubData"); - - ok &= luaval_to_uint32(tolua_S, 7,&arg5, "axb.Texture2DBackend:updateCompressedSubData"); - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned char* - ok = false; - - ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7, "axb.Texture2DBackend:updateCompressedSubData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Texture2DBackend_updateCompressedSubData'", nullptr); - return 0; - } - cobj->updateCompressedSubData(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Texture2DBackend:updateCompressedSubData",argc, 7); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Texture2DBackend_updateCompressedSubData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Texture2DBackend_getHeight'.",&tolua_err); #endif return 0; @@ -3076,12 +2515,8 @@ int lua_register_ax_backend_Texture2DBackend(lua_State* tolua_S) tolua_cclass(tolua_S,"Texture2DBackend","axb.Texture2DBackend","axb.TextureBackend",nullptr); tolua_beginmodule(tolua_S,"Texture2DBackend"); - tolua_function(tolua_S,"getHeight",lua_ax_backend_Texture2DBackend_getHeight); tolua_function(tolua_S,"getWidth",lua_ax_backend_Texture2DBackend_getWidth); - tolua_function(tolua_S,"updateData",lua_ax_backend_Texture2DBackend_updateData); - tolua_function(tolua_S,"updateCompressedData",lua_ax_backend_Texture2DBackend_updateCompressedData); - tolua_function(tolua_S,"updateSubData",lua_ax_backend_Texture2DBackend_updateSubData); - tolua_function(tolua_S,"updateCompressedSubData",lua_ax_backend_Texture2DBackend_updateCompressedSubData); + tolua_function(tolua_S,"getHeight",lua_ax_backend_Texture2DBackend_getHeight); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::Texture2DBackend).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axb.Texture2DBackend"; @@ -3234,59 +2669,6 @@ int lua_ax_backend_Device_newDefaultRenderTarget(lua_State* tolua_S) return 0; } -int lua_ax_backend_Device_newProgram(lua_State* tolua_S) -{ - int argc = 0; - ax::backend::Device* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axb.Device",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::backend::Device*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Device_newProgram'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.Device:newProgram"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axb.Device:newProgram"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Device_newProgram'", nullptr); - return 0; - } - auto&& ret = cobj->newProgram(arg0, arg1); - object_to_luaval(tolua_S, "axb.Program",(ax::backend::Program*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Device:newProgram",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Device_newProgram'.",&tolua_err); -#endif - - return 0; -} int lua_ax_backend_Device_newRenderTarget(lua_State* tolua_S) { int argc = 0; @@ -3444,6 +2826,59 @@ int lua_ax_backend_Device_newDepthStencilState(lua_State* tolua_S) return 0; } +int lua_ax_backend_Device_newProgram(lua_State* tolua_S) +{ + int argc = 0; + ax::backend::Device* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axb.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::backend::Device*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_backend_Device_newProgram'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axb.Device:newProgram"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axb.Device:newProgram"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Device_newProgram'", nullptr); + return 0; + } + auto&& ret = cobj->newProgram(arg0, arg1); + object_to_luaval(tolua_S, "axb.Program",(ax::backend::Program*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Device:newProgram",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_backend_Device_newProgram'.",&tolua_err); +#endif + + return 0; +} int lua_ax_backend_Device_getInstance(lua_State* tolua_S) { int argc = 0; @@ -3491,9 +2926,9 @@ int lua_register_ax_backend_Device(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Device"); tolua_function(tolua_S,"newDefaultRenderTarget",lua_ax_backend_Device_newDefaultRenderTarget); - tolua_function(tolua_S,"newProgram",lua_ax_backend_Device_newProgram); tolua_function(tolua_S,"newRenderTarget",lua_ax_backend_Device_newRenderTarget); tolua_function(tolua_S,"newDepthStencilState",lua_ax_backend_Device_newDepthStencilState); + tolua_function(tolua_S,"newProgram",lua_ax_backend_Device_newProgram); tolua_function(tolua_S,"getInstance", lua_ax_backend_Device_getInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::Device).name(); // rtti is literal storage @@ -3508,33 +2943,33 @@ TOLUA_API int register_all_ax_backend(lua_State* tolua_S) tolua_module(tolua_S,"axb",0); tolua_beginmodule(tolua_S,"axb"); - lua_register_ax_backend_ColorWriteMask(tolua_S); - lua_register_ax_backend_TextureType(tolua_S); - lua_register_ax_backend_PrimitiveType(tolua_S); - lua_register_ax_backend_SamplerAddressMode(tolua_S); - lua_register_ax_backend_ProgramState(tolua_S); - lua_register_ax_backend_IndexFormat(tolua_S); - lua_register_ax_backend_TextureBackend(tolua_S); - lua_register_ax_backend_TextureCubemapBackend(tolua_S); - lua_register_ax_backend_SamplerFilter(tolua_S); - lua_register_ax_backend_TextureCubeFace(tolua_S); - lua_register_ax_backend_VertexLayout(tolua_S); - lua_register_ax_backend_BlendFactor(tolua_S); - lua_register_ax_backend_Device(tolua_S); + lua_register_ax_backend_BufferUsage(tolua_S); + lua_register_ax_backend_BufferType(tolua_S); + lua_register_ax_backend_ShaderStage(tolua_S); lua_register_ax_backend_VertexFormat(tolua_S); + lua_register_ax_backend_PixelFormat(tolua_S); + lua_register_ax_backend_TextureUsage(tolua_S); + lua_register_ax_backend_IndexFormat(tolua_S); lua_register_ax_backend_VertexStepMode(tolua_S); + lua_register_ax_backend_PrimitiveType(tolua_S); + lua_register_ax_backend_TextureType(tolua_S); + lua_register_ax_backend_SamplerAddressMode(tolua_S); + lua_register_ax_backend_SamplerFilter(tolua_S); lua_register_ax_backend_StencilOperation(tolua_S); lua_register_ax_backend_CompareFunction(tolua_S); - lua_register_ax_backend_BufferUsage(tolua_S); - lua_register_ax_backend_TextureUsage(tolua_S); - lua_register_ax_backend_BufferType(tolua_S); + lua_register_ax_backend_BlendOperation(tolua_S); + lua_register_ax_backend_BlendFactor(tolua_S); + lua_register_ax_backend_ColorWriteMask(tolua_S); lua_register_ax_backend_CullMode(tolua_S); lua_register_ax_backend_Winding(tolua_S); - lua_register_ax_backend_PixelFormat(tolua_S); + lua_register_ax_backend_TextureCubeFace(tolua_S); lua_register_ax_backend_Program(tolua_S); - lua_register_ax_backend_BlendOperation(tolua_S); - lua_register_ax_backend_ShaderStage(tolua_S); + lua_register_ax_backend_VertexLayout(tolua_S); + lua_register_ax_backend_ProgramState(tolua_S); + lua_register_ax_backend_TextureBackend(tolua_S); lua_register_ax_backend_Texture2DBackend(tolua_S); + lua_register_ax_backend_TextureCubemapBackend(tolua_S); + lua_register_ax_backend_Device(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_backend_auto.hpp b/extensions/scripting/lua-bindings/auto/axlua_backend_auto.hpp index 8b97f3ed7c..34e30167f9 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_backend_auto.hpp +++ b/extensions/scripting/lua-bindings/auto/axlua_backend_auto.hpp @@ -51,13 +51,6 @@ int register_all_ax_backend(lua_State* tolua_S); - - - - - - - diff --git a/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp index 6138d01a8e..c70af312ad 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp @@ -9,53 +9,6 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_base_Ref_release(lua_State* tolua_S) -{ - int argc = 0; - ax::Ref* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Ref",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Ref*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ref_release'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ref_release'", nullptr); - return 0; - } - cobj->release(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ref:release",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ref_release'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Ref_retain(lua_State* tolua_S) { int argc = 0; @@ -103,6 +56,53 @@ int lua_ax_base_Ref_retain(lua_State* tolua_S) return 0; } +int lua_ax_base_Ref_release(lua_State* tolua_S) +{ + int argc = 0; + ax::Ref* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Ref",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Ref*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ref_release'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ref_release'", nullptr); + return 0; + } + cobj->release(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ref:release",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ref_release'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Ref_getReferenceCount(lua_State* tolua_S) { int argc = 0; @@ -162,8 +162,8 @@ int lua_register_ax_base_Ref(lua_State* tolua_S) tolua_cclass(tolua_S,"Ref","ax.Ref","",nullptr); tolua_beginmodule(tolua_S,"Ref"); - tolua_function(tolua_S,"release",lua_ax_base_Ref_release); tolua_function(tolua_S,"retain",lua_ax_base_Ref_retain); + tolua_function(tolua_S,"release",lua_ax_base_Ref_release); tolua_function(tolua_S,"getReferenceCount",lua_ax_base_Ref_getReferenceCount); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Ref).name(); // rtti is literal storage @@ -222,7 +222,7 @@ int lua_ax_base_Console_listenOnTCP(lua_State* tolua_S) return 0; } -int lua_ax_base_Console_delCommand(lua_State* tolua_S) +int lua_ax_base_Console_listenOnFileDescriptor(lua_State* tolua_S) { int argc = 0; ax::Console* cobj = nullptr; @@ -242,7 +242,7 @@ int lua_ax_base_Console_delCommand(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_delCommand'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_listenOnFileDescriptor'", nullptr); return 0; } #endif @@ -250,24 +250,24 @@ int lua_ax_base_Console_delCommand(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + int arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Console:delCommand"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Console:listenOnFileDescriptor"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_delCommand'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_listenOnFileDescriptor'", nullptr); return 0; } - cobj->delCommand(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->listenOnFileDescriptor(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:delCommand",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:listenOnFileDescriptor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_delCommand'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_listenOnFileDescriptor'.",&tolua_err); #endif return 0; @@ -319,7 +319,7 @@ int lua_ax_base_Console_stop(lua_State* tolua_S) return 0; } -int lua_ax_base_Console_listenOnFileDescriptor(lua_State* tolua_S) +int lua_ax_base_Console_delCommand(lua_State* tolua_S) { int argc = 0; ax::Console* cobj = nullptr; @@ -339,107 +339,7 @@ int lua_ax_base_Console_listenOnFileDescriptor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_listenOnFileDescriptor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Console:listenOnFileDescriptor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_listenOnFileDescriptor'", nullptr); - return 0; - } - auto&& ret = cobj->listenOnFileDescriptor(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:listenOnFileDescriptor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_listenOnFileDescriptor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Console_setCommandSeparator(lua_State* tolua_S) -{ - int argc = 0; - ax::Console* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Console",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Console*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_setCommandSeparator'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int32_t arg0; - - ok &= luaval_to_int32(tolua_S, 2,&arg0, "ax.Console:setCommandSeparator"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_setCommandSeparator'", nullptr); - return 0; - } - cobj->setCommandSeparator(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:setCommandSeparator",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_setCommandSeparator'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Console_setBindAddress(lua_State* tolua_S) -{ - int argc = 0; - ax::Console* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Console",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Console*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_setBindAddress'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_delCommand'", nullptr); return 0; } #endif @@ -449,22 +349,22 @@ int lua_ax_base_Console_setBindAddress(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Console:setBindAddress"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Console:delCommand"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_setBindAddress'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_delCommand'", nullptr); return 0; } - cobj->setBindAddress(arg0); + cobj->delCommand(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:setBindAddress",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:delCommand",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_setBindAddress'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_delCommand'.",&tolua_err); #endif return 0; @@ -519,6 +419,56 @@ int lua_ax_base_Console_print(lua_State* tolua_S) return 0; } +int lua_ax_base_Console_setBindAddress(lua_State* tolua_S) +{ + int argc = 0; + ax::Console* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Console",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Console*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_setBindAddress'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Console:setBindAddress"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_setBindAddress'", nullptr); + return 0; + } + cobj->setBindAddress(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:setBindAddress",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_setBindAddress'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Console_isIpv6Server(lua_State* tolua_S) { int argc = 0; @@ -566,6 +516,56 @@ int lua_ax_base_Console_isIpv6Server(lua_State* tolua_S) return 0; } +int lua_ax_base_Console_setCommandSeparator(lua_State* tolua_S) +{ + int argc = 0; + ax::Console* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Console",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Console*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Console_setCommandSeparator'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int32_t arg0; + + ok &= luaval_to_int32(tolua_S, 2,&arg0, "ax.Console:setCommandSeparator"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_setCommandSeparator'", nullptr); + return 0; + } + cobj->setCommandSeparator(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Console:setCommandSeparator",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_setCommandSeparator'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_base_Console_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Console)"); @@ -579,13 +579,13 @@ int lua_register_ax_base_Console(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Console"); tolua_function(tolua_S,"listenOnTCP",lua_ax_base_Console_listenOnTCP); - tolua_function(tolua_S,"delCommand",lua_ax_base_Console_delCommand); - tolua_function(tolua_S,"stop",lua_ax_base_Console_stop); tolua_function(tolua_S,"listenOnFileDescriptor",lua_ax_base_Console_listenOnFileDescriptor); - tolua_function(tolua_S,"setCommandSeparator",lua_ax_base_Console_setCommandSeparator); - tolua_function(tolua_S,"setBindAddress",lua_ax_base_Console_setBindAddress); + tolua_function(tolua_S,"stop",lua_ax_base_Console_stop); + tolua_function(tolua_S,"delCommand",lua_ax_base_Console_delCommand); tolua_function(tolua_S,"print",lua_ax_base_Console_print); + tolua_function(tolua_S,"setBindAddress",lua_ax_base_Console_setBindAddress); tolua_function(tolua_S,"isIpv6Server",lua_ax_base_Console_isIpv6Server); + tolua_function(tolua_S,"setCommandSeparator",lua_ax_base_Console_setCommandSeparator); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Console).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Console"; @@ -593,6 +593,100 @@ int lua_register_ax_base_Console(lua_State* tolua_S) return 1; } +int lua_ax_base_EventListener_checkAvailable(lua_State* tolua_S) +{ + int argc = 0; + ax::EventListener* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventListener",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventListener*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventListener_checkAvailable'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventListener_checkAvailable'", nullptr); + return 0; + } + auto&& ret = cobj->checkAvailable(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListener:checkAvailable",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventListener_checkAvailable'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventListener_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::EventListener* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventListener",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventListener*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventListener_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventListener_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.EventListener",(ax::EventListener*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListener:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventListener_clone'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_EventListener_setEnabled(lua_State* tolua_S) { int argc = 0; @@ -690,100 +784,6 @@ int lua_ax_base_EventListener_isEnabled(lua_State* tolua_S) return 0; } -int lua_ax_base_EventListener_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::EventListener* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventListener",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventListener*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventListener_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventListener_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.EventListener",(ax::EventListener*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListener:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventListener_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventListener_checkAvailable(lua_State* tolua_S) -{ - int argc = 0; - ax::EventListener* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventListener",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventListener*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventListener_checkAvailable'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventListener_checkAvailable'", nullptr); - return 0; - } - auto&& ret = cobj->checkAvailable(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListener:checkAvailable",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventListener_checkAvailable'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_base_EventListener_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListener)"); @@ -796,10 +796,10 @@ int lua_register_ax_base_EventListener(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListener","ax.EventListener","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"EventListener"); + tolua_function(tolua_S,"checkAvailable",lua_ax_base_EventListener_checkAvailable); + tolua_function(tolua_S,"clone",lua_ax_base_EventListener_clone); tolua_function(tolua_S,"setEnabled",lua_ax_base_EventListener_setEnabled); tolua_function(tolua_S,"isEnabled",lua_ax_base_EventListener_isEnabled); - tolua_function(tolua_S,"clone",lua_ax_base_EventListener_clone); - tolua_function(tolua_S,"checkAvailable",lua_ax_base_EventListener_checkAvailable); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EventListener).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EventListener"; @@ -911,6 +911,40 @@ int lua_ax_base_ShaderCache_removeUnusedShader(lua_State* tolua_S) return 0; } +int lua_ax_base_ShaderCache_getInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axb.ShaderCache",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ShaderCache_getInstance'", nullptr); + return 0; + } + auto&& ret = ax::backend::ShaderCache::getInstance(); + object_to_luaval(tolua_S, "axb.ShaderCache",(ax::backend::ShaderCache*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axb.ShaderCache:getInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ShaderCache_getInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_ShaderCache_destroyInstance(lua_State* tolua_S) { int argc = 0; @@ -1017,40 +1051,6 @@ int lua_ax_base_ShaderCache_newFragmentShaderModule(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_ShaderCache_getInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axb.ShaderCache",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ShaderCache_getInstance'", nullptr); - return 0; - } - auto&& ret = ax::backend::ShaderCache::getInstance(); - object_to_luaval(tolua_S, "axb.ShaderCache",(ax::backend::ShaderCache*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axb.ShaderCache:getInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ShaderCache_getInstance'.",&tolua_err); -#endif - return 0; -} static int lua_ax_base_ShaderCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShaderCache)"); @@ -1064,10 +1064,10 @@ int lua_register_ax_base_ShaderCache(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ShaderCache"); tolua_function(tolua_S,"removeUnusedShader",lua_ax_base_ShaderCache_removeUnusedShader); + tolua_function(tolua_S,"getInstance", lua_ax_base_ShaderCache_getInstance); tolua_function(tolua_S,"destroyInstance", lua_ax_base_ShaderCache_destroyInstance); tolua_function(tolua_S,"newVertexShaderModule", lua_ax_base_ShaderCache_newVertexShaderModule); tolua_function(tolua_S,"newFragmentShaderModule", lua_ax_base_ShaderCache_newFragmentShaderModule); - tolua_function(tolua_S,"getInstance", lua_ax_base_ShaderCache_getInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::backend::ShaderCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axb.ShaderCache"; @@ -1075,6 +1075,79 @@ int lua_register_ax_base_ShaderCache(lua_State* tolua_S) return 1; } +int lua_ax_base_Texture2D_updateWithImage(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_updateWithImage'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Image* arg0; + ax::backend::PixelFormat arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Image",&arg0, "ax.Texture2D:updateWithImage"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithImage"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithImage'", nullptr); + return 0; + } + auto&& ret = cobj->updateWithImage(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 3) + { + ax::Image* arg0; + ax::backend::PixelFormat arg1; + int arg2; + + ok &= luaval_to_object(tolua_S, 2, "ax.Image",&arg0, "ax.Texture2D:updateWithImage"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithImage"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Texture2D:updateWithImage"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithImage'", nullptr); + return 0; + } + auto&& ret = cobj->updateWithImage(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:updateWithImage",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_updateWithImage'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Texture2D_updateWithMipmaps(lua_State* tolua_S) { int argc = 0; @@ -1210,7 +1283,7 @@ int lua_ax_base_Texture2D_updateWithMipmaps(lua_State* tolua_S) return 0; } -int lua_ax_base_Texture2D_getMaxT(lua_State* tolua_S) +int lua_ax_base_Texture2D_updateWithSubData(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -1230,34 +1303,80 @@ int lua_ax_base_Texture2D_getMaxT(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getMaxT'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_updateWithSubData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 5) { + void* arg0; + int arg1; + int arg2; + int arg3; + int arg4; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Texture2D:updateWithSubData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getMaxT'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithSubData'", nullptr); return 0; } - auto&& ret = cobj->getMaxT(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->updateWithSubData(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getMaxT",argc, 0); + if (argc == 6) + { + void* arg0; + int arg1; + int arg2; + int arg3; + int arg4; + int arg5; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Texture2D:updateWithSubData"); + + ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.Texture2D:updateWithSubData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithSubData'", nullptr); + return 0; + } + auto&& ret = cobj->updateWithSubData(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:updateWithSubData",argc, 5); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getMaxT'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_updateWithSubData'.",&tolua_err); #endif return 0; } -int lua_ax_base_Texture2D_getStringForFormat(lua_State* tolua_S) +int lua_ax_base_Texture2D_drawAtPoint(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -1277,29 +1396,88 @@ int lua_ax_base_Texture2D_getStringForFormat(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getStringForFormat'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_drawAtPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + ax::Vec2 arg0; + double arg1; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Texture2D:drawAtPoint"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Texture2D:drawAtPoint"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getStringForFormat'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_drawAtPoint'", nullptr); return 0; } - auto&& ret = cobj->getStringForFormat(); - tolua_pushstring(tolua_S,(const char*)ret); + cobj->drawAtPoint(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getStringForFormat",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:drawAtPoint",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getStringForFormat'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_drawAtPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_drawInRect(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_drawInRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Rect arg0; + double arg1; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.Texture2D:drawInRect"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Texture2D:drawInRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_drawInRect'", nullptr); + return 0; + } + cobj->drawInRect(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:drawInRect",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_drawInRect'.",&tolua_err); #endif return 0; @@ -1363,248 +1541,6 @@ int lua_ax_base_Texture2D_initWithImage(lua_State* tolua_S) return 0; } -int lua_ax_base_Texture2D_getMaxS(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getMaxS'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getMaxS'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxS(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getMaxS",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getMaxS'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_hasPremultipliedAlpha'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_hasPremultipliedAlpha'", nullptr); - return 0; - } - auto&& ret = cobj->hasPremultipliedAlpha(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:hasPremultipliedAlpha",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_hasPremultipliedAlpha'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_getPixelsHigh(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getPixelsHigh'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getPixelsHigh'", nullptr); - return 0; - } - auto&& ret = cobj->getPixelsHigh(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getPixelsHigh",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getPixelsHigh'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getBitsPerPixelForFormat'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::backend::PixelFormat arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Texture2D:getBitsPerPixelForFormat"); - - if (!ok) { break; } - unsigned int ret = cobj->getBitsPerPixelForFormat(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - unsigned int ret = cobj->getBitsPerPixelForFormat(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getBitsPerPixelForFormat",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getBitsPerPixelForFormat'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_setMaxS(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setMaxS'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Texture2D:setMaxS"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setMaxS'", nullptr); - return 0; - } - cobj->setMaxS(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setMaxS",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setMaxS'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Texture2D_initWithString(lua_State* tolua_S) { int argc = 0; @@ -1832,438 +1768,6 @@ int lua_ax_base_Texture2D_initWithString(lua_State* tolua_S) return 0; } -int lua_ax_base_Texture2D_setMaxT(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setMaxT'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Texture2D:setMaxT"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setMaxT'", nullptr); - return 0; - } - cobj->setMaxT(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setMaxT",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setMaxT'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_getPath(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getPath'", nullptr); - return 0; - } - auto&& ret = cobj->getPath(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getPath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_drawInRect(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_drawInRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Rect arg0; - double arg1; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.Texture2D:drawInRect"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Texture2D:drawInRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_drawInRect'", nullptr); - return 0; - } - cobj->drawInRect(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:drawInRect",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_drawInRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_isRenderTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_isRenderTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_isRenderTarget'", nullptr); - return 0; - } - auto&& ret = cobj->isRenderTarget(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:isRenderTarget",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_isRenderTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_getContentSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getContentSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getContentSize'", nullptr); - return 0; - } - auto&& ret = cobj->getContentSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getContentSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getContentSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_setAliasTexParameters(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setAliasTexParameters'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setAliasTexParameters'", nullptr); - return 0; - } - cobj->setAliasTexParameters(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setAliasTexParameters",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setAliasTexParameters'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setAntiAliasTexParameters'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setAntiAliasTexParameters'", nullptr); - return 0; - } - cobj->setAntiAliasTexParameters(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setAntiAliasTexParameters",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setAntiAliasTexParameters'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_generateMipmap(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_generateMipmap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_generateMipmap'", nullptr); - return 0; - } - cobj->generateMipmap(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:generateMipmap",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_generateMipmap'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_getPixelFormat(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getPixelFormat'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getPixelFormat'", nullptr); - return 0; - } - int ret = (int)cobj->getPixelFormat(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getPixelFormat",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getPixelFormat'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Texture2D_updateTextureDescriptor(lua_State* tolua_S) { int argc = 0; @@ -2333,6 +1837,436 @@ int lua_ax_base_Texture2D_updateTextureDescriptor(lua_State* tolua_S) return 0; } +int lua_ax_base_Texture2D_setRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Texture2D:setRenderTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setRenderTarget'", nullptr); + return 0; + } + cobj->setRenderTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setRenderTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setRenderTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_isRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_isRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_isRenderTarget'", nullptr); + return 0; + } + auto&& ret = cobj->isRenderTarget(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:isRenderTarget",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_isRenderTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_generateMipmap(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_generateMipmap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_generateMipmap'", nullptr); + return 0; + } + cobj->generateMipmap(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:generateMipmap",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_generateMipmap'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setAntiAliasTexParameters'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setAntiAliasTexParameters'", nullptr); + return 0; + } + cobj->setAntiAliasTexParameters(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setAntiAliasTexParameters",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setAntiAliasTexParameters'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_setAliasTexParameters(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setAliasTexParameters'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setAliasTexParameters'", nullptr); + return 0; + } + cobj->setAliasTexParameters(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setAliasTexParameters",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setAliasTexParameters'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_getStringForFormat(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getStringForFormat'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getStringForFormat'", nullptr); + return 0; + } + auto&& ret = cobj->getStringForFormat(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getStringForFormat",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getStringForFormat'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getBitsPerPixelForFormat'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::backend::PixelFormat arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Texture2D:getBitsPerPixelForFormat"); + + if (!ok) { break; } + unsigned int ret = cobj->getBitsPerPixelForFormat(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + unsigned int ret = cobj->getBitsPerPixelForFormat(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getBitsPerPixelForFormat",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getBitsPerPixelForFormat'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_getContentSizeInPixels(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getContentSizeInPixels'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getContentSizeInPixels'", nullptr); + return 0; + } + auto&& ret = cobj->getContentSizeInPixels(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getContentSizeInPixels",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getContentSizeInPixels'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_hasPremultipliedAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_hasPremultipliedAlpha'", nullptr); + return 0; + } + auto&& ret = cobj->hasPremultipliedAlpha(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:hasPremultipliedAlpha",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_hasPremultipliedAlpha'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Texture2D_setPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; @@ -2383,7 +2317,7 @@ int lua_ax_base_Texture2D_setPremultipliedAlpha(lua_State* tolua_S) return 0; } -int lua_ax_base_Texture2D_getBackendTexture(lua_State* tolua_S) +int lua_ax_base_Texture2D_hasMipmaps(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -2403,7 +2337,7 @@ int lua_ax_base_Texture2D_getBackendTexture(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getBackendTexture'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_hasMipmaps'", nullptr); return 0; } #endif @@ -2413,24 +2347,24 @@ int lua_ax_base_Texture2D_getBackendTexture(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getBackendTexture'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_hasMipmaps'", nullptr); return 0; } - auto&& ret = cobj->getBackendTexture(); - object_to_luaval(tolua_S, "axb.TextureBackend",(ax::backend::TextureBackend*)ret); + auto&& ret = cobj->hasMipmaps(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getBackendTexture",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:hasMipmaps",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getBackendTexture'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_hasMipmaps'.",&tolua_err); #endif return 0; } -int lua_ax_base_Texture2D_getContentSizeInPixels(lua_State* tolua_S) +int lua_ax_base_Texture2D_getPixelFormat(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -2450,7 +2384,7 @@ int lua_ax_base_Texture2D_getContentSizeInPixels(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getContentSizeInPixels'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getPixelFormat'", nullptr); return 0; } #endif @@ -2460,19 +2394,19 @@ int lua_ax_base_Texture2D_getContentSizeInPixels(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getContentSizeInPixels'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getPixelFormat'", nullptr); return 0; } - auto&& ret = cobj->getContentSizeInPixels(); - vec2_to_luaval(tolua_S, ret); + int ret = (int)cobj->getPixelFormat(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getContentSizeInPixels",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getPixelFormat",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getContentSizeInPixels'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getPixelFormat'.",&tolua_err); #endif return 0; @@ -2571,7 +2505,7 @@ int lua_ax_base_Texture2D_getPixelsWide(lua_State* tolua_S) return 0; } -int lua_ax_base_Texture2D_drawAtPoint(lua_State* tolua_S) +int lua_ax_base_Texture2D_getPixelsHigh(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -2591,60 +2525,7 @@ int lua_ax_base_Texture2D_drawAtPoint(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_drawAtPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Vec2 arg0; - double arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Texture2D:drawAtPoint"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Texture2D:drawAtPoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_drawAtPoint'", nullptr); - return 0; - } - cobj->drawAtPoint(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:drawAtPoint",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_drawAtPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Texture2D_hasMipmaps(lua_State* tolua_S) -{ - int argc = 0; - ax::Texture2D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_hasMipmaps'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getPixelsHigh'", nullptr); return 0; } #endif @@ -2654,24 +2535,24 @@ int lua_ax_base_Texture2D_hasMipmaps(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_hasMipmaps'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getPixelsHigh'", nullptr); return 0; } - auto&& ret = cobj->hasMipmaps(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getPixelsHigh(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:hasMipmaps",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getPixelsHigh",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_hasMipmaps'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getPixelsHigh'.",&tolua_err); #endif return 0; } -int lua_ax_base_Texture2D_setRenderTarget(lua_State* tolua_S) +int lua_ax_base_Texture2D_getBackendTexture(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -2691,7 +2572,101 @@ int lua_ax_base_Texture2D_setRenderTarget(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setRenderTarget'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getBackendTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getBackendTexture'", nullptr); + return 0; + } + auto&& ret = cobj->getBackendTexture(); + object_to_luaval(tolua_S, "axb.TextureBackend",(ax::backend::TextureBackend*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getBackendTexture",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getBackendTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_getMaxS(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getMaxS'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getMaxS'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxS(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getMaxS",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getMaxS'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_setMaxS(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setMaxS'", nullptr); return 0; } #endif @@ -2699,29 +2674,29 @@ int lua_ax_base_Texture2D_setRenderTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + double arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Texture2D:setRenderTarget"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Texture2D:setMaxS"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setRenderTarget'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setMaxS'", nullptr); return 0; } - cobj->setRenderTarget(arg0); + cobj->setMaxS(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setRenderTarget",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setMaxS",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setRenderTarget'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setMaxS'.",&tolua_err); #endif return 0; } -int lua_ax_base_Texture2D_updateWithImage(lua_State* tolua_S) +int lua_ax_base_Texture2D_getMaxT(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -2741,60 +2716,34 @@ int lua_ax_base_Texture2D_updateWithImage(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_updateWithImage'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getMaxT'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - ax::Image* arg0; - ax::backend::PixelFormat arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Image",&arg0, "ax.Texture2D:updateWithImage"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithImage"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithImage'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getMaxT'", nullptr); return 0; } - auto&& ret = cobj->updateWithImage(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getMaxT(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - if (argc == 3) - { - ax::Image* arg0; - ax::backend::PixelFormat arg1; - int arg2; - - ok &= luaval_to_object(tolua_S, 2, "ax.Image",&arg0, "ax.Texture2D:updateWithImage"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithImage"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Texture2D:updateWithImage"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithImage'", nullptr); - return 0; - } - auto&& ret = cobj->updateWithImage(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:updateWithImage",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getMaxT",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_updateWithImage'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getMaxT'.",&tolua_err); #endif return 0; } -int lua_ax_base_Texture2D_updateWithSubData(lua_State* tolua_S) +int lua_ax_base_Texture2D_setMaxT(lua_State* tolua_S) { int argc = 0; ax::Texture2D* cobj = nullptr; @@ -2814,75 +2763,126 @@ int lua_ax_base_Texture2D_updateWithSubData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_updateWithSubData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_setMaxT'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 5) + if (argc == 1) { - void* arg0; - int arg1; - int arg2; - int arg3; - int arg4; + double arg0; - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Texture2D:updateWithSubData"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Texture2D:setMaxT"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithSubData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_setMaxT'", nullptr); return 0; } - auto&& ret = cobj->updateWithSubData(arg0, arg1, arg2, arg3, arg4); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setMaxT(arg0); + lua_settop(tolua_S, 1); return 1; } - if (argc == 6) - { - void* arg0; - int arg1; - int arg2; - int arg3; - int arg4; - int arg5; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Texture2D:updateWithSubData"); - - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.Texture2D:updateWithSubData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_updateWithSubData'", nullptr); - return 0; - } - auto&& ret = cobj->updateWithSubData(arg0, arg1, arg2, arg3, arg4, arg5); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:updateWithSubData",argc, 5); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:setMaxT",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_updateWithSubData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_setMaxT'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_getContentSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getContentSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getContentSize'", nullptr); + return 0; + } + auto&& ret = cobj->getContentSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getContentSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getContentSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Texture2D_getPath(lua_State* tolua_S) +{ + int argc = 0; + ax::Texture2D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Texture2D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Texture2D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Texture2D_getPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Texture2D_getPath'", nullptr); + return 0; + } + auto&& ret = cobj->getPath(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Texture2D:getPath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Texture2D_getPath'.",&tolua_err); #endif return 0; @@ -3007,36 +3007,36 @@ int lua_register_ax_base_Texture2D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Texture2D"); tolua_function(tolua_S,"new",lua_ax_base_Texture2D_constructor); + tolua_function(tolua_S,"updateWithImage",lua_ax_base_Texture2D_updateWithImage); tolua_function(tolua_S,"updateWithMipmaps",lua_ax_base_Texture2D_updateWithMipmaps); - tolua_function(tolua_S,"getMaxT",lua_ax_base_Texture2D_getMaxT); - tolua_function(tolua_S,"getStringForFormat",lua_ax_base_Texture2D_getStringForFormat); - tolua_function(tolua_S,"initWithImage",lua_ax_base_Texture2D_initWithImage); - tolua_function(tolua_S,"getMaxS",lua_ax_base_Texture2D_getMaxS); - tolua_function(tolua_S,"hasPremultipliedAlpha",lua_ax_base_Texture2D_hasPremultipliedAlpha); - tolua_function(tolua_S,"getPixelsHigh",lua_ax_base_Texture2D_getPixelsHigh); - tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_ax_base_Texture2D_getBitsPerPixelForFormat); - tolua_function(tolua_S,"setMaxS",lua_ax_base_Texture2D_setMaxS); - tolua_function(tolua_S,"initWithString",lua_ax_base_Texture2D_initWithString); - tolua_function(tolua_S,"setMaxT",lua_ax_base_Texture2D_setMaxT); - tolua_function(tolua_S,"getPath",lua_ax_base_Texture2D_getPath); + tolua_function(tolua_S,"updateWithSubData",lua_ax_base_Texture2D_updateWithSubData); + tolua_function(tolua_S,"drawAtPoint",lua_ax_base_Texture2D_drawAtPoint); tolua_function(tolua_S,"drawInRect",lua_ax_base_Texture2D_drawInRect); - tolua_function(tolua_S,"isRenderTarget",lua_ax_base_Texture2D_isRenderTarget); - tolua_function(tolua_S,"getContentSize",lua_ax_base_Texture2D_getContentSize); - tolua_function(tolua_S,"setAliasTexParameters",lua_ax_base_Texture2D_setAliasTexParameters); - tolua_function(tolua_S,"setAntiAliasTexParameters",lua_ax_base_Texture2D_setAntiAliasTexParameters); - tolua_function(tolua_S,"generateMipmap",lua_ax_base_Texture2D_generateMipmap); - tolua_function(tolua_S,"getPixelFormat",lua_ax_base_Texture2D_getPixelFormat); + tolua_function(tolua_S,"initWithImage",lua_ax_base_Texture2D_initWithImage); + tolua_function(tolua_S,"initWithString",lua_ax_base_Texture2D_initWithString); tolua_function(tolua_S,"updateTextureDescriptor",lua_ax_base_Texture2D_updateTextureDescriptor); - tolua_function(tolua_S,"setPremultipliedAlpha",lua_ax_base_Texture2D_setPremultipliedAlpha); - tolua_function(tolua_S,"getBackendTexture",lua_ax_base_Texture2D_getBackendTexture); + tolua_function(tolua_S,"setRenderTarget",lua_ax_base_Texture2D_setRenderTarget); + tolua_function(tolua_S,"isRenderTarget",lua_ax_base_Texture2D_isRenderTarget); + tolua_function(tolua_S,"generateMipmap",lua_ax_base_Texture2D_generateMipmap); + tolua_function(tolua_S,"setAntiAliasTexParameters",lua_ax_base_Texture2D_setAntiAliasTexParameters); + tolua_function(tolua_S,"setAliasTexParameters",lua_ax_base_Texture2D_setAliasTexParameters); + tolua_function(tolua_S,"getStringForFormat",lua_ax_base_Texture2D_getStringForFormat); + tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_ax_base_Texture2D_getBitsPerPixelForFormat); tolua_function(tolua_S,"getContentSizeInPixels",lua_ax_base_Texture2D_getContentSizeInPixels); + tolua_function(tolua_S,"hasPremultipliedAlpha",lua_ax_base_Texture2D_hasPremultipliedAlpha); + tolua_function(tolua_S,"setPremultipliedAlpha",lua_ax_base_Texture2D_setPremultipliedAlpha); + tolua_function(tolua_S,"hasMipmaps",lua_ax_base_Texture2D_hasMipmaps); + tolua_function(tolua_S,"getPixelFormat",lua_ax_base_Texture2D_getPixelFormat); tolua_function(tolua_S,"getSamplerFlags",lua_ax_base_Texture2D_getSamplerFlags); tolua_function(tolua_S,"getPixelsWide",lua_ax_base_Texture2D_getPixelsWide); - tolua_function(tolua_S,"drawAtPoint",lua_ax_base_Texture2D_drawAtPoint); - tolua_function(tolua_S,"hasMipmaps",lua_ax_base_Texture2D_hasMipmaps); - tolua_function(tolua_S,"setRenderTarget",lua_ax_base_Texture2D_setRenderTarget); - tolua_function(tolua_S,"updateWithImage",lua_ax_base_Texture2D_updateWithImage); - tolua_function(tolua_S,"updateWithSubData",lua_ax_base_Texture2D_updateWithSubData); + tolua_function(tolua_S,"getPixelsHigh",lua_ax_base_Texture2D_getPixelsHigh); + tolua_function(tolua_S,"getBackendTexture",lua_ax_base_Texture2D_getBackendTexture); + tolua_function(tolua_S,"getMaxS",lua_ax_base_Texture2D_getMaxS); + tolua_function(tolua_S,"setMaxS",lua_ax_base_Texture2D_setMaxS); + tolua_function(tolua_S,"getMaxT",lua_ax_base_Texture2D_getMaxT); + tolua_function(tolua_S,"setMaxT",lua_ax_base_Texture2D_setMaxT); + tolua_function(tolua_S,"getContentSize",lua_ax_base_Texture2D_getContentSize); + tolua_function(tolua_S,"getPath",lua_ax_base_Texture2D_getPath); tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_ax_base_Texture2D_setDefaultAlphaPixelFormat); tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_ax_base_Texture2D_getDefaultAlphaPixelFormat); tolua_endmodule(tolua_S); @@ -3046,53 +3046,6 @@ int lua_register_ax_base_Texture2D(lua_State* tolua_S) return 1; } -int lua_ax_base_Touch_getPreviousLocationInView(lua_State* tolua_S) -{ - int argc = 0; - ax::Touch* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getPreviousLocationInView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getPreviousLocationInView'", nullptr); - return 0; - } - auto&& ret = cobj->getPreviousLocationInView(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getPreviousLocationInView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getPreviousLocationInView'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Touch_getLocation(lua_State* tolua_S) { int argc = 0; @@ -3140,7 +3093,7 @@ int lua_ax_base_Touch_getLocation(lua_State* tolua_S) return 0; } -int lua_ax_base_Touch_getDelta(lua_State* tolua_S) +int lua_ax_base_Touch_getPreviousLocation(lua_State* tolua_S) { int argc = 0; ax::Touch* cobj = nullptr; @@ -3160,7 +3113,7 @@ int lua_ax_base_Touch_getDelta(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getDelta'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getPreviousLocation'", nullptr); return 0; } #endif @@ -3170,113 +3123,19 @@ int lua_ax_base_Touch_getDelta(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getDelta'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getPreviousLocation'", nullptr); return 0; } - auto&& ret = cobj->getDelta(); + auto&& ret = cobj->getPreviousLocation(); vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getDelta",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getPreviousLocation",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getDelta'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Touch_getStartLocationInView(lua_State* tolua_S) -{ - int argc = 0; - ax::Touch* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getStartLocationInView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getStartLocationInView'", nullptr); - return 0; - } - auto&& ret = cobj->getStartLocationInView(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getStartLocationInView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getStartLocationInView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Touch_getCurrentForce(lua_State* tolua_S) -{ - int argc = 0; - ax::Touch* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getCurrentForce'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getCurrentForce'", nullptr); - return 0; - } - auto&& ret = cobj->getCurrentForce(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getCurrentForce",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getCurrentForce'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getPreviousLocation'.",&tolua_err); #endif return 0; @@ -3328,7 +3187,7 @@ int lua_ax_base_Touch_getStartLocation(lua_State* tolua_S) return 0; } -int lua_ax_base_Touch_getID(lua_State* tolua_S) +int lua_ax_base_Touch_getDelta(lua_State* tolua_S) { int argc = 0; ax::Touch* cobj = nullptr; @@ -3348,7 +3207,7 @@ int lua_ax_base_Touch_getID(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getID'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getDelta'", nullptr); return 0; } #endif @@ -3358,19 +3217,160 @@ int lua_ax_base_Touch_getID(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getID'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getDelta'", nullptr); return 0; } - auto&& ret = cobj->getID(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getDelta(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getID",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getDelta",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getID'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getDelta'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Touch_getLocationInView(lua_State* tolua_S) +{ + int argc = 0; + ax::Touch* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getLocationInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getLocationInView'", nullptr); + return 0; + } + auto&& ret = cobj->getLocationInView(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getLocationInView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getLocationInView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Touch_getPreviousLocationInView(lua_State* tolua_S) +{ + int argc = 0; + ax::Touch* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getPreviousLocationInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getPreviousLocationInView'", nullptr); + return 0; + } + auto&& ret = cobj->getPreviousLocationInView(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getPreviousLocationInView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getPreviousLocationInView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Touch_getStartLocationInView(lua_State* tolua_S) +{ + int argc = 0; + ax::Touch* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getStartLocationInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getStartLocationInView'", nullptr); + return 0; + } + auto&& ret = cobj->getStartLocationInView(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getStartLocationInView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getStartLocationInView'.",&tolua_err); #endif return 0; @@ -3454,6 +3454,100 @@ int lua_ax_base_Touch_setTouchInfo(lua_State* tolua_S) return 0; } +int lua_ax_base_Touch_getID(lua_State* tolua_S) +{ + int argc = 0; + ax::Touch* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getID'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getID'", nullptr); + return 0; + } + auto&& ret = cobj->getID(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getID",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getID'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Touch_getCurrentForce(lua_State* tolua_S) +{ + int argc = 0; + ax::Touch* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getCurrentForce'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getCurrentForce'", nullptr); + return 0; + } + auto&& ret = cobj->getCurrentForce(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getCurrentForce",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getCurrentForce'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Touch_getMaxForce(lua_State* tolua_S) { int argc = 0; @@ -3501,100 +3595,6 @@ int lua_ax_base_Touch_getMaxForce(lua_State* tolua_S) return 0; } -int lua_ax_base_Touch_getLocationInView(lua_State* tolua_S) -{ - int argc = 0; - ax::Touch* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getLocationInView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getLocationInView'", nullptr); - return 0; - } - auto&& ret = cobj->getLocationInView(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getLocationInView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getLocationInView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Touch_getPreviousLocation(lua_State* tolua_S) -{ - int argc = 0; - ax::Touch* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Touch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Touch*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Touch_getPreviousLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Touch_getPreviousLocation'", nullptr); - return 0; - } - auto&& ret = cobj->getPreviousLocation(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Touch:getPreviousLocation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Touch_getPreviousLocation'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Touch_constructor(lua_State* tolua_S) { int argc = 0; @@ -3645,17 +3645,17 @@ int lua_register_ax_base_Touch(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Touch"); tolua_function(tolua_S,"new",lua_ax_base_Touch_constructor); - tolua_function(tolua_S,"getPreviousLocationInView",lua_ax_base_Touch_getPreviousLocationInView); tolua_function(tolua_S,"getLocation",lua_ax_base_Touch_getLocation); - tolua_function(tolua_S,"getDelta",lua_ax_base_Touch_getDelta); - tolua_function(tolua_S,"getStartLocationInView",lua_ax_base_Touch_getStartLocationInView); - tolua_function(tolua_S,"getCurrentForce",lua_ax_base_Touch_getCurrentForce); - tolua_function(tolua_S,"getStartLocation",lua_ax_base_Touch_getStartLocation); - tolua_function(tolua_S,"getId",lua_ax_base_Touch_getID); - tolua_function(tolua_S,"setTouchInfo",lua_ax_base_Touch_setTouchInfo); - tolua_function(tolua_S,"getMaxForce",lua_ax_base_Touch_getMaxForce); - tolua_function(tolua_S,"getLocationInView",lua_ax_base_Touch_getLocationInView); tolua_function(tolua_S,"getPreviousLocation",lua_ax_base_Touch_getPreviousLocation); + tolua_function(tolua_S,"getStartLocation",lua_ax_base_Touch_getStartLocation); + tolua_function(tolua_S,"getDelta",lua_ax_base_Touch_getDelta); + tolua_function(tolua_S,"getLocationInView",lua_ax_base_Touch_getLocationInView); + tolua_function(tolua_S,"getPreviousLocationInView",lua_ax_base_Touch_getPreviousLocationInView); + tolua_function(tolua_S,"getStartLocationInView",lua_ax_base_Touch_getStartLocationInView); + tolua_function(tolua_S,"setTouchInfo",lua_ax_base_Touch_setTouchInfo); + tolua_function(tolua_S,"getId",lua_ax_base_Touch_getID); + tolua_function(tolua_S,"getCurrentForce",lua_ax_base_Touch_getCurrentForce); + tolua_function(tolua_S,"getMaxForce",lua_ax_base_Touch_getMaxForce); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Touch).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Touch"; @@ -3663,53 +3663,6 @@ int lua_register_ax_base_Touch(lua_State* tolua_S) return 1; } -int lua_ax_base_Event_isStopped(lua_State* tolua_S) -{ - int argc = 0; - ax::Event* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Event",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Event*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Event_isStopped'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Event_isStopped'", nullptr); - return 0; - } - auto&& ret = cobj->isStopped(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Event:isStopped",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Event_isStopped'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Event_getType(lua_State* tolua_S) { int argc = 0; @@ -3757,53 +3710,6 @@ int lua_ax_base_Event_getType(lua_State* tolua_S) return 0; } -int lua_ax_base_Event_getCurrentTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::Event* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Event",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Event*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Event_getCurrentTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Event_getCurrentTarget'", nullptr); - return 0; - } - auto&& ret = cobj->getCurrentTarget(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Event:getCurrentTarget",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Event_getCurrentTarget'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Event_stopPropagation(lua_State* tolua_S) { int argc = 0; @@ -3851,6 +3757,100 @@ int lua_ax_base_Event_stopPropagation(lua_State* tolua_S) return 0; } +int lua_ax_base_Event_isStopped(lua_State* tolua_S) +{ + int argc = 0; + ax::Event* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Event",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Event*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Event_isStopped'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Event_isStopped'", nullptr); + return 0; + } + auto&& ret = cobj->isStopped(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Event:isStopped",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Event_isStopped'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Event_getCurrentTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Event* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Event",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Event*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Event_getCurrentTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Event_getCurrentTarget'", nullptr); + return 0; + } + auto&& ret = cobj->getCurrentTarget(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Event:getCurrentTarget",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Event_getCurrentTarget'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Event_constructor(lua_State* tolua_S) { int argc = 0; @@ -3904,10 +3904,10 @@ int lua_register_ax_base_Event(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Event"); tolua_function(tolua_S,"new",lua_ax_base_Event_constructor); - tolua_function(tolua_S,"isStopped",lua_ax_base_Event_isStopped); tolua_function(tolua_S,"getType",lua_ax_base_Event_getType); - tolua_function(tolua_S,"getCurrentTarget",lua_ax_base_Event_getCurrentTarget); tolua_function(tolua_S,"stopPropagation",lua_ax_base_Event_stopPropagation); + tolua_function(tolua_S,"isStopped",lua_ax_base_Event_isStopped); + tolua_function(tolua_S,"getCurrentTarget",lua_ax_base_Event_getCurrentTarget); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Event).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Event"; @@ -4134,6 +4134,100 @@ int lua_register_ax_base_EventKeyboard(lua_State* tolua_S) return 1; } +int lua_ax_base_Component_init(lua_State* tolua_S) +{ + int argc = 0; + ax::Component* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Component",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Component*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:init",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_init'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Component_isEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Component* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Component",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Component*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_isEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_isEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:isEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_isEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Component_setEnabled(lua_State* tolua_S) { int argc = 0; @@ -4184,7 +4278,7 @@ int lua_ax_base_Component_setEnabled(lua_State* tolua_S) return 0; } -int lua_ax_base_Component_onRemove(lua_State* tolua_S) +int lua_ax_base_Component_getName(lua_State* tolua_S) { int argc = 0; ax::Component* cobj = nullptr; @@ -4204,7 +4298,7 @@ int lua_ax_base_Component_onRemove(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_onRemove'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_getName'", nullptr); return 0; } #endif @@ -4214,19 +4308,19 @@ int lua_ax_base_Component_onRemove(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_onRemove'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_getName'", nullptr); return 0; } - cobj->onRemove(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:onRemove",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:getName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_onRemove'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_getName'.",&tolua_err); #endif return 0; @@ -4281,103 +4375,6 @@ int lua_ax_base_Component_setName(lua_State* tolua_S) return 0; } -int lua_ax_base_Component_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Component* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Component",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Component*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_isEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_isEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:isEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_isEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Component_update(lua_State* tolua_S) -{ - int argc = 0; - ax::Component* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Component",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Component*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_update'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Component:update"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_update'", nullptr); - return 0; - } - cobj->update(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:update",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_update'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Component_getOwner(lua_State* tolua_S) { int argc = 0; @@ -4425,53 +4422,6 @@ int lua_ax_base_Component_getOwner(lua_State* tolua_S) return 0; } -int lua_ax_base_Component_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Component* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Component",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Component*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Component_setOwner(lua_State* tolua_S) { int argc = 0; @@ -4522,7 +4472,7 @@ int lua_ax_base_Component_setOwner(lua_State* tolua_S) return 0; } -int lua_ax_base_Component_getName(lua_State* tolua_S) +int lua_ax_base_Component_update(lua_State* tolua_S) { int argc = 0; ax::Component* cobj = nullptr; @@ -4542,29 +4492,32 @@ int lua_ax_base_Component_getName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_getName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Component:update"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_getName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_update'", nullptr); return 0; } - auto&& ret = cobj->getName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); + cobj->update(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:getName",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:update",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_getName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_update'.",&tolua_err); #endif return 0; @@ -4616,6 +4569,53 @@ int lua_ax_base_Component_onAdd(lua_State* tolua_S) return 0; } +int lua_ax_base_Component_onRemove(lua_State* tolua_S) +{ + int argc = 0; + ax::Component* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Component",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Component*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Component_onRemove'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Component_onRemove'", nullptr); + return 0; + } + cobj->onRemove(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Component:onRemove",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Component_onRemove'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Component_create(lua_State* tolua_S) { int argc = 0; @@ -4662,16 +4662,16 @@ int lua_register_ax_base_Component(lua_State* tolua_S) tolua_cclass(tolua_S,"Component","ax.Component","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Component"); - tolua_function(tolua_S,"setEnabled",lua_ax_base_Component_setEnabled); - tolua_function(tolua_S,"onRemove",lua_ax_base_Component_onRemove); - tolua_function(tolua_S,"setName",lua_ax_base_Component_setName); - tolua_function(tolua_S,"isEnabled",lua_ax_base_Component_isEnabled); - tolua_function(tolua_S,"update",lua_ax_base_Component_update); - tolua_function(tolua_S,"getOwner",lua_ax_base_Component_getOwner); tolua_function(tolua_S,"init",lua_ax_base_Component_init); - tolua_function(tolua_S,"setOwner",lua_ax_base_Component_setOwner); + tolua_function(tolua_S,"isEnabled",lua_ax_base_Component_isEnabled); + tolua_function(tolua_S,"setEnabled",lua_ax_base_Component_setEnabled); tolua_function(tolua_S,"getName",lua_ax_base_Component_getName); + tolua_function(tolua_S,"setName",lua_ax_base_Component_setName); + tolua_function(tolua_S,"getOwner",lua_ax_base_Component_getOwner); + tolua_function(tolua_S,"setOwner",lua_ax_base_Component_setOwner); + tolua_function(tolua_S,"update",lua_ax_base_Component_update); tolua_function(tolua_S,"onAdd",lua_ax_base_Component_onAdd); + tolua_function(tolua_S,"onRemove",lua_ax_base_Component_onRemove); tolua_function(tolua_S,"create", lua_ax_base_Component_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Component).name(); // rtti is literal storage @@ -4680,6 +4680,2249 @@ int lua_register_ax_base_Component(lua_State* tolua_S) return 1; } +int lua_ax_base_Node_getDescription(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getDescription'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getDescription'", nullptr); + return 0; + } + auto&& ret = cobj->getDescription(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getDescription",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getDescription'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_updateOrderOfArrival(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateOrderOfArrival'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateOrderOfArrival'", nullptr); + return 0; + } + cobj->updateOrderOfArrival(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateOrderOfArrival",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateOrderOfArrival'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getLocalZOrder(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getLocalZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getLocalZOrder'", nullptr); + return 0; + } + auto&& ret = cobj->getLocalZOrder(); + #pragma warning NO CONVERSION FROM NATIVE FOR ??; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getLocalZOrder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getLocalZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setGlobalZOrder(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setGlobalZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setGlobalZOrder"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setGlobalZOrder'", nullptr); + return 0; + } + cobj->setGlobalZOrder(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setGlobalZOrder",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setGlobalZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getGlobalZOrder(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getGlobalZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getGlobalZOrder'", nullptr); + return 0; + } + auto&& ret = cobj->getGlobalZOrder(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getGlobalZOrder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getGlobalZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setScaleX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScaleX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScaleX'", nullptr); + return 0; + } + cobj->setScaleX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScaleX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getScaleX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScaleX'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScaleX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setScaleY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScaleY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScaleY'", nullptr); + return 0; + } + cobj->setScaleY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScaleY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getScaleY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScaleY'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScaleY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setScaleZ(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScaleZ'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScaleZ"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScaleZ'", nullptr); + return 0; + } + cobj->setScaleZ(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScaleZ",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScaleZ'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getScaleZ(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScaleZ'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScaleZ'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleZ(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScaleZ",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScaleZ'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setScale(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScale'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScale"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Node:setScale"); + + if (!ok) { break; } + cobj->setScale(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScale"); + + if (!ok) { break; } + cobj->setScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScale",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getScale(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScale'", nullptr); + return 0; + } + auto&& ret = cobj->getScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPosition'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPosition"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Node:setPosition"); + + if (!ok) { break; } + cobj->setPosition(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:setPosition"); + + if (!ok) { break; } + cobj->setPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setPositionNormalized(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionNormalized'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:setPositionNormalized"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionNormalized'", nullptr); + return 0; + } + cobj->setPositionNormalized(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionNormalized",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionNormalized'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setNormalizedPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setNormalizedPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:setNormalizedPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setNormalizedPosition'", nullptr); + return 0; + } + cobj->setNormalizedPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setNormalizedPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setNormalizedPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getPositionNormalized(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionNormalized'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionNormalized'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionNormalized(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionNormalized",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionNormalized'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNormalizedPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNormalizedPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNormalizedPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getNormalizedPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNormalizedPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNormalizedPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setPositionX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPositionX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionX'", nullptr); + return 0; + } + cobj->setPositionX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getPositionX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionX'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setPositionY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPositionY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionY'", nullptr); + return 0; + } + cobj->setPositionY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getPositionY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionY'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setPosition3D(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPosition3D'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Node:setPosition3D"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPosition3D'", nullptr); + return 0; + } + cobj->setPosition3D(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPosition3D",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPosition3D'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getPosition3D(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPosition3D'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPosition3D'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition3D(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPosition3D",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPosition3D'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setPositionZ(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionZ'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPositionZ"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionZ'", nullptr); + return 0; + } + cobj->setPositionZ(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionZ",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionZ'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getPositionZ(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionZ'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionZ'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionZ(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionZ",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionZ'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setSkewX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setSkewX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setSkewX'", nullptr); + return 0; + } + cobj->setSkewX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setSkewX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setSkewX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getSkewX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getSkewX'", nullptr); + return 0; + } + auto&& ret = cobj->getSkewX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getSkewX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getSkewX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setSkewY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setSkewY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setSkewY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setSkewY'", nullptr); + return 0; + } + cobj->setSkewY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setSkewY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setSkewY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getSkewY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getSkewY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getSkewY'", nullptr); + return 0; + } + auto&& ret = cobj->getSkewY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getSkewY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getSkewY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getAnchorPoint'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorPoint(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getAnchorPoint",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getAnchorPointInPoints(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getAnchorPointInPoints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getAnchorPointInPoints'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorPointInPoints(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getAnchorPointInPoints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getAnchorPointInPoints'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getContentSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getContentSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getContentSize'", nullptr); + return 0; + } + auto&& ret = cobj->getContentSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getContentSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getContentSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_hitTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_hitTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:hitTest"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_hitTest'", nullptr); + return 0; + } + auto&& ret = cobj->hitTest(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:hitTest",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_hitTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setVisible(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setVisible"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setVisible'", nullptr); + return 0; + } + cobj->setVisible(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setVisible",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isVisible(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isVisible'", nullptr); + return 0; + } + auto&& ret = cobj->isVisible(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isVisible",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setRotation(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setRotation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotation'", nullptr); + return 0; + } + cobj->setRotation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getRotation(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotation'", nullptr); + return 0; + } + auto&& ret = cobj->getRotation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setRotation3D(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotation3D'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Node:setRotation3D"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotation3D'", nullptr); + return 0; + } + cobj->setRotation3D(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotation3D",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotation3D'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getRotation3D(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotation3D'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotation3D'", nullptr); + return 0; + } + auto&& ret = cobj->getRotation3D(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotation3D",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotation3D'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setRotationSkewX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotationSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setRotationSkewX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotationSkewX'", nullptr); + return 0; + } + cobj->setRotationSkewX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotationSkewX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotationSkewX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getRotationSkewX(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotationSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotationSkewX'", nullptr); + return 0; + } + auto&& ret = cobj->getRotationSkewX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotationSkewX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotationSkewX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setRotationSkewY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotationSkewY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setRotationSkewY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotationSkewY'", nullptr); + return 0; + } + cobj->setRotationSkewY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotationSkewY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotationSkewY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getRotationSkewY(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotationSkewY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotationSkewY'", nullptr); + return 0; + } + auto&& ret = cobj->getRotationSkewY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotationSkewY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotationSkewY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setIgnoreAnchorPointForPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setIgnoreAnchorPointForPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setIgnoreAnchorPointForPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setIgnoreAnchorPointForPosition'", nullptr); + return 0; + } + cobj->setIgnoreAnchorPointForPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setIgnoreAnchorPointForPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setIgnoreAnchorPointForPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isIgnoreAnchorPointForPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isIgnoreAnchorPointForPosition'", nullptr); + return 0; + } + auto&& ret = cobj->isIgnoreAnchorPointForPosition(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isIgnoreAnchorPointForPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isIgnoreAnchorPointForPosition'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Node_addChild(lua_State* tolua_S) { int argc = 0; @@ -4779,62 +7022,7 @@ int lua_ax_base_Node_addChild(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_removeComponent(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeComponent'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Component* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Component",&arg0, "ax.Node:removeComponent"); - - if (!ok) { break; } - bool ret = cobj->removeComponent(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:removeComponent"); - - if (!ok) { break; } - bool ret = cobj->removeComponent(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeComponent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeComponent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setPhysicsBody(lua_State* tolua_S) +int lua_ax_base_Node_getChildByTag(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -4854,7 +7042,7 @@ int lua_ax_base_Node_setPhysicsBody(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPhysicsBody'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getChildByTag'", nullptr); return 0; } #endif @@ -4862,566 +7050,24 @@ int lua_ax_base_Node_setPhysicsBody(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::PhysicsBody* arg0; + int arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.PhysicsBody",&arg0, "ax.Node:setPhysicsBody"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:getChildByTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPhysicsBody'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getChildByTag'", nullptr); return 0; } - cobj->setPhysicsBody(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getChildByTag(arg0); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPhysicsBody",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getChildByTag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPhysicsBody'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getOnExitTransitionDidStartCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getOnExitTransitionDidStartCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getOnExitTransitionDidStartCallback'", nullptr); - return 0; - } - auto&& ret = cobj->getOnExitTransitionDidStartCallback(); - #pragma warning NO CONVERSION FROM NATIVE FOR std::function; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getOnExitTransitionDidStartCallback",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getOnExitTransitionDidStartCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_updateProgramStateTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateProgramStateTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Node:updateProgramStateTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateProgramStateTexture'", nullptr); - return 0; - } - cobj->updateProgramStateTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateProgramStateTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateProgramStateTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getDescription(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getDescription'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getDescription'", nullptr); - return 0; - } - auto&& ret = cobj->getDescription(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getDescription",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getDescription'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setRotationSkewY(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotationSkewY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setRotationSkewY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotationSkewY'", nullptr); - return 0; - } - cobj->setRotationSkewY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotationSkewY",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotationSkewY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setOpacityModifyRGB(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setOpacityModifyRGB"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOpacityModifyRGB'", nullptr); - return 0; - } - cobj->setOpacityModifyRGB(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOpacityModifyRGB",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setCascadeOpacityEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setCascadeOpacityEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setCascadeOpacityEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCascadeOpacityEnabled'", nullptr); - return 0; - } - cobj->setCascadeOpacityEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setCascadeOpacityEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setCascadeOpacityEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getChildren(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getChildren'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - const ax::Vector& ret = cobj->getChildren(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - ax::Vector& ret = cobj->getChildren(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getChildren",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getChildren'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setOnExitCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOnExitCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOnExitCallback'", nullptr); - return 0; - } - cobj->setOnExitCallback(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOnExitCallback",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOnExitCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setActionManager(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setActionManager'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ActionManager* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.ActionManager",&arg0, "ax.Node:setActionManager"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setActionManager'", nullptr); - return 0; - } - cobj->setActionManager(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setActionManager",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setActionManager'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_convertToWorldSpaceAR(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToWorldSpaceAR'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToWorldSpaceAR"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToWorldSpaceAR'", nullptr); - return 0; - } - auto&& ret = cobj->convertToWorldSpaceAR(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToWorldSpaceAR",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToWorldSpaceAR'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isIgnoreAnchorPointForPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isIgnoreAnchorPointForPosition'", nullptr); - return 0; - } - auto&& ret = cobj->isIgnoreAnchorPointForPosition(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isIgnoreAnchorPointForPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isIgnoreAnchorPointForPosition'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getChildByTag'.",&tolua_err); #endif return 0; @@ -5476,57 +7122,54 @@ int lua_ax_base_Node_getChildByName(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_updateDisplayedOpacity(lua_State* tolua_S) +int lua_ax_base_Node_getChildren(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateDisplayedOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getChildren'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - uint16_t arg0; - - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "ax.Node:updateDisplayedOpacity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateDisplayedOpacity'", nullptr); - return 0; + do{ + if (argc == 0) { + const ax::Vector& ret = cobj->getChildren(); + ccvector_to_luaval(tolua_S, ret); + return 1; } - cobj->updateDisplayedOpacity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateDisplayedOpacity",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 0) { + ax::Vector& ret = cobj->getChildren(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getChildren",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateDisplayedOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getChildren'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_init(lua_State* tolua_S) +int lua_ax_base_Node_getChildrenCount(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -5546,7 +7189,7 @@ int lua_ax_base_Node_init(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_init'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getChildrenCount'", nullptr); return 0; } #endif @@ -5556,71 +7199,24 @@ int lua_ax_base_Node_init(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_init'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getChildrenCount'", nullptr); return 0; } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getCameraMask(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getCameraMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getCameraMask'", nullptr); - return 0; - } - auto&& ret = cobj->getCameraMask(); + auto&& ret = cobj->getChildrenCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getCameraMask",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getChildrenCount",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getCameraMask'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getChildrenCount'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_setRotation(lua_State* tolua_S) +int lua_ax_base_Node_setParent(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -5640,7 +7236,7 @@ int lua_ax_base_Node_setRotation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setParent'", nullptr); return 0; } #endif @@ -5648,676 +7244,122 @@ int lua_ax_base_Node_setRotation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Node* arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setRotation"); + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:setParent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setParent'", nullptr); return 0; } - cobj->setRotation(arg0); + cobj->setParent(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setParent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setParent'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_setScaleZ(lua_State* tolua_S) +int lua_ax_base_Node_getParent(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScaleZ'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getParent'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScaleZ"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScaleZ'", nullptr); - return 0; + do{ + if (argc == 0) { + const ax::Node* ret = cobj->getParent(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; } - cobj->setScaleZ(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScaleZ",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 0) { + ax::Node* ret = cobj->getParent(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getParent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScaleZ'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getParent'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_setScaleY(lua_State* tolua_S) +int lua_ax_base_Node_removeFromParentAndCleanup(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScaleY'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeFromParentAndCleanup'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; + do{ + if (argc == 1) { + bool arg0; + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:removeFromParentAndCleanup"); - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScaleY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScaleY'", nullptr); - return 0; + if (!ok) { break; } + cobj->removeFromParentAndCleanup(arg0); + lua_settop(tolua_S, 1); + return 1; } - cobj->setScaleY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScaleY",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->removeFromParent(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeFromParent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScaleY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setScaleX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScaleX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScaleX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScaleX'", nullptr); - return 0; - } - cobj->setScaleX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScaleX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScaleX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setRotationSkewX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotationSkewX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setRotationSkewX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotationSkewX'", nullptr); - return 0; - } - cobj->setRotationSkewX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotationSkewX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotationSkewX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_removeAllComponents(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeAllComponents'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeAllComponents'", nullptr); - return 0; - } - cobj->removeAllComponents(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeAllComponents",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeAllComponents'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node__setLocalZOrder(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node__setLocalZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:_setLocalZOrder"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node__setLocalZOrder'", nullptr); - return 0; - } - cobj->_setLocalZOrder(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:_setLocalZOrder",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node__setLocalZOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setCameraMask(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setCameraMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned short arg0; - - ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.Node:setCameraMask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCameraMask'", nullptr); - return 0; - } - cobj->setCameraMask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - unsigned short arg0; - bool arg1; - - ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.Node:setCameraMask"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Node:setCameraMask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCameraMask'", nullptr); - return 0; - } - cobj->setCameraMask(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setCameraMask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setCameraMask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getTag'", nullptr); - return 0; - } - auto&& ret = cobj->getTag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getTag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_initLayer(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_initLayer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_initLayer'", nullptr); - return 0; - } - auto&& ret = cobj->initLayer(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:initLayer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_initLayer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToWorldAffineTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNodeToWorldAffineTransform'", nullptr); - return 0; - } - auto&& ret = cobj->getNodeToWorldAffineTransform(); - affinetransform_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToWorldAffineTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToWorldAffineTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setProgramStateWithRegistry(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setProgramStateWithRegistry'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - unsigned int arg0; - ax::Texture2D* arg1; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Node:setProgramStateWithRegistry"); - - ok &= luaval_to_object(tolua_S, 3, "ax.Texture2D",&arg1, "ax.Node:setProgramStateWithRegistry"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setProgramStateWithRegistry'", nullptr); - return 0; - } - cobj->setProgramStateWithRegistry(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setProgramStateWithRegistry",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setProgramStateWithRegistry'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getNodeToWorldTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToWorldTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNodeToWorldTransform'", nullptr); - return 0; - } - auto&& ret = cobj->getNodeToWorldTransform(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToWorldTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToWorldTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getPosition3D(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPosition3D'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPosition3D'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition3D(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPosition3D",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPosition3D'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeFromParentAndCleanup'.",&tolua_err); #endif return 0; @@ -6389,7 +7431,7 @@ int lua_ax_base_Node_removeChild(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_convertToWorldSpace(lua_State* tolua_S) +int lua_ax_base_Node_removeChildByTag(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -6409,7 +7451,7 @@ int lua_ax_base_Node_convertToWorldSpace(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToWorldSpace'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeChildByTag'", nullptr); return 0; } #endif @@ -6417,24 +7459,715 @@ int lua_ax_base_Node_convertToWorldSpace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Vec2 arg0; + int arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToWorldSpace"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:removeChildByTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToWorldSpace'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByTag'", nullptr); return 0; } - auto&& ret = cobj->convertToWorldSpace(arg0); - vec2_to_luaval(tolua_S, ret); + cobj->removeChildByTag(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToWorldSpace",argc, 1); + if (argc == 2) + { + int arg0; + bool arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:removeChildByTag"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Node:removeChildByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByTag'", nullptr); + return 0; + } + cobj->removeChildByTag(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeChildByTag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToWorldSpace'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeChildByTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_removeChildByName(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeChildByName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:removeChildByName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByName'", nullptr); + return 0; + } + cobj->removeChildByName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + bool arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:removeChildByName"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Node:removeChildByName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByName'", nullptr); + return 0; + } + cobj->removeChildByName(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeChildByName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeChildByName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeAllChildrenWithCleanup'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + bool arg0; + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:removeAllChildrenWithCleanup"); + + if (!ok) { break; } + cobj->removeAllChildrenWithCleanup(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->removeAllChildren(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeAllChildren",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeAllChildrenWithCleanup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_reorderChild(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_reorderChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Node* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:reorderChild"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Node:reorderChild"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_reorderChild'", nullptr); + return 0; + } + cobj->reorderChild(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:reorderChild",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_reorderChild'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_sortAllChildren(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_sortAllChildren'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_sortAllChildren'", nullptr); + return 0; + } + cobj->sortAllChildren(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:sortAllChildren",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_sortAllChildren'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getTag'", nullptr); + return 0; + } + auto&& ret = cobj->getTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getTag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:setTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setTag'", nullptr); + return 0; + } + cobj->setTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getName(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getName'", nullptr); + return 0; + } + auto&& ret = cobj->getName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setName(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:setName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setName'", nullptr); + return 0; + } + cobj->setName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setUserObject(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setUserObject'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Ref* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Ref",&arg0, "ax.Node:setUserObject"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setUserObject'", nullptr); + return 0; + } + cobj->setUserObject(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setUserObject",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setUserObject'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isRunning(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isRunning'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isRunning'", nullptr); + return 0; + } + auto&& ret = cobj->isRunning(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isRunning",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isRunning'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_cleanup(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_cleanup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_cleanup'", nullptr); + return 0; + } + cobj->cleanup(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:cleanup",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_cleanup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_draw(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_draw'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + cobj->draw(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + ax::Renderer* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Renderer",&arg0, "ax.Node:draw"); + + if (!ok) { break; } + ax::Mat4 arg1; + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Node:draw"); + + if (!ok) { break; } + unsigned int arg2; + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Node:draw"); + + if (!ok) { break; } + cobj->draw(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:draw",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_draw'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_visit(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_visit'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + cobj->visit(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + ax::Renderer* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Renderer",&arg0, "ax.Node:visit"); + + if (!ok) { break; } + ax::Mat4 arg1; + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Node:visit"); + + if (!ok) { break; } + unsigned int arg2; + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Node:visit"); + + if (!ok) { break; } + cobj->visit(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:visit",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_visit'.",&tolua_err); #endif return 0; @@ -6486,6 +8219,103 @@ int lua_ax_base_Node_getScene(lua_State* tolua_S) return 0; } +int lua_ax_base_Node_getBoundingBox(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getBoundingBox'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getBoundingBox'", nullptr); + return 0; + } + auto&& ret = cobj->getBoundingBox(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getBoundingBox",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getBoundingBox'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setEventDispatcher(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setEventDispatcher'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::EventDispatcher* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.EventDispatcher",&arg0, "ax.Node:setEventDispatcher"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setEventDispatcher'", nullptr); + return 0; + } + cobj->setEventDispatcher(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setEventDispatcher",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setEventDispatcher'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Node_getEventDispatcher(lua_State* tolua_S) { int argc = 0; @@ -6533,7 +8363,7 @@ int lua_ax_base_Node_getEventDispatcher(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_setSkewX(lua_State* tolua_S) +int lua_ax_base_Node_setActionManager(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -6553,7 +8383,7 @@ int lua_ax_base_Node_setSkewX(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setSkewX'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setActionManager'", nullptr); return 0; } #endif @@ -6561,29 +8391,76 @@ int lua_ax_base_Node_setSkewX(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::ActionManager* arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setSkewX"); + ok &= luaval_to_object(tolua_S, 2, "ax.ActionManager",&arg0, "ax.Node:setActionManager"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setSkewX'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setActionManager'", nullptr); return 0; } - cobj->setSkewX(arg0); + cobj->setActionManager(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setSkewX",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setActionManager",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setSkewX'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setActionManager'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_setSkewY(lua_State* tolua_S) +int lua_ax_base_Node_getActionManager(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getActionManager'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + const ax::ActionManager* ret = cobj->getActionManager(); + object_to_luaval(tolua_S, "ax.ActionManager",(ax::ActionManager*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + ax::ActionManager* ret = cobj->getActionManager(); + object_to_luaval(tolua_S, "ax.ActionManager",(ax::ActionManager*)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getActionManager",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getActionManager'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_runAction(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -6603,7 +8480,692 @@ int lua_ax_base_Node_setSkewY(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setSkewY'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_runAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Action* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.Node:runAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_runAction'", nullptr); + return 0; + } + auto&& ret = cobj->runAction(arg0); + object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:runAction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_runAction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_stopAllActions(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopAllActions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopAllActions'", nullptr); + return 0; + } + cobj->stopAllActions(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopAllActions",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopAllActions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_stopAction(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Action* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.Node:stopAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopAction'", nullptr); + return 0; + } + cobj->stopAction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopAction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopAction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_stopActionByTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopActionByTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:stopActionByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopActionByTag'", nullptr); + return 0; + } + cobj->stopActionByTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopActionByTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopActionByTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_stopAllActionsByTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopAllActionsByTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:stopAllActionsByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopAllActionsByTag'", nullptr); + return 0; + } + cobj->stopAllActionsByTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopAllActionsByTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopAllActionsByTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_stopActionsByFlags(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopActionsByFlags'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Node:stopActionsByFlags"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopActionsByFlags'", nullptr); + return 0; + } + cobj->stopActionsByFlags(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopActionsByFlags",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopActionsByFlags'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getActionByTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getActionByTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:getActionByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getActionByTag'", nullptr); + return 0; + } + auto&& ret = cobj->getActionByTag(arg0); + object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getActionByTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getActionByTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNumberOfRunningActions(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNumberOfRunningActions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNumberOfRunningActions'", nullptr); + return 0; + } + auto&& ret = cobj->getNumberOfRunningActions(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNumberOfRunningActions",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNumberOfRunningActions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNumberOfRunningActionsByTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNumberOfRunningActionsByTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:getNumberOfRunningActionsByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNumberOfRunningActionsByTag'", nullptr); + return 0; + } + auto&& ret = cobj->getNumberOfRunningActionsByTag(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNumberOfRunningActionsByTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNumberOfRunningActionsByTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setScheduler(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScheduler'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Scheduler* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Scheduler",&arg0, "ax.Node:setScheduler"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScheduler'", nullptr); + return 0; + } + cobj->setScheduler(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScheduler",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScheduler'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getScheduler(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScheduler'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + const ax::Scheduler* ret = cobj->getScheduler(); + object_to_luaval(tolua_S, "ax.Scheduler",(ax::Scheduler*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + ax::Scheduler* ret = cobj->getScheduler(); + object_to_luaval(tolua_S, "ax.Scheduler",(ax::Scheduler*)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScheduler",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScheduler'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isScheduled(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isScheduled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:isScheduled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isScheduled'", nullptr); + return 0; + } + auto&& ret = cobj->isScheduled(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isScheduled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isScheduled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_resume(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_resume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_resume'", nullptr); + return 0; + } + cobj->resume(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:resume",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_resume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_pause(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_pause'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_pause'", nullptr); + return 0; + } + cobj->pause(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:pause",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_pause'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_update(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_update'", nullptr); return 0; } #endif @@ -6613,22 +9175,1731 @@ int lua_ax_base_Node_setSkewY(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setSkewY"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:update"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setSkewY'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_update'", nullptr); return 0; } - cobj->setSkewY(arg0); + cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setSkewY",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:update",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setSkewY'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_update'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_updateTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateTransform'", nullptr); + return 0; + } + cobj->updateTransform(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNodeToParentTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToParentTransform'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:getNodeToParentTransform"); + + if (!ok) { break; } + ax::Mat4 ret = cobj->getNodeToParentTransform(arg0); + mat4_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::Mat4& ret = cobj->getNodeToParentTransform(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToParentTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToParentTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNodeToParentAffineTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToParentAffineTransform'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:getNodeToParentAffineTransform"); + + if (!ok) { break; } + ax::AffineTransform ret = cobj->getNodeToParentAffineTransform(arg0); + affinetransform_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + ax::AffineTransform ret = cobj->getNodeToParentAffineTransform(); + affinetransform_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToParentAffineTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToParentAffineTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setNodeToParentTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setNodeToParentTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Mat4 arg0; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Node:setNodeToParentTransform"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setNodeToParentTransform'", nullptr); + return 0; + } + cobj->setNodeToParentTransform(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setNodeToParentTransform",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setNodeToParentTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getParentToNodeTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getParentToNodeTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getParentToNodeTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getParentToNodeTransform(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getParentToNodeTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getParentToNodeTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getParentToNodeAffineTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getParentToNodeAffineTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getParentToNodeAffineTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getParentToNodeAffineTransform(); + affinetransform_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getParentToNodeAffineTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getParentToNodeAffineTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNodeToWorldTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToWorldTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNodeToWorldTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getNodeToWorldTransform(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToWorldTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToWorldTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToWorldAffineTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNodeToWorldAffineTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getNodeToWorldAffineTransform(); + affinetransform_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToWorldAffineTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToWorldAffineTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getWorldToNodeTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getWorldToNodeTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getWorldToNodeTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getWorldToNodeTransform(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getWorldToNodeTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getWorldToNodeTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getWorldToNodeAffineTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getWorldToNodeAffineTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getWorldToNodeAffineTransform(); + affinetransform_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getWorldToNodeAffineTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getWorldToNodeAffineTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_convertToNodeSpace(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToNodeSpace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToNodeSpace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToNodeSpace'", nullptr); + return 0; + } + auto&& ret = cobj->convertToNodeSpace(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToNodeSpace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToNodeSpace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_convertToWorldSpace(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToWorldSpace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToWorldSpace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToWorldSpace'", nullptr); + return 0; + } + auto&& ret = cobj->convertToWorldSpace(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToWorldSpace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToWorldSpace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_convertToNodeSpaceAR(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToNodeSpaceAR'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToNodeSpaceAR"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToNodeSpaceAR'", nullptr); + return 0; + } + auto&& ret = cobj->convertToNodeSpaceAR(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToNodeSpaceAR",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToNodeSpaceAR'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_convertToWorldSpaceAR(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToWorldSpaceAR'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToWorldSpaceAR"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToWorldSpaceAR'", nullptr); + return 0; + } + auto&& ret = cobj->convertToWorldSpaceAR(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToWorldSpaceAR",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToWorldSpaceAR'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_convertTouchToNodeSpace(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertTouchToNodeSpace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Touch* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Touch",&arg0, "ax.Node:convertTouchToNodeSpace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertTouchToNodeSpace'", nullptr); + return 0; + } + auto&& ret = cobj->convertTouchToNodeSpace(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertTouchToNodeSpace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertTouchToNodeSpace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertTouchToNodeSpaceAR'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Touch* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Touch",&arg0, "ax.Node:convertTouchToNodeSpaceAR"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertTouchToNodeSpaceAR'", nullptr); + return 0; + } + auto&& ret = cobj->convertTouchToNodeSpaceAR(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertTouchToNodeSpaceAR",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertTouchToNodeSpaceAR'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getWorldPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getWorldPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getWorldPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getWorldPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getWorldPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getWorldPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getComponent(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getComponent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:getComponent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getComponent'", nullptr); + return 0; + } + auto&& ret = cobj->getComponent(arg0); + object_to_luaval(tolua_S, "ax.Component",(ax::Component*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getComponent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getComponent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_addComponent(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_addComponent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Component* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Component",&arg0, "ax.Node:addComponent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_addComponent'", nullptr); + return 0; + } + auto&& ret = cobj->addComponent(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:addComponent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_addComponent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_removeComponent(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeComponent'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Component* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Component",&arg0, "ax.Node:removeComponent"); + + if (!ok) { break; } + bool ret = cobj->removeComponent(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:removeComponent"); + + if (!ok) { break; } + bool ret = cobj->removeComponent(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeComponent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeComponent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_removeAllComponents(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeAllComponents'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeAllComponents'", nullptr); + return 0; + } + cobj->removeAllComponents(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeAllComponents",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeAllComponents'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getDisplayedOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getDisplayedOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getDisplayedOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getDisplayedOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getDisplayedOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getDisplayedOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "ax.Node:setOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOpacity'", nullptr); + return 0; + } + cobj->setOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_updateDisplayedOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateDisplayedOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "ax.Node:updateDisplayedOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateDisplayedOpacity'", nullptr); + return 0; + } + cobj->updateDisplayedOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateDisplayedOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateDisplayedOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isCascadeOpacityEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isCascadeOpacityEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isCascadeOpacityEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isCascadeOpacityEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isCascadeOpacityEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isCascadeOpacityEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setCascadeOpacityEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setCascadeOpacityEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setCascadeOpacityEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCascadeOpacityEnabled'", nullptr); + return 0; + } + cobj->setCascadeOpacityEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setCascadeOpacityEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setCascadeOpacityEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getColor'", nullptr); + return 0; + } + auto&& ret = cobj->getColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getDisplayedColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getDisplayedColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getDisplayedColor'", nullptr); + return 0; + } + auto&& ret = cobj->getDisplayedColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getDisplayedColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getDisplayedColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.Node:setColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setColor'", nullptr); + return 0; + } + cobj->setColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_updateDisplayedColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateDisplayedColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.Node:updateDisplayedColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateDisplayedColor'", nullptr); + return 0; + } + cobj->updateDisplayedColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateDisplayedColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateDisplayedColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isCascadeColorEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isCascadeColorEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isCascadeColorEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isCascadeColorEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isCascadeColorEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isCascadeColorEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setCascadeColorEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setCascadeColorEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setCascadeColorEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCascadeColorEnabled'", nullptr); + return 0; + } + cobj->setCascadeColorEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setCascadeColorEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setCascadeColorEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setOpacityModifyRGB(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOpacityModifyRGB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setOpacityModifyRGB"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOpacityModifyRGB'", nullptr); + return 0; + } + cobj->setOpacityModifyRGB(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOpacityModifyRGB",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOpacityModifyRGB'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_isOpacityModifyRGB(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isOpacityModifyRGB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isOpacityModifyRGB'", nullptr); + return 0; + } + auto&& ret = cobj->isOpacityModifyRGB(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isOpacityModifyRGB",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isOpacityModifyRGB'.",&tolua_err); #endif return 0; @@ -6687,7 +10958,7 @@ int lua_ax_base_Node_setOnEnterCallback(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_stopActionsByFlags(lua_State* tolua_S) +int lua_ax_base_Node_setOnExitCallback(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -6707,7 +10978,7 @@ int lua_ax_base_Node_stopActionsByFlags(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopActionsByFlags'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOnExitCallback'", nullptr); return 0; } #endif @@ -6715,175 +10986,28 @@ int lua_ax_base_Node_stopActionsByFlags(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - unsigned int arg0; + std::function arg0; - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Node:stopActionsByFlags"); + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopActionsByFlags'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOnExitCallback'", nullptr); return 0; } - cobj->stopActionsByFlags(arg0); + cobj->setOnExitCallback(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopActionsByFlags",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOnExitCallback",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopActionsByFlags'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setNormalizedPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setNormalizedPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:setNormalizedPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setNormalizedPosition'", nullptr); - return 0; - } - cobj->setNormalizedPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setNormalizedPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setNormalizedPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_convertTouchToNodeSpace(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertTouchToNodeSpace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Touch* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Touch",&arg0, "ax.Node:convertTouchToNodeSpace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertTouchToNodeSpace'", nullptr); - return 0; - } - auto&& ret = cobj->convertTouchToNodeSpace(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertTouchToNodeSpace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertTouchToNodeSpace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeAllChildrenWithCleanup'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:removeAllChildrenWithCleanup"); - - if (!ok) { break; } - cobj->removeAllChildrenWithCleanup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->removeAllChildren(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeAllChildren",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeAllChildrenWithCleanup'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOnExitCallback'.",&tolua_err); #endif return 0; @@ -6942,6 +11066,318 @@ int lua_ax_base_Node_setOnEnterTransitionDidFinishCallback(lua_State* tolua_S) return 0; } +int lua_ax_base_Node_getOnEnterTransitionDidFinishCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getOnEnterTransitionDidFinishCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getOnEnterTransitionDidFinishCallback'", nullptr); + return 0; + } + auto&& ret = cobj->getOnEnterTransitionDidFinishCallback(); + #pragma warning NO CONVERSION FROM NATIVE FOR std::function; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getOnEnterTransitionDidFinishCallback",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getOnEnterTransitionDidFinishCallback'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setOnExitTransitionDidStartCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOnExitTransitionDidStartCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOnExitTransitionDidStartCallback'", nullptr); + return 0; + } + cobj->setOnExitTransitionDidStartCallback(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOnExitTransitionDidStartCallback",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOnExitTransitionDidStartCallback'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getOnExitTransitionDidStartCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getOnExitTransitionDidStartCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getOnExitTransitionDidStartCallback'", nullptr); + return 0; + } + auto&& ret = cobj->getOnExitTransitionDidStartCallback(); + #pragma warning NO CONVERSION FROM NATIVE FOR std::function; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getOnExitTransitionDidStartCallback",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getOnExitTransitionDidStartCallback'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_getCameraMask(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getCameraMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getCameraMask'", nullptr); + return 0; + } + auto&& ret = cobj->getCameraMask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getCameraMask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getCameraMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_setCameraMask(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setCameraMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned short arg0; + + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.Node:setCameraMask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCameraMask'", nullptr); + return 0; + } + cobj->setCameraMask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + unsigned short arg0; + bool arg1; + + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.Node:setCameraMask"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Node:setCameraMask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCameraMask'", nullptr); + return 0; + } + cobj->setCameraMask(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setCameraMask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setCameraMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Node_applyMaskOnEnter(lua_State* tolua_S) +{ + int argc = 0; + ax::Node* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_applyMaskOnEnter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:applyMaskOnEnter"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_applyMaskOnEnter'", nullptr); + return 0; + } + cobj->applyMaskOnEnter(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:applyMaskOnEnter",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_applyMaskOnEnter'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Node_setProgramState(lua_State* tolua_S) { int argc = 0; @@ -7013,58 +11449,7 @@ int lua_ax_base_Node_setProgramState(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_getNodeToParentAffineTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToParentAffineTransform'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:getNodeToParentAffineTransform"); - - if (!ok) { break; } - ax::AffineTransform ret = cobj->getNodeToParentAffineTransform(arg0); - affinetransform_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - ax::AffineTransform ret = cobj->getNodeToParentAffineTransform(); - affinetransform_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToParentAffineTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToParentAffineTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isCascadeOpacityEnabled(lua_State* tolua_S) +int lua_ax_base_Node_setProgramStateWithRegistry(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -7084,699 +11469,7 @@ int lua_ax_base_Node_isCascadeOpacityEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isCascadeOpacityEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isCascadeOpacityEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isCascadeOpacityEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isCascadeOpacityEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isCascadeOpacityEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setParent(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setParent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:setParent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setParent'", nullptr); - return 0; - } - cobj->setParent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setParent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setParent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getName(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getName'", nullptr); - return 0; - } - auto&& ret = cobj->getName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_resume(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_resume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_resume'", nullptr); - return 0; - } - cobj->resume(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:resume",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_resume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getRotation3D(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotation3D'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotation3D'", nullptr); - return 0; - } - auto&& ret = cobj->getRotation3D(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotation3D",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotation3D'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getNodeToParentTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNodeToParentTransform'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:getNodeToParentTransform"); - - if (!ok) { break; } - ax::Mat4 ret = cobj->getNodeToParentTransform(arg0); - mat4_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::Mat4& ret = cobj->getNodeToParentTransform(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNodeToParentTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNodeToParentTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertTouchToNodeSpaceAR'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Touch* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Touch",&arg0, "ax.Node:convertTouchToNodeSpaceAR"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertTouchToNodeSpaceAR'", nullptr); - return 0; - } - auto&& ret = cobj->convertTouchToNodeSpaceAR(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertTouchToNodeSpaceAR",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertTouchToNodeSpaceAR'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_convertToNodeSpace(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToNodeSpace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToNodeSpace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToNodeSpace'", nullptr); - return 0; - } - auto&& ret = cobj->convertToNodeSpace(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToNodeSpace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToNodeSpace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setPositionNormalized(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionNormalized'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:setPositionNormalized"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionNormalized'", nullptr); - return 0; - } - cobj->setPositionNormalized(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionNormalized",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionNormalized'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_pause(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_pause'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_pause'", nullptr); - return 0; - } - cobj->pause(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:pause",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_pause'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_applyMaskOnEnter(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_applyMaskOnEnter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:applyMaskOnEnter"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_applyMaskOnEnter'", nullptr); - return 0; - } - cobj->applyMaskOnEnter(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:applyMaskOnEnter",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_applyMaskOnEnter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isOpacityModifyRGB(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isOpacityModifyRGB'", nullptr); - return 0; - } - auto&& ret = cobj->isOpacityModifyRGB(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isOpacityModifyRGB",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPosition'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPosition"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Node:setPosition"); - - if (!ok) { break; } - cobj->setPosition(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:setPosition"); - - if (!ok) { break; } - cobj->setPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_stopActionByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopActionByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:stopActionByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopActionByTag'", nullptr); - return 0; - } - cobj->stopActionByTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopActionByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopActionByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_reorderChild(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_reorderChild'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setProgramStateWithRegistry'", nullptr); return 0; } #endif @@ -7784,32 +11477,32 @@ int lua_ax_base_Node_reorderChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - ax::Node* arg0; - int arg1; + unsigned int arg0; + ax::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Node:reorderChild"); + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Node:setProgramStateWithRegistry"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Node:reorderChild"); + ok &= luaval_to_object(tolua_S, 3, "ax.Texture2D",&arg1, "ax.Node:setProgramStateWithRegistry"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_reorderChild'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setProgramStateWithRegistry'", nullptr); return 0; } - cobj->reorderChild(arg0, arg1); + cobj->setProgramStateWithRegistry(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:reorderChild",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setProgramStateWithRegistry",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_reorderChild'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setProgramStateWithRegistry'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_setPositionZ(lua_State* tolua_S) +int lua_ax_base_Node_getProgramState(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -7829,207 +11522,7 @@ int lua_ax_base_Node_setPositionZ(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionZ'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPositionZ"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionZ'", nullptr); - return 0; - } - cobj->setPositionZ(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionZ",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionZ'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setRotation3D(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setRotation3D'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Node:setRotation3D"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setRotation3D'", nullptr); - return 0; - } - cobj->setRotation3D(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setRotation3D",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setRotation3D'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setPositionX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPositionX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionX'", nullptr); - return 0; - } - cobj->setPositionX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setNodeToParentTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setNodeToParentTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Mat4 arg0; - - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Node:setNodeToParentTransform"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setNodeToParentTransform'", nullptr); - return 0; - } - cobj->setNodeToParentTransform(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setNodeToParentTransform",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setNodeToParentTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getAnchorPoint(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getAnchorPoint'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getProgramState'", nullptr); return 0; } #endif @@ -8039,24 +11532,24 @@ int lua_ax_base_Node_getAnchorPoint(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getAnchorPoint'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getProgramState'", nullptr); return 0; } - auto&& ret = cobj->getAnchorPoint(); - vec2_to_luaval(tolua_S, ret); + auto&& ret = cobj->getProgramState(); + object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getAnchorPoint",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getProgramState",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getAnchorPoint'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getProgramState'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_getNumberOfRunningActions(lua_State* tolua_S) +int lua_ax_base_Node_updateProgramStateTexture(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -8076,587 +11569,32 @@ int lua_ax_base_Node_getNumberOfRunningActions(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNumberOfRunningActions'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateProgramStateTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Node:updateProgramStateTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNumberOfRunningActions'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateProgramStateTexture'", nullptr); return 0; } - auto&& ret = cobj->getNumberOfRunningActions(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNumberOfRunningActions",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNumberOfRunningActions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_updateTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateTransform'", nullptr); - return 0; - } - cobj->updateTransform(); + cobj->updateProgramStateTexture(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateTransform",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateProgramStateTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isVisible(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isVisible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isVisible'", nullptr); - return 0; - } - auto&& ret = cobj->isVisible(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isVisible",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isVisible'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getChildrenCount(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getChildrenCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getChildrenCount'", nullptr); - return 0; - } - auto&& ret = cobj->getChildrenCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getChildrenCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getChildrenCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_convertToNodeSpaceAR(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_convertToNodeSpaceAR'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:convertToNodeSpaceAR"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_convertToNodeSpaceAR'", nullptr); - return 0; - } - auto&& ret = cobj->convertToNodeSpaceAR(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:convertToNodeSpaceAR",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_convertToNodeSpaceAR'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_addComponent(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_addComponent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Component* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Component",&arg0, "ax.Node:addComponent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_addComponent'", nullptr); - return 0; - } - auto&& ret = cobj->addComponent(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:addComponent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_addComponent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_runAction(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_runAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Action* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.Node:runAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_runAction'", nullptr); - return 0; - } - auto&& ret = cobj->runAction(arg0); - object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:runAction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_runAction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_visit(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_visit'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - cobj->visit(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - ax::Renderer* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Renderer",&arg0, "ax.Node:visit"); - - if (!ok) { break; } - ax::Mat4 arg1; - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Node:visit"); - - if (!ok) { break; } - unsigned int arg2; - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Node:visit"); - - if (!ok) { break; } - cobj->visit(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:visit",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_visit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getRotation(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotation'", nullptr); - return 0; - } - auto&& ret = cobj->getRotation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getPhysicsBody(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPhysicsBody'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPhysicsBody'", nullptr); - return 0; - } - auto&& ret = cobj->getPhysicsBody(); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPhysicsBody",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPhysicsBody'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getAnchorPointInPoints(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getAnchorPointInPoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getAnchorPointInPoints'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorPointInPoints(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getAnchorPointInPoints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getAnchorPointInPoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_removeChildByName(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeChildByName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:removeChildByName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByName'", nullptr); - return 0; - } - cobj->removeChildByName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - bool arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:removeChildByName"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Node:removeChildByName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByName'", nullptr); - return 0; - } - cobj->removeChildByName(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeChildByName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeChildByName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateProgramStateTexture'.",&tolua_err); #endif return 0; @@ -8714,7 +11652,7 @@ int lua_ax_base_Node_resetChild(lua_State* tolua_S) return 0; } -int lua_ax_base_Node_setScheduler(lua_State* tolua_S) +int lua_ax_base_Node_init(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -8734,57 +11672,7 @@ int lua_ax_base_Node_setScheduler(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScheduler'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Scheduler* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Scheduler",&arg0, "ax.Node:setScheduler"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setScheduler'", nullptr); - return 0; - } - cobj->setScheduler(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScheduler",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScheduler'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_stopAllActions(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopAllActions'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_init'", nullptr); return 0; } #endif @@ -8794,741 +11682,24 @@ int lua_ax_base_Node_stopAllActions(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopAllActions'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_init'", nullptr); return 0; } - cobj->stopAllActions(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopAllActions",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopAllActions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getSkewX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getSkewX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getSkewX'", nullptr); - return 0; - } - auto&& ret = cobj->getSkewX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getSkewX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getSkewX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getSkewY(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getSkewY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getSkewY'", nullptr); - return 0; - } - auto&& ret = cobj->getSkewY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getSkewY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getSkewY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getOnEnterTransitionDidFinishCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getOnEnterTransitionDidFinishCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getOnEnterTransitionDidFinishCallback'", nullptr); - return 0; - } - auto&& ret = cobj->getOnEnterTransitionDidFinishCallback(); - #pragma warning NO CONVERSION FROM NATIVE FOR std::function; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getOnEnterTransitionDidFinishCallback",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getOnEnterTransitionDidFinishCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getDisplayedColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getDisplayedColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getDisplayedColor'", nullptr); - return 0; - } - auto&& ret = cobj->getDisplayedColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getDisplayedColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getDisplayedColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getActionByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getActionByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:getActionByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getActionByTag'", nullptr); - return 0; - } - auto&& ret = cobj->getActionByTag(arg0); - object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getActionByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getActionByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setName(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:setName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setName'", nullptr); - return 0; - } - cobj->setName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_update(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_update'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:update"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_update'", nullptr); - return 0; - } - cobj->update(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:update",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_update'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getDisplayedOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getDisplayedOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getDisplayedOpacity'", nullptr); - return 0; - } - auto&& ret = cobj->getDisplayedOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getDisplayedOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getDisplayedOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getLocalZOrder(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getLocalZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getLocalZOrder'", nullptr); - return 0; - } - auto&& ret = cobj->getLocalZOrder(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getLocalZOrder",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getLocalZOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getScheduler(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScheduler'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - const ax::Scheduler* ret = cobj->getScheduler(); - object_to_luaval(tolua_S, "ax.Scheduler",(ax::Scheduler*)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - ax::Scheduler* ret = cobj->getScheduler(); - object_to_luaval(tolua_S, "ax.Scheduler",(ax::Scheduler*)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScheduler",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScheduler'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getParentToNodeAffineTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getParentToNodeAffineTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getParentToNodeAffineTransform'", nullptr); - return 0; - } - auto&& ret = cobj->getParentToNodeAffineTransform(); - affinetransform_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getParentToNodeAffineTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getParentToNodeAffineTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getPositionNormalized(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionNormalized'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionNormalized'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionNormalized(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionNormalized",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionNormalized'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.Node:setColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setColor'", nullptr); - return 0; - } - cobj->setColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isRunning(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isRunning'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isRunning'", nullptr); - return 0; - } - auto&& ret = cobj->isRunning(); + auto&& ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isRunning",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isRunning'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_init'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_getParent(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getParent'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - const ax::Node* ret = cobj->getParent(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - ax::Node* ret = cobj->getParent(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getParent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getParent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getPositionZ(lua_State* tolua_S) +int lua_ax_base_Node_initLayer(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -9548,7 +11719,7 @@ int lua_ax_base_Node_getPositionZ(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionZ'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_initLayer'", nullptr); return 0; } #endif @@ -9558,235 +11729,24 @@ int lua_ax_base_Node_getPositionZ(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionZ'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_initLayer'", nullptr); return 0; } - auto&& ret = cobj->getPositionZ(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionZ",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionZ'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getPositionY(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionY'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getPositionX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPositionX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPositionX'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPositionX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPositionX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_removeChildByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeChildByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:removeChildByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByTag'", nullptr); - return 0; - } - cobj->removeChildByTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - int arg0; - bool arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:removeChildByTag"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Node:removeChildByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_removeChildByTag'", nullptr); - return 0; - } - cobj->removeChildByTag(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeChildByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeChildByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_hitTest(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_hitTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Node:hitTest"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_hitTest'", nullptr); - return 0; - } - auto&& ret = cobj->hitTest(arg0); + auto&& ret = cobj->initLayer(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:hitTest",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:initLayer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_hitTest'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_initLayer'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_setPositionY(lua_State* tolua_S) +int lua_ax_base_Node_setPhysicsBody(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -9806,7 +11766,7 @@ int lua_ax_base_Node_setPositionY(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPositionY'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPhysicsBody'", nullptr); return 0; } #endif @@ -9814,29 +11774,29 @@ int lua_ax_base_Node_setPositionY(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::PhysicsBody* arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setPositionY"); + ok &= luaval_to_object(tolua_S, 2, "ax.PhysicsBody",&arg0, "ax.Node:setPhysicsBody"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPositionY'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPhysicsBody'", nullptr); return 0; } - cobj->setPositionY(arg0); + cobj->setPhysicsBody(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPositionY",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPhysicsBody",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPositionY'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPhysicsBody'.",&tolua_err); #endif return 0; } -int lua_ax_base_Node_updateDisplayedColor(lua_State* tolua_S) +int lua_ax_base_Node_getPhysicsBody(lua_State* tolua_S) { int argc = 0; ax::Node* cobj = nullptr; @@ -9856,107 +11816,7 @@ int lua_ax_base_Node_updateDisplayedColor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateDisplayedColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.Node:updateDisplayedColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateDisplayedColor'", nullptr); - return 0; - } - cobj->updateDisplayedColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateDisplayedColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateDisplayedColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setVisible(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setVisible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setVisible"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setVisible'", nullptr); - return 0; - } - cobj->setVisible(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setVisible",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setVisible'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getParentToNodeTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getParentToNodeTransform'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getPhysicsBody'", nullptr); return 0; } #endif @@ -9966,1979 +11826,19 @@ int lua_ax_base_Node_getParentToNodeTransform(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getParentToNodeTransform'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getPhysicsBody'", nullptr); return 0; } - auto&& ret = cobj->getParentToNodeTransform(); - mat4_to_luaval(tolua_S, ret); + auto&& ret = cobj->getPhysicsBody(); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getParentToNodeTransform",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getPhysicsBody",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getParentToNodeTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isScheduled(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isScheduled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:isScheduled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isScheduled'", nullptr); - return 0; - } - auto&& ret = cobj->isScheduled(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isScheduled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isScheduled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setGlobalZOrder(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setGlobalZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setGlobalZOrder"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setGlobalZOrder'", nullptr); - return 0; - } - cobj->setGlobalZOrder(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setGlobalZOrder",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setGlobalZOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setScale(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setScale'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScale"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Node:setScale"); - - if (!ok) { break; } - cobj->setScale(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Node:setScale"); - - if (!ok) { break; } - cobj->setScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setScale",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getChildByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getChildByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:getChildByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getChildByTag'", nullptr); - return 0; - } - auto&& ret = cobj->getChildByTag(arg0); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getChildByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getChildByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getWorldPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getWorldPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getWorldPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getWorldPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getWorldPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getWorldPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getScaleZ(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScaleZ'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScaleZ'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleZ(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScaleZ",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScaleZ'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getScaleY(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScaleY'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScaleY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScaleY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getScaleX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScaleX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScaleX'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScaleX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScaleX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setLocalZOrder(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setLocalZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:setLocalZOrder"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setLocalZOrder'", nullptr); - return 0; - } - cobj->setLocalZOrder(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setLocalZOrder",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setLocalZOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getWorldToNodeAffineTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getWorldToNodeAffineTransform'", nullptr); - return 0; - } - auto&& ret = cobj->getWorldToNodeAffineTransform(); - affinetransform_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getWorldToNodeAffineTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getWorldToNodeAffineTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setCascadeColorEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setCascadeColorEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setCascadeColorEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setCascadeColorEnabled'", nullptr); - return 0; - } - cobj->setCascadeColorEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setCascadeColorEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setCascadeColorEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - uint16_t arg0; - - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "ax.Node:setOpacity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOpacity'", nullptr); - return 0; - } - cobj->setOpacity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOpacity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_cleanup(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_cleanup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_cleanup'", nullptr); - return 0; - } - cobj->cleanup(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:cleanup",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_cleanup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getComponent(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getComponent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Node:getComponent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getComponent'", nullptr); - return 0; - } - auto&& ret = cobj->getComponent(arg0); - object_to_luaval(tolua_S, "ax.Component",(ax::Component*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getComponent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getComponent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getContentSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getContentSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getContentSize'", nullptr); - return 0; - } - auto&& ret = cobj->getContentSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getContentSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getContentSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_stopAllActionsByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopAllActionsByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:stopAllActionsByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopAllActionsByTag'", nullptr); - return 0; - } - cobj->stopAllActionsByTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopAllActionsByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopAllActionsByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getColor'", nullptr); - return 0; - } - auto&& ret = cobj->getColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getBoundingBox(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getBoundingBox'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getBoundingBox'", nullptr); - return 0; - } - auto&& ret = cobj->getBoundingBox(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getBoundingBox",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getBoundingBox'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setIgnoreAnchorPointForPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setIgnoreAnchorPointForPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:setIgnoreAnchorPointForPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setIgnoreAnchorPointForPosition'", nullptr); - return 0; - } - cobj->setIgnoreAnchorPointForPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setIgnoreAnchorPointForPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setIgnoreAnchorPointForPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setEventDispatcher(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setEventDispatcher'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::EventDispatcher* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.EventDispatcher",&arg0, "ax.Node:setEventDispatcher"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setEventDispatcher'", nullptr); - return 0; - } - cobj->setEventDispatcher(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setEventDispatcher",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setEventDispatcher'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getGlobalZOrder(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getGlobalZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getGlobalZOrder'", nullptr); - return 0; - } - auto&& ret = cobj->getGlobalZOrder(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getGlobalZOrder",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getGlobalZOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_draw(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_draw'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - cobj->draw(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - ax::Renderer* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Renderer",&arg0, "ax.Node:draw"); - - if (!ok) { break; } - ax::Mat4 arg1; - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Node:draw"); - - if (!ok) { break; } - unsigned int arg2; - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Node:draw"); - - if (!ok) { break; } - cobj->draw(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:draw",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_draw'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setUserObject(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setUserObject'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Ref* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Ref",&arg0, "ax.Node:setUserObject"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setUserObject'", nullptr); - return 0; - } - cobj->setUserObject(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setUserObject",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setUserObject'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_removeFromParentAndCleanup(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_removeFromParentAndCleanup'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Node:removeFromParentAndCleanup"); - - if (!ok) { break; } - cobj->removeFromParentAndCleanup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->removeFromParent(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:removeFromParent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_removeFromParentAndCleanup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setPosition3D(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setPosition3D'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Node:setPosition3D"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setPosition3D'", nullptr); - return 0; - } - cobj->setPosition3D(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setPosition3D",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setPosition3D'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getNumberOfRunningActionsByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNumberOfRunningActionsByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:getNumberOfRunningActionsByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNumberOfRunningActionsByTag'", nullptr); - return 0; - } - auto&& ret = cobj->getNumberOfRunningActionsByTag(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNumberOfRunningActionsByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNumberOfRunningActionsByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_sortAllChildren(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_sortAllChildren'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_sortAllChildren'", nullptr); - return 0; - } - cobj->sortAllChildren(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:sortAllChildren",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_sortAllChildren'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getProgramState(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getProgramState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getProgramState'", nullptr); - return 0; - } - auto&& ret = cobj->getProgramState(); - object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getProgramState",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getProgramState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getWorldToNodeTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getWorldToNodeTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getWorldToNodeTransform'", nullptr); - return 0; - } - auto&& ret = cobj->getWorldToNodeTransform(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getWorldToNodeTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getWorldToNodeTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getScale(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getScale'", nullptr); - return 0; - } - auto&& ret = cobj->getScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getOpacity'", nullptr); - return 0; - } - auto&& ret = cobj->getOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_updateOrderOfArrival(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_updateOrderOfArrival'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_updateOrderOfArrival'", nullptr); - return 0; - } - cobj->updateOrderOfArrival(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:updateOrderOfArrival",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_updateOrderOfArrival'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getNormalizedPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getNormalizedPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getNormalizedPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getNormalizedPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getNormalizedPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getNormalizedPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setOnExitTransitionDidStartCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setOnExitTransitionDidStartCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setOnExitTransitionDidStartCallback'", nullptr); - return 0; - } - cobj->setOnExitTransitionDidStartCallback(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setOnExitTransitionDidStartCallback",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setOnExitTransitionDidStartCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getRotationSkewX(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotationSkewX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotationSkewX'", nullptr); - return 0; - } - auto&& ret = cobj->getRotationSkewX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotationSkewX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotationSkewX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getRotationSkewY(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getRotationSkewY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_getRotationSkewY'", nullptr); - return 0; - } - auto&& ret = cobj->getRotationSkewY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getRotationSkewY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getRotationSkewY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_setTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_setTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Node:setTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setTag'", nullptr); - return 0; - } - cobj->setTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_isCascadeColorEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_isCascadeColorEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_isCascadeColorEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isCascadeColorEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:isCascadeColorEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_isCascadeColorEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_stopAction(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_stopAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Action* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.Node:stopAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_stopAction'", nullptr); - return 0; - } - cobj->stopAction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:stopAction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_stopAction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Node_getActionManager(lua_State* tolua_S) -{ - int argc = 0; - ax::Node* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Node",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Node*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Node_getActionManager'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - const ax::ActionManager* ret = cobj->getActionManager(); - object_to_luaval(tolua_S, "ax.ActionManager",(ax::ActionManager*)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - ax::ActionManager* ret = cobj->getActionManager(); - object_to_luaval(tolua_S, "ax.ActionManager",(ax::ActionManager*)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:getActionManager",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getActionManager'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_getPhysicsBody'.",&tolua_err); #endif return 0; @@ -12061,151 +11961,149 @@ int lua_register_ax_base_Node(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Node"); tolua_function(tolua_S,"new",lua_ax_base_Node_constructor); - tolua_function(tolua_S,"addChild",lua_ax_base_Node_addChild); - tolua_function(tolua_S,"removeComponent",lua_ax_base_Node_removeComponent); - tolua_function(tolua_S,"setPhysicsBody",lua_ax_base_Node_setPhysicsBody); - tolua_function(tolua_S,"getOnExitTransitionDidStartCallback",lua_ax_base_Node_getOnExitTransitionDidStartCallback); - tolua_function(tolua_S,"updateProgramStateTexture",lua_ax_base_Node_updateProgramStateTexture); tolua_function(tolua_S,"getDescription",lua_ax_base_Node_getDescription); - tolua_function(tolua_S,"setRotationSkewY",lua_ax_base_Node_setRotationSkewY); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_ax_base_Node_setOpacityModifyRGB); - tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_ax_base_Node_setCascadeOpacityEnabled); - tolua_function(tolua_S,"getChildren",lua_ax_base_Node_getChildren); - tolua_function(tolua_S,"setOnExitCallback",lua_ax_base_Node_setOnExitCallback); - tolua_function(tolua_S,"setActionManager",lua_ax_base_Node_setActionManager); - tolua_function(tolua_S,"convertToWorldSpaceAR",lua_ax_base_Node_convertToWorldSpaceAR); - tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_ax_base_Node_isIgnoreAnchorPointForPosition); - tolua_function(tolua_S,"getChildByName",lua_ax_base_Node_getChildByName); - tolua_function(tolua_S,"updateDisplayedOpacity",lua_ax_base_Node_updateDisplayedOpacity); - tolua_function(tolua_S,"init",lua_ax_base_Node_init); - tolua_function(tolua_S,"getCameraMask",lua_ax_base_Node_getCameraMask); - tolua_function(tolua_S,"setRotation",lua_ax_base_Node_setRotation); - tolua_function(tolua_S,"setScaleZ",lua_ax_base_Node_setScaleZ); - tolua_function(tolua_S,"setScaleY",lua_ax_base_Node_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_ax_base_Node_setScaleX); - tolua_function(tolua_S,"setRotationSkewX",lua_ax_base_Node_setRotationSkewX); - tolua_function(tolua_S,"removeAllComponents",lua_ax_base_Node_removeAllComponents); - tolua_function(tolua_S,"_setLocalZOrder",lua_ax_base_Node__setLocalZOrder); - tolua_function(tolua_S,"setCameraMask",lua_ax_base_Node_setCameraMask); - tolua_function(tolua_S,"getTag",lua_ax_base_Node_getTag); - tolua_function(tolua_S,"initLayer",lua_ax_base_Node_initLayer); - tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_ax_base_Node_getNodeToWorldAffineTransform); - tolua_function(tolua_S,"setProgramStateWithRegistry",lua_ax_base_Node_setProgramStateWithRegistry); - tolua_function(tolua_S,"getNodeToWorldTransform",lua_ax_base_Node_getNodeToWorldTransform); - tolua_function(tolua_S,"getPosition3D",lua_ax_base_Node_getPosition3D); - tolua_function(tolua_S,"removeChild",lua_ax_base_Node_removeChild); - tolua_function(tolua_S,"convertToWorldSpace",lua_ax_base_Node_convertToWorldSpace); - tolua_function(tolua_S,"getScene",lua_ax_base_Node_getScene); - tolua_function(tolua_S,"getEventDispatcher",lua_ax_base_Node_getEventDispatcher); - tolua_function(tolua_S,"setSkewX",lua_ax_base_Node_setSkewX); - tolua_function(tolua_S,"setSkewY",lua_ax_base_Node_setSkewY); - tolua_function(tolua_S,"setOnEnterCallback",lua_ax_base_Node_setOnEnterCallback); - tolua_function(tolua_S,"stopActionsByFlags",lua_ax_base_Node_stopActionsByFlags); - tolua_function(tolua_S,"setNormalizedPosition",lua_ax_base_Node_setNormalizedPosition); - tolua_function(tolua_S,"convertTouchToNodeSpace",lua_ax_base_Node_convertTouchToNodeSpace); - tolua_function(tolua_S,"removeAllChildren",lua_ax_base_Node_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"setOnEnterTransitionDidFinishCallback",lua_ax_base_Node_setOnEnterTransitionDidFinishCallback); - tolua_function(tolua_S,"setProgramState",lua_ax_base_Node_setProgramState); - tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_ax_base_Node_getNodeToParentAffineTransform); - tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_ax_base_Node_isCascadeOpacityEnabled); - tolua_function(tolua_S,"setParent",lua_ax_base_Node_setParent); - tolua_function(tolua_S,"getName",lua_ax_base_Node_getName); - tolua_function(tolua_S,"resume",lua_ax_base_Node_resume); - tolua_function(tolua_S,"getRotation3D",lua_ax_base_Node_getRotation3D); - tolua_function(tolua_S,"getNodeToParentTransform",lua_ax_base_Node_getNodeToParentTransform); - tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_ax_base_Node_convertTouchToNodeSpaceAR); - tolua_function(tolua_S,"convertToNodeSpace",lua_ax_base_Node_convertToNodeSpace); - tolua_function(tolua_S,"setPositionNormalized",lua_ax_base_Node_setPositionNormalized); - tolua_function(tolua_S,"pause",lua_ax_base_Node_pause); - tolua_function(tolua_S,"applyMaskOnEnter",lua_ax_base_Node_applyMaskOnEnter); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_ax_base_Node_isOpacityModifyRGB); - tolua_function(tolua_S,"setPosition",lua_ax_base_Node_setPosition); - tolua_function(tolua_S,"stopActionByTag",lua_ax_base_Node_stopActionByTag); - tolua_function(tolua_S,"reorderChild",lua_ax_base_Node_reorderChild); - tolua_function(tolua_S,"setPositionZ",lua_ax_base_Node_setPositionZ); - tolua_function(tolua_S,"setRotation3D",lua_ax_base_Node_setRotation3D); - tolua_function(tolua_S,"setPositionX",lua_ax_base_Node_setPositionX); - tolua_function(tolua_S,"setNodeToParentTransform",lua_ax_base_Node_setNodeToParentTransform); - tolua_function(tolua_S,"getAnchorPoint",lua_ax_base_Node_getAnchorPoint); - tolua_function(tolua_S,"getNumberOfRunningActions",lua_ax_base_Node_getNumberOfRunningActions); - tolua_function(tolua_S,"updateTransform",lua_ax_base_Node_updateTransform); - tolua_function(tolua_S,"isVisible",lua_ax_base_Node_isVisible); - tolua_function(tolua_S,"getChildrenCount",lua_ax_base_Node_getChildrenCount); - tolua_function(tolua_S,"convertToNodeSpaceAR",lua_ax_base_Node_convertToNodeSpaceAR); - tolua_function(tolua_S,"addComponent",lua_ax_base_Node_addComponent); - tolua_function(tolua_S,"runAction",lua_ax_base_Node_runAction); - tolua_function(tolua_S,"visit",lua_ax_base_Node_visit); - tolua_function(tolua_S,"getRotation",lua_ax_base_Node_getRotation); - tolua_function(tolua_S,"getPhysicsBody",lua_ax_base_Node_getPhysicsBody); - tolua_function(tolua_S,"getAnchorPointInPoints",lua_ax_base_Node_getAnchorPointInPoints); - tolua_function(tolua_S,"removeChildByName",lua_ax_base_Node_removeChildByName); - tolua_function(tolua_S,"resetChild",lua_ax_base_Node_resetChild); - tolua_function(tolua_S,"setScheduler",lua_ax_base_Node_setScheduler); - tolua_function(tolua_S,"stopAllActions",lua_ax_base_Node_stopAllActions); - tolua_function(tolua_S,"getSkewX",lua_ax_base_Node_getSkewX); - tolua_function(tolua_S,"getSkewY",lua_ax_base_Node_getSkewY); - tolua_function(tolua_S,"getOnEnterTransitionDidFinishCallback",lua_ax_base_Node_getOnEnterTransitionDidFinishCallback); - tolua_function(tolua_S,"getDisplayedColor",lua_ax_base_Node_getDisplayedColor); - tolua_function(tolua_S,"getActionByTag",lua_ax_base_Node_getActionByTag); - tolua_function(tolua_S,"setName",lua_ax_base_Node_setName); - tolua_function(tolua_S,"update",lua_ax_base_Node_update); - tolua_function(tolua_S,"getDisplayedOpacity",lua_ax_base_Node_getDisplayedOpacity); - tolua_function(tolua_S,"getLocalZOrder",lua_ax_base_Node_getLocalZOrder); - tolua_function(tolua_S,"getScheduler",lua_ax_base_Node_getScheduler); - tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_ax_base_Node_getParentToNodeAffineTransform); - tolua_function(tolua_S,"getPositionNormalized",lua_ax_base_Node_getPositionNormalized); - tolua_function(tolua_S,"setColor",lua_ax_base_Node_setColor); - tolua_function(tolua_S,"isRunning",lua_ax_base_Node_isRunning); - tolua_function(tolua_S,"getParent",lua_ax_base_Node_getParent); - tolua_function(tolua_S,"getPositionZ",lua_ax_base_Node_getPositionZ); - tolua_function(tolua_S,"getPositionY",lua_ax_base_Node_getPositionY); - tolua_function(tolua_S,"getPositionX",lua_ax_base_Node_getPositionX); - tolua_function(tolua_S,"removeChildByTag",lua_ax_base_Node_removeChildByTag); - tolua_function(tolua_S,"hitTest",lua_ax_base_Node_hitTest); - tolua_function(tolua_S,"setPositionY",lua_ax_base_Node_setPositionY); - tolua_function(tolua_S,"updateDisplayedColor",lua_ax_base_Node_updateDisplayedColor); - tolua_function(tolua_S,"setVisible",lua_ax_base_Node_setVisible); - tolua_function(tolua_S,"getParentToNodeTransform",lua_ax_base_Node_getParentToNodeTransform); - tolua_function(tolua_S,"isScheduled",lua_ax_base_Node_isScheduled); - tolua_function(tolua_S,"setGlobalZOrder",lua_ax_base_Node_setGlobalZOrder); - tolua_function(tolua_S,"setScale",lua_ax_base_Node_setScale); - tolua_function(tolua_S,"getChildByTag",lua_ax_base_Node_getChildByTag); - tolua_function(tolua_S,"getWorldPosition",lua_ax_base_Node_getWorldPosition); - tolua_function(tolua_S,"getScaleZ",lua_ax_base_Node_getScaleZ); - tolua_function(tolua_S,"getScaleY",lua_ax_base_Node_getScaleY); - tolua_function(tolua_S,"getScaleX",lua_ax_base_Node_getScaleX); - tolua_function(tolua_S,"setLocalZOrder",lua_ax_base_Node_setLocalZOrder); - tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_ax_base_Node_getWorldToNodeAffineTransform); - tolua_function(tolua_S,"setCascadeColorEnabled",lua_ax_base_Node_setCascadeColorEnabled); - tolua_function(tolua_S,"setOpacity",lua_ax_base_Node_setOpacity); - tolua_function(tolua_S,"cleanup",lua_ax_base_Node_cleanup); - tolua_function(tolua_S,"getComponent",lua_ax_base_Node_getComponent); - tolua_function(tolua_S,"getContentSize",lua_ax_base_Node_getContentSize); - tolua_function(tolua_S,"stopAllActionsByTag",lua_ax_base_Node_stopAllActionsByTag); - tolua_function(tolua_S,"getColor",lua_ax_base_Node_getColor); - tolua_function(tolua_S,"getBoundingBox",lua_ax_base_Node_getBoundingBox); - tolua_function(tolua_S,"setIgnoreAnchorPointForPosition",lua_ax_base_Node_setIgnoreAnchorPointForPosition); - tolua_function(tolua_S,"setEventDispatcher",lua_ax_base_Node_setEventDispatcher); - tolua_function(tolua_S,"getGlobalZOrder",lua_ax_base_Node_getGlobalZOrder); - tolua_function(tolua_S,"draw",lua_ax_base_Node_draw); - tolua_function(tolua_S,"setUserObject",lua_ax_base_Node_setUserObject); - tolua_function(tolua_S,"removeFromParent",lua_ax_base_Node_removeFromParentAndCleanup); - tolua_function(tolua_S,"setPosition3D",lua_ax_base_Node_setPosition3D); - tolua_function(tolua_S,"getNumberOfRunningActionsByTag",lua_ax_base_Node_getNumberOfRunningActionsByTag); - tolua_function(tolua_S,"sortAllChildren",lua_ax_base_Node_sortAllChildren); - tolua_function(tolua_S,"getProgramState",lua_ax_base_Node_getProgramState); - tolua_function(tolua_S,"getWorldToNodeTransform",lua_ax_base_Node_getWorldToNodeTransform); - tolua_function(tolua_S,"getScale",lua_ax_base_Node_getScale); - tolua_function(tolua_S,"getOpacity",lua_ax_base_Node_getOpacity); tolua_function(tolua_S,"updateOrderOfArrival",lua_ax_base_Node_updateOrderOfArrival); + tolua_function(tolua_S,"getLocalZOrder",lua_ax_base_Node_getLocalZOrder); + tolua_function(tolua_S,"setGlobalZOrder",lua_ax_base_Node_setGlobalZOrder); + tolua_function(tolua_S,"getGlobalZOrder",lua_ax_base_Node_getGlobalZOrder); + tolua_function(tolua_S,"setScaleX",lua_ax_base_Node_setScaleX); + tolua_function(tolua_S,"getScaleX",lua_ax_base_Node_getScaleX); + tolua_function(tolua_S,"setScaleY",lua_ax_base_Node_setScaleY); + tolua_function(tolua_S,"getScaleY",lua_ax_base_Node_getScaleY); + tolua_function(tolua_S,"setScaleZ",lua_ax_base_Node_setScaleZ); + tolua_function(tolua_S,"getScaleZ",lua_ax_base_Node_getScaleZ); + tolua_function(tolua_S,"setScale",lua_ax_base_Node_setScale); + tolua_function(tolua_S,"getScale",lua_ax_base_Node_getScale); + tolua_function(tolua_S,"setPosition",lua_ax_base_Node_setPosition); + tolua_function(tolua_S,"setPositionNormalized",lua_ax_base_Node_setPositionNormalized); + tolua_function(tolua_S,"setNormalizedPosition",lua_ax_base_Node_setNormalizedPosition); + tolua_function(tolua_S,"getPositionNormalized",lua_ax_base_Node_getPositionNormalized); tolua_function(tolua_S,"getNormalizedPosition",lua_ax_base_Node_getNormalizedPosition); - tolua_function(tolua_S,"setOnExitTransitionDidStartCallback",lua_ax_base_Node_setOnExitTransitionDidStartCallback); + tolua_function(tolua_S,"setPositionX",lua_ax_base_Node_setPositionX); + tolua_function(tolua_S,"getPositionX",lua_ax_base_Node_getPositionX); + tolua_function(tolua_S,"setPositionY",lua_ax_base_Node_setPositionY); + tolua_function(tolua_S,"getPositionY",lua_ax_base_Node_getPositionY); + tolua_function(tolua_S,"setPosition3D",lua_ax_base_Node_setPosition3D); + tolua_function(tolua_S,"getPosition3D",lua_ax_base_Node_getPosition3D); + tolua_function(tolua_S,"setPositionZ",lua_ax_base_Node_setPositionZ); + tolua_function(tolua_S,"getPositionZ",lua_ax_base_Node_getPositionZ); + tolua_function(tolua_S,"setSkewX",lua_ax_base_Node_setSkewX); + tolua_function(tolua_S,"getSkewX",lua_ax_base_Node_getSkewX); + tolua_function(tolua_S,"setSkewY",lua_ax_base_Node_setSkewY); + tolua_function(tolua_S,"getSkewY",lua_ax_base_Node_getSkewY); + tolua_function(tolua_S,"getAnchorPoint",lua_ax_base_Node_getAnchorPoint); + tolua_function(tolua_S,"getAnchorPointInPoints",lua_ax_base_Node_getAnchorPointInPoints); + tolua_function(tolua_S,"getContentSize",lua_ax_base_Node_getContentSize); + tolua_function(tolua_S,"hitTest",lua_ax_base_Node_hitTest); + tolua_function(tolua_S,"setVisible",lua_ax_base_Node_setVisible); + tolua_function(tolua_S,"isVisible",lua_ax_base_Node_isVisible); + tolua_function(tolua_S,"setRotation",lua_ax_base_Node_setRotation); + tolua_function(tolua_S,"getRotation",lua_ax_base_Node_getRotation); + tolua_function(tolua_S,"setRotation3D",lua_ax_base_Node_setRotation3D); + tolua_function(tolua_S,"getRotation3D",lua_ax_base_Node_getRotation3D); + tolua_function(tolua_S,"setRotationSkewX",lua_ax_base_Node_setRotationSkewX); tolua_function(tolua_S,"getRotationSkewX",lua_ax_base_Node_getRotationSkewX); + tolua_function(tolua_S,"setRotationSkewY",lua_ax_base_Node_setRotationSkewY); tolua_function(tolua_S,"getRotationSkewY",lua_ax_base_Node_getRotationSkewY); + tolua_function(tolua_S,"setIgnoreAnchorPointForPosition",lua_ax_base_Node_setIgnoreAnchorPointForPosition); + tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_ax_base_Node_isIgnoreAnchorPointForPosition); + tolua_function(tolua_S,"addChild",lua_ax_base_Node_addChild); + tolua_function(tolua_S,"getChildByTag",lua_ax_base_Node_getChildByTag); + tolua_function(tolua_S,"getChildByName",lua_ax_base_Node_getChildByName); + tolua_function(tolua_S,"getChildren",lua_ax_base_Node_getChildren); + tolua_function(tolua_S,"getChildrenCount",lua_ax_base_Node_getChildrenCount); + tolua_function(tolua_S,"setParent",lua_ax_base_Node_setParent); + tolua_function(tolua_S,"getParent",lua_ax_base_Node_getParent); + tolua_function(tolua_S,"removeFromParent",lua_ax_base_Node_removeFromParentAndCleanup); + tolua_function(tolua_S,"removeChild",lua_ax_base_Node_removeChild); + tolua_function(tolua_S,"removeChildByTag",lua_ax_base_Node_removeChildByTag); + tolua_function(tolua_S,"removeChildByName",lua_ax_base_Node_removeChildByName); + tolua_function(tolua_S,"removeAllChildren",lua_ax_base_Node_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"reorderChild",lua_ax_base_Node_reorderChild); + tolua_function(tolua_S,"sortAllChildren",lua_ax_base_Node_sortAllChildren); + tolua_function(tolua_S,"getTag",lua_ax_base_Node_getTag); tolua_function(tolua_S,"setTag",lua_ax_base_Node_setTag); - tolua_function(tolua_S,"isCascadeColorEnabled",lua_ax_base_Node_isCascadeColorEnabled); - tolua_function(tolua_S,"stopAction",lua_ax_base_Node_stopAction); + tolua_function(tolua_S,"getName",lua_ax_base_Node_getName); + tolua_function(tolua_S,"setName",lua_ax_base_Node_setName); + tolua_function(tolua_S,"setUserObject",lua_ax_base_Node_setUserObject); + tolua_function(tolua_S,"isRunning",lua_ax_base_Node_isRunning); + tolua_function(tolua_S,"cleanup",lua_ax_base_Node_cleanup); + tolua_function(tolua_S,"draw",lua_ax_base_Node_draw); + tolua_function(tolua_S,"visit",lua_ax_base_Node_visit); + tolua_function(tolua_S,"getScene",lua_ax_base_Node_getScene); + tolua_function(tolua_S,"getBoundingBox",lua_ax_base_Node_getBoundingBox); + tolua_function(tolua_S,"setEventDispatcher",lua_ax_base_Node_setEventDispatcher); + tolua_function(tolua_S,"getEventDispatcher",lua_ax_base_Node_getEventDispatcher); + tolua_function(tolua_S,"setActionManager",lua_ax_base_Node_setActionManager); tolua_function(tolua_S,"getActionManager",lua_ax_base_Node_getActionManager); + tolua_function(tolua_S,"runAction",lua_ax_base_Node_runAction); + tolua_function(tolua_S,"stopAllActions",lua_ax_base_Node_stopAllActions); + tolua_function(tolua_S,"stopAction",lua_ax_base_Node_stopAction); + tolua_function(tolua_S,"stopActionByTag",lua_ax_base_Node_stopActionByTag); + tolua_function(tolua_S,"stopAllActionsByTag",lua_ax_base_Node_stopAllActionsByTag); + tolua_function(tolua_S,"stopActionsByFlags",lua_ax_base_Node_stopActionsByFlags); + tolua_function(tolua_S,"getActionByTag",lua_ax_base_Node_getActionByTag); + tolua_function(tolua_S,"getNumberOfRunningActions",lua_ax_base_Node_getNumberOfRunningActions); + tolua_function(tolua_S,"getNumberOfRunningActionsByTag",lua_ax_base_Node_getNumberOfRunningActionsByTag); + tolua_function(tolua_S,"setScheduler",lua_ax_base_Node_setScheduler); + tolua_function(tolua_S,"getScheduler",lua_ax_base_Node_getScheduler); + tolua_function(tolua_S,"isScheduled",lua_ax_base_Node_isScheduled); + tolua_function(tolua_S,"resume",lua_ax_base_Node_resume); + tolua_function(tolua_S,"pause",lua_ax_base_Node_pause); + tolua_function(tolua_S,"update",lua_ax_base_Node_update); + tolua_function(tolua_S,"updateTransform",lua_ax_base_Node_updateTransform); + tolua_function(tolua_S,"getNodeToParentTransform",lua_ax_base_Node_getNodeToParentTransform); + tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_ax_base_Node_getNodeToParentAffineTransform); + tolua_function(tolua_S,"setNodeToParentTransform",lua_ax_base_Node_setNodeToParentTransform); + tolua_function(tolua_S,"getParentToNodeTransform",lua_ax_base_Node_getParentToNodeTransform); + tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_ax_base_Node_getParentToNodeAffineTransform); + tolua_function(tolua_S,"getNodeToWorldTransform",lua_ax_base_Node_getNodeToWorldTransform); + tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_ax_base_Node_getNodeToWorldAffineTransform); + tolua_function(tolua_S,"getWorldToNodeTransform",lua_ax_base_Node_getWorldToNodeTransform); + tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_ax_base_Node_getWorldToNodeAffineTransform); + tolua_function(tolua_S,"convertToNodeSpace",lua_ax_base_Node_convertToNodeSpace); + tolua_function(tolua_S,"convertToWorldSpace",lua_ax_base_Node_convertToWorldSpace); + tolua_function(tolua_S,"convertToNodeSpaceAR",lua_ax_base_Node_convertToNodeSpaceAR); + tolua_function(tolua_S,"convertToWorldSpaceAR",lua_ax_base_Node_convertToWorldSpaceAR); + tolua_function(tolua_S,"convertTouchToNodeSpace",lua_ax_base_Node_convertTouchToNodeSpace); + tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_ax_base_Node_convertTouchToNodeSpaceAR); + tolua_function(tolua_S,"getWorldPosition",lua_ax_base_Node_getWorldPosition); + tolua_function(tolua_S,"getComponent",lua_ax_base_Node_getComponent); + tolua_function(tolua_S,"addComponent",lua_ax_base_Node_addComponent); + tolua_function(tolua_S,"removeComponent",lua_ax_base_Node_removeComponent); + tolua_function(tolua_S,"removeAllComponents",lua_ax_base_Node_removeAllComponents); + tolua_function(tolua_S,"getOpacity",lua_ax_base_Node_getOpacity); + tolua_function(tolua_S,"getDisplayedOpacity",lua_ax_base_Node_getDisplayedOpacity); + tolua_function(tolua_S,"setOpacity",lua_ax_base_Node_setOpacity); + tolua_function(tolua_S,"updateDisplayedOpacity",lua_ax_base_Node_updateDisplayedOpacity); + tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_ax_base_Node_isCascadeOpacityEnabled); + tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_ax_base_Node_setCascadeOpacityEnabled); + tolua_function(tolua_S,"getColor",lua_ax_base_Node_getColor); + tolua_function(tolua_S,"getDisplayedColor",lua_ax_base_Node_getDisplayedColor); + tolua_function(tolua_S,"setColor",lua_ax_base_Node_setColor); + tolua_function(tolua_S,"updateDisplayedColor",lua_ax_base_Node_updateDisplayedColor); + tolua_function(tolua_S,"isCascadeColorEnabled",lua_ax_base_Node_isCascadeColorEnabled); + tolua_function(tolua_S,"setCascadeColorEnabled",lua_ax_base_Node_setCascadeColorEnabled); + tolua_function(tolua_S,"setOpacityModifyRGB",lua_ax_base_Node_setOpacityModifyRGB); + tolua_function(tolua_S,"isOpacityModifyRGB",lua_ax_base_Node_isOpacityModifyRGB); + tolua_function(tolua_S,"setOnEnterCallback",lua_ax_base_Node_setOnEnterCallback); + tolua_function(tolua_S,"setOnExitCallback",lua_ax_base_Node_setOnExitCallback); + tolua_function(tolua_S,"setOnEnterTransitionDidFinishCallback",lua_ax_base_Node_setOnEnterTransitionDidFinishCallback); + tolua_function(tolua_S,"getOnEnterTransitionDidFinishCallback",lua_ax_base_Node_getOnEnterTransitionDidFinishCallback); + tolua_function(tolua_S,"setOnExitTransitionDidStartCallback",lua_ax_base_Node_setOnExitTransitionDidStartCallback); + tolua_function(tolua_S,"getOnExitTransitionDidStartCallback",lua_ax_base_Node_getOnExitTransitionDidStartCallback); + tolua_function(tolua_S,"getCameraMask",lua_ax_base_Node_getCameraMask); + tolua_function(tolua_S,"setCameraMask",lua_ax_base_Node_setCameraMask); + tolua_function(tolua_S,"applyMaskOnEnter",lua_ax_base_Node_applyMaskOnEnter); + tolua_function(tolua_S,"setProgramState",lua_ax_base_Node_setProgramState); + tolua_function(tolua_S,"setProgramStateWithRegistry",lua_ax_base_Node_setProgramStateWithRegistry); + tolua_function(tolua_S,"getProgramState",lua_ax_base_Node_getProgramState); + tolua_function(tolua_S,"updateProgramStateTexture",lua_ax_base_Node_updateProgramStateTexture); + tolua_function(tolua_S,"resetChild",lua_ax_base_Node_resetChild); + tolua_function(tolua_S,"init",lua_ax_base_Node_init); + tolua_function(tolua_S,"initLayer",lua_ax_base_Node_initLayer); + tolua_function(tolua_S,"setPhysicsBody",lua_ax_base_Node_setPhysicsBody); + tolua_function(tolua_S,"getPhysicsBody",lua_ax_base_Node_getPhysicsBody); tolua_function(tolua_S,"create", lua_ax_base_Node_create); tolua_function(tolua_S,"getAttachedNodeCount", lua_ax_base_Node_getAttachedNodeCount); tolua_endmodule(tolua_S); @@ -12215,7 +12113,7 @@ int lua_register_ax_base_Node(lua_State* tolua_S) return 1; } -int lua_ax_base_Scene_initWithPhysics(lua_State* tolua_S) +int lua_ax_base_Scene_getDefaultCamera(lua_State* tolua_S) { int argc = 0; ax::Scene* cobj = nullptr; @@ -12235,7 +12133,7 @@ int lua_ax_base_Scene_initWithPhysics(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_initWithPhysics'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_getDefaultCamera'", nullptr); return 0; } #endif @@ -12245,66 +12143,19 @@ int lua_ax_base_Scene_initWithPhysics(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_initWithPhysics'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_getDefaultCamera'", nullptr); return 0; } - auto&& ret = cobj->initWithPhysics(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getDefaultCamera(); + object_to_luaval(tolua_S, "ax.Camera",(ax::Camera*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:initWithPhysics",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:getDefaultCamera",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_initWithPhysics'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Scene_setCameraOrderDirty(lua_State* tolua_S) -{ - int argc = 0; - ax::Scene* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Scene",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Scene*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_setCameraOrderDirty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_setCameraOrderDirty'", nullptr); - return 0; - } - cobj->setCameraOrderDirty(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:setCameraOrderDirty",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_setCameraOrderDirty'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_getDefaultCamera'.",&tolua_err); #endif return 0; @@ -12382,7 +12233,7 @@ int lua_ax_base_Scene_render(lua_State* tolua_S) return 0; } -int lua_ax_base_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) +int lua_ax_base_Scene_initWithSize(lua_State* tolua_S) { int argc = 0; ax::Scene* cobj = nullptr; @@ -12402,7 +12253,7 @@ int lua_ax_base_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_stepPhysicsAndNavigation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_initWithSize'", nullptr); return 0; } #endif @@ -12410,24 +12261,71 @@ int lua_ax_base_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Vec2 arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Scene:stepPhysicsAndNavigation"); + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Scene:initWithSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_stepPhysicsAndNavigation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_initWithSize'", nullptr); return 0; } - cobj->stepPhysicsAndNavigation(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initWithSize(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:stepPhysicsAndNavigation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:initWithSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_stepPhysicsAndNavigation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_initWithSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Scene_setCameraOrderDirty(lua_State* tolua_S) +{ + int argc = 0; + ax::Scene* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Scene",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Scene*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_setCameraOrderDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_setCameraOrderDirty'", nullptr); + return 0; + } + cobj->setCameraOrderDirty(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:setCameraOrderDirty",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_setCameraOrderDirty'.",&tolua_err); #endif return 0; @@ -12529,6 +12427,53 @@ int lua_ax_base_Scene_getPhysicsWorld(lua_State* tolua_S) return 0; } +int lua_ax_base_Scene_initWithPhysics(lua_State* tolua_S) +{ + int argc = 0; + ax::Scene* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Scene",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Scene*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_initWithPhysics'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_initWithPhysics'", nullptr); + return 0; + } + auto&& ret = cobj->initWithPhysics(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:initWithPhysics",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_initWithPhysics'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Scene_initPhysicsWorld(lua_State* tolua_S) { int argc = 0; @@ -12576,7 +12521,7 @@ int lua_ax_base_Scene_initPhysicsWorld(lua_State* tolua_S) return 0; } -int lua_ax_base_Scene_initWithSize(lua_State* tolua_S) +int lua_ax_base_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) { int argc = 0; ax::Scene* cobj = nullptr; @@ -12596,7 +12541,7 @@ int lua_ax_base_Scene_initWithSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_initWithSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_stepPhysicsAndNavigation'", nullptr); return 0; } #endif @@ -12604,73 +12549,60 @@ int lua_ax_base_Scene_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Vec2 arg0; + double arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Scene:initWithSize"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Scene:stepPhysicsAndNavigation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_initWithSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_stepPhysicsAndNavigation'", nullptr); return 0; } - auto&& ret = cobj->initWithSize(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->stepPhysicsAndNavigation(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:initWithSize",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:stepPhysicsAndNavigation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_initWithSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_stepPhysicsAndNavigation'.",&tolua_err); #endif return 0; } -int lua_ax_base_Scene_getDefaultCamera(lua_State* tolua_S) +int lua_ax_base_Scene_create(lua_State* tolua_S) { int argc = 0; - ax::Scene* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Scene",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Scene*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scene_getDefaultCamera'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_getDefaultCamera'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_create'", nullptr); return 0; } - auto&& ret = cobj->getDefaultCamera(); - object_to_luaval(tolua_S, "ax.Camera",(ax::Camera*)ret); + auto&& ret = ax::Scene::create(); + object_to_luaval(tolua_S, "ax.Scene",(ax::Scene*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:getDefaultCamera",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Scene:create",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_getDefaultCamera'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_create'.",&tolua_err); #endif - return 0; } int lua_ax_base_Scene_createWithSize(lua_State* tolua_S) @@ -12709,40 +12641,6 @@ int lua_ax_base_Scene_createWithSize(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Scene_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Scene",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scene_create'", nullptr); - return 0; - } - auto&& ret = ax::Scene::create(); - object_to_luaval(tolua_S, "ax.Scene",(ax::Scene*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Scene:create",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scene_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_Scene_createWithPhysics(lua_State* tolua_S) { int argc = 0; @@ -12827,17 +12725,17 @@ int lua_register_ax_base_Scene(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Scene"); tolua_function(tolua_S,"new",lua_ax_base_Scene_constructor); - tolua_function(tolua_S,"initWithPhysics",lua_ax_base_Scene_initWithPhysics); - tolua_function(tolua_S,"setCameraOrderDirty",lua_ax_base_Scene_setCameraOrderDirty); + tolua_function(tolua_S,"getDefaultCamera",lua_ax_base_Scene_getDefaultCamera); tolua_function(tolua_S,"render",lua_ax_base_Scene_render); - tolua_function(tolua_S,"stepPhysicsAndNavigation",lua_ax_base_Scene_stepPhysicsAndNavigation); + tolua_function(tolua_S,"initWithSize",lua_ax_base_Scene_initWithSize); + tolua_function(tolua_S,"setCameraOrderDirty",lua_ax_base_Scene_setCameraOrderDirty); tolua_function(tolua_S,"onProjectionChanged",lua_ax_base_Scene_onProjectionChanged); tolua_function(tolua_S,"getPhysicsWorld",lua_ax_base_Scene_getPhysicsWorld); + tolua_function(tolua_S,"initWithPhysics",lua_ax_base_Scene_initWithPhysics); tolua_function(tolua_S,"initPhysicsWorld",lua_ax_base_Scene_initPhysicsWorld); - tolua_function(tolua_S,"initWithSize",lua_ax_base_Scene_initWithSize); - tolua_function(tolua_S,"getDefaultCamera",lua_ax_base_Scene_getDefaultCamera); - tolua_function(tolua_S,"createWithSize", lua_ax_base_Scene_createWithSize); + tolua_function(tolua_S,"stepPhysicsAndNavigation",lua_ax_base_Scene_stepPhysicsAndNavigation); tolua_function(tolua_S,"create", lua_ax_base_Scene_create); + tolua_function(tolua_S,"createWithSize", lua_ax_base_Scene_createWithSize); tolua_function(tolua_S,"createWithPhysics", lua_ax_base_Scene_createWithPhysics); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Scene).name(); // rtti is literal storage @@ -12846,7 +12744,7 @@ int lua_register_ax_base_Scene(lua_State* tolua_S) return 1; } -int lua_ax_base_GLView_setFrameSize(lua_State* tolua_S) +int lua_ax_base_GLView_end(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -12866,40 +12764,34 @@ int lua_ax_base_GLView_setFrameSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setFrameSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_end'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - double arg0; - double arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.GLView:setFrameSize"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.GLView:setFrameSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setFrameSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_end'", nullptr); return 0; } - cobj->setFrameSize(arg0, arg1); + cobj->end(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setFrameSize",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:end",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setFrameSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_end'.",&tolua_err); #endif return 0; } -int lua_ax_base_GLView_getViewPortRect(lua_State* tolua_S) +int lua_ax_base_GLView_isOpenGLReady(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -12919,7 +12811,7 @@ int lua_ax_base_GLView_getViewPortRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getViewPortRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_isOpenGLReady'", nullptr); return 0; } #endif @@ -12929,121 +12821,24 @@ int lua_ax_base_GLView_getViewPortRect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getViewPortRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_isOpenGLReady'", nullptr); return 0; } - auto&& ret = cobj->getViewPortRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getViewPortRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getViewPortRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_getScaleY(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getScaleY'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getScaleY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getScaleY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_setContentScaleFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setContentScaleFactor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.GLView:setContentScaleFactor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setContentScaleFactor'", nullptr); - return 0; - } - auto&& ret = cobj->setContentScaleFactor(arg0); + auto&& ret = cobj->isOpenGLReady(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setContentScaleFactor",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:isOpenGLReady",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setContentScaleFactor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_isOpenGLReady'.",&tolua_err); #endif return 0; } -int lua_ax_base_GLView_getContentScaleFactor(lua_State* tolua_S) +int lua_ax_base_GLView_swapBuffers(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -13063,7 +12858,7 @@ int lua_ax_base_GLView_getContentScaleFactor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getContentScaleFactor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_swapBuffers'", nullptr); return 0; } #endif @@ -13073,19 +12868,19 @@ int lua_ax_base_GLView_getContentScaleFactor(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getContentScaleFactor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_swapBuffers'", nullptr); return 0; } - auto&& ret = cobj->getContentScaleFactor(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->swapBuffers(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getContentScaleFactor",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:swapBuffers",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getContentScaleFactor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_swapBuffers'.",&tolua_err); #endif return 0; @@ -13140,7 +12935,7 @@ int lua_ax_base_GLView_setIMEKeyboardState(lua_State* tolua_S) return 0; } -int lua_ax_base_GLView_getSafeAreaRect(lua_State* tolua_S) +int lua_ax_base_GLView_windowShouldClose(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -13160,7 +12955,7 @@ int lua_ax_base_GLView_getSafeAreaRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getSafeAreaRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_windowShouldClose'", nullptr); return 0; } #endif @@ -13170,177 +12965,24 @@ int lua_ax_base_GLView_getSafeAreaRect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getSafeAreaRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_windowShouldClose'", nullptr); return 0; } - auto&& ret = cobj->getSafeAreaRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getSafeAreaRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getSafeAreaRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_setScissorInPoints(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setScissorInPoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - double arg0; - double arg1; - double arg2; - double arg3; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.GLView:setScissorInPoints"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.GLView:setScissorInPoints"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.GLView:setScissorInPoints"); - - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.GLView:setScissorInPoints"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setScissorInPoints'", nullptr); - return 0; - } - cobj->setScissorInPoints(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setScissorInPoints",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setScissorInPoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_getViewName(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getViewName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getViewName'", nullptr); - return 0; - } - auto&& ret = cobj->getViewName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getViewName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getViewName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_isOpenGLReady(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_isOpenGLReady'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_isOpenGLReady'", nullptr); - return 0; - } - auto&& ret = cobj->isOpenGLReady(); + auto&& ret = cobj->windowShouldClose(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:isOpenGLReady",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:windowShouldClose",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_isOpenGLReady'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_windowShouldClose'.",&tolua_err); #endif return 0; } -int lua_ax_base_GLView_setCursorVisible(lua_State* tolua_S) +int lua_ax_base_GLView_pollEvents(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -13360,32 +13002,29 @@ int lua_ax_base_GLView_setCursorVisible(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setCursorVisible'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_pollEvents'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GLView:setCursorVisible"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setCursorVisible'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_pollEvents'", nullptr); return 0; } - cobj->setCursorVisible(arg0); + cobj->pollEvents(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setCursorVisible",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:pollEvents",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setCursorVisible'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_pollEvents'.",&tolua_err); #endif return 0; @@ -13437,7 +13076,7 @@ int lua_ax_base_GLView_getFrameSize(lua_State* tolua_S) return 0; } -int lua_ax_base_GLView_setDefaultIcon(lua_State* tolua_S) +int lua_ax_base_GLView_setFrameSize(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -13457,123 +13096,35 @@ int lua_ax_base_GLView_setDefaultIcon(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setDefaultIcon'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setFrameSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.GLView:setFrameSize"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.GLView:setFrameSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setDefaultIcon'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setFrameSize'", nullptr); return 0; } - cobj->setDefaultIcon(); + cobj->setFrameSize(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setDefaultIcon",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setFrameSize",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setDefaultIcon'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_getScaleX(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getScaleX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getScaleX'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getScaleX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getScaleX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_getVisibleOrigin(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getVisibleOrigin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getVisibleOrigin'", nullptr); - return 0; - } - auto&& ret = cobj->getVisibleOrigin(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getVisibleOrigin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getVisibleOrigin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setFrameSize'.",&tolua_err); #endif return 0; @@ -13675,7 +13226,7 @@ int lua_ax_base_GLView_getFrameZoomFactor(lua_State* tolua_S) return 0; } -int lua_ax_base_GLView_getDesignResolutionSize(lua_State* tolua_S) +int lua_ax_base_GLView_setCursorVisible(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -13695,178 +13246,411 @@ int lua_ax_base_GLView_getDesignResolutionSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getDesignResolutionSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setCursorVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GLView:setCursorVisible"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getDesignResolutionSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setCursorVisible'", nullptr); return 0; } - auto&& ret = cobj->getDesignResolutionSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getDesignResolutionSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getDesignResolutionSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_setIcon(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setIcon'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - std::vector arg0; - ok &= luaval_to_std_vector_string_view(tolua_S, 2, &arg0, "ax.GLView:setIcon"); - - if (!ok) { break; } - cobj->setIcon(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.GLView:setIcon"); - - if (!ok) { break; } - cobj->setIcon(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setIcon",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setIcon'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_windowShouldClose(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_windowShouldClose'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_windowShouldClose'", nullptr); - return 0; - } - auto&& ret = cobj->windowShouldClose(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:windowShouldClose",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_windowShouldClose'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_swapBuffers(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_swapBuffers'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_swapBuffers'", nullptr); - return 0; - } - cobj->swapBuffers(); + cobj->setCursorVisible(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:swapBuffers",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setCursorVisible",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_swapBuffers'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setCursorVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getRetinaFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getRetinaFactor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getRetinaFactor'", nullptr); + return 0; + } + auto&& ret = cobj->getRetinaFactor(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getRetinaFactor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getRetinaFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_setContentScaleFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setContentScaleFactor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.GLView:setContentScaleFactor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setContentScaleFactor'", nullptr); + return 0; + } + auto&& ret = cobj->setContentScaleFactor(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setContentScaleFactor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setContentScaleFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getContentScaleFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getContentScaleFactor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getContentScaleFactor'", nullptr); + return 0; + } + auto&& ret = cobj->getContentScaleFactor(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getContentScaleFactor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getContentScaleFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_isRetinaDisplay(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_isRetinaDisplay'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_isRetinaDisplay'", nullptr); + return 0; + } + auto&& ret = cobj->isRetinaDisplay(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:isRetinaDisplay",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_isRetinaDisplay'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getVisibleSize(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getVisibleSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getVisibleSize'", nullptr); + return 0; + } + auto&& ret = cobj->getVisibleSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getVisibleSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getVisibleSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getVisibleOrigin(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getVisibleOrigin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getVisibleOrigin'", nullptr); + return 0; + } + auto&& ret = cobj->getVisibleOrigin(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getVisibleOrigin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getVisibleOrigin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getVisibleRect(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getVisibleRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getVisibleRect'", nullptr); + return 0; + } + auto&& ret = cobj->getVisibleRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getVisibleRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getVisibleRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getSafeAreaRect(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getSafeAreaRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getSafeAreaRect'", nullptr); + return 0; + } + auto&& ret = cobj->getSafeAreaRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getSafeAreaRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getSafeAreaRect'.",&tolua_err); #endif return 0; @@ -13927,7 +13711,7 @@ int lua_ax_base_GLView_setDesignResolutionSize(lua_State* tolua_S) return 0; } -int lua_ax_base_GLView_getResolutionPolicy(lua_State* tolua_S) +int lua_ax_base_GLView_getDesignResolutionSize(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -13947,7 +13731,7 @@ int lua_ax_base_GLView_getResolutionPolicy(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getResolutionPolicy'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getDesignResolutionSize'", nullptr); return 0; } #endif @@ -13957,166 +13741,19 @@ int lua_ax_base_GLView_getResolutionPolicy(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getResolutionPolicy'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getDesignResolutionSize'", nullptr); return 0; } - int ret = (int)cobj->getResolutionPolicy(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getDesignResolutionSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getResolutionPolicy",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getDesignResolutionSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getResolutionPolicy'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_end(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_end'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_end'", nullptr); - return 0; - } - cobj->end(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:end",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_end'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_isRetinaDisplay(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_isRetinaDisplay'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_isRetinaDisplay'", nullptr); - return 0; - } - auto&& ret = cobj->isRetinaDisplay(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:isRetinaDisplay",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_isRetinaDisplay'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_renderScene(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_renderScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Scene* arg0; - ax::Renderer* arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.GLView:renderScene"); - - ok &= luaval_to_object(tolua_S, 3, "ax.Renderer",&arg1, "ax.GLView:renderScene"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_renderScene'", nullptr); - return 0; - } - cobj->renderScene(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:renderScene",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_renderScene'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getDesignResolutionSize'.",&tolua_err); #endif return 0; @@ -14180,6 +13817,112 @@ int lua_ax_base_GLView_setViewPortInPoints(lua_State* tolua_S) return 0; } +int lua_ax_base_GLView_setScissorInPoints(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setScissorInPoints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + double arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.GLView:setScissorInPoints"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.GLView:setScissorInPoints"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.GLView:setScissorInPoints"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.GLView:setScissorInPoints"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setScissorInPoints'", nullptr); + return 0; + } + cobj->setScissorInPoints(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setScissorInPoints",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setScissorInPoints'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_isScissorEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_isScissorEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_isScissorEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isScissorEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:isScissorEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_isScissorEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_GLView_getScissorRect(lua_State* tolua_S) { int argc = 0; @@ -14227,53 +13970,6 @@ int lua_ax_base_GLView_getScissorRect(lua_State* tolua_S) return 0; } -int lua_ax_base_GLView_getRetinaFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getRetinaFactor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getRetinaFactor'", nullptr); - return 0; - } - auto&& ret = cobj->getRetinaFactor(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getRetinaFactor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getRetinaFactor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_GLView_setViewName(lua_State* tolua_S) { int argc = 0; @@ -14324,7 +14020,7 @@ int lua_ax_base_GLView_setViewName(lua_State* tolua_S) return 0; } -int lua_ax_base_GLView_getVisibleRect(lua_State* tolua_S) +int lua_ax_base_GLView_getViewName(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -14344,7 +14040,7 @@ int lua_ax_base_GLView_getVisibleRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getVisibleRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getViewName'", nullptr); return 0; } #endif @@ -14354,71 +14050,79 @@ int lua_ax_base_GLView_getVisibleRect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getVisibleRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getViewName'", nullptr); return 0; } - auto&& ret = cobj->getVisibleRect(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->getViewName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getVisibleRect",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getViewName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getVisibleRect'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getViewName'.",&tolua_err); #endif return 0; } -int lua_ax_base_GLView_getVisibleSize(lua_State* tolua_S) +int lua_ax_base_GLView_setIcon(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getVisibleSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setIcon'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getVisibleSize'", nullptr); - return 0; + do{ + if (argc == 1) { + std::vector arg0; + ok &= luaval_to_std_vector_string_view(tolua_S, 2, &arg0, "ax.GLView:setIcon"); + + if (!ok) { break; } + cobj->setIcon(arg0); + lua_settop(tolua_S, 1); + return 1; } - auto&& ret = cobj->getVisibleSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getVisibleSize",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.GLView:setIcon"); + + if (!ok) { break; } + cobj->setIcon(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setIcon",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getVisibleSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setIcon'.",&tolua_err); #endif return 0; } -int lua_ax_base_GLView_isScissorEnabled(lua_State* tolua_S) +int lua_ax_base_GLView_setDefaultIcon(lua_State* tolua_S) { int argc = 0; ax::GLView* cobj = nullptr; @@ -14438,7 +14142,7 @@ int lua_ax_base_GLView_isScissorEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_isScissorEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setDefaultIcon'", nullptr); return 0; } #endif @@ -14448,66 +14152,260 @@ int lua_ax_base_GLView_isScissorEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_isScissorEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setDefaultIcon'", nullptr); return 0; } - auto&& ret = cobj->isScissorEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:isScissorEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_isScissorEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GLView_pollEvents(lua_State* tolua_S) -{ - int argc = 0; - ax::GLView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_pollEvents'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_pollEvents'", nullptr); - return 0; - } - cobj->pollEvents(); + cobj->setDefaultIcon(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:pollEvents",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setDefaultIcon",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_pollEvents'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setDefaultIcon'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getViewPortRect(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getViewPortRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getViewPortRect'", nullptr); + return 0; + } + auto&& ret = cobj->getViewPortRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getViewPortRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getViewPortRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getScaleX(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getScaleX'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getScaleX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getScaleY(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getScaleY'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getScaleY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_getResolutionPolicy(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_getResolutionPolicy'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_getResolutionPolicy'", nullptr); + return 0; + } + int ret = (int)cobj->getResolutionPolicy(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:getResolutionPolicy",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_getResolutionPolicy'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GLView_renderScene(lua_State* tolua_S) +{ + int argc = 0; + ax::GLView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_renderScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Scene* arg0; + ax::Renderer* arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.GLView:renderScene"); + + ok &= luaval_to_object(tolua_S, 3, "ax.Renderer",&arg1, "ax.GLView:renderScene"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_renderScene'", nullptr); + return 0; + } + cobj->renderScene(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:renderScene",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_renderScene'.",&tolua_err); #endif return 0; @@ -14595,40 +14493,40 @@ int lua_register_ax_base_GLView(lua_State* tolua_S) tolua_cclass(tolua_S,"GLView","ax.GLView","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"GLView"); - tolua_function(tolua_S,"setFrameSize",lua_ax_base_GLView_setFrameSize); - tolua_function(tolua_S,"getViewPortRect",lua_ax_base_GLView_getViewPortRect); - tolua_function(tolua_S,"getScaleY",lua_ax_base_GLView_getScaleY); - tolua_function(tolua_S,"setContentScaleFactor",lua_ax_base_GLView_setContentScaleFactor); - tolua_function(tolua_S,"getContentScaleFactor",lua_ax_base_GLView_getContentScaleFactor); - tolua_function(tolua_S,"setIMEKeyboardState",lua_ax_base_GLView_setIMEKeyboardState); - tolua_function(tolua_S,"getSafeAreaRect",lua_ax_base_GLView_getSafeAreaRect); - tolua_function(tolua_S,"setScissorInPoints",lua_ax_base_GLView_setScissorInPoints); - tolua_function(tolua_S,"getViewName",lua_ax_base_GLView_getViewName); + tolua_function(tolua_S,"endToLua",lua_ax_base_GLView_end); tolua_function(tolua_S,"isOpenGLReady",lua_ax_base_GLView_isOpenGLReady); - tolua_function(tolua_S,"setCursorVisible",lua_ax_base_GLView_setCursorVisible); + tolua_function(tolua_S,"swapBuffers",lua_ax_base_GLView_swapBuffers); + tolua_function(tolua_S,"setIMEKeyboardState",lua_ax_base_GLView_setIMEKeyboardState); + tolua_function(tolua_S,"windowShouldClose",lua_ax_base_GLView_windowShouldClose); + tolua_function(tolua_S,"pollEvents",lua_ax_base_GLView_pollEvents); tolua_function(tolua_S,"getFrameSize",lua_ax_base_GLView_getFrameSize); - tolua_function(tolua_S,"setDefaultIcon",lua_ax_base_GLView_setDefaultIcon); - tolua_function(tolua_S,"getScaleX",lua_ax_base_GLView_getScaleX); - tolua_function(tolua_S,"getVisibleOrigin",lua_ax_base_GLView_getVisibleOrigin); + tolua_function(tolua_S,"setFrameSize",lua_ax_base_GLView_setFrameSize); tolua_function(tolua_S,"setFrameZoomFactor",lua_ax_base_GLView_setFrameZoomFactor); tolua_function(tolua_S,"getFrameZoomFactor",lua_ax_base_GLView_getFrameZoomFactor); - tolua_function(tolua_S,"getDesignResolutionSize",lua_ax_base_GLView_getDesignResolutionSize); - tolua_function(tolua_S,"setIcon",lua_ax_base_GLView_setIcon); - tolua_function(tolua_S,"windowShouldClose",lua_ax_base_GLView_windowShouldClose); - tolua_function(tolua_S,"swapBuffers",lua_ax_base_GLView_swapBuffers); - tolua_function(tolua_S,"setDesignResolutionSize",lua_ax_base_GLView_setDesignResolutionSize); - tolua_function(tolua_S,"getResolutionPolicy",lua_ax_base_GLView_getResolutionPolicy); - tolua_function(tolua_S,"endToLua",lua_ax_base_GLView_end); - tolua_function(tolua_S,"isRetinaDisplay",lua_ax_base_GLView_isRetinaDisplay); - tolua_function(tolua_S,"renderScene",lua_ax_base_GLView_renderScene); - tolua_function(tolua_S,"setViewPortInPoints",lua_ax_base_GLView_setViewPortInPoints); - tolua_function(tolua_S,"getScissorRect",lua_ax_base_GLView_getScissorRect); + tolua_function(tolua_S,"setCursorVisible",lua_ax_base_GLView_setCursorVisible); tolua_function(tolua_S,"getRetinaFactor",lua_ax_base_GLView_getRetinaFactor); - tolua_function(tolua_S,"setViewName",lua_ax_base_GLView_setViewName); - tolua_function(tolua_S,"getVisibleRect",lua_ax_base_GLView_getVisibleRect); + tolua_function(tolua_S,"setContentScaleFactor",lua_ax_base_GLView_setContentScaleFactor); + tolua_function(tolua_S,"getContentScaleFactor",lua_ax_base_GLView_getContentScaleFactor); + tolua_function(tolua_S,"isRetinaDisplay",lua_ax_base_GLView_isRetinaDisplay); tolua_function(tolua_S,"getVisibleSize",lua_ax_base_GLView_getVisibleSize); + tolua_function(tolua_S,"getVisibleOrigin",lua_ax_base_GLView_getVisibleOrigin); + tolua_function(tolua_S,"getVisibleRect",lua_ax_base_GLView_getVisibleRect); + tolua_function(tolua_S,"getSafeAreaRect",lua_ax_base_GLView_getSafeAreaRect); + tolua_function(tolua_S,"setDesignResolutionSize",lua_ax_base_GLView_setDesignResolutionSize); + tolua_function(tolua_S,"getDesignResolutionSize",lua_ax_base_GLView_getDesignResolutionSize); + tolua_function(tolua_S,"setViewPortInPoints",lua_ax_base_GLView_setViewPortInPoints); + tolua_function(tolua_S,"setScissorInPoints",lua_ax_base_GLView_setScissorInPoints); tolua_function(tolua_S,"isScissorEnabled",lua_ax_base_GLView_isScissorEnabled); - tolua_function(tolua_S,"pollEvents",lua_ax_base_GLView_pollEvents); + tolua_function(tolua_S,"getScissorRect",lua_ax_base_GLView_getScissorRect); + tolua_function(tolua_S,"setViewName",lua_ax_base_GLView_setViewName); + tolua_function(tolua_S,"getViewName",lua_ax_base_GLView_getViewName); + tolua_function(tolua_S,"setIcon",lua_ax_base_GLView_setIcon); + tolua_function(tolua_S,"setDefaultIcon",lua_ax_base_GLView_setDefaultIcon); + tolua_function(tolua_S,"getViewPortRect",lua_ax_base_GLView_getViewPortRect); + tolua_function(tolua_S,"getScaleX",lua_ax_base_GLView_getScaleX); + tolua_function(tolua_S,"getScaleY",lua_ax_base_GLView_getScaleY); + tolua_function(tolua_S,"getResolutionPolicy",lua_ax_base_GLView_getResolutionPolicy); + tolua_function(tolua_S,"renderScene",lua_ax_base_GLView_renderScene); tolua_function(tolua_S,"setGLContextAttrs", lua_ax_base_GLView_setGLContextAttrs); tolua_function(tolua_S,"getGLContextAttrs", lua_ax_base_GLView_getGLContextAttrs); tolua_endmodule(tolua_S); @@ -14638,7 +14536,7 @@ int lua_register_ax_base_GLView(lua_State* tolua_S) return 1; } -int lua_ax_base_Director_pause(lua_State* tolua_S) +int lua_ax_base_Director_init(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -14658,7 +14556,7 @@ int lua_ax_base_Director_pause(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_pause'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_init'", nullptr); return 0; } #endif @@ -14668,24 +14566,24 @@ int lua_ax_base_Director_pause(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_pause'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_init'", nullptr); return 0; } - cobj->pause(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:pause",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_pause'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_init'.",&tolua_err); #endif return 0; } -int lua_ax_base_Director_getAxmolThreadId(lua_State* tolua_S) +int lua_ax_base_Director_getRunningScene(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -14705,7 +14603,7 @@ int lua_ax_base_Director_getAxmolThreadId(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getAxmolThreadId'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getRunningScene'", nullptr); return 0; } #endif @@ -14715,24 +14613,24 @@ int lua_ax_base_Director_getAxmolThreadId(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getAxmolThreadId'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getRunningScene'", nullptr); return 0; } - auto&& ret = cobj->getAxmolThreadId(); - std_thread_id_to_luaval(tolua_S, ret); + auto&& ret = cobj->getRunningScene(); + object_to_luaval(tolua_S, "ax.Scene",(ax::Scene*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getAxmolThreadId",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getRunningScene",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getAxmolThreadId'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getRunningScene'.",&tolua_err); #endif return 0; } -int lua_ax_base_Director_setEventDispatcher(lua_State* tolua_S) +int lua_ax_base_Director_getAnimationInterval(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -14752,37 +14650,34 @@ int lua_ax_base_Director_setEventDispatcher(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setEventDispatcher'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getAnimationInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::EventDispatcher* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.EventDispatcher",&arg0, "ax.Director:setEventDispatcher"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setEventDispatcher'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getAnimationInterval'", nullptr); return 0; } - cobj->setEventDispatcher(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAnimationInterval(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setEventDispatcher",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getAnimationInterval",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setEventDispatcher'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getAnimationInterval'.",&tolua_err); #endif return 0; } -int lua_ax_base_Director_setContentScaleFactor(lua_State* tolua_S) +int lua_ax_base_Director_setAnimationInterval(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -14802,7 +14697,7 @@ int lua_ax_base_Director_setContentScaleFactor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setContentScaleFactor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setAnimationInterval'", nullptr); return 0; } #endif @@ -14812,27 +14707,27 @@ int lua_ax_base_Director_setContentScaleFactor(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Director:setContentScaleFactor"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Director:setAnimationInterval"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setContentScaleFactor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setAnimationInterval'", nullptr); return 0; } - cobj->setContentScaleFactor(arg0); + cobj->setAnimationInterval(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setContentScaleFactor",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setAnimationInterval",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setContentScaleFactor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setAnimationInterval'.",&tolua_err); #endif return 0; } -int lua_ax_base_Director_getDeltaTime(lua_State* tolua_S) +int lua_ax_base_Director_isStatsDisplay(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -14852,7 +14747,7 @@ int lua_ax_base_Director_getDeltaTime(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getDeltaTime'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isStatsDisplay'", nullptr); return 0; } #endif @@ -14862,19 +14757,19 @@ int lua_ax_base_Director_getDeltaTime(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getDeltaTime'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isStatsDisplay'", nullptr); return 0; } - auto&& ret = cobj->getDeltaTime(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->isStatsDisplay(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getDeltaTime",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isStatsDisplay",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getDeltaTime'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isStatsDisplay'.",&tolua_err); #endif return 0; @@ -14929,677 +14824,6 @@ int lua_ax_base_Director_setStatsDisplay(lua_State* tolua_S) return 0; } -int lua_ax_base_Director_getContentScaleFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getContentScaleFactor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getContentScaleFactor'", nullptr); - return 0; - } - auto&& ret = cobj->getContentScaleFactor(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getContentScaleFactor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getContentScaleFactor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getWinSizeInPixels(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getWinSizeInPixels'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getWinSizeInPixels'", nullptr); - return 0; - } - auto&& ret = cobj->getWinSizeInPixels(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getWinSizeInPixels",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getWinSizeInPixels'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getSafeAreaRect(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getSafeAreaRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getSafeAreaRect'", nullptr); - return 0; - } - auto&& ret = cobj->getSafeAreaRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getSafeAreaRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getSafeAreaRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setGLDefaultValues(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setGLDefaultValues'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setGLDefaultValues'", nullptr); - return 0; - } - cobj->setGLDefaultValues(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setGLDefaultValues",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setGLDefaultValues'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setActionManager(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setActionManager'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ActionManager* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.ActionManager",&arg0, "ax.Director:setActionManager"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setActionManager'", nullptr); - return 0; - } - cobj->setActionManager(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setActionManager",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setActionManager'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_popToRootScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popToRootScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popToRootScene'", nullptr); - return 0; - } - cobj->popToRootScene(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popToRootScene",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popToRootScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_loadMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_loadMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::MATRIX_STACK_TYPE arg0; - ax::Mat4 arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:loadMatrix"); - - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Director:loadMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_loadMatrix'", nullptr); - return 0; - } - cobj->loadMatrix(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:loadMatrix",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_loadMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getNotificationNode(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getNotificationNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getNotificationNode'", nullptr); - return 0; - } - auto&& ret = cobj->getNotificationNode(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getNotificationNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getNotificationNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getWinSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getWinSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getWinSize'", nullptr); - return 0; - } - auto&& ret = cobj->getWinSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getWinSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getWinSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getTextureCache(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getTextureCache'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getTextureCache'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureCache(); - object_to_luaval(tolua_S, "ax.TextureCache",(ax::TextureCache*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getTextureCache",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getTextureCache'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_isSendCleanupToScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isSendCleanupToScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isSendCleanupToScene'", nullptr); - return 0; - } - auto&& ret = cobj->isSendCleanupToScene(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isSendCleanupToScene",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isSendCleanupToScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getVisibleOrigin(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getVisibleOrigin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getVisibleOrigin'", nullptr); - return 0; - } - auto&& ret = cobj->getVisibleOrigin(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getVisibleOrigin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getVisibleOrigin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_mainLoop(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_mainLoop'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Director:mainLoop"); - - if (!ok) { break; } - cobj->mainLoop(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->mainLoop(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:mainLoop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_mainLoop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getFrameRate(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getFrameRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getFrameRate'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getFrameRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getFrameRate'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Director_getSecondsPerFrame(lua_State* tolua_S) { int argc = 0; @@ -15647,1940 +14871,6 @@ int lua_ax_base_Director_getSecondsPerFrame(lua_State* tolua_S) return 0; } -int lua_ax_base_Director_resetMatrixStack(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_resetMatrixStack'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_resetMatrixStack'", nullptr); - return 0; - } - cobj->resetMatrixStack(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:resetMatrixStack",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_resetMatrixStack'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_convertToUI(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_convertToUI'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Director:convertToUI"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_convertToUI'", nullptr); - return 0; - } - auto&& ret = cobj->convertToUI(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:convertToUI",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_convertToUI'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_pushMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_pushMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MATRIX_STACK_TYPE arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:pushMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_pushMatrix'", nullptr); - return 0; - } - cobj->pushMatrix(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:pushMatrix",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_pushMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setDefaultValues(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setDefaultValues'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setDefaultValues'", nullptr); - return 0; - } - cobj->setDefaultValues(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setDefaultValues",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setDefaultValues'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setScheduler(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setScheduler'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Scheduler* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Scheduler",&arg0, "ax.Director:setScheduler"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setScheduler'", nullptr); - return 0; - } - cobj->setScheduler(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setScheduler",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setScheduler'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MATRIX_STACK_TYPE arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:getMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getMatrix'", nullptr); - return 0; - } - auto&& ret = cobj->getMatrix(arg0); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getMatrix",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_isValid(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isValid'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isValid'", nullptr); - return 0; - } - auto&& ret = cobj->isValid(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isValid",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isValid'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getOpenGLView(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getOpenGLView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getOpenGLView'", nullptr); - return 0; - } - auto&& ret = cobj->getOpenGLView(); - object_to_luaval(tolua_S, "ax.GLView",(ax::GLView*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getOpenGLView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getOpenGLView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getRunningScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getRunningScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getRunningScene'", nullptr); - return 0; - } - auto&& ret = cobj->getRunningScene(); - object_to_luaval(tolua_S, "ax.Scene",(ax::Scene*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getRunningScene",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getRunningScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setViewport(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setViewport'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setViewport'", nullptr); - return 0; - } - cobj->setViewport(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setViewport",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setViewport'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_stopAnimation(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_stopAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_stopAnimation'", nullptr); - return 0; - } - cobj->stopAnimation(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:stopAnimation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_stopAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_popToSceneStackLevel(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popToSceneStackLevel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:popToSceneStackLevel"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popToSceneStackLevel'", nullptr); - return 0; - } - cobj->popToSceneStackLevel(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popToSceneStackLevel",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popToSceneStackLevel'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_resume(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_resume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_resume'", nullptr); - return 0; - } - cobj->resume(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:resume",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_resume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_isNextDeltaTimeZero(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isNextDeltaTimeZero'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isNextDeltaTimeZero'", nullptr); - return 0; - } - auto&& ret = cobj->isNextDeltaTimeZero(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isNextDeltaTimeZero",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isNextDeltaTimeZero'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_isChildrenIndexerEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isChildrenIndexerEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isChildrenIndexerEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isChildrenIndexerEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isChildrenIndexerEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isChildrenIndexerEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setClearColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setClearColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4F arg0; - - ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.Director:setClearColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setClearColor'", nullptr); - return 0; - } - cobj->setClearColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setClearColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setClearColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_end(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_end'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_end'", nullptr); - return 0; - } - cobj->end(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:end",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_end'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setOpenGLView(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setOpenGLView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::GLView* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.GLView",&arg0, "ax.Director:setOpenGLView"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setOpenGLView'", nullptr); - return 0; - } - cobj->setOpenGLView(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setOpenGLView",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setOpenGLView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_convertToGL(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_convertToGL'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Director:convertToGL"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_convertToGL'", nullptr); - return 0; - } - auto&& ret = cobj->convertToGL(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:convertToGL",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_convertToGL'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderer(); - object_to_luaval(tolua_S, "ax.Renderer",(ax::Renderer*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getTotalFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getTotalFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getTotalFrames'", nullptr); - return 0; - } - auto&& ret = cobj->getTotalFrames(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getTotalFrames",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getTotalFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_runWithScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_runWithScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Scene* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.Director:runWithScene"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_runWithScene'", nullptr); - return 0; - } - cobj->runWithScene(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:runWithScene",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_runWithScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setNotificationNode(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setNotificationNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Director:setNotificationNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setNotificationNode'", nullptr); - return 0; - } - cobj->setNotificationNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setNotificationNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setNotificationNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_isStatsDisplay(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isStatsDisplay'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isStatsDisplay'", nullptr); - return 0; - } - auto&& ret = cobj->isStatsDisplay(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isStatsDisplay",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isStatsDisplay'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setChildrenIndexerEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setChildrenIndexerEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Director:setChildrenIndexerEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setChildrenIndexerEnabled'", nullptr); - return 0; - } - cobj->setChildrenIndexerEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setChildrenIndexerEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setChildrenIndexerEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_drawScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_drawScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_drawScene'", nullptr); - return 0; - } - cobj->drawScene(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:drawScene",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_drawScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_restart(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_restart'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_restart'", nullptr); - return 0; - } - cobj->restart(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:restart",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_restart'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_popScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popScene'", nullptr); - return 0; - } - cobj->popScene(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popScene",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_loadIdentityMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_loadIdentityMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MATRIX_STACK_TYPE arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:loadIdentityMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_loadIdentityMatrix'", nullptr); - return 0; - } - cobj->loadIdentityMatrix(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:loadIdentityMatrix",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_loadIdentityMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_startAnimation(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_startAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_startAnimation'", nullptr); - return 0; - } - cobj->startAnimation(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:startAnimation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_startAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setProjection(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setProjection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Director::Projection arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:setProjection"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setProjection'", nullptr); - return 0; - } - cobj->setProjection(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setProjection",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setProjection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getConsole(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getConsole'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getConsole'", nullptr); - return 0; - } - auto&& ret = cobj->getConsole(); - object_to_luaval(tolua_S, "ax.Console",(ax::Console*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getConsole",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getConsole'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_multiplyMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_multiplyMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::MATRIX_STACK_TYPE arg0; - ax::Mat4 arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:multiplyMatrix"); - - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Director:multiplyMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_multiplyMatrix'", nullptr); - return 0; - } - cobj->multiplyMatrix(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:multiplyMatrix",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_multiplyMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getZEye(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getZEye'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getZEye'", nullptr); - return 0; - } - auto&& ret = cobj->getZEye(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getZEye",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getZEye'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_setNextDeltaTimeZero(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setNextDeltaTimeZero'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Director:setNextDeltaTimeZero"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setNextDeltaTimeZero'", nullptr); - return 0; - } - cobj->setNextDeltaTimeZero(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setNextDeltaTimeZero",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setNextDeltaTimeZero'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_popMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MATRIX_STACK_TYPE arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:popMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popMatrix'", nullptr); - return 0; - } - cobj->popMatrix(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popMatrix",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getVisibleSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getVisibleSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getVisibleSize'", nullptr); - return 0; - } - auto&& ret = cobj->getVisibleSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getVisibleSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getVisibleSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_getScheduler(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getScheduler'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getScheduler'", nullptr); - return 0; - } - auto&& ret = cobj->getScheduler(); - object_to_luaval(tolua_S, "ax.Scheduler",(ax::Scheduler*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getScheduler",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getScheduler'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Director_pushScene(lua_State* tolua_S) -{ - int argc = 0; - ax::Director* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_pushScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Scene* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.Director:pushScene"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_pushScene'", nullptr); - return 0; - } - cobj->pushScene(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:pushScene",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_pushScene'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Director_setStatsAnchor(lua_State* tolua_S) { int argc = 0; @@ -17642,7 +14932,7 @@ int lua_ax_base_Director_setStatsAnchor(lua_State* tolua_S) return 0; } -int lua_ax_base_Director_getAnimationInterval(lua_State* tolua_S) +int lua_ax_base_Director_getOpenGLView(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -17662,7 +14952,7 @@ int lua_ax_base_Director_getAnimationInterval(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getAnimationInterval'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getOpenGLView'", nullptr); return 0; } #endif @@ -17672,19 +14962,213 @@ int lua_ax_base_Director_getAnimationInterval(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getAnimationInterval'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getOpenGLView'", nullptr); return 0; } - auto&& ret = cobj->getAnimationInterval(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getOpenGLView(); + object_to_luaval(tolua_S, "ax.GLView",(ax::GLView*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getAnimationInterval",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getOpenGLView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getAnimationInterval'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getOpenGLView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setOpenGLView(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setOpenGLView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::GLView* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.GLView",&arg0, "ax.Director:setOpenGLView"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setOpenGLView'", nullptr); + return 0; + } + cobj->setOpenGLView(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setOpenGLView",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setOpenGLView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getTextureCache(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getTextureCache'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getTextureCache'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureCache(); + object_to_luaval(tolua_S, "ax.TextureCache",(ax::TextureCache*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getTextureCache",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getTextureCache'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_isNextDeltaTimeZero(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isNextDeltaTimeZero'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isNextDeltaTimeZero'", nullptr); + return 0; + } + auto&& ret = cobj->isNextDeltaTimeZero(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isNextDeltaTimeZero",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isNextDeltaTimeZero'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setNextDeltaTimeZero(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setNextDeltaTimeZero'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Director:setNextDeltaTimeZero"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setNextDeltaTimeZero'", nullptr); + return 0; + } + cobj->setNextDeltaTimeZero(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setNextDeltaTimeZero",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setNextDeltaTimeZero'.",&tolua_err); #endif return 0; @@ -17736,7 +15220,7 @@ int lua_ax_base_Director_isPaused(lua_State* tolua_S) return 0; } -int lua_ax_base_Director_purgeCachedData(lua_State* tolua_S) +int lua_ax_base_Director_getTotalFrames(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -17756,7 +15240,7 @@ int lua_ax_base_Director_purgeCachedData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_purgeCachedData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getTotalFrames'", nullptr); return 0; } #endif @@ -17766,24 +15250,24 @@ int lua_ax_base_Director_purgeCachedData(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_purgeCachedData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getTotalFrames'", nullptr); return 0; } - cobj->purgeCachedData(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getTotalFrames(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:purgeCachedData",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getTotalFrames",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_purgeCachedData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getTotalFrames'.",&tolua_err); #endif return 0; } -int lua_ax_base_Director_getEventDispatcher(lua_State* tolua_S) +int lua_ax_base_Director_setProjection(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -17803,7 +15287,57 @@ int lua_ax_base_Director_getEventDispatcher(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getEventDispatcher'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setProjection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Director::Projection arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:setProjection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setProjection'", nullptr); + return 0; + } + cobj->setProjection(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setProjection",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setProjection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setViewport(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setViewport'", nullptr); return 0; } #endif @@ -17813,19 +15347,789 @@ int lua_ax_base_Director_getEventDispatcher(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getEventDispatcher'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setViewport'", nullptr); return 0; } - auto&& ret = cobj->getEventDispatcher(); - object_to_luaval(tolua_S, "ax.EventDispatcher",(ax::EventDispatcher*)ret); + cobj->setViewport(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getEventDispatcher",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setViewport",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getEventDispatcher'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setViewport'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_isSendCleanupToScene(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isSendCleanupToScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isSendCleanupToScene'", nullptr); + return 0; + } + auto&& ret = cobj->isSendCleanupToScene(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isSendCleanupToScene",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isSendCleanupToScene'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getNotificationNode(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getNotificationNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getNotificationNode'", nullptr); + return 0; + } + auto&& ret = cobj->getNotificationNode(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getNotificationNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getNotificationNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setNotificationNode(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setNotificationNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Director:setNotificationNode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setNotificationNode'", nullptr); + return 0; + } + cobj->setNotificationNode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setNotificationNode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setNotificationNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getWinSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getWinSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getWinSize'", nullptr); + return 0; + } + auto&& ret = cobj->getWinSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getWinSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getWinSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getWinSizeInPixels(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getWinSizeInPixels'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getWinSizeInPixels'", nullptr); + return 0; + } + auto&& ret = cobj->getWinSizeInPixels(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getWinSizeInPixels",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getWinSizeInPixels'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getVisibleSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getVisibleSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getVisibleSize'", nullptr); + return 0; + } + auto&& ret = cobj->getVisibleSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getVisibleSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getVisibleSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getVisibleOrigin(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getVisibleOrigin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getVisibleOrigin'", nullptr); + return 0; + } + auto&& ret = cobj->getVisibleOrigin(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getVisibleOrigin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getVisibleOrigin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getSafeAreaRect(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getSafeAreaRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getSafeAreaRect'", nullptr); + return 0; + } + auto&& ret = cobj->getSafeAreaRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getSafeAreaRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getSafeAreaRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_convertToGL(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_convertToGL'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Director:convertToGL"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_convertToGL'", nullptr); + return 0; + } + auto&& ret = cobj->convertToGL(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:convertToGL",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_convertToGL'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_convertToUI(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_convertToUI'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Director:convertToUI"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_convertToUI'", nullptr); + return 0; + } + auto&& ret = cobj->convertToUI(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:convertToUI",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_convertToUI'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getZEye(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getZEye'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getZEye'", nullptr); + return 0; + } + auto&& ret = cobj->getZEye(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getZEye",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getZEye'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_runWithScene(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_runWithScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Scene* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.Director:runWithScene"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_runWithScene'", nullptr); + return 0; + } + cobj->runWithScene(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:runWithScene",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_runWithScene'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_pushScene(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_pushScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Scene* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.Director:pushScene"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_pushScene'", nullptr); + return 0; + } + cobj->pushScene(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:pushScene",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_pushScene'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_popScene(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popScene'", nullptr); + return 0; + } + cobj->popScene(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popScene",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popScene'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_popToRootScene(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popToRootScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popToRootScene'", nullptr); + return 0; + } + cobj->popToRootScene(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popToRootScene",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popToRootScene'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_popToSceneStackLevel(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popToSceneStackLevel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:popToSceneStackLevel"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popToSceneStackLevel'", nullptr); + return 0; + } + cobj->popToSceneStackLevel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popToSceneStackLevel",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popToSceneStackLevel'.",&tolua_err); #endif return 0; @@ -17880,7 +16184,7 @@ int lua_ax_base_Director_replaceScene(lua_State* tolua_S) return 0; } -int lua_ax_base_Director_setAnimationInterval(lua_State* tolua_S) +int lua_ax_base_Director_end(lua_State* tolua_S) { int argc = 0; ax::Director* cobj = nullptr; @@ -17900,7 +16204,578 @@ int lua_ax_base_Director_setAnimationInterval(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setAnimationInterval'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_end'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_end'", nullptr); + return 0; + } + cobj->end(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:end",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_end'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_pause(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_pause'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_pause'", nullptr); + return 0; + } + cobj->pause(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:pause",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_pause'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_resume(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_resume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_resume'", nullptr); + return 0; + } + cobj->resume(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:resume",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_resume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_restart(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_restart'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_restart'", nullptr); + return 0; + } + cobj->restart(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:restart",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_restart'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_stopAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_stopAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_stopAnimation'", nullptr); + return 0; + } + cobj->stopAnimation(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:stopAnimation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_stopAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_startAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_startAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_startAnimation'", nullptr); + return 0; + } + cobj->startAnimation(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:startAnimation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_startAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_drawScene(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_drawScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_drawScene'", nullptr); + return 0; + } + cobj->drawScene(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:drawScene",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_drawScene'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_purgeCachedData(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_purgeCachedData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_purgeCachedData'", nullptr); + return 0; + } + cobj->purgeCachedData(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:purgeCachedData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_purgeCachedData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setDefaultValues(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setDefaultValues'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setDefaultValues'", nullptr); + return 0; + } + cobj->setDefaultValues(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setDefaultValues",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setDefaultValues'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setGLDefaultValues(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setGLDefaultValues'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setGLDefaultValues'", nullptr); + return 0; + } + cobj->setGLDefaultValues(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setGLDefaultValues",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setGLDefaultValues'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setClearColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setClearColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4F arg0; + + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.Director:setClearColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setClearColor'", nullptr); + return 0; + } + cobj->setClearColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setClearColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setClearColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_mainLoop(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_mainLoop'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Director:mainLoop"); + + if (!ok) { break; } + cobj->mainLoop(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->mainLoop(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:mainLoop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_mainLoop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setContentScaleFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setContentScaleFactor'", nullptr); return 0; } #endif @@ -17910,22 +16785,166 @@ int lua_ax_base_Director_setAnimationInterval(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Director:setAnimationInterval"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Director:setContentScaleFactor"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setAnimationInterval'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setContentScaleFactor'", nullptr); return 0; } - cobj->setAnimationInterval(arg0); + cobj->setContentScaleFactor(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setAnimationInterval",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setContentScaleFactor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setAnimationInterval'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setContentScaleFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getContentScaleFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getContentScaleFactor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getContentScaleFactor'", nullptr); + return 0; + } + auto&& ret = cobj->getContentScaleFactor(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getContentScaleFactor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getContentScaleFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getScheduler(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getScheduler'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getScheduler'", nullptr); + return 0; + } + auto&& ret = cobj->getScheduler(); + object_to_luaval(tolua_S, "ax.Scheduler",(ax::Scheduler*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getScheduler",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getScheduler'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setScheduler(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setScheduler'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Scheduler* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Scheduler",&arg0, "ax.Director:setScheduler"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setScheduler'", nullptr); + return 0; + } + cobj->setScheduler(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setScheduler",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setScheduler'.",&tolua_err); #endif return 0; @@ -17977,6 +16996,885 @@ int lua_ax_base_Director_getActionManager(lua_State* tolua_S) return 0; } +int lua_ax_base_Director_setActionManager(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setActionManager'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ActionManager* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.ActionManager",&arg0, "ax.Director:setActionManager"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setActionManager'", nullptr); + return 0; + } + cobj->setActionManager(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setActionManager",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setActionManager'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getEventDispatcher(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getEventDispatcher'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getEventDispatcher'", nullptr); + return 0; + } + auto&& ret = cobj->getEventDispatcher(); + object_to_luaval(tolua_S, "ax.EventDispatcher",(ax::EventDispatcher*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getEventDispatcher",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getEventDispatcher'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setEventDispatcher(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setEventDispatcher'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::EventDispatcher* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.EventDispatcher",&arg0, "ax.Director:setEventDispatcher"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setEventDispatcher'", nullptr); + return 0; + } + cobj->setEventDispatcher(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setEventDispatcher",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setEventDispatcher'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderer(); + object_to_luaval(tolua_S, "ax.Renderer",(ax::Renderer*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getConsole(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getConsole'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getConsole'", nullptr); + return 0; + } + auto&& ret = cobj->getConsole(); + object_to_luaval(tolua_S, "ax.Console",(ax::Console*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getConsole",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getConsole'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getDeltaTime(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getDeltaTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getDeltaTime'", nullptr); + return 0; + } + auto&& ret = cobj->getDeltaTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getDeltaTime",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getDeltaTime'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getFrameRate(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getFrameRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getFrameRate'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getFrameRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getFrameRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_pushMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_pushMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::MATRIX_STACK_TYPE arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:pushMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_pushMatrix'", nullptr); + return 0; + } + cobj->pushMatrix(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:pushMatrix",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_pushMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_popMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_popMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::MATRIX_STACK_TYPE arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:popMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_popMatrix'", nullptr); + return 0; + } + cobj->popMatrix(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:popMatrix",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_popMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_loadIdentityMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_loadIdentityMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::MATRIX_STACK_TYPE arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:loadIdentityMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_loadIdentityMatrix'", nullptr); + return 0; + } + cobj->loadIdentityMatrix(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:loadIdentityMatrix",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_loadIdentityMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_loadMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_loadMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::MATRIX_STACK_TYPE arg0; + ax::Mat4 arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:loadMatrix"); + + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Director:loadMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_loadMatrix'", nullptr); + return 0; + } + cobj->loadMatrix(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:loadMatrix",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_loadMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_multiplyMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_multiplyMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::MATRIX_STACK_TYPE arg0; + ax::Mat4 arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:multiplyMatrix"); + + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Director:multiplyMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_multiplyMatrix'", nullptr); + return 0; + } + cobj->multiplyMatrix(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:multiplyMatrix",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_multiplyMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::MATRIX_STACK_TYPE arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Director:getMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getMatrix'", nullptr); + return 0; + } + auto&& ret = cobj->getMatrix(arg0); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getMatrix",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_resetMatrixStack(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_resetMatrixStack'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_resetMatrixStack'", nullptr); + return 0; + } + cobj->resetMatrixStack(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:resetMatrixStack",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_resetMatrixStack'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_getAxmolThreadId(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_getAxmolThreadId'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_getAxmolThreadId'", nullptr); + return 0; + } + auto&& ret = cobj->getAxmolThreadId(); + std_thread_id_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:getAxmolThreadId",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_getAxmolThreadId'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_setChildrenIndexerEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setChildrenIndexerEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Director:setChildrenIndexerEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setChildrenIndexerEnabled'", nullptr); + return 0; + } + cobj->setChildrenIndexerEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setChildrenIndexerEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setChildrenIndexerEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_isChildrenIndexerEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isChildrenIndexerEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isChildrenIndexerEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isChildrenIndexerEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isChildrenIndexerEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isChildrenIndexerEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Director_isValid(lua_State* tolua_S) +{ + int argc = 0; + ax::Director* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isValid'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isValid'", nullptr); + return 0; + } + auto&& ret = cobj->isValid(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isValid",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isValid'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Director_getInstance(lua_State* tolua_S) { int argc = 0; @@ -18023,75 +17921,75 @@ int lua_register_ax_base_Director(lua_State* tolua_S) tolua_cclass(tolua_S,"Director","ax.Director","",nullptr); tolua_beginmodule(tolua_S,"Director"); - tolua_function(tolua_S,"pause",lua_ax_base_Director_pause); - tolua_function(tolua_S,"getAxmolThreadId",lua_ax_base_Director_getAxmolThreadId); - tolua_function(tolua_S,"setEventDispatcher",lua_ax_base_Director_setEventDispatcher); - tolua_function(tolua_S,"setContentScaleFactor",lua_ax_base_Director_setContentScaleFactor); - tolua_function(tolua_S,"getDeltaTime",lua_ax_base_Director_getDeltaTime); - tolua_function(tolua_S,"setStatsDisplay",lua_ax_base_Director_setStatsDisplay); - tolua_function(tolua_S,"getContentScaleFactor",lua_ax_base_Director_getContentScaleFactor); - tolua_function(tolua_S,"getWinSizeInPixels",lua_ax_base_Director_getWinSizeInPixels); - tolua_function(tolua_S,"getSafeAreaRect",lua_ax_base_Director_getSafeAreaRect); - tolua_function(tolua_S,"setGLDefaultValues",lua_ax_base_Director_setGLDefaultValues); - tolua_function(tolua_S,"setActionManager",lua_ax_base_Director_setActionManager); - tolua_function(tolua_S,"popToRootScene",lua_ax_base_Director_popToRootScene); - tolua_function(tolua_S,"loadMatrix",lua_ax_base_Director_loadMatrix); - tolua_function(tolua_S,"getNotificationNode",lua_ax_base_Director_getNotificationNode); - tolua_function(tolua_S,"getWinSize",lua_ax_base_Director_getWinSize); - tolua_function(tolua_S,"getTextureCache",lua_ax_base_Director_getTextureCache); - tolua_function(tolua_S,"isSendCleanupToScene",lua_ax_base_Director_isSendCleanupToScene); - tolua_function(tolua_S,"getVisibleOrigin",lua_ax_base_Director_getVisibleOrigin); - tolua_function(tolua_S,"mainLoop",lua_ax_base_Director_mainLoop); - tolua_function(tolua_S,"getFrameRate",lua_ax_base_Director_getFrameRate); - tolua_function(tolua_S,"getSecondsPerFrame",lua_ax_base_Director_getSecondsPerFrame); - tolua_function(tolua_S,"resetMatrixStack",lua_ax_base_Director_resetMatrixStack); - tolua_function(tolua_S,"convertToUI",lua_ax_base_Director_convertToUI); - tolua_function(tolua_S,"pushMatrix",lua_ax_base_Director_pushMatrix); - tolua_function(tolua_S,"setDefaultValues",lua_ax_base_Director_setDefaultValues); tolua_function(tolua_S,"init",lua_ax_base_Director_init); - tolua_function(tolua_S,"setScheduler",lua_ax_base_Director_setScheduler); - tolua_function(tolua_S,"getMatrix",lua_ax_base_Director_getMatrix); - tolua_function(tolua_S,"isValid",lua_ax_base_Director_isValid); - tolua_function(tolua_S,"getOpenGLView",lua_ax_base_Director_getOpenGLView); tolua_function(tolua_S,"getRunningScene",lua_ax_base_Director_getRunningScene); - tolua_function(tolua_S,"setViewport",lua_ax_base_Director_setViewport); - tolua_function(tolua_S,"stopAnimation",lua_ax_base_Director_stopAnimation); - tolua_function(tolua_S,"popToSceneStackLevel",lua_ax_base_Director_popToSceneStackLevel); - tolua_function(tolua_S,"resume",lua_ax_base_Director_resume); - tolua_function(tolua_S,"isNextDeltaTimeZero",lua_ax_base_Director_isNextDeltaTimeZero); - tolua_function(tolua_S,"isChildrenIndexerEnabled",lua_ax_base_Director_isChildrenIndexerEnabled); - tolua_function(tolua_S,"setClearColor",lua_ax_base_Director_setClearColor); - tolua_function(tolua_S,"endToLua",lua_ax_base_Director_end); - tolua_function(tolua_S,"setOpenGLView",lua_ax_base_Director_setOpenGLView); - tolua_function(tolua_S,"convertToGL",lua_ax_base_Director_convertToGL); - tolua_function(tolua_S,"getRenderer",lua_ax_base_Director_getRenderer); - tolua_function(tolua_S,"getTotalFrames",lua_ax_base_Director_getTotalFrames); - tolua_function(tolua_S,"runWithScene",lua_ax_base_Director_runWithScene); - tolua_function(tolua_S,"setNotificationNode",lua_ax_base_Director_setNotificationNode); - tolua_function(tolua_S,"isStatsDisplay",lua_ax_base_Director_isStatsDisplay); - tolua_function(tolua_S,"setChildrenIndexerEnabled",lua_ax_base_Director_setChildrenIndexerEnabled); - tolua_function(tolua_S,"drawScene",lua_ax_base_Director_drawScene); - tolua_function(tolua_S,"restart",lua_ax_base_Director_restart); - tolua_function(tolua_S,"popScene",lua_ax_base_Director_popScene); - tolua_function(tolua_S,"loadIdentityMatrix",lua_ax_base_Director_loadIdentityMatrix); - tolua_function(tolua_S,"startAnimation",lua_ax_base_Director_startAnimation); - tolua_function(tolua_S,"setProjection",lua_ax_base_Director_setProjection); - tolua_function(tolua_S,"getConsole",lua_ax_base_Director_getConsole); - tolua_function(tolua_S,"multiplyMatrix",lua_ax_base_Director_multiplyMatrix); - tolua_function(tolua_S,"getZEye",lua_ax_base_Director_getZEye); - tolua_function(tolua_S,"setNextDeltaTimeZero",lua_ax_base_Director_setNextDeltaTimeZero); - tolua_function(tolua_S,"popMatrix",lua_ax_base_Director_popMatrix); - tolua_function(tolua_S,"getVisibleSize",lua_ax_base_Director_getVisibleSize); - tolua_function(tolua_S,"getScheduler",lua_ax_base_Director_getScheduler); - tolua_function(tolua_S,"pushScene",lua_ax_base_Director_pushScene); - tolua_function(tolua_S,"setStatsAnchor",lua_ax_base_Director_setStatsAnchor); tolua_function(tolua_S,"getAnimationInterval",lua_ax_base_Director_getAnimationInterval); - tolua_function(tolua_S,"isPaused",lua_ax_base_Director_isPaused); - tolua_function(tolua_S,"purgeCachedData",lua_ax_base_Director_purgeCachedData); - tolua_function(tolua_S,"getEventDispatcher",lua_ax_base_Director_getEventDispatcher); - tolua_function(tolua_S,"replaceScene",lua_ax_base_Director_replaceScene); tolua_function(tolua_S,"setAnimationInterval",lua_ax_base_Director_setAnimationInterval); + tolua_function(tolua_S,"isStatsDisplay",lua_ax_base_Director_isStatsDisplay); + tolua_function(tolua_S,"setStatsDisplay",lua_ax_base_Director_setStatsDisplay); + tolua_function(tolua_S,"getSecondsPerFrame",lua_ax_base_Director_getSecondsPerFrame); + tolua_function(tolua_S,"setStatsAnchor",lua_ax_base_Director_setStatsAnchor); + tolua_function(tolua_S,"getOpenGLView",lua_ax_base_Director_getOpenGLView); + tolua_function(tolua_S,"setOpenGLView",lua_ax_base_Director_setOpenGLView); + tolua_function(tolua_S,"getTextureCache",lua_ax_base_Director_getTextureCache); + tolua_function(tolua_S,"isNextDeltaTimeZero",lua_ax_base_Director_isNextDeltaTimeZero); + tolua_function(tolua_S,"setNextDeltaTimeZero",lua_ax_base_Director_setNextDeltaTimeZero); + tolua_function(tolua_S,"isPaused",lua_ax_base_Director_isPaused); + tolua_function(tolua_S,"getTotalFrames",lua_ax_base_Director_getTotalFrames); + tolua_function(tolua_S,"setProjection",lua_ax_base_Director_setProjection); + tolua_function(tolua_S,"setViewport",lua_ax_base_Director_setViewport); + tolua_function(tolua_S,"isSendCleanupToScene",lua_ax_base_Director_isSendCleanupToScene); + tolua_function(tolua_S,"getNotificationNode",lua_ax_base_Director_getNotificationNode); + tolua_function(tolua_S,"setNotificationNode",lua_ax_base_Director_setNotificationNode); + tolua_function(tolua_S,"getWinSize",lua_ax_base_Director_getWinSize); + tolua_function(tolua_S,"getWinSizeInPixels",lua_ax_base_Director_getWinSizeInPixels); + tolua_function(tolua_S,"getVisibleSize",lua_ax_base_Director_getVisibleSize); + tolua_function(tolua_S,"getVisibleOrigin",lua_ax_base_Director_getVisibleOrigin); + tolua_function(tolua_S,"getSafeAreaRect",lua_ax_base_Director_getSafeAreaRect); + tolua_function(tolua_S,"convertToGL",lua_ax_base_Director_convertToGL); + tolua_function(tolua_S,"convertToUI",lua_ax_base_Director_convertToUI); + tolua_function(tolua_S,"getZEye",lua_ax_base_Director_getZEye); + tolua_function(tolua_S,"runWithScene",lua_ax_base_Director_runWithScene); + tolua_function(tolua_S,"pushScene",lua_ax_base_Director_pushScene); + tolua_function(tolua_S,"popScene",lua_ax_base_Director_popScene); + tolua_function(tolua_S,"popToRootScene",lua_ax_base_Director_popToRootScene); + tolua_function(tolua_S,"popToSceneStackLevel",lua_ax_base_Director_popToSceneStackLevel); + tolua_function(tolua_S,"replaceScene",lua_ax_base_Director_replaceScene); + tolua_function(tolua_S,"endToLua",lua_ax_base_Director_end); + tolua_function(tolua_S,"pause",lua_ax_base_Director_pause); + tolua_function(tolua_S,"resume",lua_ax_base_Director_resume); + tolua_function(tolua_S,"restart",lua_ax_base_Director_restart); + tolua_function(tolua_S,"stopAnimation",lua_ax_base_Director_stopAnimation); + tolua_function(tolua_S,"startAnimation",lua_ax_base_Director_startAnimation); + tolua_function(tolua_S,"drawScene",lua_ax_base_Director_drawScene); + tolua_function(tolua_S,"purgeCachedData",lua_ax_base_Director_purgeCachedData); + tolua_function(tolua_S,"setDefaultValues",lua_ax_base_Director_setDefaultValues); + tolua_function(tolua_S,"setGLDefaultValues",lua_ax_base_Director_setGLDefaultValues); + tolua_function(tolua_S,"setClearColor",lua_ax_base_Director_setClearColor); + tolua_function(tolua_S,"mainLoop",lua_ax_base_Director_mainLoop); + tolua_function(tolua_S,"setContentScaleFactor",lua_ax_base_Director_setContentScaleFactor); + tolua_function(tolua_S,"getContentScaleFactor",lua_ax_base_Director_getContentScaleFactor); + tolua_function(tolua_S,"getScheduler",lua_ax_base_Director_getScheduler); + tolua_function(tolua_S,"setScheduler",lua_ax_base_Director_setScheduler); tolua_function(tolua_S,"getActionManager",lua_ax_base_Director_getActionManager); + tolua_function(tolua_S,"setActionManager",lua_ax_base_Director_setActionManager); + tolua_function(tolua_S,"getEventDispatcher",lua_ax_base_Director_getEventDispatcher); + tolua_function(tolua_S,"setEventDispatcher",lua_ax_base_Director_setEventDispatcher); + tolua_function(tolua_S,"getRenderer",lua_ax_base_Director_getRenderer); + tolua_function(tolua_S,"getConsole",lua_ax_base_Director_getConsole); + tolua_function(tolua_S,"getDeltaTime",lua_ax_base_Director_getDeltaTime); + tolua_function(tolua_S,"getFrameRate",lua_ax_base_Director_getFrameRate); + tolua_function(tolua_S,"pushMatrix",lua_ax_base_Director_pushMatrix); + tolua_function(tolua_S,"popMatrix",lua_ax_base_Director_popMatrix); + tolua_function(tolua_S,"loadIdentityMatrix",lua_ax_base_Director_loadIdentityMatrix); + tolua_function(tolua_S,"loadMatrix",lua_ax_base_Director_loadMatrix); + tolua_function(tolua_S,"multiplyMatrix",lua_ax_base_Director_multiplyMatrix); + tolua_function(tolua_S,"getMatrix",lua_ax_base_Director_getMatrix); + tolua_function(tolua_S,"resetMatrixStack",lua_ax_base_Director_resetMatrixStack); + tolua_function(tolua_S,"getAxmolThreadId",lua_ax_base_Director_getAxmolThreadId); + tolua_function(tolua_S,"setChildrenIndexerEnabled",lua_ax_base_Director_setChildrenIndexerEnabled); + tolua_function(tolua_S,"isChildrenIndexerEnabled",lua_ax_base_Director_isChildrenIndexerEnabled); + tolua_function(tolua_S,"isValid",lua_ax_base_Director_isValid); tolua_function(tolua_S,"getInstance", lua_ax_base_Director_getInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Director).name(); // rtti is literal storage @@ -18156,7 +18054,7 @@ int lua_ax_base_Timer_setupTimerWithInterval(lua_State* tolua_S) return 0; } -int lua_ax_base_Timer_update(lua_State* tolua_S) +int lua_ax_base_Timer_setAborted(lua_State* tolua_S) { int argc = 0; ax::Timer* cobj = nullptr; @@ -18176,32 +18074,29 @@ int lua_ax_base_Timer_update(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Timer_update'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Timer_setAborted'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Timer:update"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Timer_update'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Timer_setAborted'", nullptr); return 0; } - cobj->update(arg0); + cobj->setAborted(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Timer:update",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Timer:setAborted",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Timer_update'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Timer_setAborted'.",&tolua_err); #endif return 0; @@ -18397,7 +18292,7 @@ int lua_ax_base_Timer_cancel(lua_State* tolua_S) return 0; } -int lua_ax_base_Timer_setAborted(lua_State* tolua_S) +int lua_ax_base_Timer_update(lua_State* tolua_S) { int argc = 0; ax::Timer* cobj = nullptr; @@ -18417,29 +18312,32 @@ int lua_ax_base_Timer_setAborted(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Timer_setAborted'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Timer_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Timer:update"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Timer_setAborted'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Timer_update'", nullptr); return 0; } - cobj->setAborted(); + cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Timer:setAborted",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Timer:update",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Timer_setAborted'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Timer_update'.",&tolua_err); #endif return 0; @@ -18457,12 +18355,12 @@ int lua_register_ax_base_Timer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Timer"); tolua_function(tolua_S,"setupTimerWithInterval",lua_ax_base_Timer_setupTimerWithInterval); - tolua_function(tolua_S,"update",lua_ax_base_Timer_update); + tolua_function(tolua_S,"setAborted",lua_ax_base_Timer_setAborted); tolua_function(tolua_S,"isAborted",lua_ax_base_Timer_isAborted); tolua_function(tolua_S,"isExhausted",lua_ax_base_Timer_isExhausted); tolua_function(tolua_S,"trigger",lua_ax_base_Timer_trigger); tolua_function(tolua_S,"cancel",lua_ax_base_Timer_cancel); - tolua_function(tolua_S,"setAborted",lua_ax_base_Timer_setAborted); + tolua_function(tolua_S,"update",lua_ax_base_Timer_update); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Timer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Timer"; @@ -18470,6 +18368,53 @@ int lua_register_ax_base_Timer(lua_State* tolua_S) return 1; } +int lua_ax_base_Scheduler_getTimeScale(lua_State* tolua_S) +{ + int argc = 0; + ax::Scheduler* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Scheduler",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Scheduler*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scheduler_getTimeScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scheduler_getTimeScale'", nullptr); + return 0; + } + auto&& ret = cobj->getTimeScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scheduler:getTimeScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scheduler_getTimeScale'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Scheduler_setTimeScale(lua_State* tolua_S) { int argc = 0; @@ -18621,53 +18566,6 @@ int lua_ax_base_Scheduler_removeAllPendingActions(lua_State* tolua_S) return 0; } -int lua_ax_base_Scheduler_getTimeScale(lua_State* tolua_S) -{ - int argc = 0; - ax::Scheduler* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Scheduler",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Scheduler*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Scheduler_getTimeScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Scheduler_getTimeScale'", nullptr); - return 0; - } - auto&& ret = cobj->getTimeScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scheduler:getTimeScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Scheduler_getTimeScale'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Scheduler_constructor(lua_State* tolua_S) { int argc = 0; @@ -18718,10 +18616,10 @@ int lua_register_ax_base_Scheduler(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Scheduler"); tolua_function(tolua_S,"new",lua_ax_base_Scheduler_constructor); + tolua_function(tolua_S,"getTimeScale",lua_ax_base_Scheduler_getTimeScale); tolua_function(tolua_S,"setTimeScale",lua_ax_base_Scheduler_setTimeScale); tolua_function(tolua_S,"runOnAxmolThread",lua_ax_base_Scheduler_runOnAxmolThread); tolua_function(tolua_S,"removeAllPendingActions",lua_ax_base_Scheduler_removeAllPendingActions); - tolua_function(tolua_S,"getTimeScale",lua_ax_base_Scheduler_getTimeScale); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Scheduler).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Scheduler"; @@ -18729,6 +18627,56 @@ int lua_register_ax_base_Scheduler(lua_State* tolua_S) return 1; } +int lua_ax_base_AsyncTaskPool_stopTasks(lua_State* tolua_S) +{ + int argc = 0; + ax::AsyncTaskPool* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AsyncTaskPool_stopTasks'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::AsyncTaskPool::TaskType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AsyncTaskPool:stopTasks"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AsyncTaskPool_stopTasks'", nullptr); + return 0; + } + cobj->stopTasks(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AsyncTaskPool:stopTasks",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AsyncTaskPool_stopTasks'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_AsyncTaskPool_enqueue(lua_State* tolua_S) { int argc = 0; @@ -18813,54 +18761,38 @@ int lua_ax_base_AsyncTaskPool_enqueue(lua_State* tolua_S) return 0; } -int lua_ax_base_AsyncTaskPool_stopTasks(lua_State* tolua_S) +int lua_ax_base_AsyncTaskPool_getInstance(lua_State* tolua_S) { int argc = 0; - ax::AsyncTaskPool* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 0) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AsyncTaskPool_stopTasks'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::AsyncTaskPool::TaskType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AsyncTaskPool:stopTasks"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AsyncTaskPool_stopTasks'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AsyncTaskPool_getInstance'", nullptr); return 0; } - cobj->stopTasks(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::AsyncTaskPool::getInstance(); + object_to_luaval(tolua_S, "ax.AsyncTaskPool",(ax::AsyncTaskPool*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AsyncTaskPool:stopTasks",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AsyncTaskPool:getInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AsyncTaskPool_stopTasks'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AsyncTaskPool_getInstance'.",&tolua_err); #endif - return 0; } int lua_ax_base_AsyncTaskPool_destroyInstance(lua_State* tolua_S) @@ -18897,40 +18829,6 @@ int lua_ax_base_AsyncTaskPool_destroyInstance(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_AsyncTaskPool_getInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AsyncTaskPool_getInstance'", nullptr); - return 0; - } - auto&& ret = ax::AsyncTaskPool::getInstance(); - object_to_luaval(tolua_S, "ax.AsyncTaskPool",(ax::AsyncTaskPool*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AsyncTaskPool:getInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AsyncTaskPool_getInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_AsyncTaskPool_constructor(lua_State* tolua_S) { int argc = 0; @@ -18979,10 +18877,10 @@ int lua_register_ax_base_AsyncTaskPool(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AsyncTaskPool"); tolua_function(tolua_S,"new",lua_ax_base_AsyncTaskPool_constructor); - tolua_function(tolua_S,"enqueue",lua_ax_base_AsyncTaskPool_enqueue); tolua_function(tolua_S,"stopTasks",lua_ax_base_AsyncTaskPool_stopTasks); - tolua_function(tolua_S,"destroyInstance", lua_ax_base_AsyncTaskPool_destroyInstance); + tolua_function(tolua_S,"enqueue",lua_ax_base_AsyncTaskPool_enqueue); tolua_function(tolua_S,"getInstance", lua_ax_base_AsyncTaskPool_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_base_AsyncTaskPool_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::AsyncTaskPool).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.AsyncTaskPool"; @@ -18990,6 +18888,147 @@ int lua_register_ax_base_AsyncTaskPool(lua_State* tolua_S) return 1; } +int lua_ax_base_Action_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Action_reverse(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_reverse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_reverse'", nullptr); + return 0; + } + auto&& ret = cobj->reverse(); + object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:reverse",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_reverse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Action_isDone(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_isDone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_isDone'", nullptr); + return 0; + } + auto&& ret = cobj->isDone(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:isDone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_isDone'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Action_startWithTarget(lua_State* tolua_S) { int argc = 0; @@ -19040,150 +19079,6 @@ int lua_ax_base_Action_startWithTarget(lua_State* tolua_S) return 0; } -int lua_ax_base_Action_setOriginalTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_setOriginalTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Action:setOriginalTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_setOriginalTarget'", nullptr); - return 0; - } - cobj->setOriginalTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:setOriginalTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_setOriginalTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Action_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Action_getOriginalTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_getOriginalTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_getOriginalTarget'", nullptr); - return 0; - } - auto&& ret = cobj->getOriginalTarget(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:getOriginalTarget",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_getOriginalTarget'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Action_stop(lua_State* tolua_S) { int argc = 0; @@ -19231,6 +19126,56 @@ int lua_ax_base_Action_stop(lua_State* tolua_S) return 0; } +int lua_ax_base_Action_step(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_step'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Action:step"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_step'", nullptr); + return 0; + } + cobj->step(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:step",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_step'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Action_update(lua_State* tolua_S) { int argc = 0; @@ -19328,7 +19273,7 @@ int lua_ax_base_Action_getTarget(lua_State* tolua_S) return 0; } -int lua_ax_base_Action_getFlags(lua_State* tolua_S) +int lua_ax_base_Action_setTarget(lua_State* tolua_S) { int argc = 0; ax::Action* cobj = nullptr; @@ -19348,7 +19293,57 @@ int lua_ax_base_Action_getFlags(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_getFlags'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_setTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Action:setTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_setTarget'", nullptr); + return 0; + } + cobj->setTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:setTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_setTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Action_getOriginalTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_getOriginalTarget'", nullptr); return 0; } #endif @@ -19358,24 +19353,24 @@ int lua_ax_base_Action_getFlags(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_getFlags'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_getOriginalTarget'", nullptr); return 0; } - auto&& ret = cobj->getFlags(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getOriginalTarget(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:getFlags",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:getOriginalTarget",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_getFlags'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_getOriginalTarget'.",&tolua_err); #endif return 0; } -int lua_ax_base_Action_step(lua_State* tolua_S) +int lua_ax_base_Action_setOriginalTarget(lua_State* tolua_S) { int argc = 0; ax::Action* cobj = nullptr; @@ -19395,7 +19390,7 @@ int lua_ax_base_Action_step(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_step'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_setOriginalTarget'", nullptr); return 0; } #endif @@ -19403,24 +19398,71 @@ int lua_ax_base_Action_step(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Node* arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Action:step"); + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Action:setOriginalTarget"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_step'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_setOriginalTarget'", nullptr); return 0; } - cobj->step(arg0); + cobj->setOriginalTarget(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:step",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:setOriginalTarget",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_step'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_setOriginalTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Action_getTag(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_getTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_getTag'", nullptr); + return 0; + } + auto&& ret = cobj->getTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:getTag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_getTag'.",&tolua_err); #endif return 0; @@ -19475,6 +19517,53 @@ int lua_ax_base_Action_setTag(lua_State* tolua_S) return 0; } +int lua_ax_base_Action_getFlags(lua_State* tolua_S) +{ + int argc = 0; + ax::Action* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_getFlags'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_getFlags'", nullptr); + return 0; + } + auto&& ret = cobj->getFlags(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:getFlags",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_getFlags'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Action_setFlags(lua_State* tolua_S) { int argc = 0; @@ -19525,197 +19614,6 @@ int lua_ax_base_Action_setFlags(lua_State* tolua_S) return 0; } -int lua_ax_base_Action_getTag(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_getTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_getTag'", nullptr); - return 0; - } - auto&& ret = cobj->getTag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:getTag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_getTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Action_setTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_setTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.Action:setTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_setTarget'", nullptr); - return 0; - } - cobj->setTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:setTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_setTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Action_isDone(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_isDone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_isDone'", nullptr); - return 0; - } - auto&& ret = cobj->isDone(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:isDone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_isDone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Action_reverse(lua_State* tolua_S) -{ - int argc = 0; - ax::Action* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Action",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Action*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Action_reverse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Action_reverse'", nullptr); - return 0; - } - auto&& ret = cobj->reverse(); - object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Action:reverse",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Action_reverse'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_base_Action_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Action)"); @@ -19728,21 +19626,21 @@ int lua_register_ax_base_Action(lua_State* tolua_S) tolua_cclass(tolua_S,"Action","ax.Action","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Action"); - tolua_function(tolua_S,"startWithTarget",lua_ax_base_Action_startWithTarget); - tolua_function(tolua_S,"setOriginalTarget",lua_ax_base_Action_setOriginalTarget); tolua_function(tolua_S,"clone",lua_ax_base_Action_clone); - tolua_function(tolua_S,"getOriginalTarget",lua_ax_base_Action_getOriginalTarget); + tolua_function(tolua_S,"reverse",lua_ax_base_Action_reverse); + tolua_function(tolua_S,"isDone",lua_ax_base_Action_isDone); + tolua_function(tolua_S,"startWithTarget",lua_ax_base_Action_startWithTarget); tolua_function(tolua_S,"stop",lua_ax_base_Action_stop); + tolua_function(tolua_S,"step",lua_ax_base_Action_step); tolua_function(tolua_S,"update",lua_ax_base_Action_update); tolua_function(tolua_S,"getTarget",lua_ax_base_Action_getTarget); - tolua_function(tolua_S,"getFlags",lua_ax_base_Action_getFlags); - tolua_function(tolua_S,"step",lua_ax_base_Action_step); - tolua_function(tolua_S,"setTag",lua_ax_base_Action_setTag); - tolua_function(tolua_S,"setFlags",lua_ax_base_Action_setFlags); - tolua_function(tolua_S,"getTag",lua_ax_base_Action_getTag); tolua_function(tolua_S,"setTarget",lua_ax_base_Action_setTarget); - tolua_function(tolua_S,"isDone",lua_ax_base_Action_isDone); - tolua_function(tolua_S,"reverse",lua_ax_base_Action_reverse); + tolua_function(tolua_S,"getOriginalTarget",lua_ax_base_Action_getOriginalTarget); + tolua_function(tolua_S,"setOriginalTarget",lua_ax_base_Action_setOriginalTarget); + tolua_function(tolua_S,"getTag",lua_ax_base_Action_getTag); + tolua_function(tolua_S,"setTag",lua_ax_base_Action_setTag); + tolua_function(tolua_S,"getFlags",lua_ax_base_Action_getFlags); + tolua_function(tolua_S,"setFlags",lua_ax_base_Action_setFlags); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Action).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Action"; @@ -19750,6 +19648,53 @@ int lua_register_ax_base_Action(lua_State* tolua_S) return 1; } +int lua_ax_base_FiniteTimeAction_getDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::FiniteTimeAction* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FiniteTimeAction_getDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FiniteTimeAction_getDuration'", nullptr); + return 0; + } + auto&& ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FiniteTimeAction:getDuration",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FiniteTimeAction_getDuration'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FiniteTimeAction_setDuration(lua_State* tolua_S) { int argc = 0; @@ -19800,53 +19745,6 @@ int lua_ax_base_FiniteTimeAction_setDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_FiniteTimeAction_getDuration(lua_State* tolua_S) -{ - int argc = 0; - ax::FiniteTimeAction* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FiniteTimeAction_getDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FiniteTimeAction_getDuration'", nullptr); - return 0; - } - auto&& ret = cobj->getDuration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FiniteTimeAction:getDuration",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FiniteTimeAction_getDuration'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_base_FiniteTimeAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FiniteTimeAction)"); @@ -19859,8 +19757,8 @@ int lua_register_ax_base_FiniteTimeAction(lua_State* tolua_S) tolua_cclass(tolua_S,"FiniteTimeAction","ax.FiniteTimeAction","ax.Action",nullptr); tolua_beginmodule(tolua_S,"FiniteTimeAction"); - tolua_function(tolua_S,"setDuration",lua_ax_base_FiniteTimeAction_setDuration); tolua_function(tolua_S,"getDuration",lua_ax_base_FiniteTimeAction_getDuration); + tolua_function(tolua_S,"setDuration",lua_ax_base_FiniteTimeAction_setDuration); tolua_endmodule(tolua_S); auto typeName = typeid(ax::FiniteTimeAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.FiniteTimeAction"; @@ -19868,56 +19766,6 @@ int lua_register_ax_base_FiniteTimeAction(lua_State* tolua_S) return 1; } -int lua_ax_base_Speed_setInnerAction(lua_State* tolua_S) -{ - int argc = 0; - ax::Speed* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Speed",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Speed*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Speed_setInnerAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ActionInterval* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.ActionInterval",&arg0, "ax.Speed:setInnerAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Speed_setInnerAction'", nullptr); - return 0; - } - cobj->setInnerAction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Speed:setInnerAction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Speed_setInnerAction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Speed_getSpeed(lua_State* tolua_S) { int argc = 0; @@ -20015,6 +19863,103 @@ int lua_ax_base_Speed_setSpeed(lua_State* tolua_S) return 0; } +int lua_ax_base_Speed_setInnerAction(lua_State* tolua_S) +{ + int argc = 0; + ax::Speed* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Speed",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Speed*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Speed_setInnerAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ActionInterval* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.ActionInterval",&arg0, "ax.Speed:setInnerAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Speed_setInnerAction'", nullptr); + return 0; + } + cobj->setInnerAction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Speed:setInnerAction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Speed_setInnerAction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Speed_getInnerAction(lua_State* tolua_S) +{ + int argc = 0; + ax::Speed* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Speed",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Speed*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Speed_getInnerAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Speed_getInnerAction'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Speed:getInnerAction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Speed_getInnerAction'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Speed_initWithAction(lua_State* tolua_S) { int argc = 0; @@ -20068,53 +20013,6 @@ int lua_ax_base_Speed_initWithAction(lua_State* tolua_S) return 0; } -int lua_ax_base_Speed_getInnerAction(lua_State* tolua_S) -{ - int argc = 0; - ax::Speed* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Speed",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Speed*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Speed_getInnerAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Speed_getInnerAction'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Speed:getInnerAction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Speed_getInnerAction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Speed_create(lua_State* tolua_S) { int argc = 0; @@ -20203,11 +20101,11 @@ int lua_register_ax_base_Speed(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Speed"); tolua_function(tolua_S,"new",lua_ax_base_Speed_constructor); - tolua_function(tolua_S,"setInnerAction",lua_ax_base_Speed_setInnerAction); tolua_function(tolua_S,"getSpeed",lua_ax_base_Speed_getSpeed); tolua_function(tolua_S,"setSpeed",lua_ax_base_Speed_setSpeed); - tolua_function(tolua_S,"initWithAction",lua_ax_base_Speed_initWithAction); + tolua_function(tolua_S,"setInnerAction",lua_ax_base_Speed_setInnerAction); tolua_function(tolua_S,"getInnerAction",lua_ax_base_Speed_getInnerAction); + tolua_function(tolua_S,"initWithAction",lua_ax_base_Speed_initWithAction); tolua_function(tolua_S,"create", lua_ax_base_Speed_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Speed).name(); // rtti is literal storage @@ -20216,6 +20114,53 @@ int lua_register_ax_base_Speed(lua_State* tolua_S) return 1; } +int lua_ax_base_Follow_isBoundarySet(lua_State* tolua_S) +{ + int argc = 0; + ax::Follow* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Follow",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Follow*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Follow_isBoundarySet'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Follow_isBoundarySet'", nullptr); + return 0; + } + auto&& ret = cobj->isBoundarySet(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Follow:isBoundarySet",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Follow_isBoundarySet'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Follow_setBoundarySet(lua_State* tolua_S) { int argc = 0; @@ -20412,53 +20357,6 @@ int lua_ax_base_Follow_initWithTargetAndOffset(lua_State* tolua_S) return 0; } -int lua_ax_base_Follow_isBoundarySet(lua_State* tolua_S) -{ - int argc = 0; - ax::Follow* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Follow",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Follow*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Follow_isBoundarySet'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Follow_isBoundarySet'", nullptr); - return 0; - } - auto&& ret = cobj->isBoundarySet(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Follow:isBoundarySet",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Follow_isBoundarySet'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Follow_create(lua_State* tolua_S) { int argc = 0; @@ -20619,10 +20517,10 @@ int lua_register_ax_base_Follow(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Follow"); tolua_function(tolua_S,"new",lua_ax_base_Follow_constructor); + tolua_function(tolua_S,"isBoundarySet",lua_ax_base_Follow_isBoundarySet); tolua_function(tolua_S,"setBoundarySet",lua_ax_base_Follow_setBoundarySet); tolua_function(tolua_S,"initWithTarget",lua_ax_base_Follow_initWithTarget); tolua_function(tolua_S,"initWithTargetAndOffset",lua_ax_base_Follow_initWithTargetAndOffset); - tolua_function(tolua_S,"isBoundarySet",lua_ax_base_Follow_isBoundarySet); tolua_function(tolua_S,"create", lua_ax_base_Follow_create); tolua_function(tolua_S,"createWithOffset", lua_ax_base_Follow_createWithOffset); tolua_endmodule(tolua_S); @@ -20632,335 +20530,6 @@ int lua_register_ax_base_Follow(lua_State* tolua_S) return 1; } -int lua_ax_base_Image_hasPremultipliedAlpha(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_hasPremultipliedAlpha'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_hasPremultipliedAlpha'", nullptr); - return 0; - } - auto&& ret = cobj->hasPremultipliedAlpha(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:hasPremultipliedAlpha",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_hasPremultipliedAlpha'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_reversePremultipliedAlpha(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_reversePremultipliedAlpha'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_reversePremultipliedAlpha'", nullptr); - return 0; - } - cobj->reversePremultipliedAlpha(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:reversePremultipliedAlpha",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_reversePremultipliedAlpha'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_isCompressed(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_isCompressed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_isCompressed'", nullptr); - return 0; - } - auto&& ret = cobj->isCompressed(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:isCompressed",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_isCompressed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_hasAlpha(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_hasAlpha'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_hasAlpha'", nullptr); - return 0; - } - auto&& ret = cobj->hasAlpha(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:hasAlpha",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_hasAlpha'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_getPixelFormat(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getPixelFormat'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getPixelFormat'", nullptr); - return 0; - } - int ret = (int)cobj->getPixelFormat(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getPixelFormat",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getPixelFormat'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_getHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_premultiplyAlpha(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_premultiplyAlpha'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_premultiplyAlpha'", nullptr); - return 0; - } - cobj->premultiplyAlpha(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:premultiplyAlpha",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_premultiplyAlpha'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Image_initWithImageFile(lua_State* tolua_S) { int argc = 0; @@ -21011,100 +20580,6 @@ int lua_ax_base_Image_initWithImageFile(lua_State* tolua_S) return 0; } -int lua_ax_base_Image_getWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Image_getBitPerPixel(lua_State* tolua_S) -{ - int argc = 0; - ax::Image* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getBitPerPixel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getBitPerPixel'", nullptr); - return 0; - } - auto&& ret = cobj->getBitPerPixel(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getBitPerPixel",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getBitPerPixel'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Image_getFileType(lua_State* tolua_S) { int argc = 0; @@ -21152,7 +20627,7 @@ int lua_ax_base_Image_getFileType(lua_State* tolua_S) return 0; } -int lua_ax_base_Image_getFilePath(lua_State* tolua_S) +int lua_ax_base_Image_getPixelFormat(lua_State* tolua_S) { int argc = 0; ax::Image* cobj = nullptr; @@ -21172,7 +20647,7 @@ int lua_ax_base_Image_getFilePath(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getFilePath'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getPixelFormat'", nullptr); return 0; } #endif @@ -21182,19 +20657,113 @@ int lua_ax_base_Image_getFilePath(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getFilePath'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getPixelFormat'", nullptr); return 0; } - auto&& ret = cobj->getFilePath(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + int ret = (int)cobj->getPixelFormat(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getFilePath",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getPixelFormat",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getFilePath'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getPixelFormat'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Image_getWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Image_getHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getHeight'.",&tolua_err); #endif return 0; @@ -21246,6 +20815,241 @@ int lua_ax_base_Image_getNumberOfMipmaps(lua_State* tolua_S) return 0; } +int lua_ax_base_Image_hasPremultipliedAlpha(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_hasPremultipliedAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_hasPremultipliedAlpha'", nullptr); + return 0; + } + auto&& ret = cobj->hasPremultipliedAlpha(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:hasPremultipliedAlpha",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_hasPremultipliedAlpha'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Image_getFilePath(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getFilePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getFilePath'", nullptr); + return 0; + } + auto&& ret = cobj->getFilePath(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getFilePath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getFilePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Image_getBitPerPixel(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_getBitPerPixel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_getBitPerPixel'", nullptr); + return 0; + } + auto&& ret = cobj->getBitPerPixel(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:getBitPerPixel",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_getBitPerPixel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Image_hasAlpha(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_hasAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_hasAlpha'", nullptr); + return 0; + } + auto&& ret = cobj->hasAlpha(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:hasAlpha",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_hasAlpha'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Image_isCompressed(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_isCompressed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_isCompressed'", nullptr); + return 0; + } + auto&& ret = cobj->isCompressed(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:isCompressed",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_isCompressed'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Image_saveToFile(lua_State* tolua_S) { int argc = 0; @@ -21313,40 +21117,98 @@ int lua_ax_base_Image_saveToFile(lua_State* tolua_S) return 0; } -int lua_ax_base_Image_isCompressedImageHavePMA(lua_State* tolua_S) +int lua_ax_base_Image_premultiplyAlpha(lua_State* tolua_S) { int argc = 0; + ax::Image* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); - if (argc == 1) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_premultiplyAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { - unsigned int arg0; - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Image:isCompressedImageHavePMA"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_isCompressedImageHavePMA'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_premultiplyAlpha'", nullptr); return 0; } - auto&& ret = ax::Image::isCompressedImageHavePMA(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->premultiplyAlpha(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Image:isCompressedImageHavePMA",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:premultiplyAlpha",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_isCompressedImageHavePMA'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_premultiplyAlpha'.",&tolua_err); #endif + + return 0; +} +int lua_ax_base_Image_reversePremultipliedAlpha(lua_State* tolua_S) +{ + int argc = 0; + ax::Image* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_reversePremultipliedAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_reversePremultipliedAlpha'", nullptr); + return 0; + } + cobj->reversePremultipliedAlpha(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:reversePremultipliedAlpha",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_reversePremultipliedAlpha'.",&tolua_err); +#endif + return 0; } int lua_ax_base_Image_setPNGPremultipliedAlphaEnabled(lua_State* tolua_S) @@ -21423,6 +21285,42 @@ int lua_ax_base_Image_setCompressedImagesHavePMA(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_Image_isCompressedImageHavePMA(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + unsigned int arg0; + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Image:isCompressedImageHavePMA"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_isCompressedImageHavePMA'", nullptr); + return 0; + } + auto&& ret = ax::Image::isCompressedImageHavePMA(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Image:isCompressedImageHavePMA",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_isCompressedImageHavePMA'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_Image_constructor(lua_State* tolua_S) { int argc = 0; @@ -21473,23 +21371,23 @@ int lua_register_ax_base_Image(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Image"); tolua_function(tolua_S,"new",lua_ax_base_Image_constructor); - tolua_function(tolua_S,"hasPremultipliedAlpha",lua_ax_base_Image_hasPremultipliedAlpha); - tolua_function(tolua_S,"reversePremultipliedAlpha",lua_ax_base_Image_reversePremultipliedAlpha); - tolua_function(tolua_S,"isCompressed",lua_ax_base_Image_isCompressed); - tolua_function(tolua_S,"hasAlpha",lua_ax_base_Image_hasAlpha); - tolua_function(tolua_S,"getPixelFormat",lua_ax_base_Image_getPixelFormat); - tolua_function(tolua_S,"getHeight",lua_ax_base_Image_getHeight); - tolua_function(tolua_S,"premultiplyAlpha",lua_ax_base_Image_premultiplyAlpha); tolua_function(tolua_S,"initWithImageFile",lua_ax_base_Image_initWithImageFile); - tolua_function(tolua_S,"getWidth",lua_ax_base_Image_getWidth); - tolua_function(tolua_S,"getBitPerPixel",lua_ax_base_Image_getBitPerPixel); tolua_function(tolua_S,"getFileType",lua_ax_base_Image_getFileType); - tolua_function(tolua_S,"getFilePath",lua_ax_base_Image_getFilePath); + tolua_function(tolua_S,"getPixelFormat",lua_ax_base_Image_getPixelFormat); + tolua_function(tolua_S,"getWidth",lua_ax_base_Image_getWidth); + tolua_function(tolua_S,"getHeight",lua_ax_base_Image_getHeight); tolua_function(tolua_S,"getNumberOfMipmaps",lua_ax_base_Image_getNumberOfMipmaps); + tolua_function(tolua_S,"hasPremultipliedAlpha",lua_ax_base_Image_hasPremultipliedAlpha); + tolua_function(tolua_S,"getFilePath",lua_ax_base_Image_getFilePath); + tolua_function(tolua_S,"getBitPerPixel",lua_ax_base_Image_getBitPerPixel); + tolua_function(tolua_S,"hasAlpha",lua_ax_base_Image_hasAlpha); + tolua_function(tolua_S,"isCompressed",lua_ax_base_Image_isCompressed); tolua_function(tolua_S,"saveToFile",lua_ax_base_Image_saveToFile); - tolua_function(tolua_S,"isCompressedImageHavePMA", lua_ax_base_Image_isCompressedImageHavePMA); + tolua_function(tolua_S,"premultiplyAlpha",lua_ax_base_Image_premultiplyAlpha); + tolua_function(tolua_S,"reversePremultipliedAlpha",lua_ax_base_Image_reversePremultipliedAlpha); tolua_function(tolua_S,"setPNGPremultipliedAlphaEnabled", lua_ax_base_Image_setPNGPremultipliedAlphaEnabled); tolua_function(tolua_S,"setCompressedImagesHavePMA", lua_ax_base_Image_setCompressedImagesHavePMA); + tolua_function(tolua_S,"isCompressedImageHavePMA", lua_ax_base_Image_isCompressedImageHavePMA); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Image).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Image"; @@ -21497,7 +21395,7 @@ int lua_register_ax_base_Image(lua_State* tolua_S) return 1; } -int lua_ax_base_PolygonInfo_getFilename(lua_State* tolua_S) +int lua_ax_base_PolygonInfo_setQuad(lua_State* tolua_S) { int argc = 0; ax::PolygonInfo* cobj = nullptr; @@ -21517,148 +21415,7 @@ int lua_ax_base_PolygonInfo_getFilename(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_getFilename'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_getFilename'", nullptr); - return 0; - } - auto&& ret = cobj->getFilename(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:getFilename",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_getFilename'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_PolygonInfo_getArea(lua_State* tolua_S) -{ - int argc = 0; - ax::PolygonInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PolygonInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PolygonInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_getArea'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_getArea'", nullptr); - return 0; - } - auto&& ret = cobj->getArea(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:getArea",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_getArea'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_PolygonInfo_getRect(lua_State* tolua_S) -{ - int argc = 0; - ax::PolygonInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PolygonInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PolygonInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_getRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_getRect'", nullptr); - return 0; - } - auto&& ret = cobj->getRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:getRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_getRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_PolygonInfo_setFilename(lua_State* tolua_S) -{ - int argc = 0; - ax::PolygonInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PolygonInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PolygonInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_setFilename'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_setQuad'", nullptr); return 0; } #endif @@ -21666,24 +21423,25 @@ int lua_ax_base_PolygonInfo_setFilename(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + ax::V3F_C4B_T2F_Quad* arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PolygonInfo:setFilename"); + #pragma warning NO CONVERSION TO NATIVE FOR V3F_C4B_T2F_Quad* + ok = false; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_setFilename'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_setQuad'", nullptr); return 0; } - cobj->setFilename(arg0); + cobj->setQuad(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:setFilename",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:setQuad",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_setFilename'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_setQuad'.",&tolua_err); #endif return 0; @@ -21742,6 +21500,57 @@ int lua_ax_base_PolygonInfo_setQuads(lua_State* tolua_S) return 0; } +int lua_ax_base_PolygonInfo_setTriangles(lua_State* tolua_S) +{ + int argc = 0; + ax::PolygonInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PolygonInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_setTriangles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TrianglesCommand::Triangles arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR Triangles + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_setTriangles'", nullptr); + return 0; + } + cobj->setTriangles(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:setTriangles",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_setTriangles'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_PolygonInfo_getVertCount(lua_State* tolua_S) { int argc = 0; @@ -21836,7 +21645,7 @@ int lua_ax_base_PolygonInfo_getTrianglesCount(lua_State* tolua_S) return 0; } -int lua_ax_base_PolygonInfo_setQuad(lua_State* tolua_S) +int lua_ax_base_PolygonInfo_getArea(lua_State* tolua_S) { int argc = 0; ax::PolygonInfo* cobj = nullptr; @@ -21856,38 +21665,34 @@ int lua_ax_base_PolygonInfo_setQuad(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_setQuad'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_getArea'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::V3F_C4B_T2F_Quad* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR V3F_C4B_T2F_Quad* - ok = false; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_setQuad'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_getArea'", nullptr); return 0; } - cobj->setQuad(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getArea(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:setQuad",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:getArea",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_setQuad'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_getArea'.",&tolua_err); #endif return 0; } -int lua_ax_base_PolygonInfo_setTriangles(lua_State* tolua_S) +int lua_ax_base_PolygonInfo_getRect(lua_State* tolua_S) { int argc = 0; ax::PolygonInfo* cobj = nullptr; @@ -21907,33 +21712,29 @@ int lua_ax_base_PolygonInfo_setTriangles(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_setTriangles'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_getRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::TrianglesCommand::Triangles arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR Triangles - ok = false; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_setTriangles'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_getRect'", nullptr); return 0; } - cobj->setTriangles(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getRect(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:setTriangles",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:getRect",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_setTriangles'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_getRect'.",&tolua_err); #endif return 0; @@ -21988,6 +21789,103 @@ int lua_ax_base_PolygonInfo_setRect(lua_State* tolua_S) return 0; } +int lua_ax_base_PolygonInfo_getFilename(lua_State* tolua_S) +{ + int argc = 0; + ax::PolygonInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PolygonInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_getFilename'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_getFilename'", nullptr); + return 0; + } + auto&& ret = cobj->getFilename(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:getFilename",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_getFilename'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_PolygonInfo_setFilename(lua_State* tolua_S) +{ + int argc = 0; + ax::PolygonInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PolygonInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_PolygonInfo_setFilename'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PolygonInfo:setFilename"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_PolygonInfo_setFilename'", nullptr); + return 0; + } + cobj->setFilename(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PolygonInfo:setFilename",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_PolygonInfo_setFilename'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_PolygonInfo_constructor(lua_State* tolua_S) { int argc = 0; @@ -22036,16 +21934,16 @@ int lua_register_ax_base_PolygonInfo(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PolygonInfo"); tolua_function(tolua_S,"new",lua_ax_base_PolygonInfo_constructor); - tolua_function(tolua_S,"getFilename",lua_ax_base_PolygonInfo_getFilename); - tolua_function(tolua_S,"getArea",lua_ax_base_PolygonInfo_getArea); - tolua_function(tolua_S,"getRect",lua_ax_base_PolygonInfo_getRect); - tolua_function(tolua_S,"setFilename",lua_ax_base_PolygonInfo_setFilename); + tolua_function(tolua_S,"setQuad",lua_ax_base_PolygonInfo_setQuad); tolua_function(tolua_S,"setQuads",lua_ax_base_PolygonInfo_setQuads); + tolua_function(tolua_S,"setTriangles",lua_ax_base_PolygonInfo_setTriangles); tolua_function(tolua_S,"getVertCount",lua_ax_base_PolygonInfo_getVertCount); tolua_function(tolua_S,"getTrianglesCount",lua_ax_base_PolygonInfo_getTrianglesCount); - tolua_function(tolua_S,"setQuad",lua_ax_base_PolygonInfo_setQuad); - tolua_function(tolua_S,"setTriangles",lua_ax_base_PolygonInfo_setTriangles); + tolua_function(tolua_S,"getArea",lua_ax_base_PolygonInfo_getArea); + tolua_function(tolua_S,"getRect",lua_ax_base_PolygonInfo_getRect); tolua_function(tolua_S,"setRect",lua_ax_base_PolygonInfo_setRect); + tolua_function(tolua_S,"getFilename",lua_ax_base_PolygonInfo_getFilename); + tolua_function(tolua_S,"setFilename",lua_ax_base_PolygonInfo_setFilename); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PolygonInfo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PolygonInfo"; @@ -22111,7 +22009,7 @@ int lua_register_ax_base_AutoPolygon(lua_State* tolua_S) return 1; } -int lua_ax_base_SpriteFrame_setAnchorPoint(lua_State* tolua_S) +int lua_ax_base_SpriteFrame_getRectInPixels(lua_State* tolua_S) { int argc = 0; ax::SpriteFrame* cobj = nullptr; @@ -22131,107 +22029,7 @@ int lua_ax_base_SpriteFrame_setAnchorPoint(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setAnchorPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.SpriteFrame:setAnchorPoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setAnchorPoint'", nullptr); - return 0; - } - cobj->setAnchorPoint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setAnchorPoint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setAnchorPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_setTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteFrame:setTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setTexture'", nullptr); - return 0; - } - cobj->setTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_getTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getTexture'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getRectInPixels'", nullptr); return 0; } #endif @@ -22241,19 +22039,454 @@ int lua_ax_base_SpriteFrame_getTexture(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getTexture'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getRectInPixels'", nullptr); return 0; } - auto&& ret = cobj->getTexture(); - object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); + auto&& ret = cobj->getRectInPixels(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getTexture",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getRectInPixels",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getTexture'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getRectInPixels'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_setRectInPixels(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setRectInPixels'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.SpriteFrame:setRectInPixels"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setRectInPixels'", nullptr); + return 0; + } + cobj->setRectInPixels(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setRectInPixels",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setRectInPixels'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_isRotated(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_isRotated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_isRotated'", nullptr); + return 0; + } + auto&& ret = cobj->isRotated(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:isRotated",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_isRotated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_setRotated(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setRotated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.SpriteFrame:setRotated"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setRotated'", nullptr); + return 0; + } + cobj->setRotated(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setRotated",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setRotated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_getRect(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getRect'", nullptr); + return 0; + } + auto&& ret = cobj->getRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_setRect(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.SpriteFrame:setRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setRect'", nullptr); + return 0; + } + cobj->setRect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setRect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_getCenterRect(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getCenterRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getCenterRect'", nullptr); + return 0; + } + auto&& ret = cobj->getCenterRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getCenterRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getCenterRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_setCenterRectInPixels(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setCenterRectInPixels'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.SpriteFrame:setCenterRectInPixels"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setCenterRectInPixels'", nullptr); + return 0; + } + cobj->setCenterRectInPixels(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setCenterRectInPixels",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setCenterRectInPixels'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_hasCenterRect(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_hasCenterRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_hasCenterRect'", nullptr); + return 0; + } + auto&& ret = cobj->hasCenterRect(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:hasCenterRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_hasCenterRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getOffsetInPixels'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getOffsetInPixels'", nullptr); + return 0; + } + auto&& ret = cobj->getOffsetInPixels(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getOffsetInPixels",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getOffsetInPixels'.",&tolua_err); #endif return 0; @@ -22355,6 +22588,103 @@ int lua_ax_base_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) return 0; } +int lua_ax_base_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setOriginalSizeInPixels'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.SpriteFrame:setOriginalSizeInPixels"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setOriginalSizeInPixels'", nullptr); + return 0; + } + cobj->setOriginalSizeInPixels(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setOriginalSizeInPixels",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setOriginalSizeInPixels'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_getOriginalSize(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getOriginalSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getOriginalSize'", nullptr); + return 0; + } + auto&& ret = cobj->getOriginalSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getOriginalSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getOriginalSize'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpriteFrame_setOriginalSize(lua_State* tolua_S) { int argc = 0; @@ -22405,7 +22735,7 @@ int lua_ax_base_SpriteFrame_setOriginalSize(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteFrame_getCenterRect(lua_State* tolua_S) +int lua_ax_base_SpriteFrame_getTexture(lua_State* tolua_S) { int argc = 0; ax::SpriteFrame* cobj = nullptr; @@ -22425,7 +22755,7 @@ int lua_ax_base_SpriteFrame_getCenterRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getCenterRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getTexture'", nullptr); return 0; } #endif @@ -22435,24 +22765,24 @@ int lua_ax_base_SpriteFrame_getCenterRect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getCenterRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getTexture'", nullptr); return 0; } - auto&& ret = cobj->getCenterRect(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->getTexture(); + object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getCenterRect",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getTexture",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getCenterRect'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getTexture'.",&tolua_err); #endif return 0; } -int lua_ax_base_SpriteFrame_setRectInPixels(lua_State* tolua_S) +int lua_ax_base_SpriteFrame_setTexture(lua_State* tolua_S) { int argc = 0; ax::SpriteFrame* cobj = nullptr; @@ -22472,7 +22802,7 @@ int lua_ax_base_SpriteFrame_setRectInPixels(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setRectInPixels'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setTexture'", nullptr); return 0; } #endif @@ -22480,29 +22810,29 @@ int lua_ax_base_SpriteFrame_setRectInPixels(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Rect arg0; + ax::Texture2D* arg0; - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.SpriteFrame:setRectInPixels"); + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteFrame:setTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setRectInPixels'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setTexture'", nullptr); return 0; } - cobj->setRectInPixels(arg0); + cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setRectInPixels",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setRectInPixels'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setTexture'.",&tolua_err); #endif return 0; } -int lua_ax_base_SpriteFrame_getRect(lua_State* tolua_S) +int lua_ax_base_SpriteFrame_getOffset(lua_State* tolua_S) { int argc = 0; ax::SpriteFrame* cobj = nullptr; @@ -22522,7 +22852,7 @@ int lua_ax_base_SpriteFrame_getRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getOffset'", nullptr); return 0; } #endif @@ -22532,69 +22862,19 @@ int lua_ax_base_SpriteFrame_getRect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getOffset'", nullptr); return 0; } - auto&& ret = cobj->getRect(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->getOffset(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getRect",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getOffset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_setCenterRectInPixels(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setCenterRectInPixels'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.SpriteFrame:setCenterRectInPixels"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setCenterRectInPixels'", nullptr); - return 0; - } - cobj->setCenterRectInPixels(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setCenterRectInPixels",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setCenterRectInPixels'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getOffset'.",&tolua_err); #endif return 0; @@ -22649,82 +22929,7 @@ int lua_ax_base_SpriteFrame_setOffset(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_initWithTextureFilename'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 5) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - bool arg2; - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - ax::Vec2 arg3; - ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - ax::Vec2 arg4; - ok &= luaval_to_vec2(tolua_S, 6, &arg4, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - bool ret = cobj->initWithTextureFilename(arg0, arg1, arg2, arg3, arg4); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.SpriteFrame:initWithTextureFilename"); - - if (!ok) { break; } - bool ret = cobj->initWithTextureFilename(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:initWithTextureFilename",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_initWithTextureFilename'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_setRect(lua_State* tolua_S) +int lua_ax_base_SpriteFrame_getAnchorPoint(lua_State* tolua_S) { int argc = 0; ax::SpriteFrame* cobj = nullptr; @@ -22744,7 +22949,54 @@ int lua_ax_base_SpriteFrame_setRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getAnchorPoint'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorPoint(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getAnchorPoint",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_setAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setAnchorPoint'", nullptr); return 0; } #endif @@ -22752,24 +23004,118 @@ int lua_ax_base_SpriteFrame_setRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Rect arg0; + ax::Vec2 arg0; - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.SpriteFrame:setRect"); + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.SpriteFrame:setAnchorPoint"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setAnchorPoint'", nullptr); return 0; } - cobj->setRect(arg0); + cobj->setAnchorPoint(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setRect",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setAnchorPoint",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setRect'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_hasAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_hasAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_hasAnchorPoint'", nullptr); + return 0; + } + auto&& ret = cobj->hasAnchorPoint(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:hasAnchorPoint",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_hasAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrame_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.SpriteFrame",(ax::SpriteFrame*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_clone'.",&tolua_err); #endif return 0; @@ -22849,525 +23195,77 @@ int lua_ax_base_SpriteFrame_initWithTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteFrame_getOriginalSize(lua_State* tolua_S) +int lua_ax_base_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) { int argc = 0; ax::SpriteFrame* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getOriginalSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_initWithTextureFilename'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getOriginalSize'", nullptr); - return 0; + do{ + if (argc == 5) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + ax::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + ax::Vec2 arg3; + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + ax::Vec2 arg4; + ok &= luaval_to_vec2(tolua_S, 6, &arg4, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + bool ret = cobj->initWithTextureFilename(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; } - auto&& ret = cobj->getOriginalSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getOriginalSize",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + ax::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + bool ret = cobj->initWithTextureFilename(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:initWithTextureFilename",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getOriginalSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.SpriteFrame",(ax::SpriteFrame*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_getRectInPixels(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getRectInPixels'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getRectInPixels'", nullptr); - return 0; - } - auto&& ret = cobj->getRectInPixels(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getRectInPixels",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getRectInPixels'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_isRotated(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_isRotated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_isRotated'", nullptr); - return 0; - } - auto&& ret = cobj->isRotated(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:isRotated",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_isRotated'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_hasCenterRect(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_hasCenterRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_hasCenterRect'", nullptr); - return 0; - } - auto&& ret = cobj->hasCenterRect(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:hasCenterRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_hasCenterRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_setRotated(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setRotated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.SpriteFrame:setRotated"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setRotated'", nullptr); - return 0; - } - cobj->setRotated(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setRotated",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setRotated'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_getOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getOffset(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_setOriginalSizeInPixels'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.SpriteFrame:setOriginalSizeInPixels"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_setOriginalSizeInPixels'", nullptr); - return 0; - } - cobj->setOriginalSizeInPixels(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:setOriginalSizeInPixels",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_setOriginalSizeInPixels'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_getAnchorPoint(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getAnchorPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getAnchorPoint'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorPoint(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getAnchorPoint",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getAnchorPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_hasAnchorPoint(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_hasAnchorPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_hasAnchorPoint'", nullptr); - return 0; - } - auto&& ret = cobj->hasAnchorPoint(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:hasAnchorPoint",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_hasAnchorPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrame_getOffsetInPixels'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrame_getOffsetInPixels'", nullptr); - return 0; - } - auto&& ret = cobj->getOffsetInPixels(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrame:getOffsetInPixels",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_getOffsetInPixels'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrame_initWithTextureFilename'.",&tolua_err); #endif return 0; @@ -23548,31 +23446,31 @@ int lua_register_ax_base_SpriteFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SpriteFrame"); tolua_function(tolua_S,"new",lua_ax_base_SpriteFrame_constructor); - tolua_function(tolua_S,"setAnchorPoint",lua_ax_base_SpriteFrame_setAnchorPoint); - tolua_function(tolua_S,"setTexture",lua_ax_base_SpriteFrame_setTexture); - tolua_function(tolua_S,"getTexture",lua_ax_base_SpriteFrame_getTexture); + tolua_function(tolua_S,"getRectInPixels",lua_ax_base_SpriteFrame_getRectInPixels); + tolua_function(tolua_S,"setRectInPixels",lua_ax_base_SpriteFrame_setRectInPixels); + tolua_function(tolua_S,"isRotated",lua_ax_base_SpriteFrame_isRotated); + tolua_function(tolua_S,"setRotated",lua_ax_base_SpriteFrame_setRotated); + tolua_function(tolua_S,"getRect",lua_ax_base_SpriteFrame_getRect); + tolua_function(tolua_S,"setRect",lua_ax_base_SpriteFrame_setRect); + tolua_function(tolua_S,"getCenterRect",lua_ax_base_SpriteFrame_getCenterRect); + tolua_function(tolua_S,"setCenterRectInPixels",lua_ax_base_SpriteFrame_setCenterRectInPixels); + tolua_function(tolua_S,"hasCenterRect",lua_ax_base_SpriteFrame_hasCenterRect); + tolua_function(tolua_S,"getOffsetInPixels",lua_ax_base_SpriteFrame_getOffsetInPixels); tolua_function(tolua_S,"setOffsetInPixels",lua_ax_base_SpriteFrame_setOffsetInPixels); tolua_function(tolua_S,"getOriginalSizeInPixels",lua_ax_base_SpriteFrame_getOriginalSizeInPixels); - tolua_function(tolua_S,"setOriginalSize",lua_ax_base_SpriteFrame_setOriginalSize); - tolua_function(tolua_S,"getCenterRect",lua_ax_base_SpriteFrame_getCenterRect); - tolua_function(tolua_S,"setRectInPixels",lua_ax_base_SpriteFrame_setRectInPixels); - tolua_function(tolua_S,"getRect",lua_ax_base_SpriteFrame_getRect); - tolua_function(tolua_S,"setCenterRectInPixels",lua_ax_base_SpriteFrame_setCenterRectInPixels); - tolua_function(tolua_S,"setOffset",lua_ax_base_SpriteFrame_setOffset); - tolua_function(tolua_S,"initWithTextureFilename",lua_ax_base_SpriteFrame_initWithTextureFilename); - tolua_function(tolua_S,"setRect",lua_ax_base_SpriteFrame_setRect); - tolua_function(tolua_S,"initWithTexture",lua_ax_base_SpriteFrame_initWithTexture); - tolua_function(tolua_S,"getOriginalSize",lua_ax_base_SpriteFrame_getOriginalSize); - tolua_function(tolua_S,"clone",lua_ax_base_SpriteFrame_clone); - tolua_function(tolua_S,"getRectInPixels",lua_ax_base_SpriteFrame_getRectInPixels); - tolua_function(tolua_S,"isRotated",lua_ax_base_SpriteFrame_isRotated); - tolua_function(tolua_S,"hasCenterRect",lua_ax_base_SpriteFrame_hasCenterRect); - tolua_function(tolua_S,"setRotated",lua_ax_base_SpriteFrame_setRotated); - tolua_function(tolua_S,"getOffset",lua_ax_base_SpriteFrame_getOffset); tolua_function(tolua_S,"setOriginalSizeInPixels",lua_ax_base_SpriteFrame_setOriginalSizeInPixels); + tolua_function(tolua_S,"getOriginalSize",lua_ax_base_SpriteFrame_getOriginalSize); + tolua_function(tolua_S,"setOriginalSize",lua_ax_base_SpriteFrame_setOriginalSize); + tolua_function(tolua_S,"getTexture",lua_ax_base_SpriteFrame_getTexture); + tolua_function(tolua_S,"setTexture",lua_ax_base_SpriteFrame_setTexture); + tolua_function(tolua_S,"getOffset",lua_ax_base_SpriteFrame_getOffset); + tolua_function(tolua_S,"setOffset",lua_ax_base_SpriteFrame_setOffset); tolua_function(tolua_S,"getAnchorPoint",lua_ax_base_SpriteFrame_getAnchorPoint); + tolua_function(tolua_S,"setAnchorPoint",lua_ax_base_SpriteFrame_setAnchorPoint); tolua_function(tolua_S,"hasAnchorPoint",lua_ax_base_SpriteFrame_hasAnchorPoint); - tolua_function(tolua_S,"getOffsetInPixels",lua_ax_base_SpriteFrame_getOffsetInPixels); + tolua_function(tolua_S,"clone",lua_ax_base_SpriteFrame_clone); + tolua_function(tolua_S,"initWithTexture",lua_ax_base_SpriteFrame_initWithTexture); + tolua_function(tolua_S,"initWithTextureFilename",lua_ax_base_SpriteFrame_initWithTextureFilename); tolua_function(tolua_S,"create", lua_ax_base_SpriteFrame_create); tolua_function(tolua_S,"createWithTexture", lua_ax_base_SpriteFrame_createWithTexture); tolua_endmodule(tolua_S); @@ -23582,6 +23480,53 @@ int lua_register_ax_base_SpriteFrame(lua_State* tolua_S) return 1; } +int lua_ax_base_AnimationFrame_getSpriteFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::AnimationFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AnimationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_getSpriteFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationFrame_getSpriteFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getSpriteFrame(); + object_to_luaval(tolua_S, "ax.SpriteFrame",(ax::SpriteFrame*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:getSpriteFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_getSpriteFrame'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_AnimationFrame_setSpriteFrame(lua_State* tolua_S) { int argc = 0; @@ -23632,49 +23577,49 @@ int lua_ax_base_AnimationFrame_setSpriteFrame(lua_State* tolua_S) return 0; } -int lua_ax_base_AnimationFrame_getUserInfo(lua_State* tolua_S) +int lua_ax_base_AnimationFrame_getDelayUnits(lua_State* tolua_S) { int argc = 0; ax::AnimationFrame* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (ax::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_getUserInfo'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_getDelayUnits'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::ValueMap& ret = cobj->getUserInfo(); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationFrame_getDelayUnits'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::ValueMap& ret = cobj->getUserInfo(); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:getUserInfo",argc, 0); + auto&& ret = cobj->getDelayUnits(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:getDelayUnits",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_getUserInfo'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_getDelayUnits'.",&tolua_err); #endif return 0; @@ -23729,143 +23674,49 @@ int lua_ax_base_AnimationFrame_setDelayUnits(lua_State* tolua_S) return 0; } -int lua_ax_base_AnimationFrame_clone(lua_State* tolua_S) +int lua_ax_base_AnimationFrame_getUserInfo(lua_State* tolua_S) { int argc = 0; ax::AnimationFrame* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_clone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_getUserInfo'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationFrame_clone'", nullptr); - return 0; + do{ + if (argc == 0) { + ax::ValueMap& ret = cobj->getUserInfo(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.AnimationFrame",(ax::AnimationFrame*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:clone",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::ValueMap& ret = cobj->getUserInfo(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:getUserInfo",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AnimationFrame_getSpriteFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::AnimationFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AnimationFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_getSpriteFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationFrame_getSpriteFrame'", nullptr); - return 0; - } - auto&& ret = cobj->getSpriteFrame(); - object_to_luaval(tolua_S, "ax.SpriteFrame",(ax::SpriteFrame*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:getSpriteFrame",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_getSpriteFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AnimationFrame_getDelayUnits(lua_State* tolua_S) -{ - int argc = 0; - ax::AnimationFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AnimationFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_getDelayUnits'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationFrame_getDelayUnits'", nullptr); - return 0; - } - auto&& ret = cobj->getDelayUnits(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:getDelayUnits",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_getDelayUnits'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_getUserInfo'.",&tolua_err); #endif return 0; @@ -23920,6 +23771,53 @@ int lua_ax_base_AnimationFrame_setUserInfo(lua_State* tolua_S) return 0; } +int lua_ax_base_AnimationFrame_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::AnimationFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AnimationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationFrame_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationFrame_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.AnimationFrame",(ax::AnimationFrame*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationFrame:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationFrame_clone'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_AnimationFrame_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; @@ -24066,13 +23964,13 @@ int lua_register_ax_base_AnimationFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AnimationFrame"); tolua_function(tolua_S,"new",lua_ax_base_AnimationFrame_constructor); - tolua_function(tolua_S,"setSpriteFrame",lua_ax_base_AnimationFrame_setSpriteFrame); - tolua_function(tolua_S,"getUserInfo",lua_ax_base_AnimationFrame_getUserInfo); - tolua_function(tolua_S,"setDelayUnits",lua_ax_base_AnimationFrame_setDelayUnits); - tolua_function(tolua_S,"clone",lua_ax_base_AnimationFrame_clone); tolua_function(tolua_S,"getSpriteFrame",lua_ax_base_AnimationFrame_getSpriteFrame); + tolua_function(tolua_S,"setSpriteFrame",lua_ax_base_AnimationFrame_setSpriteFrame); tolua_function(tolua_S,"getDelayUnits",lua_ax_base_AnimationFrame_getDelayUnits); + tolua_function(tolua_S,"setDelayUnits",lua_ax_base_AnimationFrame_setDelayUnits); + tolua_function(tolua_S,"getUserInfo",lua_ax_base_AnimationFrame_getUserInfo); tolua_function(tolua_S,"setUserInfo",lua_ax_base_AnimationFrame_setUserInfo); + tolua_function(tolua_S,"clone",lua_ax_base_AnimationFrame_clone); tolua_function(tolua_S,"initWithSpriteFrame",lua_ax_base_AnimationFrame_initWithSpriteFrame); tolua_function(tolua_S,"create", lua_ax_base_AnimationFrame_create); tolua_endmodule(tolua_S); @@ -24082,53 +23980,6 @@ int lua_register_ax_base_AnimationFrame(lua_State* tolua_S) return 1; } -int lua_ax_base_Animation_getLoops(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getLoops'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getLoops'", nullptr); - return 0; - } - auto&& ret = cobj->getLoops(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getLoops",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getLoops'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Animation_addSpriteFrame(lua_State* tolua_S) { int argc = 0; @@ -24179,450 +24030,6 @@ int lua_ax_base_Animation_addSpriteFrame(lua_State* tolua_S) return 0; } -int lua_ax_base_Animation_setRestoreOriginalFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setRestoreOriginalFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Animation:setRestoreOriginalFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setRestoreOriginalFrame'", nullptr); - return 0; - } - cobj->setRestoreOriginalFrame(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setRestoreOriginalFrame",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setRestoreOriginalFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.Animation",(ax::Animation*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_getDuration(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getDuration'", nullptr); - return 0; - } - auto&& ret = cobj->getDuration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getDuration",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getDuration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_initWithAnimationFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_initWithAnimationFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Vector arg0; - double arg1; - unsigned int arg2; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Animation:initWithAnimationFrames"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Animation:initWithAnimationFrames"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Animation:initWithAnimationFrames"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_initWithAnimationFrames'", nullptr); - return 0; - } - auto&& ret = cobj->initWithAnimationFrames(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:initWithAnimationFrames",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_initWithAnimationFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_setFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Animation:setFrames"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setFrames'", nullptr); - return 0; - } - cobj->setFrames(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setFrames",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_getFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getFrames'", nullptr); - return 0; - } - auto&& ret = cobj->getFrames(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getFrames",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_setLoops(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setLoops'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Animation:setLoops"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setLoops'", nullptr); - return 0; - } - cobj->setLoops(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setLoops",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setLoops'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_setDelayPerUnit(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setDelayPerUnit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animation:setDelayPerUnit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setDelayPerUnit'", nullptr); - return 0; - } - cobj->setDelayPerUnit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setDelayPerUnit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setDelayPerUnit'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Animation_addSpriteFrameWithFile(lua_State* tolua_S) { int argc = 0; @@ -24673,6 +24080,59 @@ int lua_ax_base_Animation_addSpriteFrameWithFile(lua_State* tolua_S) return 0; } +int lua_ax_base_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_addSpriteFrameWithTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Texture2D* arg0; + ax::Rect arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Animation:addSpriteFrameWithTexture"); + + ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.Animation:addSpriteFrameWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_addSpriteFrameWithTexture'", nullptr); + return 0; + } + cobj->addSpriteFrameWithTexture(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:addSpriteFrameWithTexture",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_addSpriteFrameWithTexture'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Animation_getTotalDelayUnits(lua_State* tolua_S) { int argc = 0; @@ -24720,6 +24180,56 @@ int lua_ax_base_Animation_getTotalDelayUnits(lua_State* tolua_S) return 0; } +int lua_ax_base_Animation_setDelayPerUnit(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setDelayPerUnit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animation:setDelayPerUnit"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setDelayPerUnit'", nullptr); + return 0; + } + cobj->setDelayPerUnit(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setDelayPerUnit",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setDelayPerUnit'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Animation_getDelayPerUnit(lua_State* tolua_S) { int argc = 0; @@ -24767,6 +24277,438 @@ int lua_ax_base_Animation_getDelayPerUnit(lua_State* tolua_S) return 0; } +int lua_ax_base_Animation_getDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getDuration'", nullptr); + return 0; + } + auto&& ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getDuration",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_getFrames(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getFrames'", nullptr); + return 0; + } + auto&& ret = cobj->getFrames(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getFrames",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_setFrames(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Animation:setFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setFrames'", nullptr); + return 0; + } + cobj->setFrames(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setFrames",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_getRestoreOriginalFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getRestoreOriginalFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getRestoreOriginalFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getRestoreOriginalFrame(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getRestoreOriginalFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getRestoreOriginalFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_setRestoreOriginalFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setRestoreOriginalFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Animation:setRestoreOriginalFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setRestoreOriginalFrame'", nullptr); + return 0; + } + cobj->setRestoreOriginalFrame(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setRestoreOriginalFrame",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setRestoreOriginalFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_getLoops(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getLoops'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getLoops'", nullptr); + return 0; + } + auto&& ret = cobj->getLoops(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getLoops",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getLoops'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_setLoops(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_setLoops'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Animation:setLoops"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_setLoops'", nullptr); + return 0; + } + cobj->setLoops(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:setLoops",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_setLoops'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.Animation",(ax::Animation*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Animation_init(lua_State* tolua_S) +{ + int argc = 0; + ax::Animation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:init",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Animation_initWithSpriteFrames(lua_State* tolua_S) { int argc = 0; @@ -24854,7 +24796,7 @@ int lua_ax_base_Animation_initWithSpriteFrames(lua_State* tolua_S) return 0; } -int lua_ax_base_Animation_getRestoreOriginalFrame(lua_State* tolua_S) +int lua_ax_base_Animation_initWithAnimationFrames(lua_State* tolua_S) { int argc = 0; ax::Animation* cobj = nullptr; @@ -24874,82 +24816,38 @@ int lua_ax_base_Animation_getRestoreOriginalFrame(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_getRestoreOriginalFrame'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_initWithAnimationFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 3) { + ax::Vector arg0; + double arg1; + unsigned int arg2; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Animation:initWithAnimationFrames"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Animation:initWithAnimationFrames"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Animation:initWithAnimationFrames"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_getRestoreOriginalFrame'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_initWithAnimationFrames'", nullptr); return 0; } - auto&& ret = cobj->getRestoreOriginalFrame(); + auto&& ret = cobj->initWithAnimationFrames(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:getRestoreOriginalFrame",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:initWithAnimationFrames",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_getRestoreOriginalFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::Animation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Animation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Animation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animation_addSpriteFrameWithTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Texture2D* arg0; - ax::Rect arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Animation:addSpriteFrameWithTexture"); - - ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.Animation:addSpriteFrameWithTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animation_addSpriteFrameWithTexture'", nullptr); - return 0; - } - cobj->addSpriteFrameWithTexture(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation:addSpriteFrameWithTexture",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_addSpriteFrameWithTexture'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animation_initWithAnimationFrames'.",&tolua_err); #endif return 0; @@ -25139,23 +25037,23 @@ int lua_register_ax_base_Animation(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Animation"); tolua_function(tolua_S,"new",lua_ax_base_Animation_constructor); - tolua_function(tolua_S,"getLoops",lua_ax_base_Animation_getLoops); tolua_function(tolua_S,"addSpriteFrame",lua_ax_base_Animation_addSpriteFrame); - tolua_function(tolua_S,"setRestoreOriginalFrame",lua_ax_base_Animation_setRestoreOriginalFrame); - tolua_function(tolua_S,"clone",lua_ax_base_Animation_clone); - tolua_function(tolua_S,"getDuration",lua_ax_base_Animation_getDuration); - tolua_function(tolua_S,"initWithAnimationFrames",lua_ax_base_Animation_initWithAnimationFrames); - tolua_function(tolua_S,"init",lua_ax_base_Animation_init); - tolua_function(tolua_S,"setFrames",lua_ax_base_Animation_setFrames); - tolua_function(tolua_S,"getFrames",lua_ax_base_Animation_getFrames); - tolua_function(tolua_S,"setLoops",lua_ax_base_Animation_setLoops); - tolua_function(tolua_S,"setDelayPerUnit",lua_ax_base_Animation_setDelayPerUnit); tolua_function(tolua_S,"addSpriteFrameWithFile",lua_ax_base_Animation_addSpriteFrameWithFile); - tolua_function(tolua_S,"getTotalDelayUnits",lua_ax_base_Animation_getTotalDelayUnits); - tolua_function(tolua_S,"getDelayPerUnit",lua_ax_base_Animation_getDelayPerUnit); - tolua_function(tolua_S,"initWithSpriteFrames",lua_ax_base_Animation_initWithSpriteFrames); - tolua_function(tolua_S,"getRestoreOriginalFrame",lua_ax_base_Animation_getRestoreOriginalFrame); tolua_function(tolua_S,"addSpriteFrameWithTexture",lua_ax_base_Animation_addSpriteFrameWithTexture); + tolua_function(tolua_S,"getTotalDelayUnits",lua_ax_base_Animation_getTotalDelayUnits); + tolua_function(tolua_S,"setDelayPerUnit",lua_ax_base_Animation_setDelayPerUnit); + tolua_function(tolua_S,"getDelayPerUnit",lua_ax_base_Animation_getDelayPerUnit); + tolua_function(tolua_S,"getDuration",lua_ax_base_Animation_getDuration); + tolua_function(tolua_S,"getFrames",lua_ax_base_Animation_getFrames); + tolua_function(tolua_S,"setFrames",lua_ax_base_Animation_setFrames); + tolua_function(tolua_S,"getRestoreOriginalFrame",lua_ax_base_Animation_getRestoreOriginalFrame); + tolua_function(tolua_S,"setRestoreOriginalFrame",lua_ax_base_Animation_setRestoreOriginalFrame); + tolua_function(tolua_S,"getLoops",lua_ax_base_Animation_getLoops); + tolua_function(tolua_S,"setLoops",lua_ax_base_Animation_setLoops); + tolua_function(tolua_S,"clone",lua_ax_base_Animation_clone); + tolua_function(tolua_S,"init",lua_ax_base_Animation_init); + tolua_function(tolua_S,"initWithSpriteFrames",lua_ax_base_Animation_initWithSpriteFrames); + tolua_function(tolua_S,"initWithAnimationFrames",lua_ax_base_Animation_initWithAnimationFrames); tolua_function(tolua_S,"create", lua_ax_base_Animation_create); tolua_function(tolua_S,"createWithSpriteFrames", lua_ax_base_Animation_createWithSpriteFrames); tolua_endmodule(tolua_S); @@ -25165,6 +25063,103 @@ int lua_register_ax_base_Animation(lua_State* tolua_S) return 1; } +int lua_ax_base_ActionInterval_getElapsed(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionInterval* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionInterval",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionInterval*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionInterval_getElapsed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionInterval_getElapsed'", nullptr); + return 0; + } + auto&& ret = cobj->getElapsed(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionInterval:getElapsed",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionInterval_getElapsed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionInterval_setAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionInterval* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionInterval",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionInterval*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionInterval_setAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ActionInterval:setAmplitudeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionInterval_setAmplitudeRate'", nullptr); + return 0; + } + cobj->setAmplitudeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionInterval:setAmplitudeRate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionInterval_setAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ActionInterval_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -25262,103 +25257,6 @@ int lua_ax_base_ActionInterval_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_ActionInterval_setAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionInterval* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionInterval",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionInterval*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionInterval_setAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ActionInterval:setAmplitudeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionInterval_setAmplitudeRate'", nullptr); - return 0; - } - cobj->setAmplitudeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionInterval:setAmplitudeRate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionInterval_setAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionInterval_getElapsed(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionInterval* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionInterval",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionInterval*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionInterval_getElapsed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionInterval_getElapsed'", nullptr); - return 0; - } - auto&& ret = cobj->getElapsed(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionInterval:getElapsed",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionInterval_getElapsed'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_base_ActionInterval_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionInterval)"); @@ -25371,10 +25269,10 @@ int lua_register_ax_base_ActionInterval(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionInterval","ax.ActionInterval","ax.FiniteTimeAction",nullptr); tolua_beginmodule(tolua_S,"ActionInterval"); + tolua_function(tolua_S,"getElapsed",lua_ax_base_ActionInterval_getElapsed); + tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_ActionInterval_setAmplitudeRate); tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_ActionInterval_getAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_ActionInterval_initWithDuration); - tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_ActionInterval_setAmplitudeRate); - tolua_function(tolua_S,"getElapsed",lua_ax_base_ActionInterval_getElapsed); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ActionInterval).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.ActionInterval"; @@ -25382,56 +25280,6 @@ int lua_register_ax_base_ActionInterval(lua_State* tolua_S) return 1; } -int lua_ax_base_Sequence_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Sequence* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sequence",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sequence*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sequence_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Sequence:init"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sequence_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sequence:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sequence_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Sequence_initWithTwoActions(lua_State* tolua_S) { int argc = 0; @@ -25485,6 +25333,56 @@ int lua_ax_base_Sequence_initWithTwoActions(lua_State* tolua_S) return 0; } +int lua_ax_base_Sequence_init(lua_State* tolua_S) +{ + int argc = 0; + ax::Sequence* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sequence",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sequence*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sequence_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Sequence:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sequence_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sequence:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sequence_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Sequence_constructor(lua_State* tolua_S) { int argc = 0; @@ -25535,8 +25433,8 @@ int lua_register_ax_base_Sequence(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Sequence"); tolua_function(tolua_S,"new",lua_ax_base_Sequence_constructor); - tolua_function(tolua_S,"init",lua_ax_base_Sequence_init); tolua_function(tolua_S,"initWithTwoActions",lua_ax_base_Sequence_initWithTwoActions); + tolua_function(tolua_S,"init",lua_ax_base_Sequence_init); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Sequence).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Sequence"; @@ -25594,6 +25492,53 @@ int lua_ax_base_Repeat_setInnerAction(lua_State* tolua_S) return 0; } +int lua_ax_base_Repeat_getInnerAction(lua_State* tolua_S) +{ + int argc = 0; + ax::Repeat* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Repeat",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Repeat*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Repeat_getInnerAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Repeat_getInnerAction'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "ax.FiniteTimeAction",(ax::FiniteTimeAction*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Repeat:getInnerAction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Repeat_getInnerAction'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Repeat_initWithAction(lua_State* tolua_S) { int argc = 0; @@ -25647,53 +25592,6 @@ int lua_ax_base_Repeat_initWithAction(lua_State* tolua_S) return 0; } -int lua_ax_base_Repeat_getInnerAction(lua_State* tolua_S) -{ - int argc = 0; - ax::Repeat* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Repeat",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Repeat*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Repeat_getInnerAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Repeat_getInnerAction'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "ax.FiniteTimeAction",(ax::FiniteTimeAction*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Repeat:getInnerAction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Repeat_getInnerAction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Repeat_create(lua_State* tolua_S) { int argc = 0; @@ -25783,8 +25681,8 @@ int lua_register_ax_base_Repeat(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Repeat"); tolua_function(tolua_S,"new",lua_ax_base_Repeat_constructor); tolua_function(tolua_S,"setInnerAction",lua_ax_base_Repeat_setInnerAction); - tolua_function(tolua_S,"initWithAction",lua_ax_base_Repeat_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_ax_base_Repeat_getInnerAction); + tolua_function(tolua_S,"initWithAction",lua_ax_base_Repeat_initWithAction); tolua_function(tolua_S,"create", lua_ax_base_Repeat_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Repeat).name(); // rtti is literal storage @@ -25843,6 +25741,53 @@ int lua_ax_base_RepeatForever_setInnerAction(lua_State* tolua_S) return 0; } +int lua_ax_base_RepeatForever_getInnerAction(lua_State* tolua_S) +{ + int argc = 0; + ax::RepeatForever* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RepeatForever",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RepeatForever*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RepeatForever_getInnerAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RepeatForever_getInnerAction'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RepeatForever:getInnerAction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RepeatForever_getInnerAction'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_RepeatForever_initWithAction(lua_State* tolua_S) { int argc = 0; @@ -25893,53 +25838,6 @@ int lua_ax_base_RepeatForever_initWithAction(lua_State* tolua_S) return 0; } -int lua_ax_base_RepeatForever_getInnerAction(lua_State* tolua_S) -{ - int argc = 0; - ax::RepeatForever* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RepeatForever",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RepeatForever*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RepeatForever_getInnerAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RepeatForever_getInnerAction'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RepeatForever:getInnerAction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RepeatForever_getInnerAction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_RepeatForever_create(lua_State* tolua_S) { int argc = 0; @@ -26027,8 +25925,8 @@ int lua_register_ax_base_RepeatForever(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RepeatForever"); tolua_function(tolua_S,"new",lua_ax_base_RepeatForever_constructor); tolua_function(tolua_S,"setInnerAction",lua_ax_base_RepeatForever_setInnerAction); - tolua_function(tolua_S,"initWithAction",lua_ax_base_RepeatForever_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_ax_base_RepeatForever_getInnerAction); + tolua_function(tolua_S,"initWithAction",lua_ax_base_RepeatForever_initWithAction); tolua_function(tolua_S,"create", lua_ax_base_RepeatForever_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::RepeatForever).name(); // rtti is literal storage @@ -26037,56 +25935,6 @@ int lua_register_ax_base_RepeatForever(lua_State* tolua_S) return 1; } -int lua_ax_base_Spawn_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Spawn* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Spawn",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Spawn*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Spawn_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Spawn:init"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Spawn_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Spawn:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Spawn_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Spawn_initWithTwoActions(lua_State* tolua_S) { int argc = 0; @@ -26140,6 +25988,56 @@ int lua_ax_base_Spawn_initWithTwoActions(lua_State* tolua_S) return 0; } +int lua_ax_base_Spawn_init(lua_State* tolua_S) +{ + int argc = 0; + ax::Spawn* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Spawn",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Spawn*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Spawn_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Spawn:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Spawn_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Spawn:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Spawn_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Spawn_constructor(lua_State* tolua_S) { int argc = 0; @@ -26190,8 +26088,8 @@ int lua_register_ax_base_Spawn(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Spawn"); tolua_function(tolua_S,"new",lua_ax_base_Spawn_constructor); - tolua_function(tolua_S,"init",lua_ax_base_Spawn_init); tolua_function(tolua_S,"initWithTwoActions",lua_ax_base_Spawn_initWithTwoActions); + tolua_function(tolua_S,"init",lua_ax_base_Spawn_init); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Spawn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Spawn"; @@ -29207,7 +29105,7 @@ int lua_register_ax_base_DelayTime(lua_State* tolua_S) return 1; } -int lua_ax_base_Animate_initWithAnimation(lua_State* tolua_S) +int lua_ax_base_Animate_setAnimation(lua_State* tolua_S) { int argc = 0; ax::Animate* cobj = nullptr; @@ -29227,7 +29125,7 @@ int lua_ax_base_Animate_initWithAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animate_initWithAnimation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animate_setAnimation'", nullptr); return 0; } #endif @@ -29237,22 +29135,22 @@ int lua_ax_base_Animate_initWithAnimation(lua_State* tolua_S) { ax::Animation* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Animation",&arg0, "ax.Animate:initWithAnimation"); + ok &= luaval_to_object(tolua_S, 2, "ax.Animation",&arg0, "ax.Animate:setAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animate_initWithAnimation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animate_setAnimation'", nullptr); return 0; } - auto&& ret = cobj->initWithAnimation(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setAnimation(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate:initWithAnimation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate:setAnimation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animate_initWithAnimation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animate_setAnimation'.",&tolua_err); #endif return 0; @@ -29351,7 +29249,7 @@ int lua_ax_base_Animate_getCurrentFrameIndex(lua_State* tolua_S) return 0; } -int lua_ax_base_Animate_setAnimation(lua_State* tolua_S) +int lua_ax_base_Animate_initWithAnimation(lua_State* tolua_S) { int argc = 0; ax::Animate* cobj = nullptr; @@ -29371,7 +29269,7 @@ int lua_ax_base_Animate_setAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animate_setAnimation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Animate_initWithAnimation'", nullptr); return 0; } #endif @@ -29381,22 +29279,22 @@ int lua_ax_base_Animate_setAnimation(lua_State* tolua_S) { ax::Animation* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Animation",&arg0, "ax.Animate:setAnimation"); + ok &= luaval_to_object(tolua_S, 2, "ax.Animation",&arg0, "ax.Animate:initWithAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animate_setAnimation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Animate_initWithAnimation'", nullptr); return 0; } - cobj->setAnimation(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initWithAnimation(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate:setAnimation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate:initWithAnimation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animate_setAnimation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Animate_initWithAnimation'.",&tolua_err); #endif return 0; @@ -29487,10 +29385,10 @@ int lua_register_ax_base_Animate(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Animate"); tolua_function(tolua_S,"new",lua_ax_base_Animate_constructor); - tolua_function(tolua_S,"initWithAnimation",lua_ax_base_Animate_initWithAnimation); + tolua_function(tolua_S,"setAnimation",lua_ax_base_Animate_setAnimation); tolua_function(tolua_S,"getAnimation",lua_ax_base_Animate_getAnimation); tolua_function(tolua_S,"getCurrentFrameIndex",lua_ax_base_Animate_getCurrentFrameIndex); - tolua_function(tolua_S,"setAnimation",lua_ax_base_Animate_setAnimation); + tolua_function(tolua_S,"initWithAnimation",lua_ax_base_Animate_initWithAnimation); tolua_function(tolua_S,"create", lua_ax_base_Animate_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Animate).name(); // rtti is literal storage @@ -29499,6 +29397,56 @@ int lua_register_ax_base_Animate(lua_State* tolua_S) return 1; } +int lua_ax_base_TargetedAction_setForcedTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::TargetedAction* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TargetedAction",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TargetedAction*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TargetedAction_setForcedTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.TargetedAction:setForcedTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TargetedAction_setForcedTarget'", nullptr); + return 0; + } + cobj->setForcedTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TargetedAction:setForcedTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TargetedAction_setForcedTarget'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TargetedAction_getForcedTarget(lua_State* tolua_S) { int argc = 0; @@ -29599,56 +29547,6 @@ int lua_ax_base_TargetedAction_initWithTarget(lua_State* tolua_S) return 0; } -int lua_ax_base_TargetedAction_setForcedTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::TargetedAction* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TargetedAction",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TargetedAction*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TargetedAction_setForcedTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.TargetedAction:setForcedTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TargetedAction_setForcedTarget'", nullptr); - return 0; - } - cobj->setForcedTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TargetedAction:setForcedTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TargetedAction_setForcedTarget'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TargetedAction_create(lua_State* tolua_S) { int argc = 0; @@ -29737,9 +29635,9 @@ int lua_register_ax_base_TargetedAction(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TargetedAction"); tolua_function(tolua_S,"new",lua_ax_base_TargetedAction_constructor); + tolua_function(tolua_S,"setForcedTarget",lua_ax_base_TargetedAction_setForcedTarget); tolua_function(tolua_S,"getForcedTarget",lua_ax_base_TargetedAction_getForcedTarget); tolua_function(tolua_S,"initWithTarget",lua_ax_base_TargetedAction_initWithTarget); - tolua_function(tolua_S,"setForcedTarget",lua_ax_base_TargetedAction_setForcedTarget); tolua_function(tolua_S,"create", lua_ax_base_TargetedAction_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TargetedAction).name(); // rtti is literal storage @@ -29916,7 +29814,7 @@ int lua_register_ax_base_ActionFloat(lua_State* tolua_S) return 1; } -int lua_ax_base_Properties_setVariable(lua_State* tolua_S) +int lua_ax_base_Properties_getNextProperty(lua_State* tolua_S) { int argc = 0; ax::Properties* cobj = nullptr; @@ -29936,60 +29834,7 @@ int lua_ax_base_Properties_setVariable(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_setVariable'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - const char* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:setVariable"); arg0 = arg0_tmp.c_str(); - - std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ax.Properties:setVariable"); arg1 = arg1_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_setVariable'", nullptr); - return 0; - } - cobj->setVariable(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:setVariable",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_setVariable'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getFloat(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getFloat'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getNextProperty'", nullptr); return 0; } #endif @@ -29999,33 +29844,297 @@ int lua_ax_base_Properties_getFloat(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getFloat'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getNextProperty'", nullptr); return 0; } - auto&& ret = cobj->getFloat(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getNextProperty(); + tolua_pushstring(tolua_S,(const char*)ret); return 1; } - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getFloat"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getFloat'", nullptr); - return 0; - } - auto&& ret = cobj->getFloat(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getFloat",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getNextProperty",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getFloat'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getNextProperty'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getNextNamespace(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getNextNamespace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getNextNamespace'", nullptr); + return 0; + } + auto&& ret = cobj->getNextNamespace(); + object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getNextNamespace",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getNextNamespace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_rewind(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_rewind'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_rewind'", nullptr); + return 0; + } + cobj->rewind(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:rewind",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_rewind'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getNamespace(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getNamespace'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + const char* ret = cobj->getNamespace(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Properties:getNamespace"); + + if (!ok) { break; } + ax::Properties* ret = cobj->getNamespace(arg0); + object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Properties:getNamespace"); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Properties:getNamespace"); + + if (!ok) { break; } + ax::Properties* ret = cobj->getNamespace(arg0, arg1); + object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Properties:getNamespace"); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Properties:getNamespace"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ax.Properties:getNamespace"); + + if (!ok) { break; } + ax::Properties* ret = cobj->getNamespace(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getNamespace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getNamespace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getId(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getId'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getId'", nullptr); + return 0; + } + auto&& ret = cobj->getId(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getId",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getId'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_exists(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_exists'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:exists"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_exists'", nullptr); + return 0; + } + auto&& ret = cobj->exists(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:exists",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_exists'.",&tolua_err); #endif return 0; @@ -30169,119 +30278,6 @@ int lua_ax_base_Properties_getString(lua_State* tolua_S) return 0; } -int lua_ax_base_Properties_exists(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_exists'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:exists"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_exists'", nullptr); - return 0; - } - auto&& ret = cobj->exists(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:exists",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_exists'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getColor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getColor"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - ax::Vec4* arg1; - ok &= luaval_to_object(tolua_S, 3, "ax.Vec4",&arg1, "ax.Properties:getColor"); - - if (!ok) { break; } - bool ret = cobj->getColor(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getColor"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - ax::Vec3* arg1; - ok &= luaval_to_object(tolua_S, 3, "ax.Vec3",&arg1, "ax.Properties:getColor"); - - if (!ok) { break; } - bool ret = cobj->getColor(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getColor",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Properties_setString(lua_State* tolua_S) { int argc = 0; @@ -30335,501 +30331,6 @@ int lua_ax_base_Properties_setString(lua_State* tolua_S) return 0; } -int lua_ax_base_Properties_getNextProperty(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getNextProperty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getNextProperty'", nullptr); - return 0; - } - auto&& ret = cobj->getNextProperty(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getNextProperty",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getNextProperty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getNamespace(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getNamespace'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - const char* ret = cobj->getNamespace(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Properties:getNamespace"); - - if (!ok) { break; } - ax::Properties* ret = cobj->getNamespace(arg0); - object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Properties:getNamespace"); - - if (!ok) { break; } - bool arg1; - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Properties:getNamespace"); - - if (!ok) { break; } - ax::Properties* ret = cobj->getNamespace(arg0, arg1); - object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Properties:getNamespace"); - - if (!ok) { break; } - bool arg1; - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Properties:getNamespace"); - - if (!ok) { break; } - bool arg2; - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ax.Properties:getNamespace"); - - if (!ok) { break; } - ax::Properties* ret = cobj->getNamespace(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getNamespace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getNamespace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getId(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getId'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getId'", nullptr); - return 0; - } - auto&& ret = cobj->getId(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getId",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getId'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getNextNamespace(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getNextNamespace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getNextNamespace'", nullptr); - return 0; - } - auto&& ret = cobj->getNextNamespace(); - object_to_luaval(tolua_S, "ax.Properties",(ax::Properties*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getNextNamespace",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getNextNamespace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getInt(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getInt'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getInt'", nullptr); - return 0; - } - auto&& ret = cobj->getInt(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getInt"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getInt'", nullptr); - return 0; - } - auto&& ret = cobj->getInt(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getInt",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getInt'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getVec3(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getVec3'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - ax::Vec3* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getVec3"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_object(tolua_S, 3, "ax.Vec3",&arg1, "ax.Properties:getVec3"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getVec3'", nullptr); - return 0; - } - auto&& ret = cobj->getVec3(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getVec3",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getVec3'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getVec2(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getVec2'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - ax::Vec2* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getVec2"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_object(tolua_S, 3, "ax.Vec2",&arg1, "ax.Properties:getVec2"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getVec2'", nullptr); - return 0; - } - auto&& ret = cobj->getVec2(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getVec2",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getVec2'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getVec4(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getVec4'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - ax::Vec4* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getVec4"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_object(tolua_S, 3, "ax.Vec4",&arg1, "ax.Properties:getVec4"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getVec4'", nullptr); - return 0; - } - auto&& ret = cobj->getVec4(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getVec4",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getVec4'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_rewind(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_rewind'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_rewind'", nullptr); - return 0; - } - cobj->rewind(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:rewind",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_rewind'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Properties_getBool(lua_State* tolua_S) { int argc = 0; @@ -30908,6 +30409,510 @@ int lua_ax_base_Properties_getBool(lua_State* tolua_S) return 0; } +int lua_ax_base_Properties_getInt(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getInt'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getInt'", nullptr); + return 0; + } + auto&& ret = cobj->getInt(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getInt"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getInt'", nullptr); + return 0; + } + auto&& ret = cobj->getInt(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getInt",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getInt'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getFloat(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getFloat'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getFloat'", nullptr); + return 0; + } + auto&& ret = cobj->getFloat(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getFloat"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getFloat'", nullptr); + return 0; + } + auto&& ret = cobj->getFloat(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getFloat",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getFloat'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getMat4(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getMat4'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + ax::Mat4* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getMat4"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_object(tolua_S, 3, "ax.Mat4",&arg1, "ax.Properties:getMat4"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getMat4'", nullptr); + return 0; + } + auto&& ret = cobj->getMat4(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getMat4",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getMat4'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getVec2(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getVec2'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + ax::Vec2* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getVec2"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_object(tolua_S, 3, "ax.Vec2",&arg1, "ax.Properties:getVec2"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getVec2'", nullptr); + return 0; + } + auto&& ret = cobj->getVec2(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getVec2",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getVec2'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getVec3(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getVec3'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + ax::Vec3* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getVec3"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_object(tolua_S, 3, "ax.Vec3",&arg1, "ax.Properties:getVec3"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getVec3'", nullptr); + return 0; + } + auto&& ret = cobj->getVec3(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getVec3",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getVec3'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getVec4(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getVec4'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + ax::Vec4* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getVec4"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_object(tolua_S, 3, "ax.Vec4",&arg1, "ax.Properties:getVec4"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getVec4'", nullptr); + return 0; + } + auto&& ret = cobj->getVec4(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getVec4",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getVec4'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getQuaternionFromAxisAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + ax::Quaternion* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getQuaternionFromAxisAngle"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_object(tolua_S, 3, "ax.Quaternion",&arg1, "ax.Properties:getQuaternionFromAxisAngle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getQuaternionFromAxisAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getQuaternionFromAxisAngle(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getQuaternionFromAxisAngle",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getQuaternionFromAxisAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getColor"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + ax::Vec4* arg1; + ok &= luaval_to_object(tolua_S, 3, "ax.Vec4",&arg1, "ax.Properties:getColor"); + + if (!ok) { break; } + bool ret = cobj->getColor(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getColor"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + ax::Vec3* arg1; + ok &= luaval_to_object(tolua_S, 3, "ax.Vec3",&arg1, "ax.Properties:getColor"); + + if (!ok) { break; } + bool ret = cobj->getColor(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getColor",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_getPath(lua_State* tolua_S) +{ + int argc = 0; + ax::Properties* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + std::string* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getPath"); arg0 = arg0_tmp.c_str(); + + #pragma warning NO CONVERSION TO NATIVE FOR basic_string* + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getPath'", nullptr); + return 0; + } + auto&& ret = cobj->getPath(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getPath",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getPath'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Properties_getVariable(lua_State* tolua_S) { int argc = 0; @@ -30975,7 +30980,7 @@ int lua_ax_base_Properties_getVariable(lua_State* tolua_S) return 0; } -int lua_ax_base_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) +int lua_ax_base_Properties_setVariable(lua_State* tolua_S) { int argc = 0; ax::Properties* cobj = nullptr; @@ -30995,144 +31000,189 @@ int lua_ax_base_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getQuaternionFromAxisAngle'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_setVariable'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) + { + const char* arg0; + const char* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:setVariable"); arg0 = arg0_tmp.c_str(); + + std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ax.Properties:setVariable"); arg1 = arg1_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_setVariable'", nullptr); + return 0; + } + cobj->setVariable(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:setVariable",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_setVariable'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Properties_parseVec2(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + const char* arg0; + ax::Vec2* arg1; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseVec2"); arg0 = arg0_tmp.c_str(); + ok &= luaval_to_object(tolua_S, 3, "ax.Vec2",&arg1, "ax.Properties:parseVec2"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseVec2'", nullptr); + return 0; + } + auto&& ret = ax::Properties::parseVec2(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseVec2",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseVec2'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Properties_parseVec3(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + const char* arg0; + ax::Vec3* arg1; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseVec3"); arg0 = arg0_tmp.c_str(); + ok &= luaval_to_object(tolua_S, 3, "ax.Vec3",&arg1, "ax.Properties:parseVec3"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseVec3'", nullptr); + return 0; + } + auto&& ret = ax::Properties::parseVec3(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseVec3",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseVec3'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Properties_parseVec4(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + const char* arg0; + ax::Vec4* arg1; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseVec4"); arg0 = arg0_tmp.c_str(); + ok &= luaval_to_object(tolua_S, 3, "ax.Vec4",&arg1, "ax.Properties:parseVec4"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseVec4'", nullptr); + return 0; + } + auto&& ret = ax::Properties::parseVec4(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseVec4",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseVec4'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Properties_parseAxisAngle(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) { const char* arg0; ax::Quaternion* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getQuaternionFromAxisAngle"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_object(tolua_S, 3, "ax.Quaternion",&arg1, "ax.Properties:getQuaternionFromAxisAngle"); + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseAxisAngle"); arg0 = arg0_tmp.c_str(); + ok &= luaval_to_object(tolua_S, 3, "ax.Quaternion",&arg1, "ax.Properties:parseAxisAngle"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getQuaternionFromAxisAngle'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseAxisAngle'", nullptr); return 0; } - auto&& ret = cobj->getQuaternionFromAxisAngle(arg0, arg1); + auto&& ret = ax::Properties::parseAxisAngle(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getQuaternionFromAxisAngle",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseAxisAngle",argc, 2); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getQuaternionFromAxisAngle'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseAxisAngle'.",&tolua_err); #endif - - return 0; -} -int lua_ax_base_Properties_getPath(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - std::string* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getPath"); arg0 = arg0_tmp.c_str(); - - #pragma warning NO CONVERSION TO NATIVE FOR basic_string* - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getPath'", nullptr); - return 0; - } - auto&& ret = cobj->getPath(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getPath",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Properties_getMat4(lua_State* tolua_S) -{ - int argc = 0; - ax::Properties* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Properties*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Properties_getMat4'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - ax::Mat4* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:getMat4"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_object(tolua_S, 3, "ax.Mat4",&arg1, "ax.Properties:getMat4"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_getMat4'", nullptr); - return 0; - } - auto&& ret = cobj->getMat4(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Properties:getMat4",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_getMat4'.",&tolua_err); -#endif - return 0; } int lua_ax_base_Properties_parseColor(lua_State* tolua_S) @@ -31189,158 +31239,6 @@ int lua_ax_base_Properties_parseColor(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Properties_parseVec3(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - const char* arg0; - ax::Vec3* arg1; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseVec3"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "ax.Vec3",&arg1, "ax.Properties:parseVec3"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseVec3'", nullptr); - return 0; - } - auto&& ret = ax::Properties::parseVec3(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseVec3",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseVec3'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_Properties_parseAxisAngle(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - const char* arg0; - ax::Quaternion* arg1; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseAxisAngle"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "ax.Quaternion",&arg1, "ax.Properties:parseAxisAngle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseAxisAngle'", nullptr); - return 0; - } - auto&& ret = ax::Properties::parseAxisAngle(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseAxisAngle",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseAxisAngle'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_Properties_parseVec2(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - const char* arg0; - ax::Vec2* arg1; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseVec2"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "ax.Vec2",&arg1, "ax.Properties:parseVec2"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseVec2'", nullptr); - return 0; - } - auto&& ret = ax::Properties::parseVec2(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseVec2",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseVec2'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_Properties_parseVec4(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Properties",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - const char* arg0; - ax::Vec4* arg1; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.Properties:parseVec4"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "ax.Vec4",&arg1, "ax.Properties:parseVec4"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Properties_parseVec4'", nullptr); - return 0; - } - auto&& ret = ax::Properties::parseVec4(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:parseVec4",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Properties_parseVec4'.",&tolua_err); -#endif - return 0; -} static int lua_ax_base_Properties_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Properties)"); @@ -31353,32 +31251,32 @@ int lua_register_ax_base_Properties(lua_State* tolua_S) tolua_cclass(tolua_S,"Properties","ax.Properties","",nullptr); tolua_beginmodule(tolua_S,"Properties"); - tolua_function(tolua_S,"setVariable",lua_ax_base_Properties_setVariable); - tolua_function(tolua_S,"getFloat",lua_ax_base_Properties_getFloat); - tolua_function(tolua_S,"getType",lua_ax_base_Properties_getType); - tolua_function(tolua_S,"getString",lua_ax_base_Properties_getString); - tolua_function(tolua_S,"exists",lua_ax_base_Properties_exists); - tolua_function(tolua_S,"getColor",lua_ax_base_Properties_getColor); - tolua_function(tolua_S,"setString",lua_ax_base_Properties_setString); tolua_function(tolua_S,"getNextProperty",lua_ax_base_Properties_getNextProperty); + tolua_function(tolua_S,"getNextNamespace",lua_ax_base_Properties_getNextNamespace); + tolua_function(tolua_S,"rewind",lua_ax_base_Properties_rewind); tolua_function(tolua_S,"getNamespace",lua_ax_base_Properties_getNamespace); tolua_function(tolua_S,"getId",lua_ax_base_Properties_getId); - tolua_function(tolua_S,"getNextNamespace",lua_ax_base_Properties_getNextNamespace); - tolua_function(tolua_S,"getInt",lua_ax_base_Properties_getInt); - tolua_function(tolua_S,"getVec3",lua_ax_base_Properties_getVec3); - tolua_function(tolua_S,"getVec2",lua_ax_base_Properties_getVec2); - tolua_function(tolua_S,"getVec4",lua_ax_base_Properties_getVec4); - tolua_function(tolua_S,"rewind",lua_ax_base_Properties_rewind); + tolua_function(tolua_S,"exists",lua_ax_base_Properties_exists); + tolua_function(tolua_S,"getType",lua_ax_base_Properties_getType); + tolua_function(tolua_S,"getString",lua_ax_base_Properties_getString); + tolua_function(tolua_S,"setString",lua_ax_base_Properties_setString); tolua_function(tolua_S,"getBool",lua_ax_base_Properties_getBool); - tolua_function(tolua_S,"getVariable",lua_ax_base_Properties_getVariable); - tolua_function(tolua_S,"getQuaternionFromAxisAngle",lua_ax_base_Properties_getQuaternionFromAxisAngle); - tolua_function(tolua_S,"getPath",lua_ax_base_Properties_getPath); + tolua_function(tolua_S,"getInt",lua_ax_base_Properties_getInt); + tolua_function(tolua_S,"getFloat",lua_ax_base_Properties_getFloat); tolua_function(tolua_S,"getMat4",lua_ax_base_Properties_getMat4); - tolua_function(tolua_S,"parseColor", lua_ax_base_Properties_parseColor); - tolua_function(tolua_S,"parseVec3", lua_ax_base_Properties_parseVec3); - tolua_function(tolua_S,"parseAxisAngle", lua_ax_base_Properties_parseAxisAngle); + tolua_function(tolua_S,"getVec2",lua_ax_base_Properties_getVec2); + tolua_function(tolua_S,"getVec3",lua_ax_base_Properties_getVec3); + tolua_function(tolua_S,"getVec4",lua_ax_base_Properties_getVec4); + tolua_function(tolua_S,"getQuaternionFromAxisAngle",lua_ax_base_Properties_getQuaternionFromAxisAngle); + tolua_function(tolua_S,"getColor",lua_ax_base_Properties_getColor); + tolua_function(tolua_S,"getPath",lua_ax_base_Properties_getPath); + tolua_function(tolua_S,"getVariable",lua_ax_base_Properties_getVariable); + tolua_function(tolua_S,"setVariable",lua_ax_base_Properties_setVariable); tolua_function(tolua_S,"parseVec2", lua_ax_base_Properties_parseVec2); + tolua_function(tolua_S,"parseVec3", lua_ax_base_Properties_parseVec3); tolua_function(tolua_S,"parseVec4", lua_ax_base_Properties_parseVec4); + tolua_function(tolua_S,"parseAxisAngle", lua_ax_base_Properties_parseAxisAngle); + tolua_function(tolua_S,"parseColor", lua_ax_base_Properties_parseColor); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Properties).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Properties"; @@ -31386,6 +31284,413 @@ int lua_register_ax_base_Properties(lua_State* tolua_S) return 1; } +int lua_ax_base_UserDefault_getBoolForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getBoolForKey'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.UserDefault:getBoolForKey"); + + if (!ok) { break; } + bool ret = cobj->getBoolForKey(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + bool ret = cobj->getBoolForKey(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getBoolForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getBoolForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_getIntegerForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getIntegerForKey'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + int arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.UserDefault:getIntegerForKey"); + + if (!ok) { break; } + int ret = cobj->getIntegerForKey(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + int ret = cobj->getIntegerForKey(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getIntegerForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getIntegerForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_getLargeIntForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getLargeIntForKey'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getLargeIntForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + long long arg1; + ok &= luaval_to_long_long(tolua_S, 3,&arg1, "ax.UserDefault:getLargeIntForKey"); + + if (!ok) { break; } + long long ret = cobj->getLargeIntForKey(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getLargeIntForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + long long ret = cobj->getLargeIntForKey(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getLargeIntForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getLargeIntForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_getFloatForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getFloatForKey'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.UserDefault:getFloatForKey"); + + if (!ok) { break; } + double ret = cobj->getFloatForKey(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + double ret = cobj->getFloatForKey(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getFloatForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getFloatForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_getDoubleForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getDoubleForKey'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.UserDefault:getDoubleForKey"); + + if (!ok) { break; } + double ret = cobj->getDoubleForKey(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + double ret = cobj->getDoubleForKey(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getDoubleForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getDoubleForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_getStringForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getStringForKey'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.UserDefault:getStringForKey"); + + if (!ok) { break; } + std::string_view ret = cobj->getStringForKey(arg0, arg1); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + std::string_view ret = cobj->getStringForKey(arg0); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getStringForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getStringForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_setBoolForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_setBoolForKey'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + bool arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:setBoolForKey"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.UserDefault:setBoolForKey"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_setBoolForKey'", nullptr); + return 0; + } + cobj->setBoolForKey(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:setBoolForKey",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_setBoolForKey'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_UserDefault_setIntegerForKey(lua_State* tolua_S) { int argc = 0; @@ -31492,125 +31797,7 @@ int lua_ax_base_UserDefault_setLargeIntForKey(lua_State* tolua_S) return 0; } -int lua_ax_base_UserDefault_getFloatForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getFloatForKey'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.UserDefault:getFloatForKey"); - - if (!ok) { break; } - double ret = cobj->getFloatForKey(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - double ret = cobj->getFloatForKey(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getFloatForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getFloatForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_UserDefault_getBoolForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getBoolForKey'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - bool arg1; - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.UserDefault:getBoolForKey"); - - if (!ok) { break; } - bool ret = cobj->getBoolForKey(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - bool ret = cobj->getBoolForKey(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getBoolForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getBoolForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_UserDefault_flush(lua_State* tolua_S) +int lua_ax_base_UserDefault_setFloatForKey(lua_State* tolua_S) { int argc = 0; ax::UserDefault* cobj = nullptr; @@ -31630,29 +31817,35 @@ int lua_ax_base_UserDefault_flush(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_flush'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_setFloatForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + const char* arg0; + double arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:setFloatForKey"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.UserDefault:setFloatForKey"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_flush'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_setFloatForKey'", nullptr); return 0; } - cobj->flush(); + cobj->setFloatForKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:flush",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:setFloatForKey",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_flush'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_setFloatForKey'.",&tolua_err); #endif return 0; @@ -31710,118 +31903,6 @@ int lua_ax_base_UserDefault_setDoubleForKey(lua_State* tolua_S) return 0; } -int lua_ax_base_UserDefault_setFloatForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_setFloatForKey'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - double arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:setFloatForKey"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.UserDefault:setFloatForKey"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_setFloatForKey'", nullptr); - return 0; - } - cobj->setFloatForKey(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:setFloatForKey",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_setFloatForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_UserDefault_getStringForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getStringForKey'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.UserDefault:getStringForKey"); - - if (!ok) { break; } - std::string_view ret = cobj->getStringForKey(arg0, arg1); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - std::string_view ret = cobj->getStringForKey(arg0); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getStringForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getStringForKey'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_UserDefault_setStringForKey(lua_State* tolua_S) { int argc = 0; @@ -31875,61 +31956,99 @@ int lua_ax_base_UserDefault_setStringForKey(lua_State* tolua_S) return 0; } -int lua_ax_base_UserDefault_getLargeIntForKey(lua_State* tolua_S) +int lua_ax_base_UserDefault_flush(lua_State* tolua_S) { int argc = 0; ax::UserDefault* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); + #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getLargeIntForKey'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_flush'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getLargeIntForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - long long arg1; - ok &= luaval_to_long_long(tolua_S, 3,&arg1, "ax.UserDefault:getLargeIntForKey"); - - if (!ok) { break; } - long long ret = cobj->getLargeIntForKey(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_flush'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getLargeIntForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - long long ret = cobj->getLargeIntForKey(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getLargeIntForKey",argc, 1); + cobj->flush(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:flush",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getLargeIntForKey'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_flush'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_UserDefault_deleteValueForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::UserDefault* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_deleteValueForKey'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:deleteValueForKey"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_deleteValueForKey'", nullptr); + return 0; + } + cobj->deleteValueForKey(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:deleteValueForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_deleteValueForKey'.",&tolua_err); #endif return 0; @@ -31990,227 +32109,6 @@ int lua_ax_base_UserDefault_setEncryptEnabled(lua_State* tolua_S) return 0; } -int lua_ax_base_UserDefault_deleteValueForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_deleteValueForKey'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:deleteValueForKey"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_deleteValueForKey'", nullptr); - return 0; - } - cobj->deleteValueForKey(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:deleteValueForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_deleteValueForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_UserDefault_getIntegerForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getIntegerForKey'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - int arg1; - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.UserDefault:getIntegerForKey"); - - if (!ok) { break; } - int ret = cobj->getIntegerForKey(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - int ret = cobj->getIntegerForKey(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getIntegerForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getIntegerForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_UserDefault_getDoubleForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_getDoubleForKey'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.UserDefault:getDoubleForKey"); - - if (!ok) { break; } - double ret = cobj->getDoubleForKey(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - double ret = cobj->getDoubleForKey(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:getDoubleForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_getDoubleForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_UserDefault_setBoolForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::UserDefault* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.UserDefault",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::UserDefault*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_UserDefault_setBoolForKey'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - bool arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.UserDefault:setBoolForKey"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.UserDefault:setBoolForKey"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_UserDefault_setBoolForKey'", nullptr); - return 0; - } - cobj->setBoolForKey(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.UserDefault:setBoolForKey",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_UserDefault_setBoolForKey'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_UserDefault_destroyInstance(lua_State* tolua_S) { int argc = 0; @@ -32257,21 +32155,21 @@ int lua_register_ax_base_UserDefault(lua_State* tolua_S) tolua_cclass(tolua_S,"UserDefault","ax.UserDefault","",nullptr); tolua_beginmodule(tolua_S,"UserDefault"); + tolua_function(tolua_S,"getBoolForKey",lua_ax_base_UserDefault_getBoolForKey); + tolua_function(tolua_S,"getIntegerForKey",lua_ax_base_UserDefault_getIntegerForKey); + tolua_function(tolua_S,"getLargeIntForKey",lua_ax_base_UserDefault_getLargeIntForKey); + tolua_function(tolua_S,"getFloatForKey",lua_ax_base_UserDefault_getFloatForKey); + tolua_function(tolua_S,"getDoubleForKey",lua_ax_base_UserDefault_getDoubleForKey); + tolua_function(tolua_S,"getStringForKey",lua_ax_base_UserDefault_getStringForKey); + tolua_function(tolua_S,"setBoolForKey",lua_ax_base_UserDefault_setBoolForKey); tolua_function(tolua_S,"setIntegerForKey",lua_ax_base_UserDefault_setIntegerForKey); tolua_function(tolua_S,"setLargeIntForKey",lua_ax_base_UserDefault_setLargeIntForKey); - tolua_function(tolua_S,"getFloatForKey",lua_ax_base_UserDefault_getFloatForKey); - tolua_function(tolua_S,"getBoolForKey",lua_ax_base_UserDefault_getBoolForKey); - tolua_function(tolua_S,"flush",lua_ax_base_UserDefault_flush); - tolua_function(tolua_S,"setDoubleForKey",lua_ax_base_UserDefault_setDoubleForKey); tolua_function(tolua_S,"setFloatForKey",lua_ax_base_UserDefault_setFloatForKey); - tolua_function(tolua_S,"getStringForKey",lua_ax_base_UserDefault_getStringForKey); + tolua_function(tolua_S,"setDoubleForKey",lua_ax_base_UserDefault_setDoubleForKey); tolua_function(tolua_S,"setStringForKey",lua_ax_base_UserDefault_setStringForKey); - tolua_function(tolua_S,"getLargeIntForKey",lua_ax_base_UserDefault_getLargeIntForKey); - tolua_function(tolua_S,"setEncryptEnabled",lua_ax_base_UserDefault_setEncryptEnabled); + tolua_function(tolua_S,"flush",lua_ax_base_UserDefault_flush); tolua_function(tolua_S,"deleteValueForKey",lua_ax_base_UserDefault_deleteValueForKey); - tolua_function(tolua_S,"getIntegerForKey",lua_ax_base_UserDefault_getIntegerForKey); - tolua_function(tolua_S,"getDoubleForKey",lua_ax_base_UserDefault_getDoubleForKey); - tolua_function(tolua_S,"setBoolForKey",lua_ax_base_UserDefault_setBoolForKey); + tolua_function(tolua_S,"setEncryptEnabled",lua_ax_base_UserDefault_setEncryptEnabled); tolua_function(tolua_S,"destroyInstance", lua_ax_base_UserDefault_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::UserDefault).name(); // rtti is literal storage @@ -32280,6 +32178,53 @@ int lua_register_ax_base_UserDefault(lua_State* tolua_S) return 1; } +int lua_ax_base_FileUtils_purgeCachedEntries(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_purgeCachedEntries'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_purgeCachedEntries'", nullptr); + return 0; + } + cobj->purgeCachedEntries(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:purgeCachedEntries",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_purgeCachedEntries'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FileUtils_getStringFromFile(lua_State* tolua_S) { int argc = 0; @@ -32343,6 +32288,464 @@ int lua_ax_base_FileUtils_getStringFromFile(lua_State* tolua_S) return 0; } +int lua_ax_base_FileUtils_fullPathForFilename(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_fullPathForFilename'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:fullPathForFilename"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_fullPathForFilename'", nullptr); + return 0; + } + auto&& ret = cobj->fullPathForFilename(arg0); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:fullPathForFilename",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_fullPathForFilename'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_fullPathFromRelativeFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:fullPathFromRelativeFile"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:fullPathFromRelativeFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_fullPathFromRelativeFile'", nullptr); + return 0; + } + auto&& ret = cobj->fullPathFromRelativeFile(arg0, arg1); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:fullPathFromRelativeFile",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_fullPathFromRelativeFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_setSearchPaths(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setSearchPaths'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::vector arg0; + + ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "ax.FileUtils:setSearchPaths"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setSearchPaths'", nullptr); + return 0; + } + cobj->setSearchPaths(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setSearchPaths",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setSearchPaths'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getDefaultResourceRootPath(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getDefaultResourceRootPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getDefaultResourceRootPath'", nullptr); + return 0; + } + auto&& ret = cobj->getDefaultResourceRootPath(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getDefaultResourceRootPath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getDefaultResourceRootPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_setDefaultResourceRootPath(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setDefaultResourceRootPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:setDefaultResourceRootPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setDefaultResourceRootPath'", nullptr); + return 0; + } + cobj->setDefaultResourceRootPath(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setDefaultResourceRootPath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setDefaultResourceRootPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_addSearchPath(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_addSearchPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:addSearchPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_addSearchPath'", nullptr); + return 0; + } + cobj->addSearchPath(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + bool arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:addSearchPath"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.FileUtils:addSearchPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_addSearchPath'", nullptr); + return 0; + } + cobj->addSearchPath(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:addSearchPath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_addSearchPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getSearchPaths(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getSearchPaths'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getSearchPaths'", nullptr); + return 0; + } + auto&& ret = cobj->getSearchPaths(); + ccvector_std_string_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getSearchPaths",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getSearchPaths'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getOriginalSearchPaths(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getOriginalSearchPaths'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getOriginalSearchPaths'", nullptr); + return 0; + } + auto&& ret = cobj->getOriginalSearchPaths(); + ccvector_std_string_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getOriginalSearchPaths",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getOriginalSearchPaths'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getWritablePath(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getWritablePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getWritablePath'", nullptr); + return 0; + } + auto&& ret = cobj->getWritablePath(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getWritablePath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getWritablePath'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FileUtils_getNativeWritableAbsolutePath(lua_State* tolua_S) { int argc = 0; @@ -32390,6 +32793,924 @@ int lua_ax_base_FileUtils_getNativeWritableAbsolutePath(lua_State* tolua_S) return 0; } +int lua_ax_base_FileUtils_setWritablePath(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setWritablePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:setWritablePath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setWritablePath'", nullptr); + return 0; + } + cobj->setWritablePath(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setWritablePath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setWritablePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_setPopupNotify(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setPopupNotify'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.FileUtils:setPopupNotify"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setPopupNotify'", nullptr); + return 0; + } + cobj->setPopupNotify(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setPopupNotify",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setPopupNotify'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_isPopupNotify(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isPopupNotify'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isPopupNotify'", nullptr); + return 0; + } + auto&& ret = cobj->isPopupNotify(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isPopupNotify",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isPopupNotify'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getValueMapFromFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getValueMapFromFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getValueMapFromFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getValueMapFromFile'", nullptr); + return 0; + } + auto&& ret = cobj->getValueMapFromFile(arg0); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getValueMapFromFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getValueMapFromFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getValueMapFromData(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getValueMapFromData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + int arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.FileUtils:getValueMapFromData"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.FileUtils:getValueMapFromData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getValueMapFromData'", nullptr); + return 0; + } + auto&& ret = cobj->getValueMapFromData(arg0, arg1); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getValueMapFromData",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getValueMapFromData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_writeToFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeToFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::ValueMap arg0; + std::string_view arg1; + + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FileUtils:writeToFile"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeToFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_writeToFile'", nullptr); + return 0; + } + auto&& ret = cobj->writeToFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeToFile",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeToFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_writeStringToFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeStringToFile'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ax.FileUtils:writeStringToFile"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeStringToFile"); + + if (!ok) { break; } + std::function arg2; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->writeStringToFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:writeStringToFile"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeStringToFile"); + + if (!ok) { break; } + bool ret = cobj->writeStringToFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeStringToFile",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeStringToFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_writeValueMapToFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeValueMapToFile'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + ax::ValueMap arg0; + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FileUtils:writeValueMapToFile"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueMapToFile"); + + if (!ok) { break; } + std::function arg2; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->writeValueMapToFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + ax::ValueMap arg0; + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FileUtils:writeValueMapToFile"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueMapToFile"); + + if (!ok) { break; } + bool ret = cobj->writeValueMapToFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeValueMapToFile",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeValueMapToFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_writeValueVectorToFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeValueVectorToFile'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + ax::ValueVector arg0; + ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "ax.FileUtils:writeValueVectorToFile"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueVectorToFile"); + + if (!ok) { break; } + std::function arg2; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->writeValueVectorToFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + ax::ValueVector arg0; + ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "ax.FileUtils:writeValueVectorToFile"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueVectorToFile"); + + if (!ok) { break; } + bool ret = cobj->writeValueVectorToFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeValueVectorToFile",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeValueVectorToFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getValueVectorFromFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getValueVectorFromFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getValueVectorFromFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getValueVectorFromFile'", nullptr); + return 0; + } + auto&& ret = cobj->getValueVectorFromFile(arg0); + ccvaluevector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getValueVectorFromFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getValueVectorFromFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_isFileExist(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isFileExist'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isFileExist"); + + if (!ok) { break; } + std::function arg1; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->isFileExist(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isFileExist"); + + if (!ok) { break; } + bool ret = cobj->isFileExist(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isFileExist",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isFileExist'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getFileExtension(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getFileExtension'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getFileExtension"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getFileExtension'", nullptr); + return 0; + } + auto&& ret = cobj->getFileExtension(arg0); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getFileExtension",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getFileExtension'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_isAbsolutePath(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isAbsolutePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isAbsolutePath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isAbsolutePath'", nullptr); + return 0; + } + auto&& ret = cobj->isAbsolutePath(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isAbsolutePath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isAbsolutePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_isDirectoryExist(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isDirectoryExist'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isDirectoryExist"); + + if (!ok) { break; } + std::function arg1; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->isDirectoryExist(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isDirectoryExist"); + + if (!ok) { break; } + bool ret = cobj->isDirectoryExist(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isDirectoryExist",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isDirectoryExist'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_createDirectory(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_createDirectory'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:createDirectory"); + + if (!ok) { break; } + std::function arg1; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->createDirectory(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:createDirectory"); + + if (!ok) { break; } + bool ret = cobj->createDirectory(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:createDirectory",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_createDirectory'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_removeDirectory(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_removeDirectory'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:removeDirectory"); + + if (!ok) { break; } + std::function arg1; + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + + if (!ok) { break; } + cobj->removeDirectory(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:removeDirectory"); + + if (!ok) { break; } + bool ret = cobj->removeDirectory(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:removeDirectory",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_removeDirectory'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FileUtils_removeFile(lua_State* tolua_S) { int argc = 0; @@ -32453,113 +33774,6 @@ int lua_ax_base_FileUtils_removeFile(lua_State* tolua_S) return 0; } -int lua_ax_base_FileUtils_listFilesRecursivelyAsync(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_listFilesRecursivelyAsync'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::function)> arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:listFilesRecursivelyAsync"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_listFilesRecursivelyAsync'", nullptr); - return 0; - } - cobj->listFilesRecursivelyAsync(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:listFilesRecursivelyAsync",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_listFilesRecursivelyAsync'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_isAbsolutePath(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isAbsolutePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isAbsolutePath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isAbsolutePath'", nullptr); - return 0; - } - auto&& ret = cobj->isAbsolutePath(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isAbsolutePath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isAbsolutePath'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FileUtils_renameFile(lua_State* tolua_S) { int argc = 0; @@ -32679,397 +33893,6 @@ int lua_ax_base_FileUtils_renameFile(lua_State* tolua_S) return 0; } -int lua_ax_base_FileUtils_getDefaultResourceRootPath(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getDefaultResourceRootPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getDefaultResourceRootPath'", nullptr); - return 0; - } - auto&& ret = cobj->getDefaultResourceRootPath(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getDefaultResourceRootPath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getDefaultResourceRootPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_isPopupNotify(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isPopupNotify'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isPopupNotify'", nullptr); - return 0; - } - auto&& ret = cobj->isPopupNotify(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isPopupNotify",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isPopupNotify'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_getValueVectorFromFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getValueVectorFromFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getValueVectorFromFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getValueVectorFromFile'", nullptr); - return 0; - } - auto&& ret = cobj->getValueVectorFromFile(arg0); - ccvaluevector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getValueVectorFromFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getValueVectorFromFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_getSearchPaths(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getSearchPaths'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getSearchPaths'", nullptr); - return 0; - } - auto&& ret = cobj->getSearchPaths(); - ccvector_std_string_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getSearchPaths",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getSearchPaths'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_writeToFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeToFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::ValueMap arg0; - std::string_view arg1; - - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FileUtils:writeToFile"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeToFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_writeToFile'", nullptr); - return 0; - } - auto&& ret = cobj->writeToFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeToFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeToFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_getOriginalSearchPaths(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getOriginalSearchPaths'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getOriginalSearchPaths'", nullptr); - return 0; - } - auto&& ret = cobj->getOriginalSearchPaths(); - ccvector_std_string_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getOriginalSearchPaths",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getOriginalSearchPaths'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_listFiles(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_listFiles'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:listFiles"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_listFiles'", nullptr); - return 0; - } - auto&& ret = cobj->listFiles(arg0); - ccvector_std_string_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:listFiles",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_listFiles'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_getValueMapFromFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getValueMapFromFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getValueMapFromFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getValueMapFromFile'", nullptr); - return 0; - } - auto&& ret = cobj->getValueMapFromFile(arg0); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getValueMapFromFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getValueMapFromFile'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FileUtils_getFileSize(lua_State* tolua_S) { int argc = 0; @@ -33133,7 +33956,7 @@ int lua_ax_base_FileUtils_getFileSize(lua_State* tolua_S) return 0; } -int lua_ax_base_FileUtils_getValueMapFromData(lua_State* tolua_S) +int lua_ax_base_FileUtils_listFiles(lua_State* tolua_S) { int argc = 0; ax::FileUtils* cobj = nullptr; @@ -33153,244 +33976,7 @@ int lua_ax_base_FileUtils_getValueMapFromData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getValueMapFromData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - int arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.FileUtils:getValueMapFromData"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.FileUtils:getValueMapFromData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getValueMapFromData'", nullptr); - return 0; - } - auto&& ret = cobj->getValueMapFromData(arg0, arg1); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getValueMapFromData",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getValueMapFromData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_removeDirectory(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_removeDirectory'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:removeDirectory"); - - if (!ok) { break; } - std::function arg1; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->removeDirectory(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:removeDirectory"); - - if (!ok) { break; } - bool ret = cobj->removeDirectory(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:removeDirectory",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_removeDirectory'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_setSearchPaths(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setSearchPaths'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::vector arg0; - - ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "ax.FileUtils:setSearchPaths"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setSearchPaths'", nullptr); - return 0; - } - cobj->setSearchPaths(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setSearchPaths",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setSearchPaths'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_writeStringToFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeStringToFile'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 3) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ax.FileUtils:writeStringToFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeStringToFile"); - - if (!ok) { break; } - std::function arg2; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->writeStringToFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:writeStringToFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeStringToFile"); - - if (!ok) { break; } - bool ret = cobj->writeStringToFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeStringToFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeStringToFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_isFileExistInternal(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isFileExistInternal'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_listFiles'", nullptr); return 0; } #endif @@ -33400,820 +33986,22 @@ int lua_ax_base_FileUtils_isFileExistInternal(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isFileExistInternal"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:listFiles"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isFileExistInternal'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_listFiles'", nullptr); return 0; } - auto&& ret = cobj->isFileExistInternal(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->listFiles(arg0); + ccvector_std_string_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isFileExistInternal",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:listFiles",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isFileExistInternal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_fullPathForFilename(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_fullPathForFilename'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:fullPathForFilename"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_fullPathForFilename'", nullptr); - return 0; - } - auto&& ret = cobj->fullPathForFilename(arg0); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:fullPathForFilename",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_fullPathForFilename'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_addSearchPath(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_addSearchPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:addSearchPath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_addSearchPath'", nullptr); - return 0; - } - cobj->addSearchPath(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - bool arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:addSearchPath"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.FileUtils:addSearchPath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_addSearchPath'", nullptr); - return 0; - } - cobj->addSearchPath(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:addSearchPath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_addSearchPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_writeValueVectorToFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeValueVectorToFile'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 3) { - ax::ValueVector arg0; - ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "ax.FileUtils:writeValueVectorToFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueVectorToFile"); - - if (!ok) { break; } - std::function arg2; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->writeValueVectorToFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - ax::ValueVector arg0; - ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "ax.FileUtils:writeValueVectorToFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueVectorToFile"); - - if (!ok) { break; } - bool ret = cobj->writeValueVectorToFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeValueVectorToFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeValueVectorToFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_isFileExist(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isFileExist'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isFileExist"); - - if (!ok) { break; } - std::function arg1; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->isFileExist(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isFileExist"); - - if (!ok) { break; } - bool ret = cobj->isFileExist(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isFileExist",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isFileExist'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_purgeCachedEntries(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_purgeCachedEntries'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_purgeCachedEntries'", nullptr); - return 0; - } - cobj->purgeCachedEntries(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:purgeCachedEntries",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_purgeCachedEntries'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_fullPathFromRelativeFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:fullPathFromRelativeFile"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:fullPathFromRelativeFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_fullPathFromRelativeFile'", nullptr); - return 0; - } - auto&& ret = cobj->fullPathFromRelativeFile(arg0, arg1); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:fullPathFromRelativeFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_fullPathFromRelativeFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_isDirectoryExistInternal(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isDirectoryExistInternal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isDirectoryExistInternal"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isDirectoryExistInternal'", nullptr); - return 0; - } - auto&& ret = cobj->isDirectoryExistInternal(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isDirectoryExistInternal",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isDirectoryExistInternal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_writeValueMapToFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_writeValueMapToFile'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 3) { - ax::ValueMap arg0; - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FileUtils:writeValueMapToFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueMapToFile"); - - if (!ok) { break; } - std::function arg2; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->writeValueMapToFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - ax::ValueMap arg0; - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FileUtils:writeValueMapToFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FileUtils:writeValueMapToFile"); - - if (!ok) { break; } - bool ret = cobj->writeValueMapToFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:writeValueMapToFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_writeValueMapToFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_getFileExtension(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getFileExtension'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getFileExtension"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getFileExtension'", nullptr); - return 0; - } - auto&& ret = cobj->getFileExtension(arg0); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getFileExtension",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getFileExtension'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_setWritablePath(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setWritablePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:setWritablePath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setWritablePath'", nullptr); - return 0; - } - cobj->setWritablePath(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setWritablePath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setWritablePath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_setPopupNotify(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setPopupNotify'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.FileUtils:setPopupNotify"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setPopupNotify'", nullptr); - return 0; - } - cobj->setPopupNotify(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setPopupNotify",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setPopupNotify'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_isDirectoryExist(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isDirectoryExist'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isDirectoryExist"); - - if (!ok) { break; } - std::function arg1; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->isDirectoryExist(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isDirectoryExist"); - - if (!ok) { break; } - bool ret = cobj->isDirectoryExist(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isDirectoryExist",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isDirectoryExist'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_setDefaultResourceRootPath(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_setDefaultResourceRootPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:setDefaultResourceRootPath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_setDefaultResourceRootPath'", nullptr); - return 0; - } - cobj->setDefaultResourceRootPath(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:setDefaultResourceRootPath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_setDefaultResourceRootPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FileUtils_createDirectory(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_createDirectory'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:createDirectory"); - - if (!ok) { break; } - std::function arg1; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - - if (!ok) { break; } - cobj->createDirectory(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:createDirectory"); - - if (!ok) { break; } - bool ret = cobj->createDirectory(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:createDirectory",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_createDirectory'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_listFiles'.",&tolua_err); #endif return 0; @@ -34275,53 +34063,6 @@ int lua_ax_base_FileUtils_listFilesAsync(lua_State* tolua_S) return 0; } -int lua_ax_base_FileUtils_getWritablePath(lua_State* tolua_S) -{ - int argc = 0; - ax::FileUtils* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_getWritablePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getWritablePath'", nullptr); - return 0; - } - auto&& ret = cobj->getWritablePath(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:getWritablePath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getWritablePath'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FileUtils_listFilesRecursively(lua_State* tolua_S) { int argc = 0; @@ -34375,6 +34116,231 @@ int lua_ax_base_FileUtils_listFilesRecursively(lua_State* tolua_S) return 0; } +int lua_ax_base_FileUtils_listFilesRecursivelyAsync(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_listFilesRecursivelyAsync'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::function)> arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:listFilesRecursivelyAsync"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_listFilesRecursivelyAsync'", nullptr); + return 0; + } + cobj->listFilesRecursivelyAsync(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:listFilesRecursivelyAsync",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_listFilesRecursivelyAsync'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_isFileExistInternal(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isFileExistInternal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isFileExistInternal"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isFileExistInternal'", nullptr); + return 0; + } + auto&& ret = cobj->isFileExistInternal(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isFileExistInternal",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isFileExistInternal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_isDirectoryExistInternal(lua_State* tolua_S) +{ + int argc = 0; + ax::FileUtils* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FileUtils*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FileUtils_isDirectoryExistInternal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:isDirectoryExistInternal"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_isDirectoryExistInternal'", nullptr); + return 0; + } + auto&& ret = cobj->isDirectoryExistInternal(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FileUtils:isDirectoryExistInternal",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_isDirectoryExistInternal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FileUtils_getInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getInstance'", nullptr); + return 0; + } + auto&& ret = ax::FileUtils::getInstance(); + object_to_luaval(tolua_S, "ax.FileUtils",(ax::FileUtils*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.FileUtils:getInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getInstance'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_FileUtils_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_destroyInstance'", nullptr); + return 0; + } + ax::FileUtils::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.FileUtils:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_destroyInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_FileUtils_writeBinaryToFile(lua_State* tolua_S) { int argc = 0; @@ -34416,7 +34382,7 @@ int lua_ax_base_FileUtils_writeBinaryToFile(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_FileUtils_getInstance(lua_State* tolua_S) +int lua_ax_base_FileUtils_getFileShortName(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -34431,22 +34397,24 @@ int lua_ax_base_FileUtils_getInstance(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getFileShortName"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getInstance'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getFileShortName'", nullptr); return 0; } - auto&& ret = ax::FileUtils::getInstance(); - object_to_luaval(tolua_S, "ax.FileUtils",(ax::FileUtils*)ret); + auto&& ret = ax::FileUtils::getFileShortName(arg0); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.FileUtils:getInstance",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.FileUtils:getFileShortName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getInstance'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getFileShortName'.",&tolua_err); #endif return 0; } @@ -34486,76 +34454,6 @@ int lua_ax_base_FileUtils_isAbsolutePathInternal(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_FileUtils_destroyInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_destroyInstance'", nullptr); - return 0; - } - ax::FileUtils::destroyInstance(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.FileUtils:destroyInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_destroyInstance'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_FileUtils_getFileShortName(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.FileUtils",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FileUtils:getFileShortName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FileUtils_getFileShortName'", nullptr); - return 0; - } - auto&& ret = ax::FileUtils::getFileShortName(arg0); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.FileUtils:getFileShortName",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FileUtils_getFileShortName'.",&tolua_err); -#endif - return 0; -} static int lua_ax_base_FileUtils_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FileUtils)"); @@ -34568,48 +34466,48 @@ int lua_register_ax_base_FileUtils(lua_State* tolua_S) tolua_cclass(tolua_S,"FileUtils","ax.FileUtils","",nullptr); tolua_beginmodule(tolua_S,"FileUtils"); - tolua_function(tolua_S,"getStringFromFile",lua_ax_base_FileUtils_getStringFromFile); - tolua_function(tolua_S,"getNativeWritableAbsolutePath",lua_ax_base_FileUtils_getNativeWritableAbsolutePath); - tolua_function(tolua_S,"removeFile",lua_ax_base_FileUtils_removeFile); - tolua_function(tolua_S,"listFilesRecursivelyAsync",lua_ax_base_FileUtils_listFilesRecursivelyAsync); - tolua_function(tolua_S,"isAbsolutePath",lua_ax_base_FileUtils_isAbsolutePath); - tolua_function(tolua_S,"renameFile",lua_ax_base_FileUtils_renameFile); - tolua_function(tolua_S,"getDefaultResourceRootPath",lua_ax_base_FileUtils_getDefaultResourceRootPath); - tolua_function(tolua_S,"isPopupNotify",lua_ax_base_FileUtils_isPopupNotify); - tolua_function(tolua_S,"getValueVectorFromFile",lua_ax_base_FileUtils_getValueVectorFromFile); - tolua_function(tolua_S,"getSearchPaths",lua_ax_base_FileUtils_getSearchPaths); - tolua_function(tolua_S,"writeToFile",lua_ax_base_FileUtils_writeToFile); - tolua_function(tolua_S,"getOriginalSearchPaths",lua_ax_base_FileUtils_getOriginalSearchPaths); - tolua_function(tolua_S,"listFiles",lua_ax_base_FileUtils_listFiles); - tolua_function(tolua_S,"getValueMapFromFile",lua_ax_base_FileUtils_getValueMapFromFile); - tolua_function(tolua_S,"getFileSize",lua_ax_base_FileUtils_getFileSize); - tolua_function(tolua_S,"getValueMapFromData",lua_ax_base_FileUtils_getValueMapFromData); - tolua_function(tolua_S,"removeDirectory",lua_ax_base_FileUtils_removeDirectory); - tolua_function(tolua_S,"setSearchPaths",lua_ax_base_FileUtils_setSearchPaths); - tolua_function(tolua_S,"writeStringToFile",lua_ax_base_FileUtils_writeStringToFile); - tolua_function(tolua_S,"isFileExistInternal",lua_ax_base_FileUtils_isFileExistInternal); - tolua_function(tolua_S,"fullPathForFilename",lua_ax_base_FileUtils_fullPathForFilename); - tolua_function(tolua_S,"addSearchPath",lua_ax_base_FileUtils_addSearchPath); - tolua_function(tolua_S,"writeValueVectorToFile",lua_ax_base_FileUtils_writeValueVectorToFile); - tolua_function(tolua_S,"isFileExist",lua_ax_base_FileUtils_isFileExist); tolua_function(tolua_S,"purgeCachedEntries",lua_ax_base_FileUtils_purgeCachedEntries); + tolua_function(tolua_S,"getStringFromFile",lua_ax_base_FileUtils_getStringFromFile); + tolua_function(tolua_S,"fullPathForFilename",lua_ax_base_FileUtils_fullPathForFilename); tolua_function(tolua_S,"fullPathFromRelativeFile",lua_ax_base_FileUtils_fullPathFromRelativeFile); - tolua_function(tolua_S,"isDirectoryExistInternal",lua_ax_base_FileUtils_isDirectoryExistInternal); - tolua_function(tolua_S,"writeValueMapToFile",lua_ax_base_FileUtils_writeValueMapToFile); - tolua_function(tolua_S,"getFileExtension",lua_ax_base_FileUtils_getFileExtension); + tolua_function(tolua_S,"setSearchPaths",lua_ax_base_FileUtils_setSearchPaths); + tolua_function(tolua_S,"getDefaultResourceRootPath",lua_ax_base_FileUtils_getDefaultResourceRootPath); + tolua_function(tolua_S,"setDefaultResourceRootPath",lua_ax_base_FileUtils_setDefaultResourceRootPath); + tolua_function(tolua_S,"addSearchPath",lua_ax_base_FileUtils_addSearchPath); + tolua_function(tolua_S,"getSearchPaths",lua_ax_base_FileUtils_getSearchPaths); + tolua_function(tolua_S,"getOriginalSearchPaths",lua_ax_base_FileUtils_getOriginalSearchPaths); + tolua_function(tolua_S,"getWritablePath",lua_ax_base_FileUtils_getWritablePath); + tolua_function(tolua_S,"getNativeWritableAbsolutePath",lua_ax_base_FileUtils_getNativeWritableAbsolutePath); tolua_function(tolua_S,"setWritablePath",lua_ax_base_FileUtils_setWritablePath); tolua_function(tolua_S,"setPopupNotify",lua_ax_base_FileUtils_setPopupNotify); + tolua_function(tolua_S,"isPopupNotify",lua_ax_base_FileUtils_isPopupNotify); + tolua_function(tolua_S,"getValueMapFromFile",lua_ax_base_FileUtils_getValueMapFromFile); + tolua_function(tolua_S,"getValueMapFromData",lua_ax_base_FileUtils_getValueMapFromData); + tolua_function(tolua_S,"writeToFile",lua_ax_base_FileUtils_writeToFile); + tolua_function(tolua_S,"writeStringToFile",lua_ax_base_FileUtils_writeStringToFile); + tolua_function(tolua_S,"writeValueMapToFile",lua_ax_base_FileUtils_writeValueMapToFile); + tolua_function(tolua_S,"writeValueVectorToFile",lua_ax_base_FileUtils_writeValueVectorToFile); + tolua_function(tolua_S,"getValueVectorFromFile",lua_ax_base_FileUtils_getValueVectorFromFile); + tolua_function(tolua_S,"isFileExist",lua_ax_base_FileUtils_isFileExist); + tolua_function(tolua_S,"getFileExtension",lua_ax_base_FileUtils_getFileExtension); + tolua_function(tolua_S,"isAbsolutePath",lua_ax_base_FileUtils_isAbsolutePath); tolua_function(tolua_S,"isDirectoryExist",lua_ax_base_FileUtils_isDirectoryExist); - tolua_function(tolua_S,"setDefaultResourceRootPath",lua_ax_base_FileUtils_setDefaultResourceRootPath); tolua_function(tolua_S,"createDirectory",lua_ax_base_FileUtils_createDirectory); + tolua_function(tolua_S,"removeDirectory",lua_ax_base_FileUtils_removeDirectory); + tolua_function(tolua_S,"removeFile",lua_ax_base_FileUtils_removeFile); + tolua_function(tolua_S,"renameFile",lua_ax_base_FileUtils_renameFile); + tolua_function(tolua_S,"getFileSize",lua_ax_base_FileUtils_getFileSize); + tolua_function(tolua_S,"listFiles",lua_ax_base_FileUtils_listFiles); tolua_function(tolua_S,"listFilesAsync",lua_ax_base_FileUtils_listFilesAsync); - tolua_function(tolua_S,"getWritablePath",lua_ax_base_FileUtils_getWritablePath); tolua_function(tolua_S,"listFilesRecursively",lua_ax_base_FileUtils_listFilesRecursively); - tolua_function(tolua_S,"writeBinaryToFile", lua_ax_base_FileUtils_writeBinaryToFile); + tolua_function(tolua_S,"listFilesRecursivelyAsync",lua_ax_base_FileUtils_listFilesRecursivelyAsync); + tolua_function(tolua_S,"isFileExistInternal",lua_ax_base_FileUtils_isFileExistInternal); + tolua_function(tolua_S,"isDirectoryExistInternal",lua_ax_base_FileUtils_isDirectoryExistInternal); tolua_function(tolua_S,"getInstance", lua_ax_base_FileUtils_getInstance); - tolua_function(tolua_S,"isAbsolutePathInternal", lua_ax_base_FileUtils_isAbsolutePathInternal); tolua_function(tolua_S,"destroyInstance", lua_ax_base_FileUtils_destroyInstance); + tolua_function(tolua_S,"writeBinaryToFile", lua_ax_base_FileUtils_writeBinaryToFile); tolua_function(tolua_S,"getFileShortName", lua_ax_base_FileUtils_getFileShortName); + tolua_function(tolua_S,"isAbsolutePathInternal", lua_ax_base_FileUtils_isAbsolutePathInternal); tolua_endmodule(tolua_S); auto typeName = typeid(ax::FileUtils).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.FileUtils"; @@ -34744,6 +34642,433 @@ int lua_register_ax_base_EventCustom(lua_State* tolua_S) return 1; } +int lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::EventListener* arg0; + ax::Node* arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:addEventListenerWithSceneGraphPriority"); + + ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.EventDispatcher:addEventListenerWithSceneGraphPriority"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); + return 0; + } + cobj->addEventListenerWithSceneGraphPriority(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addEventListenerWithSceneGraphPriority",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::EventListener* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:addEventListenerWithFixedPriority"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.EventDispatcher:addEventListenerWithFixedPriority"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); + return 0; + } + cobj->addEventListenerWithFixedPriority(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addEventListenerWithFixedPriority",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_addCustomEventListener(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_addCustomEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::function arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventDispatcher:addCustomEventListener"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addCustomEventListener'", nullptr); + return 0; + } + auto&& ret = cobj->addCustomEventListener(arg0, arg1); + object_to_luaval(tolua_S, "ax.EventListenerCustom",(ax::EventListenerCustom*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addCustomEventListener",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_addCustomEventListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_removeEventListener(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::EventListener* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:removeEventListener"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListener'", nullptr); + return 0; + } + cobj->removeEventListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeEventListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeEventListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeEventListenersForType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::EventListener::Type arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventDispatcher:removeEventListenersForType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListenersForType'", nullptr); + return 0; + } + cobj->removeEventListenersForType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeEventListenersForType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeEventListenersForType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:removeEventListenersForTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'", nullptr); + return 0; + } + cobj->removeEventListenersForTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + ax::Node* arg0; + bool arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:removeEventListenersForTarget"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.EventDispatcher:removeEventListenersForTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'", nullptr); + return 0; + } + cobj->removeEventListenersForTarget(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeEventListenersForTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeCustomEventListeners'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventDispatcher:removeCustomEventListeners"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeCustomEventListeners'", nullptr); + return 0; + } + cobj->removeCustomEventListeners(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeCustomEventListeners",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeCustomEventListeners'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeAllEventListeners'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeAllEventListeners'", nullptr); + return 0; + } + cobj->removeAllEventListeners(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeAllEventListeners",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeAllEventListeners'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S) { int argc = 0; @@ -34811,7 +35136,7 @@ int lua_ax_base_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S) return 0; } -int lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State* tolua_S) +int lua_ax_base_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_S) { int argc = 0; ax::EventDispatcher* cobj = nullptr; @@ -34831,7 +35156,74 @@ int lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:resumeEventListenersForTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'", nullptr); + return 0; + } + cobj->resumeEventListenersForTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + ax::Node* arg0; + bool arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:resumeEventListenersForTarget"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.EventDispatcher:resumeEventListenersForTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'", nullptr); + return 0; + } + cobj->resumeEventListenersForTarget(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:resumeEventListenersForTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventDispatcher_setPriority(lua_State* tolua_S) +{ + int argc = 0; + ax::EventDispatcher* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_setPriority'", nullptr); return 0; } #endif @@ -34840,26 +35232,26 @@ int lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State if (argc == 2) { ax::EventListener* arg0; - ax::Node* arg1; + int arg1; - ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:addEventListenerWithSceneGraphPriority"); + ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:setPriority"); - ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.EventDispatcher:addEventListenerWithSceneGraphPriority"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.EventDispatcher:setPriority"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_setPriority'", nullptr); return 0; } - cobj->addEventListenerWithSceneGraphPriority(arg0, arg1); + cobj->setPriority(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addEventListenerWithSceneGraphPriority",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:setPriority",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_setPriority'.",&tolua_err); #endif return 0; @@ -34914,7 +35306,7 @@ int lua_ax_base_EventDispatcher_setEnabled(lua_State* tolua_S) return 0; } -int lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tolua_S) +int lua_ax_base_EventDispatcher_isEnabled(lua_State* tolua_S) { int argc = 0; ax::EventDispatcher* cobj = nullptr; @@ -34934,40 +35326,34 @@ int lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tol #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - ax::EventListener* arg0; - int arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:addEventListenerWithFixedPriority"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.EventDispatcher:addEventListenerWithFixedPriority"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_isEnabled'", nullptr); return 0; } - cobj->addEventListenerWithFixedPriority(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addEventListenerWithFixedPriority",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:isEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_isEnabled'.",&tolua_err); #endif return 0; } -int lua_ax_base_EventDispatcher_removeEventListener(lua_State* tolua_S) +int lua_ax_base_EventDispatcher_dispatchEvent(lua_State* tolua_S) { int argc = 0; ax::EventDispatcher* cobj = nullptr; @@ -34987,7 +35373,7 @@ int lua_ax_base_EventDispatcher_removeEventListener(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeEventListener'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_dispatchEvent'", nullptr); return 0; } #endif @@ -34995,24 +35381,24 @@ int lua_ax_base_EventDispatcher_removeEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::EventListener* arg0; + ax::Event* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:removeEventListener"); + ok &= luaval_to_object(tolua_S, 2, "ax.Event",&arg0, "ax.EventDispatcher:dispatchEvent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListener'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_dispatchEvent'", nullptr); return 0; } - cobj->removeEventListener(arg0); + cobj->dispatchEvent(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeEventListener",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:dispatchEvent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeEventListener'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_dispatchEvent'.",&tolua_err); #endif return 0; @@ -35085,300 +35471,6 @@ int lua_ax_base_EventDispatcher_dispatchCustomEvent(lua_State* tolua_S) return 0; } -int lua_ax_base_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:resumeEventListenersForTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'", nullptr); - return 0; - } - cobj->resumeEventListenersForTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - ax::Node* arg0; - bool arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:resumeEventListenersForTarget"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.EventDispatcher:resumeEventListenersForTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'", nullptr); - return 0; - } - cobj->resumeEventListenersForTarget(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:resumeEventListenersForTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_resumeEventListenersForTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:removeEventListenersForTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'", nullptr); - return 0; - } - cobj->removeEventListenersForTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - ax::Node* arg0; - bool arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.EventDispatcher:removeEventListenersForTarget"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.EventDispatcher:removeEventListenersForTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'", nullptr); - return 0; - } - cobj->removeEventListenersForTarget(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeEventListenersForTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeEventListenersForTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_setPriority(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_setPriority'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::EventListener* arg0; - int arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.EventListener",&arg0, "ax.EventDispatcher:setPriority"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.EventDispatcher:setPriority"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_setPriority'", nullptr); - return 0; - } - cobj->setPriority(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:setPriority",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_setPriority'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_addCustomEventListener(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_addCustomEventListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::function arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventDispatcher:addCustomEventListener"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addCustomEventListener'", nullptr); - return 0; - } - auto&& ret = cobj->addCustomEventListener(arg0, arg1); - object_to_luaval(tolua_S, "ax.EventListenerCustom",(ax::EventListenerCustom*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addCustomEventListener",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_addCustomEventListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_dispatchEvent(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_dispatchEvent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Event* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Event",&arg0, "ax.EventDispatcher:dispatchEvent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_dispatchEvent'", nullptr); - return 0; - } - cobj->dispatchEvent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:dispatchEvent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_dispatchEvent'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_EventDispatcher_hasEventListener(lua_State* tolua_S) { int argc = 0; @@ -35429,200 +35521,6 @@ int lua_ax_base_EventDispatcher_hasEventListener(lua_State* tolua_S) return 0; } -int lua_ax_base_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeAllEventListeners'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeAllEventListeners'", nullptr); - return 0; - } - cobj->removeAllEventListeners(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeAllEventListeners",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeAllEventListeners'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeCustomEventListeners'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventDispatcher:removeCustomEventListeners"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeCustomEventListeners'", nullptr); - return 0; - } - cobj->removeCustomEventListeners(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeCustomEventListeners",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeCustomEventListeners'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_isEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_isEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:isEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_isEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) -{ - int argc = 0; - ax::EventDispatcher* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventDispatcher",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventDispatcher_removeEventListenersForType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::EventListener::Type arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventDispatcher:removeEventListenersForType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_removeEventListenersForType'", nullptr); - return 0; - } - cobj->removeEventListenersForType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:removeEventListenersForType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventDispatcher_removeEventListenersForType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_EventDispatcher_constructor(lua_State* tolua_S) { int argc = 0; @@ -35673,22 +35571,22 @@ int lua_register_ax_base_EventDispatcher(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventDispatcher"); tolua_function(tolua_S,"new",lua_ax_base_EventDispatcher_constructor); - tolua_function(tolua_S,"pauseEventListenersForTarget",lua_ax_base_EventDispatcher_pauseEventListenersForTarget); tolua_function(tolua_S,"addEventListenerWithSceneGraphPriority",lua_ax_base_EventDispatcher_addEventListenerWithSceneGraphPriority); - tolua_function(tolua_S,"setEnabled",lua_ax_base_EventDispatcher_setEnabled); tolua_function(tolua_S,"addEventListenerWithFixedPriority",lua_ax_base_EventDispatcher_addEventListenerWithFixedPriority); - tolua_function(tolua_S,"removeEventListener",lua_ax_base_EventDispatcher_removeEventListener); - tolua_function(tolua_S,"dispatchCustomEvent",lua_ax_base_EventDispatcher_dispatchCustomEvent); - tolua_function(tolua_S,"resumeEventListenersForTarget",lua_ax_base_EventDispatcher_resumeEventListenersForTarget); - tolua_function(tolua_S,"removeEventListenersForTarget",lua_ax_base_EventDispatcher_removeEventListenersForTarget); - tolua_function(tolua_S,"setPriority",lua_ax_base_EventDispatcher_setPriority); tolua_function(tolua_S,"addCustomEventListener",lua_ax_base_EventDispatcher_addCustomEventListener); - tolua_function(tolua_S,"dispatchEvent",lua_ax_base_EventDispatcher_dispatchEvent); - tolua_function(tolua_S,"hasEventListener",lua_ax_base_EventDispatcher_hasEventListener); - tolua_function(tolua_S,"removeAllEventListeners",lua_ax_base_EventDispatcher_removeAllEventListeners); - tolua_function(tolua_S,"removeCustomEventListeners",lua_ax_base_EventDispatcher_removeCustomEventListeners); - tolua_function(tolua_S,"isEnabled",lua_ax_base_EventDispatcher_isEnabled); + tolua_function(tolua_S,"removeEventListener",lua_ax_base_EventDispatcher_removeEventListener); tolua_function(tolua_S,"removeEventListenersForType",lua_ax_base_EventDispatcher_removeEventListenersForType); + tolua_function(tolua_S,"removeEventListenersForTarget",lua_ax_base_EventDispatcher_removeEventListenersForTarget); + tolua_function(tolua_S,"removeCustomEventListeners",lua_ax_base_EventDispatcher_removeCustomEventListeners); + tolua_function(tolua_S,"removeAllEventListeners",lua_ax_base_EventDispatcher_removeAllEventListeners); + tolua_function(tolua_S,"pauseEventListenersForTarget",lua_ax_base_EventDispatcher_pauseEventListenersForTarget); + tolua_function(tolua_S,"resumeEventListenersForTarget",lua_ax_base_EventDispatcher_resumeEventListenersForTarget); + tolua_function(tolua_S,"setPriority",lua_ax_base_EventDispatcher_setPriority); + tolua_function(tolua_S,"setEnabled",lua_ax_base_EventDispatcher_setEnabled); + tolua_function(tolua_S,"isEnabled",lua_ax_base_EventDispatcher_isEnabled); + tolua_function(tolua_S,"dispatchEvent",lua_ax_base_EventDispatcher_dispatchEvent); + tolua_function(tolua_S,"dispatchCustomEvent",lua_ax_base_EventDispatcher_dispatchCustomEvent); + tolua_function(tolua_S,"hasEventListener",lua_ax_base_EventDispatcher_hasEventListener); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EventDispatcher).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EventDispatcher"; @@ -36081,241 +35979,6 @@ int lua_register_ax_base_EventListenerKeyboard(lua_State* tolua_S) return 1; } -int lua_ax_base_EventMouse_getPreviousLocationInView(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getPreviousLocationInView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getPreviousLocationInView'", nullptr); - return 0; - } - auto&& ret = cobj->getPreviousLocationInView(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getPreviousLocationInView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getPreviousLocationInView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventMouse_getLocation(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getLocation'", nullptr); - return 0; - } - auto&& ret = cobj->getLocation(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getLocation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getLocation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventMouse_getMouseButton(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getMouseButton'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getMouseButton'", nullptr); - return 0; - } - int ret = (int)cobj->getMouseButton(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getMouseButton",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getMouseButton'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventMouse_getPreviousLocation(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getPreviousLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getPreviousLocation'", nullptr); - return 0; - } - auto&& ret = cobj->getPreviousLocation(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getPreviousLocation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getPreviousLocation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventMouse_getDelta(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getDelta'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getDelta'", nullptr); - return 0; - } - auto&& ret = cobj->getDelta(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getDelta",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getDelta'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_EventMouse_setScrollData(lua_State* tolua_S) { int argc = 0; @@ -36369,7 +36032,7 @@ int lua_ax_base_EventMouse_setScrollData(lua_State* tolua_S) return 0; } -int lua_ax_base_EventMouse_getStartLocationInView(lua_State* tolua_S) +int lua_ax_base_EventMouse_getScrollX(lua_State* tolua_S) { int argc = 0; ax::EventMouse* cobj = nullptr; @@ -36389,7 +36052,7 @@ int lua_ax_base_EventMouse_getStartLocationInView(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getStartLocationInView'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getScrollX'", nullptr); return 0; } #endif @@ -36399,24 +36062,24 @@ int lua_ax_base_EventMouse_getStartLocationInView(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getStartLocationInView'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getScrollX'", nullptr); return 0; } - auto&& ret = cobj->getStartLocationInView(); - vec2_to_luaval(tolua_S, ret); + auto&& ret = cobj->getScrollX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getStartLocationInView",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getScrollX",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getStartLocationInView'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getScrollX'.",&tolua_err); #endif return 0; } -int lua_ax_base_EventMouse_getStartLocation(lua_State* tolua_S) +int lua_ax_base_EventMouse_getScrollY(lua_State* tolua_S) { int argc = 0; ax::EventMouse* cobj = nullptr; @@ -36436,7 +36099,7 @@ int lua_ax_base_EventMouse_getStartLocation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getStartLocation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getScrollY'", nullptr); return 0; } #endif @@ -36446,19 +36109,72 @@ int lua_ax_base_EventMouse_getStartLocation(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getStartLocation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getScrollY'", nullptr); return 0; } - auto&& ret = cobj->getStartLocation(); - vec2_to_luaval(tolua_S, ret); + auto&& ret = cobj->getScrollY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getStartLocation",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getScrollY",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getStartLocation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getScrollY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_setCursorPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_setCursorPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.EventMouse:setCursorPosition"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.EventMouse:setCursorPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_setCursorPosition'", nullptr); + return 0; + } + cobj->setCursorPosition(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:setCursorPosition",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_setCursorPosition'.",&tolua_err); #endif return 0; @@ -36513,7 +36229,7 @@ int lua_ax_base_EventMouse_setMouseButton(lua_State* tolua_S) return 0; } -int lua_ax_base_EventMouse_getLocationInView(lua_State* tolua_S) +int lua_ax_base_EventMouse_getMouseButton(lua_State* tolua_S) { int argc = 0; ax::EventMouse* cobj = nullptr; @@ -36533,7 +36249,7 @@ int lua_ax_base_EventMouse_getLocationInView(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getLocationInView'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getMouseButton'", nullptr); return 0; } #endif @@ -36543,113 +36259,19 @@ int lua_ax_base_EventMouse_getLocationInView(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getLocationInView'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getMouseButton'", nullptr); return 0; } - auto&& ret = cobj->getLocationInView(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getLocationInView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getLocationInView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventMouse_getScrollY(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getScrollY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getScrollY'", nullptr); - return 0; - } - auto&& ret = cobj->getScrollY(); + int ret = (int)cobj->getMouseButton(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getScrollY",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getMouseButton",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getScrollY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventMouse_getScrollX(lua_State* tolua_S) -{ - int argc = 0; - ax::EventMouse* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getScrollX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getScrollX'", nullptr); - return 0; - } - auto&& ret = cobj->getScrollX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getScrollX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getScrollX'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getMouseButton'.",&tolua_err); #endif return 0; @@ -36748,7 +36370,7 @@ int lua_ax_base_EventMouse_getCursorY(lua_State* tolua_S) return 0; } -int lua_ax_base_EventMouse_setCursorPosition(lua_State* tolua_S) +int lua_ax_base_EventMouse_getLocation(lua_State* tolua_S) { int argc = 0; ax::EventMouse* cobj = nullptr; @@ -36768,35 +36390,311 @@ int lua_ax_base_EventMouse_setCursorPosition(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_setCursorPosition'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - double arg0; - double arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.EventMouse:setCursorPosition"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.EventMouse:setCursorPosition"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_setCursorPosition'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getLocation'", nullptr); return 0; } - cobj->setCursorPosition(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getLocation(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:setCursorPosition",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getLocation",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_setCursorPosition'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getLocation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_getPreviousLocation(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getPreviousLocation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getPreviousLocation'", nullptr); + return 0; + } + auto&& ret = cobj->getPreviousLocation(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getPreviousLocation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getPreviousLocation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_getStartLocation(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getStartLocation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getStartLocation'", nullptr); + return 0; + } + auto&& ret = cobj->getStartLocation(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getStartLocation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getStartLocation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_getDelta(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getDelta'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getDelta'", nullptr); + return 0; + } + auto&& ret = cobj->getDelta(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getDelta",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getDelta'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_getLocationInView(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getLocationInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getLocationInView'", nullptr); + return 0; + } + auto&& ret = cobj->getLocationInView(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getLocationInView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getLocationInView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_getPreviousLocationInView(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getPreviousLocationInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getPreviousLocationInView'", nullptr); + return 0; + } + auto&& ret = cobj->getPreviousLocationInView(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getPreviousLocationInView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getPreviousLocationInView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventMouse_getStartLocationInView(lua_State* tolua_S) +{ + int argc = 0; + ax::EventMouse* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventMouse*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventMouse_getStartLocationInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventMouse_getStartLocationInView'", nullptr); + return 0; + } + auto&& ret = cobj->getStartLocationInView(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventMouse:getStartLocationInView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventMouse_getStartLocationInView'.",&tolua_err); #endif return 0; @@ -36854,21 +36752,21 @@ int lua_register_ax_base_EventMouse(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventMouse"); tolua_function(tolua_S,"new",lua_ax_base_EventMouse_constructor); - tolua_function(tolua_S,"getPreviousLocationInView",lua_ax_base_EventMouse_getPreviousLocationInView); - tolua_function(tolua_S,"getLocation",lua_ax_base_EventMouse_getLocation); - tolua_function(tolua_S,"getMouseButton",lua_ax_base_EventMouse_getMouseButton); - tolua_function(tolua_S,"getPreviousLocation",lua_ax_base_EventMouse_getPreviousLocation); - tolua_function(tolua_S,"getDelta",lua_ax_base_EventMouse_getDelta); tolua_function(tolua_S,"setScrollData",lua_ax_base_EventMouse_setScrollData); - tolua_function(tolua_S,"getStartLocationInView",lua_ax_base_EventMouse_getStartLocationInView); - tolua_function(tolua_S,"getStartLocation",lua_ax_base_EventMouse_getStartLocation); - tolua_function(tolua_S,"setMouseButton",lua_ax_base_EventMouse_setMouseButton); - tolua_function(tolua_S,"getLocationInView",lua_ax_base_EventMouse_getLocationInView); - tolua_function(tolua_S,"getScrollY",lua_ax_base_EventMouse_getScrollY); tolua_function(tolua_S,"getScrollX",lua_ax_base_EventMouse_getScrollX); + tolua_function(tolua_S,"getScrollY",lua_ax_base_EventMouse_getScrollY); + tolua_function(tolua_S,"setCursorPosition",lua_ax_base_EventMouse_setCursorPosition); + tolua_function(tolua_S,"setMouseButton",lua_ax_base_EventMouse_setMouseButton); + tolua_function(tolua_S,"getMouseButton",lua_ax_base_EventMouse_getMouseButton); tolua_function(tolua_S,"getCursorX",lua_ax_base_EventMouse_getCursorX); tolua_function(tolua_S,"getCursorY",lua_ax_base_EventMouse_getCursorY); - tolua_function(tolua_S,"setCursorPosition",lua_ax_base_EventMouse_setCursorPosition); + tolua_function(tolua_S,"getLocation",lua_ax_base_EventMouse_getLocation); + tolua_function(tolua_S,"getPreviousLocation",lua_ax_base_EventMouse_getPreviousLocation); + tolua_function(tolua_S,"getStartLocation",lua_ax_base_EventMouse_getStartLocation); + tolua_function(tolua_S,"getDelta",lua_ax_base_EventMouse_getDelta); + tolua_function(tolua_S,"getLocationInView",lua_ax_base_EventMouse_getLocationInView); + tolua_function(tolua_S,"getPreviousLocationInView",lua_ax_base_EventMouse_getPreviousLocationInView); + tolua_function(tolua_S,"getStartLocationInView",lua_ax_base_EventMouse_getStartLocationInView); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EventMouse).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EventMouse"; @@ -37000,53 +36898,6 @@ int lua_register_ax_base_EventListenerController(lua_State* tolua_S) return 1; } -int lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) -{ - int argc = 0; - ax::EventListenerTouchOneByOne* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); - return 0; - } - auto&& ret = cobj->isSwallowTouches(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListenerTouchOneByOne:isSwallowTouches",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S) { int argc = 0; @@ -37097,6 +36948,53 @@ int lua_ax_base_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S) return 0; } +int lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) +{ + int argc = 0; + ax::EventListenerTouchOneByOne* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); + return 0; + } + auto&& ret = cobj->isSwallowTouches(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListenerTouchOneByOne:isSwallowTouches",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_EventListenerTouchOneByOne_init(lua_State* tolua_S) { int argc = 0; @@ -37194,8 +37092,8 @@ int lua_register_ax_base_EventListenerTouchOneByOne(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventListenerTouchOneByOne"); tolua_function(tolua_S,"new",lua_ax_base_EventListenerTouchOneByOne_constructor); - tolua_function(tolua_S,"isSwallowTouches",lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches); tolua_function(tolua_S,"setSwallowTouches",lua_ax_base_EventListenerTouchOneByOne_setSwallowTouches); + tolua_function(tolua_S,"isSwallowTouches",lua_ax_base_EventListenerTouchOneByOne_isSwallowTouches); tolua_function(tolua_S,"init",lua_ax_base_EventListenerTouchOneByOne_init); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EventListenerTouchOneByOne).name(); // rtti is literal storage @@ -37356,6 +37254,150 @@ int lua_ax_base_EventController_getControllerEventType(lua_State* tolua_S) return 0; } +int lua_ax_base_EventController_getController(lua_State* tolua_S) +{ + int argc = 0; + ax::EventController* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventController_getController'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventController_getController'", nullptr); + return 0; + } + auto&& ret = cobj->getController(); + object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getController",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventController_getController'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventController_getKeyCode(lua_State* tolua_S) +{ + int argc = 0; + ax::EventController* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventController_getKeyCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventController_getKeyCode'", nullptr); + return 0; + } + auto&& ret = cobj->getKeyCode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getKeyCode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventController_getKeyCode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_EventController_setKeyCode(lua_State* tolua_S) +{ + int argc = 0; + ax::EventController* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventController_setKeyCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventController:setKeyCode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventController_setKeyCode'", nullptr); + return 0; + } + cobj->setKeyCode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:setKeyCode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventController_setKeyCode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_EventController_setConnectStatus(lua_State* tolua_S) { int argc = 0; @@ -37453,150 +37495,6 @@ int lua_ax_base_EventController_isConnected(lua_State* tolua_S) return 0; } -int lua_ax_base_EventController_setKeyCode(lua_State* tolua_S) -{ - int argc = 0; - ax::EventController* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventController_setKeyCode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventController:setKeyCode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventController_setKeyCode'", nullptr); - return 0; - } - cobj->setKeyCode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:setKeyCode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventController_setKeyCode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventController_getController(lua_State* tolua_S) -{ - int argc = 0; - ax::EventController* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventController_getController'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventController_getController'", nullptr); - return 0; - } - auto&& ret = cobj->getController(); - object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getController",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventController_getController'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_EventController_getKeyCode(lua_State* tolua_S) -{ - int argc = 0; - ax::EventController* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EventController_getKeyCode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventController_getKeyCode'", nullptr); - return 0; - } - auto&& ret = cobj->getKeyCode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getKeyCode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EventController_getKeyCode'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_EventController_constructor(lua_State* tolua_S) { int argc = 0; @@ -37677,11 +37575,11 @@ int lua_register_ax_base_EventController(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventController"); tolua_function(tolua_S,"new",lua_ax_base_EventController_constructor); tolua_function(tolua_S,"getControllerEventType",lua_ax_base_EventController_getControllerEventType); - tolua_function(tolua_S,"setConnectStatus",lua_ax_base_EventController_setConnectStatus); - tolua_function(tolua_S,"isConnected",lua_ax_base_EventController_isConnected); - tolua_function(tolua_S,"setKeyCode",lua_ax_base_EventController_setKeyCode); tolua_function(tolua_S,"getController",lua_ax_base_EventController_getController); tolua_function(tolua_S,"getKeyCode",lua_ax_base_EventController_getKeyCode); + tolua_function(tolua_S,"setKeyCode",lua_ax_base_EventController_setKeyCode); + tolua_function(tolua_S,"setConnectStatus",lua_ax_base_EventController_setConnectStatus); + tolua_function(tolua_S,"isConnected",lua_ax_base_EventController_isConnected); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EventController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EventController"; @@ -37799,7 +37697,7 @@ int lua_ax_base_ActionCamera_getEye(lua_State* tolua_S) return 0; } -int lua_ax_base_ActionCamera_setUp(lua_State* tolua_S) +int lua_ax_base_ActionCamera_setCenter(lua_State* tolua_S) { int argc = 0; ax::ActionCamera* cobj = nullptr; @@ -37819,7 +37717,7 @@ int lua_ax_base_ActionCamera_setUp(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionCamera_setUp'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionCamera_setCenter'", nullptr); return 0; } #endif @@ -37829,22 +37727,22 @@ int lua_ax_base_ActionCamera_setUp(lua_State* tolua_S) { ax::Vec3 arg0; - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.ActionCamera:setUp"); + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.ActionCamera:setCenter"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionCamera_setUp'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionCamera_setCenter'", nullptr); return 0; } - cobj->setUp(arg0); + cobj->setCenter(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionCamera:setUp",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionCamera:setCenter",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionCamera_setUp'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionCamera_setCenter'.",&tolua_err); #endif return 0; @@ -37896,7 +37794,7 @@ int lua_ax_base_ActionCamera_getCenter(lua_State* tolua_S) return 0; } -int lua_ax_base_ActionCamera_setCenter(lua_State* tolua_S) +int lua_ax_base_ActionCamera_setUp(lua_State* tolua_S) { int argc = 0; ax::ActionCamera* cobj = nullptr; @@ -37916,7 +37814,7 @@ int lua_ax_base_ActionCamera_setCenter(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionCamera_setCenter'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionCamera_setUp'", nullptr); return 0; } #endif @@ -37926,22 +37824,22 @@ int lua_ax_base_ActionCamera_setCenter(lua_State* tolua_S) { ax::Vec3 arg0; - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.ActionCamera:setCenter"); + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.ActionCamera:setUp"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionCamera_setCenter'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionCamera_setUp'", nullptr); return 0; } - cobj->setCenter(arg0); + cobj->setUp(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionCamera:setCenter",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionCamera:setUp",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionCamera_setCenter'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionCamera_setUp'.",&tolua_err); #endif return 0; @@ -38045,9 +37943,9 @@ int lua_register_ax_base_ActionCamera(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_ax_base_ActionCamera_constructor); tolua_function(tolua_S,"setEye",lua_ax_base_ActionCamera_setEye); tolua_function(tolua_S,"getEye",lua_ax_base_ActionCamera_getEye); - tolua_function(tolua_S,"setUp",lua_ax_base_ActionCamera_setUp); - tolua_function(tolua_S,"getCenter",lua_ax_base_ActionCamera_getCenter); tolua_function(tolua_S,"setCenter",lua_ax_base_ActionCamera_setCenter); + tolua_function(tolua_S,"getCenter",lua_ax_base_ActionCamera_getCenter); + tolua_function(tolua_S,"setUp",lua_ax_base_ActionCamera_setUp); tolua_function(tolua_S,"getUp",lua_ax_base_ActionCamera_getUp); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ActionCamera).name(); // rtti is literal storage @@ -38231,103 +38129,6 @@ int lua_register_ax_base_OrbitCamera(lua_State* tolua_S) return 1; } -int lua_ax_base_CardinalSplineTo_getPoints(lua_State* tolua_S) -{ - int argc = 0; - ax::CardinalSplineTo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CardinalSplineTo_getPoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CardinalSplineTo_getPoints'", nullptr); - return 0; - } - auto&& ret = cobj->getPoints(); - object_to_luaval(tolua_S, "ax.PointArray",(ax::PointArray*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CardinalSplineTo:getPoints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CardinalSplineTo_getPoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_CardinalSplineTo_updatePosition(lua_State* tolua_S) -{ - int argc = 0; - ax::CardinalSplineTo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CardinalSplineTo_updatePosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.CardinalSplineTo:updatePosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CardinalSplineTo_updatePosition'", nullptr); - return 0; - } - cobj->updatePosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CardinalSplineTo:updatePosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CardinalSplineTo_updatePosition'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_CardinalSplineTo_initWithDuration(lua_State* tolua_S) { int argc = 0; @@ -38384,6 +38185,103 @@ int lua_ax_base_CardinalSplineTo_initWithDuration(lua_State* tolua_S) return 0; } +int lua_ax_base_CardinalSplineTo_updatePosition(lua_State* tolua_S) +{ + int argc = 0; + ax::CardinalSplineTo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CardinalSplineTo_updatePosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.CardinalSplineTo:updatePosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CardinalSplineTo_updatePosition'", nullptr); + return 0; + } + cobj->updatePosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CardinalSplineTo:updatePosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CardinalSplineTo_updatePosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_CardinalSplineTo_getPoints(lua_State* tolua_S) +{ + int argc = 0; + ax::CardinalSplineTo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CardinalSplineTo_getPoints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CardinalSplineTo_getPoints'", nullptr); + return 0; + } + auto&& ret = cobj->getPoints(); + object_to_luaval(tolua_S, "ax.PointArray",(ax::PointArray*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CardinalSplineTo:getPoints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CardinalSplineTo_getPoints'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_CardinalSplineTo_constructor(lua_State* tolua_S) { int argc = 0; @@ -38434,9 +38332,9 @@ int lua_register_ax_base_CardinalSplineTo(lua_State* tolua_S) tolua_beginmodule(tolua_S,"CardinalSplineTo"); tolua_function(tolua_S,"new",lua_ax_base_CardinalSplineTo_constructor); - tolua_function(tolua_S,"getPoints",lua_ax_base_CardinalSplineTo_getPoints); - tolua_function(tolua_S,"updatePosition",lua_ax_base_CardinalSplineTo_updatePosition); tolua_function(tolua_S,"initWithDuration",lua_ax_base_CardinalSplineTo_initWithDuration); + tolua_function(tolua_S,"updatePosition",lua_ax_base_CardinalSplineTo_updatePosition); + tolua_function(tolua_S,"getPoints",lua_ax_base_CardinalSplineTo_getPoints); tolua_endmodule(tolua_S); auto typeName = typeid(ax::CardinalSplineTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.CardinalSplineTo"; @@ -38647,6 +38545,53 @@ int lua_register_ax_base_CatmullRomBy(lua_State* tolua_S) return 1; } +int lua_ax_base_ActionEase_getInnerAction(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionEase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionEase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionEase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionEase_getInnerAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionEase_getInnerAction'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionEase:getInnerAction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionEase_getInnerAction'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ActionEase_initWithAction(lua_State* tolua_S) { int argc = 0; @@ -38697,53 +38642,6 @@ int lua_ax_base_ActionEase_initWithAction(lua_State* tolua_S) return 0; } -int lua_ax_base_ActionEase_getInnerAction(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionEase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionEase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionEase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionEase_getInnerAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionEase_getInnerAction'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionEase:getInnerAction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionEase_getInnerAction'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_base_ActionEase_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionEase)"); @@ -38756,8 +38654,8 @@ int lua_register_ax_base_ActionEase(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionEase","ax.ActionEase","ax.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionEase"); - tolua_function(tolua_S,"initWithAction",lua_ax_base_ActionEase_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_ax_base_ActionEase_getInnerAction); + tolua_function(tolua_S,"initWithAction",lua_ax_base_ActionEase_initWithAction); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ActionEase).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.ActionEase"; @@ -38815,6 +38713,53 @@ int lua_ax_base_EaseRateAction_setRate(lua_State* tolua_S) return 0; } +int lua_ax_base_EaseRateAction_getRate(lua_State* tolua_S) +{ + int argc = 0; + ax::EaseRateAction* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EaseRateAction",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EaseRateAction*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EaseRateAction_getRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EaseRateAction_getRate'", nullptr); + return 0; + } + auto&& ret = cobj->getRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EaseRateAction:getRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EaseRateAction_getRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_EaseRateAction_initWithAction(lua_State* tolua_S) { int argc = 0; @@ -38868,53 +38813,6 @@ int lua_ax_base_EaseRateAction_initWithAction(lua_State* tolua_S) return 0; } -int lua_ax_base_EaseRateAction_getRate(lua_State* tolua_S) -{ - int argc = 0; - ax::EaseRateAction* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EaseRateAction",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EaseRateAction*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EaseRateAction_getRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EaseRateAction_getRate'", nullptr); - return 0; - } - auto&& ret = cobj->getRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EaseRateAction:getRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EaseRateAction_getRate'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_EaseRateAction_create(lua_State* tolua_S) { int argc = 0; @@ -38966,8 +38864,8 @@ int lua_register_ax_base_EaseRateAction(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EaseRateAction"); tolua_function(tolua_S,"setRate",lua_ax_base_EaseRateAction_setRate); - tolua_function(tolua_S,"initWithAction",lua_ax_base_EaseRateAction_initWithAction); tolua_function(tolua_S,"getRate",lua_ax_base_EaseRateAction_getRate); + tolua_function(tolua_S,"initWithAction",lua_ax_base_EaseRateAction_initWithAction); tolua_function(tolua_S,"create", lua_ax_base_EaseRateAction_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EaseRateAction).name(); // rtti is literal storage @@ -41821,6 +41719,53 @@ int lua_register_ax_base_EaseInOut(lua_State* tolua_S) return 1; } +int lua_ax_base_EaseElastic_getPeriod(lua_State* tolua_S) +{ + int argc = 0; + ax::EaseElastic* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EaseElastic",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EaseElastic*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EaseElastic_getPeriod'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EaseElastic_getPeriod'", nullptr); + return 0; + } + auto&& ret = cobj->getPeriod(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EaseElastic:getPeriod",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EaseElastic_getPeriod'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_EaseElastic_setPeriod(lua_State* tolua_S) { int argc = 0; @@ -41938,53 +41883,6 @@ int lua_ax_base_EaseElastic_initWithAction(lua_State* tolua_S) return 0; } -int lua_ax_base_EaseElastic_getPeriod(lua_State* tolua_S) -{ - int argc = 0; - ax::EaseElastic* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EaseElastic",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EaseElastic*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_EaseElastic_getPeriod'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EaseElastic_getPeriod'", nullptr); - return 0; - } - auto&& ret = cobj->getPeriod(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EaseElastic:getPeriod",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_EaseElastic_getPeriod'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_base_EaseElastic_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElastic)"); @@ -41997,9 +41895,9 @@ int lua_register_ax_base_EaseElastic(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseElastic","ax.EaseElastic","ax.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseElastic"); + tolua_function(tolua_S,"getPeriod",lua_ax_base_EaseElastic_getPeriod); tolua_function(tolua_S,"setPeriod",lua_ax_base_EaseElastic_setPeriod); tolua_function(tolua_S,"initWithAction",lua_ax_base_EaseElastic_initWithAction); - tolua_function(tolua_S,"getPeriod",lua_ax_base_EaseElastic_getPeriod); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EaseElastic).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EaseElastic"; @@ -43923,6 +43821,150 @@ int lua_register_ax_base_ReuseGrid(lua_State* tolua_S) return 1; } +int lua_ax_base_Waves3D_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Waves3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Waves3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Waves3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves3D_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves3D_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves3D:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Waves3D_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Waves3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Waves3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Waves3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves3D_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Waves3D:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves3D_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves3D:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves3D_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Waves3D_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::Waves3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Waves3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Waves3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves3D_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves3D_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves3D:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves3D_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Waves3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -44032,150 +44074,6 @@ int lua_ax_base_Waves3D_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_Waves3D_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Waves3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Waves3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Waves3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves3D_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves3D_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves3D:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves3D_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Waves3D_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::Waves3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Waves3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Waves3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves3D_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves3D_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves3D:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves3D_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Waves3D_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Waves3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Waves3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Waves3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves3D_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Waves3D:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves3D_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves3D:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves3D_setAmplitude'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Waves3D_create(lua_State* tolua_S) { int argc = 0; @@ -44268,11 +44166,11 @@ int lua_register_ax_base_Waves3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Waves3D"); tolua_function(tolua_S,"new",lua_ax_base_Waves3D_constructor); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_Waves3D_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_Waves3D_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Waves3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_Waves3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_Waves3D_initWithDuration); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_Waves3D_getAmplitude); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Waves3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_Waves3D_setAmplitude); tolua_function(tolua_S,"create", lua_ax_base_Waves3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Waves3D).name(); // rtti is literal storage @@ -44281,6 +44179,56 @@ int lua_register_ax_base_Waves3D(lua_State* tolua_S) return 1; } +int lua_ax_base_FlipX3D_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::FlipX3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FlipX3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FlipX3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FlipX3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.FlipX3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FlipX3D_initWithDuration'", nullptr); + return 0; + } + auto&& ret = cobj->initWithDuration(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FlipX3D:initWithDuration",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FlipX3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FlipX3D_initWithSize(lua_State* tolua_S) { int argc = 0; @@ -44334,56 +44282,6 @@ int lua_ax_base_FlipX3D_initWithSize(lua_State* tolua_S) return 0; } -int lua_ax_base_FlipX3D_initWithDuration(lua_State* tolua_S) -{ - int argc = 0; - ax::FlipX3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FlipX3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FlipX3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FlipX3D_initWithDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.FlipX3D:initWithDuration"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FlipX3D_initWithDuration'", nullptr); - return 0; - } - auto&& ret = cobj->initWithDuration(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FlipX3D:initWithDuration",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FlipX3D_initWithDuration'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FlipX3D_create(lua_State* tolua_S) { int argc = 0; @@ -44470,8 +44368,8 @@ int lua_register_ax_base_FlipX3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"FlipX3D"); tolua_function(tolua_S,"new",lua_ax_base_FlipX3D_constructor); - tolua_function(tolua_S,"initWithSize",lua_ax_base_FlipX3D_initWithSize); tolua_function(tolua_S,"initWithDuration",lua_ax_base_FlipX3D_initWithDuration); + tolua_function(tolua_S,"initWithSize",lua_ax_base_FlipX3D_initWithSize); tolua_function(tolua_S,"create", lua_ax_base_FlipX3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::FlipX3D).name(); // rtti is literal storage @@ -44574,6 +44472,103 @@ int lua_register_ax_base_FlipY3D(lua_State* tolua_S) return 1; } +int lua_ax_base_Lens3D_getLensEffect(lua_State* tolua_S) +{ + int argc = 0; + ax::Lens3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_getLensEffect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_getLensEffect'", nullptr); + return 0; + } + auto&& ret = cobj->getLensEffect(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:getLensEffect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_getLensEffect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Lens3D_setLensEffect(lua_State* tolua_S) +{ + int argc = 0; + ax::Lens3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_setLensEffect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Lens3D:setLensEffect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_setLensEffect'", nullptr); + return 0; + } + cobj->setLensEffect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:setLensEffect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_setLensEffect'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Lens3D_setConcave(lua_State* tolua_S) { int argc = 0; @@ -44624,6 +44619,103 @@ int lua_ax_base_Lens3D_setConcave(lua_State* tolua_S) return 0; } +int lua_ax_base_Lens3D_getPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Lens3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Lens3D_setPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Lens3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_setPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Lens3D:setPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_setPosition'", nullptr); + return 0; + } + cobj->setPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:setPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_setPosition'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Lens3D_initWithDuration(lua_State* tolua_S) { int argc = 0; @@ -44683,200 +44775,6 @@ int lua_ax_base_Lens3D_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_Lens3D_setLensEffect(lua_State* tolua_S) -{ - int argc = 0; - ax::Lens3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_setLensEffect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Lens3D:setLensEffect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_setLensEffect'", nullptr); - return 0; - } - cobj->setLensEffect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:setLensEffect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_setLensEffect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Lens3D_getLensEffect(lua_State* tolua_S) -{ - int argc = 0; - ax::Lens3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_getLensEffect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_getLensEffect'", nullptr); - return 0; - } - auto&& ret = cobj->getLensEffect(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:getLensEffect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_getLensEffect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Lens3D_setPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Lens3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_setPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Lens3D:setPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_setPosition'", nullptr); - return 0; - } - cobj->setPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:setPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_setPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Lens3D_getPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Lens3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Lens3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Lens3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Lens3D_getPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Lens3D_getPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Lens3D:getPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Lens3D_getPosition'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Lens3D_create(lua_State* tolua_S) { int argc = 0; @@ -44969,12 +44867,12 @@ int lua_register_ax_base_Lens3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Lens3D"); tolua_function(tolua_S,"new",lua_ax_base_Lens3D_constructor); - tolua_function(tolua_S,"setConcave",lua_ax_base_Lens3D_setConcave); - tolua_function(tolua_S,"initWithDuration",lua_ax_base_Lens3D_initWithDuration); - tolua_function(tolua_S,"setLensEffect",lua_ax_base_Lens3D_setLensEffect); tolua_function(tolua_S,"getLensEffect",lua_ax_base_Lens3D_getLensEffect); - tolua_function(tolua_S,"setPosition",lua_ax_base_Lens3D_setPosition); + tolua_function(tolua_S,"setLensEffect",lua_ax_base_Lens3D_setLensEffect); + tolua_function(tolua_S,"setConcave",lua_ax_base_Lens3D_setConcave); tolua_function(tolua_S,"getPosition",lua_ax_base_Lens3D_getPosition); + tolua_function(tolua_S,"setPosition",lua_ax_base_Lens3D_setPosition); + tolua_function(tolua_S,"initWithDuration",lua_ax_base_Lens3D_initWithDuration); tolua_function(tolua_S,"create", lua_ax_base_Lens3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Lens3D).name(); // rtti is literal storage @@ -44983,6 +44881,247 @@ int lua_register_ax_base_Lens3D(lua_State* tolua_S) return 1; } +int lua_ax_base_Ripple3D_getPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Ripple3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Ripple3D_setPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Ripple3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_setPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Ripple3D:setPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_setPosition'", nullptr); + return 0; + } + cobj->setPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:setPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_setPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Ripple3D_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Ripple3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Ripple3D_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Ripple3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Ripple3D:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Ripple3D_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::Ripple3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Ripple3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -45098,247 +45237,6 @@ int lua_ax_base_Ripple3D_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_Ripple3D_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::Ripple3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Ripple3D_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Ripple3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Ripple3D:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_setAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Ripple3D_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Ripple3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Ripple3D_setPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Ripple3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_setPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Ripple3D:setPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_setPosition'", nullptr); - return 0; - } - cobj->setPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:setPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_setPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Ripple3D_getPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Ripple3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Ripple3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Ripple3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Ripple3D_getPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Ripple3D_getPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ripple3D:getPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Ripple3D_getPosition'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Ripple3D_create(lua_State* tolua_S) { int argc = 0; @@ -45435,13 +45333,13 @@ int lua_register_ax_base_Ripple3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Ripple3D"); tolua_function(tolua_S,"new",lua_ax_base_Ripple3D_constructor); + tolua_function(tolua_S,"getPosition",lua_ax_base_Ripple3D_getPosition); + tolua_function(tolua_S,"setPosition",lua_ax_base_Ripple3D_setPosition); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_Ripple3D_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_Ripple3D_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Ripple3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_Ripple3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_Ripple3D_initWithDuration); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Ripple3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_Ripple3D_setAmplitude); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_Ripple3D_getAmplitude); - tolua_function(tolua_S,"setPosition",lua_ax_base_Ripple3D_setPosition); - tolua_function(tolua_S,"getPosition",lua_ax_base_Ripple3D_getPosition); tolua_function(tolua_S,"create", lua_ax_base_Ripple3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Ripple3D).name(); // rtti is literal storage @@ -45610,6 +45508,150 @@ int lua_register_ax_base_Shaky3D(lua_State* tolua_S) return 1; } +int lua_ax_base_Liquid_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Liquid* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Liquid",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Liquid*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Liquid_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Liquid_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Liquid:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Liquid_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Liquid_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Liquid* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Liquid",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Liquid*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Liquid_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Liquid:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Liquid_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Liquid:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Liquid_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Liquid_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::Liquid* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Liquid",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Liquid*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Liquid_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Liquid_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Liquid:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Liquid_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Liquid_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -45719,150 +45761,6 @@ int lua_ax_base_Liquid_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_Liquid_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Liquid* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Liquid",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Liquid*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Liquid_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Liquid_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Liquid:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Liquid_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Liquid_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::Liquid* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Liquid",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Liquid*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Liquid_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Liquid_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Liquid:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Liquid_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Liquid_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Liquid* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Liquid",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Liquid*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Liquid_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Liquid:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Liquid_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Liquid:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Liquid_setAmplitude'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Liquid_create(lua_State* tolua_S) { int argc = 0; @@ -45955,11 +45853,11 @@ int lua_register_ax_base_Liquid(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Liquid"); tolua_function(tolua_S,"new",lua_ax_base_Liquid_constructor); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_Liquid_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_Liquid_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Liquid_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_Liquid_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_Liquid_initWithDuration); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_Liquid_getAmplitude); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Liquid_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_Liquid_setAmplitude); tolua_function(tolua_S,"create", lua_ax_base_Liquid_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Liquid).name(); // rtti is literal storage @@ -45968,6 +45866,150 @@ int lua_register_ax_base_Liquid(lua_State* tolua_S) return 1; } +int lua_ax_base_Waves_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Waves* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Waves",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Waves*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Waves_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Waves* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Waves",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Waves*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Waves:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Waves_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::Waves* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Waves",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Waves*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Waves_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -46083,150 +46125,6 @@ int lua_ax_base_Waves_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_Waves_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Waves* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Waves",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Waves*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Waves_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::Waves* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Waves",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Waves*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Waves_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Waves* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Waves",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Waves*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Waves_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Waves:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Waves_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Waves:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Waves_setAmplitude'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Waves_create(lua_State* tolua_S) { int argc = 0; @@ -46323,11 +46221,11 @@ int lua_register_ax_base_Waves(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Waves"); tolua_function(tolua_S,"new",lua_ax_base_Waves_constructor); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_Waves_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_Waves_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Waves_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_Waves_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_Waves_initWithDuration); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_Waves_getAmplitude); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Waves_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_Waves_setAmplitude); tolua_function(tolua_S,"create", lua_ax_base_Waves_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Waves).name(); // rtti is literal storage @@ -46336,6 +46234,247 @@ int lua_register_ax_base_Waves(lua_State* tolua_S) return 1; } +int lua_ax_base_Twirl_getPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Twirl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Twirl_setPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Twirl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_setPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Twirl:setPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_setPosition'", nullptr); + return 0; + } + cobj->setPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:setPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_setPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Twirl_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Twirl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Twirl_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::Twirl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Twirl:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Twirl_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::Twirl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Twirl_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -46448,247 +46587,6 @@ int lua_ax_base_Twirl_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_Twirl_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::Twirl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Twirl_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Twirl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Twirl:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_setAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Twirl_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::Twirl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Twirl_setPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Twirl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_setPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Twirl:setPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_setPosition'", nullptr); - return 0; - } - cobj->setPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:setPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_setPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Twirl_getPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Twirl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Twirl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Twirl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Twirl_getPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Twirl_getPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Twirl:getPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Twirl_getPosition'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Twirl_create(lua_State* tolua_S) { int argc = 0; @@ -46783,13 +46681,13 @@ int lua_register_ax_base_Twirl(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Twirl"); tolua_function(tolua_S,"new",lua_ax_base_Twirl_constructor); + tolua_function(tolua_S,"getPosition",lua_ax_base_Twirl_getPosition); + tolua_function(tolua_S,"setPosition",lua_ax_base_Twirl_setPosition); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_Twirl_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_Twirl_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Twirl_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_Twirl_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_Twirl_initWithDuration); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_Twirl_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_Twirl_setAmplitude); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_Twirl_getAmplitude); - tolua_function(tolua_S,"setPosition",lua_ax_base_Twirl_setPosition); - tolua_function(tolua_S,"getPosition",lua_ax_base_Twirl_getPosition); tolua_function(tolua_S,"create", lua_ax_base_Twirl_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Twirl).name(); // rtti is literal storage @@ -46798,7 +46696,7 @@ int lua_register_ax_base_Twirl(lua_State* tolua_S) return 1; } -int lua_ax_base_ActionManager_getActionByTag(lua_State* tolua_S) +int lua_ax_base_ActionManager_addAction(lua_State* tolua_S) { int argc = 0; ax::ActionManager* cobj = nullptr; @@ -46818,35 +46716,185 @@ int lua_ax_base_ActionManager_getActionByTag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_getActionByTag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_addAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 3) { - int arg0; - const ax::Node* arg1; + ax::Action* arg0; + ax::Node* arg1; + bool arg2; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ActionManager:getActionByTag"); + ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.ActionManager:addAction"); - ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.ActionManager:getActionByTag"); + ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.ActionManager:addAction"); + + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ax.ActionManager:addAction"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_getActionByTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_addAction'", nullptr); return 0; } - auto&& ret = cobj->getActionByTag(arg0, arg1); - object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); + cobj->addAction(arg0, arg1, arg2); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:getActionByTag",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:addAction",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_getActionByTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_addAction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_removeAllActions(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAllActions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAllActions'", nullptr); + return 0; + } + cobj->removeAllActions(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAllActions",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAllActions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAllActionsFromTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ActionManager:removeAllActionsFromTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAllActionsFromTarget'", nullptr); + return 0; + } + cobj->removeAllActionsFromTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAllActionsFromTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAllActionsFromTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_removeAction(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Action* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.ActionManager:removeAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAction'", nullptr); + return 0; + } + cobj->removeAction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAction'.",&tolua_err); #endif return 0; @@ -46904,6 +46952,59 @@ int lua_ax_base_ActionManager_removeActionByTag(lua_State* tolua_S) return 0; } +int lua_ax_base_ActionManager_removeAllActionsByTag(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAllActionsByTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + int arg0; + ax::Node* arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ActionManager:removeAllActionsByTag"); + + ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.ActionManager:removeAllActionsByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAllActionsByTag'", nullptr); + return 0; + } + cobj->removeAllActionsByTag(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAllActionsByTag",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAllActionsByTag'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ActionManager_removeActionsByFlags(lua_State* tolua_S) { int argc = 0; @@ -46957,7 +47058,7 @@ int lua_ax_base_ActionManager_removeActionsByFlags(lua_State* tolua_S) return 0; } -int lua_ax_base_ActionManager_removeAllActions(lua_State* tolua_S) +int lua_ax_base_ActionManager_getActionByTag(lua_State* tolua_S) { int argc = 0; ax::ActionManager* cobj = nullptr; @@ -46977,232 +47078,35 @@ int lua_ax_base_ActionManager_removeAllActions(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAllActions'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_getActionByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + int arg0; + const ax::Node* arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ActionManager:getActionByTag"); + + ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.ActionManager:getActionByTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAllActions'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_getActionByTag'", nullptr); return 0; } - cobj->removeAllActions(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getActionByTag(arg0, arg1); + object_to_luaval(tolua_S, "ax.Action",(ax::Action*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAllActions",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:getActionByTag",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAllActions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_addAction(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_addAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Action* arg0; - ax::Node* arg1; - bool arg2; - - ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.ActionManager:addAction"); - - ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.ActionManager:addAction"); - - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ax.ActionManager:addAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_addAction'", nullptr); - return 0; - } - cobj->addAction(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:addAction",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_addAction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_resumeTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_resumeTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ActionManager:resumeTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_resumeTarget'", nullptr); - return 0; - } - cobj->resumeTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:resumeTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_resumeTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_getNumberOfRunningActions(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_getNumberOfRunningActions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_getNumberOfRunningActions'", nullptr); - return 0; - } - auto&& ret = cobj->getNumberOfRunningActions(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:getNumberOfRunningActions",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_getNumberOfRunningActions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_pauseTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_pauseTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ActionManager:pauseTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_pauseTarget'", nullptr); - return 0; - } - cobj->pauseTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:pauseTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_pauseTarget'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_getActionByTag'.",&tolua_err); #endif return 0; @@ -47257,7 +47161,7 @@ int lua_ax_base_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolua return 0; } -int lua_ax_base_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) +int lua_ax_base_ActionManager_getNumberOfRunningActions(lua_State* tolua_S) { int argc = 0; ax::ActionManager* cobj = nullptr; @@ -47277,157 +47181,7 @@ int lua_ax_base_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAllActionsFromTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ActionManager:removeAllActionsFromTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAllActionsFromTarget'", nullptr); - return 0; - } - cobj->removeAllActionsFromTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAllActionsFromTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAllActionsFromTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_resumeTargets(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_resumeTargets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.ActionManager:resumeTargets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_resumeTargets'", nullptr); - return 0; - } - cobj->resumeTargets(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:resumeTargets",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_resumeTargets'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_removeAction(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Action* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Action",&arg0, "ax.ActionManager:removeAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAction'", nullptr); - return 0; - } - cobj->removeAction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_pauseAllRunningActions(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_pauseAllRunningActions'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_getNumberOfRunningActions'", nullptr); return 0; } #endif @@ -47437,122 +47191,19 @@ int lua_ax_base_ActionManager_pauseAllRunningActions(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_pauseAllRunningActions'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_getNumberOfRunningActions'", nullptr); return 0; } - auto&& ret = cobj->pauseAllRunningActions(); - ccvector_to_luaval(tolua_S, ret); + auto&& ret = cobj->getNumberOfRunningActions(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:pauseAllRunningActions",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:getNumberOfRunningActions",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_pauseAllRunningActions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_update(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_update'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ActionManager:update"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_update'", nullptr); - return 0; - } - cobj->update(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:update",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_update'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ActionManager_removeAllActionsByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::ActionManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_removeAllActionsByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - ax::Node* arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ActionManager:removeAllActionsByTag"); - - ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.ActionManager:removeAllActionsByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_removeAllActionsByTag'", nullptr); - return 0; - } - cobj->removeAllActionsByTag(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:removeAllActionsByTag",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_removeAllActionsByTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_getNumberOfRunningActions'.",&tolua_err); #endif return 0; @@ -47610,6 +47261,253 @@ int lua_ax_base_ActionManager_getNumberOfRunningActionsInTargetByTag(lua_State* return 0; } +int lua_ax_base_ActionManager_pauseTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_pauseTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ActionManager:pauseTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_pauseTarget'", nullptr); + return 0; + } + cobj->pauseTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:pauseTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_pauseTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_resumeTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_resumeTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ActionManager:resumeTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_resumeTarget'", nullptr); + return 0; + } + cobj->resumeTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:resumeTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_resumeTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_pauseAllRunningActions(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_pauseAllRunningActions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_pauseAllRunningActions'", nullptr); + return 0; + } + auto&& ret = cobj->pauseAllRunningActions(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:pauseAllRunningActions",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_pauseAllRunningActions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_resumeTargets(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_resumeTargets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.ActionManager:resumeTargets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_resumeTargets'", nullptr); + return 0; + } + cobj->resumeTargets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:resumeTargets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_resumeTargets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ActionManager_update(lua_State* tolua_S) +{ + int argc = 0; + ax::ActionManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ActionManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ActionManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ActionManager_update'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ActionManager:update"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ActionManager_update'", nullptr); + return 0; + } + cobj->update(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionManager:update",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ActionManager_update'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ActionManager_constructor(lua_State* tolua_S) { int argc = 0; @@ -47660,22 +47558,22 @@ int lua_register_ax_base_ActionManager(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionManager"); tolua_function(tolua_S,"new",lua_ax_base_ActionManager_constructor); - tolua_function(tolua_S,"getActionByTag",lua_ax_base_ActionManager_getActionByTag); - tolua_function(tolua_S,"removeActionByTag",lua_ax_base_ActionManager_removeActionByTag); - tolua_function(tolua_S,"removeActionsByFlags",lua_ax_base_ActionManager_removeActionsByFlags); - tolua_function(tolua_S,"removeAllActions",lua_ax_base_ActionManager_removeAllActions); tolua_function(tolua_S,"addAction",lua_ax_base_ActionManager_addAction); - tolua_function(tolua_S,"resumeTarget",lua_ax_base_ActionManager_resumeTarget); - tolua_function(tolua_S,"getNumberOfRunningActions",lua_ax_base_ActionManager_getNumberOfRunningActions); - tolua_function(tolua_S,"pauseTarget",lua_ax_base_ActionManager_pauseTarget); - tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_ax_base_ActionManager_getNumberOfRunningActionsInTarget); + tolua_function(tolua_S,"removeAllActions",lua_ax_base_ActionManager_removeAllActions); tolua_function(tolua_S,"removeAllActionsFromTarget",lua_ax_base_ActionManager_removeAllActionsFromTarget); - tolua_function(tolua_S,"resumeTargets",lua_ax_base_ActionManager_resumeTargets); tolua_function(tolua_S,"removeAction",lua_ax_base_ActionManager_removeAction); - tolua_function(tolua_S,"pauseAllRunningActions",lua_ax_base_ActionManager_pauseAllRunningActions); - tolua_function(tolua_S,"update",lua_ax_base_ActionManager_update); + tolua_function(tolua_S,"removeActionByTag",lua_ax_base_ActionManager_removeActionByTag); tolua_function(tolua_S,"removeAllActionsByTag",lua_ax_base_ActionManager_removeAllActionsByTag); + tolua_function(tolua_S,"removeActionsByFlags",lua_ax_base_ActionManager_removeActionsByFlags); + tolua_function(tolua_S,"getActionByTag",lua_ax_base_ActionManager_getActionByTag); + tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_ax_base_ActionManager_getNumberOfRunningActionsInTarget); + tolua_function(tolua_S,"getNumberOfRunningActions",lua_ax_base_ActionManager_getNumberOfRunningActions); tolua_function(tolua_S,"getNumberOfRunningActionsInTargetByTag",lua_ax_base_ActionManager_getNumberOfRunningActionsInTargetByTag); + tolua_function(tolua_S,"pauseTarget",lua_ax_base_ActionManager_pauseTarget); + tolua_function(tolua_S,"resumeTarget",lua_ax_base_ActionManager_resumeTarget); + tolua_function(tolua_S,"pauseAllRunningActions",lua_ax_base_ActionManager_pauseAllRunningActions); + tolua_function(tolua_S,"resumeTargets",lua_ax_base_ActionManager_resumeTargets); + tolua_function(tolua_S,"update",lua_ax_base_ActionManager_update); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ActionManager).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.ActionManager"; @@ -48366,6 +48264,56 @@ int lua_register_ax_base_ShatteredTiles3D(lua_State* tolua_S) return 1; } +int lua_ax_base_ShuffleTiles_getDelta(lua_State* tolua_S) +{ + int argc = 0; + ax::ShuffleTiles* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ShuffleTiles_getDelta'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ShuffleTiles:getDelta"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ShuffleTiles_getDelta'", nullptr); + return 0; + } + auto&& ret = cobj->getDelta(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ShuffleTiles:getDelta",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ShuffleTiles_getDelta'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ShuffleTiles_initWithDuration(lua_State* tolua_S) { int argc = 0; @@ -48422,56 +48370,6 @@ int lua_ax_base_ShuffleTiles_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_ShuffleTiles_getDelta(lua_State* tolua_S) -{ - int argc = 0; - ax::ShuffleTiles* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ShuffleTiles_getDelta'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ShuffleTiles:getDelta"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ShuffleTiles_getDelta'", nullptr); - return 0; - } - auto&& ret = cobj->getDelta(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ShuffleTiles:getDelta",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ShuffleTiles_getDelta'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ShuffleTiles_create(lua_State* tolua_S) { int argc = 0; @@ -48562,8 +48460,8 @@ int lua_register_ax_base_ShuffleTiles(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ShuffleTiles"); tolua_function(tolua_S,"new",lua_ax_base_ShuffleTiles_constructor); - tolua_function(tolua_S,"initWithDuration",lua_ax_base_ShuffleTiles_initWithDuration); tolua_function(tolua_S,"getDelta",lua_ax_base_ShuffleTiles_getDelta); + tolua_function(tolua_S,"initWithDuration",lua_ax_base_ShuffleTiles_initWithDuration); tolua_function(tolua_S,"create", lua_ax_base_ShuffleTiles_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ShuffleTiles).name(); // rtti is literal storage @@ -48572,6 +48470,59 @@ int lua_register_ax_base_ShuffleTiles(lua_State* tolua_S) return 1; } +int lua_ax_base_FadeOutTRTiles_testFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::FadeOutTRTiles* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FadeOutTRTiles_testFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Vec2 arg0; + double arg1; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FadeOutTRTiles:testFunc"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.FadeOutTRTiles:testFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FadeOutTRTiles_testFunc'", nullptr); + return 0; + } + auto&& ret = cobj->testFunc(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FadeOutTRTiles:testFunc",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FadeOutTRTiles_testFunc'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) { int argc = 0; @@ -48725,59 +48676,6 @@ int lua_ax_base_FadeOutTRTiles_transformTile(lua_State* tolua_S) return 0; } -int lua_ax_base_FadeOutTRTiles_testFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::FadeOutTRTiles* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FadeOutTRTiles_testFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Vec2 arg0; - double arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FadeOutTRTiles:testFunc"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.FadeOutTRTiles:testFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FadeOutTRTiles_testFunc'", nullptr); - return 0; - } - auto&& ret = cobj->testFunc(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FadeOutTRTiles:testFunc",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FadeOutTRTiles_testFunc'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FadeOutTRTiles_create(lua_State* tolua_S) { int argc = 0; @@ -48866,10 +48764,10 @@ int lua_register_ax_base_FadeOutTRTiles(lua_State* tolua_S) tolua_beginmodule(tolua_S,"FadeOutTRTiles"); tolua_function(tolua_S,"new",lua_ax_base_FadeOutTRTiles_constructor); + tolua_function(tolua_S,"testFunc",lua_ax_base_FadeOutTRTiles_testFunc); tolua_function(tolua_S,"turnOnTile",lua_ax_base_FadeOutTRTiles_turnOnTile); tolua_function(tolua_S,"turnOffTile",lua_ax_base_FadeOutTRTiles_turnOffTile); tolua_function(tolua_S,"transformTile",lua_ax_base_FadeOutTRTiles_transformTile); - tolua_function(tolua_S,"testFunc",lua_ax_base_FadeOutTRTiles_testFunc); tolua_function(tolua_S,"create", lua_ax_base_FadeOutTRTiles_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::FadeOutTRTiles).name(); // rtti is literal storage @@ -49440,6 +49338,150 @@ int lua_register_ax_base_TurnOffTiles(lua_State* tolua_S) return 1; } +int lua_ax_base_WavesTiles3D_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::WavesTiles3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_WavesTiles3D_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_WavesTiles3D_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.WavesTiles3D:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_WavesTiles3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_WavesTiles3D_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::WavesTiles3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_WavesTiles3D_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.WavesTiles3D:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_WavesTiles3D_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.WavesTiles3D:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_WavesTiles3D_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::WavesTiles3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_WavesTiles3D_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_WavesTiles3D_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.WavesTiles3D:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_WavesTiles3D_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -49549,150 +49591,6 @@ int lua_ax_base_WavesTiles3D_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_WavesTiles3D_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::WavesTiles3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_WavesTiles3D_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_WavesTiles3D_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.WavesTiles3D:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_WavesTiles3D_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::WavesTiles3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_WavesTiles3D_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_WavesTiles3D_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.WavesTiles3D:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_WavesTiles3D_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_WavesTiles3D_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::WavesTiles3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_WavesTiles3D_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.WavesTiles3D:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_WavesTiles3D_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.WavesTiles3D:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_WavesTiles3D_setAmplitude'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_WavesTiles3D_create(lua_State* tolua_S) { int argc = 0; @@ -49785,11 +49683,11 @@ int lua_register_ax_base_WavesTiles3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"WavesTiles3D"); tolua_function(tolua_S,"new",lua_ax_base_WavesTiles3D_constructor); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_WavesTiles3D_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_WavesTiles3D_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_WavesTiles3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_WavesTiles3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_WavesTiles3D_initWithDuration); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_WavesTiles3D_getAmplitude); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_WavesTiles3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_WavesTiles3D_setAmplitude); tolua_function(tolua_S,"create", lua_ax_base_WavesTiles3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::WavesTiles3D).name(); // rtti is literal storage @@ -49798,6 +49696,150 @@ int lua_register_ax_base_WavesTiles3D(lua_State* tolua_S) return 1; } +int lua_ax_base_JumpTiles3D_getAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::JumpTiles3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_JumpTiles3D_getAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_JumpTiles3D_getAmplitude'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.JumpTiles3D:getAmplitude",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_JumpTiles3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_JumpTiles3D_setAmplitude(lua_State* tolua_S) +{ + int argc = 0; + ax::JumpTiles3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_JumpTiles3D_setAmplitude'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.JumpTiles3D:setAmplitude"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_JumpTiles3D_setAmplitude'", nullptr); + return 0; + } + cobj->setAmplitude(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.JumpTiles3D:setAmplitude",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_JumpTiles3D_setAmplitude'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::JumpTiles3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_JumpTiles3D_getAmplitudeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_JumpTiles3D_getAmplitudeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getAmplitudeRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.JumpTiles3D:getAmplitudeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_JumpTiles3D_getAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -49907,150 +49949,6 @@ int lua_ax_base_JumpTiles3D_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_JumpTiles3D_getAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::JumpTiles3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_JumpTiles3D_getAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_JumpTiles3D_getAmplitude'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.JumpTiles3D:getAmplitude",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_JumpTiles3D_getAmplitude'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::JumpTiles3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_JumpTiles3D_getAmplitudeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_JumpTiles3D_getAmplitudeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getAmplitudeRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.JumpTiles3D:getAmplitudeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_JumpTiles3D_getAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_JumpTiles3D_setAmplitude(lua_State* tolua_S) -{ - int argc = 0; - ax::JumpTiles3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_JumpTiles3D_setAmplitude'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.JumpTiles3D:setAmplitude"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_JumpTiles3D_setAmplitude'", nullptr); - return 0; - } - cobj->setAmplitude(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.JumpTiles3D:setAmplitude",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_JumpTiles3D_setAmplitude'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_JumpTiles3D_create(lua_State* tolua_S) { int argc = 0; @@ -50143,11 +50041,11 @@ int lua_register_ax_base_JumpTiles3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"JumpTiles3D"); tolua_function(tolua_S,"new",lua_ax_base_JumpTiles3D_constructor); + tolua_function(tolua_S,"getAmplitude",lua_ax_base_JumpTiles3D_getAmplitude); + tolua_function(tolua_S,"setAmplitude",lua_ax_base_JumpTiles3D_setAmplitude); + tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_JumpTiles3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitudeRate",lua_ax_base_JumpTiles3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_ax_base_JumpTiles3D_initWithDuration); - tolua_function(tolua_S,"getAmplitude",lua_ax_base_JumpTiles3D_getAmplitude); - tolua_function(tolua_S,"getAmplitudeRate",lua_ax_base_JumpTiles3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_ax_base_JumpTiles3D_setAmplitude); tolua_function(tolua_S,"create", lua_ax_base_JumpTiles3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::JumpTiles3D).name(); // rtti is literal storage @@ -50578,6 +50476,200 @@ int lua_register_ax_base_ActionTween(lua_State* tolua_S) return 1; } +int lua_ax_base_AtlasNode_updateAtlasValues(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_updateAtlasValues'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_updateAtlasValues'", nullptr); + return 0; + } + cobj->updateAtlasValues(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:updateAtlasValues",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_updateAtlasValues'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AtlasNode_getTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_getTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_getTexture'", nullptr); + return 0; + } + auto&& ret = cobj->getTexture(); + object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:getTexture",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_getTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AtlasNode_setTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.AtlasNode:setTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setTexture'", nullptr); + return 0; + } + cobj->setTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AtlasNode_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.AtlasNode:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_AtlasNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -50625,6 +50717,200 @@ int lua_ax_base_AtlasNode_getBlendFunc(lua_State* tolua_S) return 0; } +int lua_ax_base_AtlasNode_setTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextureAtlas* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.AtlasNode:setTextureAtlas"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setTextureAtlas'", nullptr); + return 0; + } + cobj->setTextureAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setTextureAtlas",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AtlasNode_getTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_getTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_getTextureAtlas'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:getTextureAtlas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_getTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AtlasNode_setQuadsToDraw(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setQuadsToDraw'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ssize_t arg0; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.AtlasNode:setQuadsToDraw"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setQuadsToDraw'", nullptr); + return 0; + } + cobj->setQuadsToDraw(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setQuadsToDraw",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setQuadsToDraw'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AtlasNode_getQuadsToDraw(lua_State* tolua_S) +{ + int argc = 0; + ax::AtlasNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_getQuadsToDraw'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_getQuadsToDraw'", nullptr); + return 0; + } + auto&& ret = cobj->getQuadsToDraw(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:getQuadsToDraw",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_getQuadsToDraw'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_AtlasNode_initWithTileFile(lua_State* tolua_S) { int argc = 0; @@ -50684,297 +50970,6 @@ int lua_ax_base_AtlasNode_initWithTileFile(lua_State* tolua_S) return 0; } -int lua_ax_base_AtlasNode_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.AtlasNode:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AtlasNode_setTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextureAtlas* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.AtlasNode:setTextureAtlas"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setTextureAtlas'", nullptr); - return 0; - } - cobj->setTextureAtlas(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setTextureAtlas",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AtlasNode_getTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_getTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_getTexture'", nullptr); - return 0; - } - auto&& ret = cobj->getTexture(); - object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:getTexture",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_getTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AtlasNode_getTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_getTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_getTextureAtlas'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:getTextureAtlas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_getTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AtlasNode_updateAtlasValues(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_updateAtlasValues'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_updateAtlasValues'", nullptr); - return 0; - } - cobj->updateAtlasValues(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:updateAtlasValues",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_updateAtlasValues'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AtlasNode_setTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.AtlasNode:setTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setTexture'", nullptr); - return 0; - } - cobj->setTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setTexture'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_AtlasNode_initWithTexture(lua_State* tolua_S) { int argc = 0; @@ -51034,103 +51029,6 @@ int lua_ax_base_AtlasNode_initWithTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_AtlasNode_getQuadsToDraw(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_getQuadsToDraw'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_getQuadsToDraw'", nullptr); - return 0; - } - auto&& ret = cobj->getQuadsToDraw(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:getQuadsToDraw",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_getQuadsToDraw'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_AtlasNode_setQuadsToDraw(lua_State* tolua_S) -{ - int argc = 0; - ax::AtlasNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AtlasNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AtlasNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AtlasNode_setQuadsToDraw'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.AtlasNode:setQuadsToDraw"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AtlasNode_setQuadsToDraw'", nullptr); - return 0; - } - cobj->setQuadsToDraw(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AtlasNode:setQuadsToDraw",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AtlasNode_setQuadsToDraw'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_AtlasNode_create(lua_State* tolua_S) { int argc = 0; @@ -51223,17 +51121,17 @@ int lua_register_ax_base_AtlasNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AtlasNode"); tolua_function(tolua_S,"new",lua_ax_base_AtlasNode_constructor); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_AtlasNode_getBlendFunc); - tolua_function(tolua_S,"initWithTileFile",lua_ax_base_AtlasNode_initWithTileFile); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_AtlasNode_setBlendFunc); - tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_AtlasNode_setTextureAtlas); - tolua_function(tolua_S,"getTexture",lua_ax_base_AtlasNode_getTexture); - tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_AtlasNode_getTextureAtlas); tolua_function(tolua_S,"updateAtlasValues",lua_ax_base_AtlasNode_updateAtlasValues); + tolua_function(tolua_S,"getTexture",lua_ax_base_AtlasNode_getTexture); tolua_function(tolua_S,"setTexture",lua_ax_base_AtlasNode_setTexture); - tolua_function(tolua_S,"initWithTexture",lua_ax_base_AtlasNode_initWithTexture); - tolua_function(tolua_S,"getQuadsToDraw",lua_ax_base_AtlasNode_getQuadsToDraw); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_AtlasNode_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_AtlasNode_getBlendFunc); + tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_AtlasNode_setTextureAtlas); + tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_AtlasNode_getTextureAtlas); tolua_function(tolua_S,"setQuadsToDraw",lua_ax_base_AtlasNode_setQuadsToDraw); + tolua_function(tolua_S,"getQuadsToDraw",lua_ax_base_AtlasNode_getQuadsToDraw); + tolua_function(tolua_S,"initWithTileFile",lua_ax_base_AtlasNode_initWithTileFile); + tolua_function(tolua_S,"initWithTexture",lua_ax_base_AtlasNode_initWithTexture); tolua_function(tolua_S,"create", lua_ax_base_AtlasNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::AtlasNode).name(); // rtti is literal storage @@ -51242,7 +51140,7 @@ int lua_register_ax_base_AtlasNode(lua_State* tolua_S) return 1; } -int lua_ax_base_ClippingNode_hasContent(lua_State* tolua_S) +int lua_ax_base_ClippingNode_getStencil(lua_State* tolua_S) { int argc = 0; ax::ClippingNode* cobj = nullptr; @@ -51262,7 +51160,7 @@ int lua_ax_base_ClippingNode_hasContent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_hasContent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_getStencil'", nullptr); return 0; } #endif @@ -51272,69 +51170,19 @@ int lua_ax_base_ClippingNode_hasContent(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_hasContent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_getStencil'", nullptr); return 0; } - auto&& ret = cobj->hasContent(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getStencil(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:hasContent",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:getStencil",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_hasContent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ClippingNode_setInverted(lua_State* tolua_S) -{ - int argc = 0; - ax::ClippingNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ClippingNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ClippingNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_setInverted'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ClippingNode:setInverted"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_setInverted'", nullptr); - return 0; - } - cobj->setInverted(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:setInverted",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_setInverted'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_getStencil'.",&tolua_err); #endif return 0; @@ -51389,6 +51237,53 @@ int lua_ax_base_ClippingNode_setStencil(lua_State* tolua_S) return 0; } +int lua_ax_base_ClippingNode_hasContent(lua_State* tolua_S) +{ + int argc = 0; + ax::ClippingNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ClippingNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ClippingNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_hasContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_hasContent'", nullptr); + return 0; + } + auto&& ret = cobj->hasContent(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:hasContent",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_hasContent'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ClippingNode_getAlphaThreshold(lua_State* tolua_S) { int argc = 0; @@ -51436,103 +51331,6 @@ int lua_ax_base_ClippingNode_getAlphaThreshold(lua_State* tolua_S) return 0; } -int lua_ax_base_ClippingNode_init(lua_State* tolua_S) -{ - int argc = 0; - ax::ClippingNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ClippingNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ClippingNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ClippingNode:init"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ClippingNode_getStencil(lua_State* tolua_S) -{ - int argc = 0; - ax::ClippingNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ClippingNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ClippingNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_getStencil'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_getStencil'", nullptr); - return 0; - } - auto&& ret = cobj->getStencil(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:getStencil",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_getStencil'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ClippingNode_setAlphaThreshold(lua_State* tolua_S) { int argc = 0; @@ -51630,6 +51428,106 @@ int lua_ax_base_ClippingNode_isInverted(lua_State* tolua_S) return 0; } +int lua_ax_base_ClippingNode_setInverted(lua_State* tolua_S) +{ + int argc = 0; + ax::ClippingNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ClippingNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ClippingNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_setInverted'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ClippingNode:setInverted"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_setInverted'", nullptr); + return 0; + } + cobj->setInverted(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:setInverted",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_setInverted'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ClippingNode_init(lua_State* tolua_S) +{ + int argc = 0; + ax::ClippingNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ClippingNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ClippingNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingNode_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ClippingNode:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingNode_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingNode:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingNode_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ClippingNode_create(lua_State* tolua_S) { int argc = 0; @@ -51687,14 +51585,14 @@ int lua_register_ax_base_ClippingNode(lua_State* tolua_S) tolua_cclass(tolua_S,"ClippingNode","ax.ClippingNode","ax.Node",nullptr); tolua_beginmodule(tolua_S,"ClippingNode"); - tolua_function(tolua_S,"hasContent",lua_ax_base_ClippingNode_hasContent); - tolua_function(tolua_S,"setInverted",lua_ax_base_ClippingNode_setInverted); - tolua_function(tolua_S,"setStencil",lua_ax_base_ClippingNode_setStencil); - tolua_function(tolua_S,"getAlphaThreshold",lua_ax_base_ClippingNode_getAlphaThreshold); - tolua_function(tolua_S,"init",lua_ax_base_ClippingNode_init); tolua_function(tolua_S,"getStencil",lua_ax_base_ClippingNode_getStencil); + tolua_function(tolua_S,"setStencil",lua_ax_base_ClippingNode_setStencil); + tolua_function(tolua_S,"hasContent",lua_ax_base_ClippingNode_hasContent); + tolua_function(tolua_S,"getAlphaThreshold",lua_ax_base_ClippingNode_getAlphaThreshold); tolua_function(tolua_S,"setAlphaThreshold",lua_ax_base_ClippingNode_setAlphaThreshold); tolua_function(tolua_S,"isInverted",lua_ax_base_ClippingNode_isInverted); + tolua_function(tolua_S,"setInverted",lua_ax_base_ClippingNode_setInverted); + tolua_function(tolua_S,"init",lua_ax_base_ClippingNode_init); tolua_function(tolua_S,"create", lua_ax_base_ClippingNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ClippingNode).name(); // rtti is literal storage @@ -51703,103 +51601,6 @@ int lua_register_ax_base_ClippingNode(lua_State* tolua_S) return 1; } -int lua_ax_base_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ClippingRectangleNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingRectangleNode_isClippingEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingRectangleNode_isClippingEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isClippingEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingRectangleNode:isClippingEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingRectangleNode_isClippingEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ClippingRectangleNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingRectangleNode_setClippingEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ClippingRectangleNode:setClippingEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingRectangleNode_setClippingEnabled'", nullptr); - return 0; - } - cobj->setClippingEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingRectangleNode:setClippingEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingRectangleNode_setClippingEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) { int argc = 0; @@ -51897,6 +51698,103 @@ int lua_ax_base_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) return 0; } +int lua_ax_base_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ClippingRectangleNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingRectangleNode_isClippingEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingRectangleNode_isClippingEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isClippingEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingRectangleNode:isClippingEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingRectangleNode_isClippingEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ClippingRectangleNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ClippingRectangleNode_setClippingEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ClippingRectangleNode:setClippingEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ClippingRectangleNode_setClippingEnabled'", nullptr); + return 0; + } + cobj->setClippingEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ClippingRectangleNode:setClippingEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ClippingRectangleNode_setClippingEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ClippingRectangleNode_create(lua_State* tolua_S) { int argc = 0; @@ -51954,10 +51852,10 @@ int lua_register_ax_base_ClippingRectangleNode(lua_State* tolua_S) tolua_cclass(tolua_S,"ClippingRectangleNode","ax.ClippingRectangleNode","ax.Node",nullptr); tolua_beginmodule(tolua_S,"ClippingRectangleNode"); - tolua_function(tolua_S,"isClippingEnabled",lua_ax_base_ClippingRectangleNode_isClippingEnabled); - tolua_function(tolua_S,"setClippingEnabled",lua_ax_base_ClippingRectangleNode_setClippingEnabled); tolua_function(tolua_S,"getClippingRegion",lua_ax_base_ClippingRectangleNode_getClippingRegion); tolua_function(tolua_S,"setClippingRegion",lua_ax_base_ClippingRectangleNode_setClippingRegion); + tolua_function(tolua_S,"isClippingEnabled",lua_ax_base_ClippingRectangleNode_isClippingEnabled); + tolua_function(tolua_S,"setClippingEnabled",lua_ax_base_ClippingRectangleNode_setClippingEnabled); tolua_function(tolua_S,"create", lua_ax_base_ClippingRectangleNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ClippingRectangleNode).name(); // rtti is literal storage @@ -51966,6 +51864,62 @@ int lua_register_ax_base_ClippingRectangleNode(lua_State* tolua_S) return 1; } +int lua_ax_base_DrawNode_drawPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Vec2 arg0; + double arg1; + ax::Color4B arg2; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawPoint"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawPoint"); + + ok &=luaval_to_color4b(tolua_S, 4, &arg2, "ax.DrawNode:drawPoint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawPoint'", nullptr); + return 0; + } + cobj->drawPoint(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawPoint",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawPoint'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_DrawNode_drawLine(lua_State* tolua_S) { int argc = 0; @@ -52022,56 +51976,6 @@ int lua_ax_base_DrawNode_drawLine(lua_State* tolua_S) return 0; } -int lua_ax_base_DrawNode_setIsolated(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_setIsolated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.DrawNode:setIsolated"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_setIsolated'", nullptr); - return 0; - } - cobj->setIsolated(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:setIsolated",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_setIsolated'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_DrawNode_drawRect(lua_State* tolua_S) { int argc = 0; @@ -52151,357 +52055,6 @@ int lua_ax_base_DrawNode_drawRect(lua_State* tolua_S) return 0; } -int lua_ax_base_DrawNode_drawSolidCircle(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawSolidCircle'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 7) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - unsigned int arg3; - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg4; - ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg5; - ok &= luaval_to_number(tolua_S, 7,&arg5, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - ax::Color4B arg6; - ok &=luaval_to_color4b(tolua_S, 8, &arg6, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 9) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - unsigned int arg3; - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg4; - ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg5; - ok &= luaval_to_number(tolua_S, 7,&arg5, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - ax::Color4B arg6; - ok &=luaval_to_color4b(tolua_S, 8, &arg6, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg7; - ok &= luaval_to_number(tolua_S, 9,&arg7, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - ax::Color4B arg8; - ok &=luaval_to_color4b(tolua_S, 10, &arg8, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 5) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - unsigned int arg3; - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - ax::Color4B arg4; - ok &=luaval_to_color4b(tolua_S, 6, &arg4, "ax.DrawNode:drawSolidCircle"); - - if (!ok) { break; } - cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawSolidCircle",argc, 5); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawSolidCircle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_setLineWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_setLineWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.DrawNode:setLineWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_setLineWidth'", nullptr); - return 0; - } - cobj->setLineWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:setLineWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_setLineWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_drawDot(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawDot'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Vec2 arg0; - double arg1; - ax::Color4B arg2; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawDot"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawDot"); - - ok &=luaval_to_color4b(tolua_S, 4, &arg2, "ax.DrawNode:drawDot"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawDot'", nullptr); - return 0; - } - cobj->drawDot(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawDot",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawDot'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_drawSegment(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawSegment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - double arg2; - ax::Color4B arg3; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSegment"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.DrawNode:drawSegment"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSegment"); - - ok &=luaval_to_color4b(tolua_S, 5, &arg3, "ax.DrawNode:drawSegment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawSegment'", nullptr); - return 0; - } - cobj->drawSegment(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawSegment",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawSegment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_DrawNode_drawCircle(lua_State* tolua_S) { int argc = 0; @@ -52747,368 +52300,6 @@ int lua_ax_base_DrawNode_drawQuadBezier(lua_State* tolua_S) return 0; } -int lua_ax_base_DrawNode_drawTriangle(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawTriangle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - ax::Vec2 arg2; - ax::Color4B arg3; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawTriangle"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.DrawNode:drawTriangle"); - - ok &= luaval_to_vec2(tolua_S, 4, &arg2, "ax.DrawNode:drawTriangle"); - - ok &=luaval_to_color4b(tolua_S, 5, &arg3, "ax.DrawNode:drawTriangle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawTriangle'", nullptr); - return 0; - } - cobj->drawTriangle(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawTriangle",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawTriangle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.DrawNode:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_clear(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_clear'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_clear'", nullptr); - return 0; - } - cobj->clear(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:clear",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_clear'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_drawSolidRect(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawSolidRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - ax::Color4B arg2; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidRect"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.DrawNode:drawSolidRect"); - - ok &=luaval_to_color4b(tolua_S, 4, &arg2, "ax.DrawNode:drawSolidRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawSolidRect'", nullptr); - return 0; - } - cobj->drawSolidRect(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawSolidRect",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawSolidRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_getLineWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_getLineWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_getLineWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getLineWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:getLineWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_getLineWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_drawPoint(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Vec2 arg0; - double arg1; - ax::Color4B arg2; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawPoint"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawPoint"); - - ok &=luaval_to_color4b(tolua_S, 4, &arg2, "ax.DrawNode:drawPoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawPoint'", nullptr); - return 0; - } - cobj->drawPoint(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawPoint",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_DrawNode_isIsolated(lua_State* tolua_S) -{ - int argc = 0; - ax::DrawNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_isIsolated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_isIsolated'", nullptr); - return 0; - } - auto&& ret = cobj->isIsolated(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:isIsolated",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_isIsolated'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_DrawNode_drawCubicBezier(lua_State* tolua_S) { int argc = 0; @@ -53174,6 +52365,713 @@ int lua_ax_base_DrawNode_drawCubicBezier(lua_State* tolua_S) return 0; } +int lua_ax_base_DrawNode_drawDot(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawDot'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Vec2 arg0; + double arg1; + ax::Color4B arg2; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawDot"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawDot"); + + ok &=luaval_to_color4b(tolua_S, 4, &arg2, "ax.DrawNode:drawDot"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawDot'", nullptr); + return 0; + } + cobj->drawDot(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawDot",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawDot'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_drawSolidRect(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawSolidRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + ax::Color4B arg2; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidRect"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.DrawNode:drawSolidRect"); + + ok &=luaval_to_color4b(tolua_S, 4, &arg2, "ax.DrawNode:drawSolidRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawSolidRect'", nullptr); + return 0; + } + cobj->drawSolidRect(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawSolidRect",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawSolidRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_drawSolidCircle(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawSolidCircle'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 7) { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + unsigned int arg3; + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg4; + ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg5; + ok &= luaval_to_number(tolua_S, 7,&arg5, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + ax::Color4B arg6; + ok &=luaval_to_color4b(tolua_S, 8, &arg6, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 9) { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + unsigned int arg3; + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg4; + ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg5; + ok &= luaval_to_number(tolua_S, 7,&arg5, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + ax::Color4B arg6; + ok &=luaval_to_color4b(tolua_S, 8, &arg6, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg7; + ok &= luaval_to_number(tolua_S, 9,&arg7, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + ax::Color4B arg8; + ok &=luaval_to_color4b(tolua_S, 10, &arg8, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 5) { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + unsigned int arg3; + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + ax::Color4B arg4; + ok &=luaval_to_color4b(tolua_S, 6, &arg4, "ax.DrawNode:drawSolidCircle"); + + if (!ok) { break; } + cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawSolidCircle",argc, 5); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawSolidCircle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_drawSegment(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawSegment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + double arg2; + ax::Color4B arg3; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawSegment"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.DrawNode:drawSegment"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawSegment"); + + ok &=luaval_to_color4b(tolua_S, 5, &arg3, "ax.DrawNode:drawSegment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawSegment'", nullptr); + return 0; + } + cobj->drawSegment(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawSegment",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawSegment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_drawTriangle(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_drawTriangle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + ax::Vec2 arg2; + ax::Color4B arg3; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawTriangle"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.DrawNode:drawTriangle"); + + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "ax.DrawNode:drawTriangle"); + + ok &=luaval_to_color4b(tolua_S, 5, &arg3, "ax.DrawNode:drawTriangle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawTriangle'", nullptr); + return 0; + } + cobj->drawTriangle(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawTriangle",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawTriangle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_clear(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_clear'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_clear'", nullptr); + return 0; + } + cobj->clear(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:clear",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_clear'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.DrawNode:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_setLineWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_setLineWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.DrawNode:setLineWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_setLineWidth'", nullptr); + return 0; + } + cobj->setLineWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:setLineWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_setLineWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_getLineWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_getLineWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_getLineWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getLineWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:getLineWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_getLineWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_setIsolated(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_setIsolated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.DrawNode:setIsolated"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_setIsolated'", nullptr); + return 0; + } + cobj->setIsolated(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:setIsolated",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_setIsolated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_DrawNode_isIsolated(lua_State* tolua_S) +{ + int argc = 0; + ax::DrawNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DrawNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DrawNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DrawNode_isIsolated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_isIsolated'", nullptr); + return 0; + } + auto&& ret = cobj->isIsolated(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:isIsolated",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_isIsolated'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_DrawNode_create(lua_State* tolua_S) { int argc = 0; @@ -53288,24 +53186,24 @@ int lua_register_ax_base_DrawNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"DrawNode"); tolua_function(tolua_S,"new",lua_ax_base_DrawNode_constructor); + tolua_function(tolua_S,"drawPoint",lua_ax_base_DrawNode_drawPoint); tolua_function(tolua_S,"drawLine",lua_ax_base_DrawNode_drawLine); - tolua_function(tolua_S,"setIsolated",lua_ax_base_DrawNode_setIsolated); tolua_function(tolua_S,"drawRect",lua_ax_base_DrawNode_drawRect); - tolua_function(tolua_S,"drawSolidCircle",lua_ax_base_DrawNode_drawSolidCircle); - tolua_function(tolua_S,"setLineWidth",lua_ax_base_DrawNode_setLineWidth); - tolua_function(tolua_S,"drawDot",lua_ax_base_DrawNode_drawDot); - tolua_function(tolua_S,"drawSegment",lua_ax_base_DrawNode_drawSegment); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_DrawNode_getBlendFunc); tolua_function(tolua_S,"drawCircle",lua_ax_base_DrawNode_drawCircle); tolua_function(tolua_S,"drawQuadBezier",lua_ax_base_DrawNode_drawQuadBezier); - tolua_function(tolua_S,"drawTriangle",lua_ax_base_DrawNode_drawTriangle); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_DrawNode_setBlendFunc); - tolua_function(tolua_S,"clear",lua_ax_base_DrawNode_clear); - tolua_function(tolua_S,"drawSolidRect",lua_ax_base_DrawNode_drawSolidRect); - tolua_function(tolua_S,"getLineWidth",lua_ax_base_DrawNode_getLineWidth); - tolua_function(tolua_S,"drawPoint",lua_ax_base_DrawNode_drawPoint); - tolua_function(tolua_S,"isIsolated",lua_ax_base_DrawNode_isIsolated); tolua_function(tolua_S,"drawCubicBezier",lua_ax_base_DrawNode_drawCubicBezier); + tolua_function(tolua_S,"drawDot",lua_ax_base_DrawNode_drawDot); + tolua_function(tolua_S,"drawSolidRect",lua_ax_base_DrawNode_drawSolidRect); + tolua_function(tolua_S,"drawSolidCircle",lua_ax_base_DrawNode_drawSolidCircle); + tolua_function(tolua_S,"drawSegment",lua_ax_base_DrawNode_drawSegment); + tolua_function(tolua_S,"drawTriangle",lua_ax_base_DrawNode_drawTriangle); + tolua_function(tolua_S,"clear",lua_ax_base_DrawNode_clear); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_DrawNode_getBlendFunc); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_DrawNode_setBlendFunc); + tolua_function(tolua_S,"setLineWidth",lua_ax_base_DrawNode_setLineWidth); + tolua_function(tolua_S,"getLineWidth",lua_ax_base_DrawNode_getLineWidth); + tolua_function(tolua_S,"setIsolated",lua_ax_base_DrawNode_setIsolated); + tolua_function(tolua_S,"isIsolated",lua_ax_base_DrawNode_isIsolated); tolua_function(tolua_S,"create", lua_ax_base_DrawNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::DrawNode).name(); // rtti is literal storage @@ -53314,396 +53212,6 @@ int lua_register_ax_base_DrawNode(lua_State* tolua_S) return 1; } -int lua_ax_base_Label_isClipMarginEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_isClipMarginEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_isClipMarginEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isClipMarginEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:isClipMarginEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_isClipMarginEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableShadow(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableShadow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); - return 0; - } - cobj->enableShadow(); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 1) - { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableShadow"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); - return 0; - } - cobj->enableShadow(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - ax::Color4B arg0; - ax::Vec2 arg1; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableShadow"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.Label:enableShadow"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); - return 0; - } - cobj->enableShadow(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 3) - { - ax::Color4B arg0; - ax::Vec2 arg1; - int arg2; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableShadow"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.Label:enableShadow"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Label:enableShadow"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); - return 0; - } - cobj->enableShadow(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableShadow",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableShadow'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setDimensions(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setDimensions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - double arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setDimensions"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Label:setDimensions"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setDimensions'", nullptr); - return 0; - } - cobj->setDimensions(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setDimensions",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setDimensions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getString(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getString'", nullptr); - return 0; - } - auto&& ret = cobj->getString(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getString",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_disableEffect(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_disableEffect'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::LabelEffect arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:disableEffect"); - - if (!ok) { break; } - cobj->disableEffect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->disableEffect(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:disableEffect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_disableEffect'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Label_setTTFConfig(lua_State* tolua_S) { int argc = 0; @@ -53754,7 +53262,7 @@ int lua_ax_base_Label_setTTFConfig(lua_State* tolua_S) return 0; } -int lua_ax_base_Label_getLabelType(lua_State* tolua_S) +int lua_ax_base_Label_getTTFConfig(lua_State* tolua_S) { int argc = 0; ax::Label* cobj = nullptr; @@ -53774,7 +53282,7 @@ int lua_ax_base_Label_getLabelType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLabelType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getTTFConfig'", nullptr); return 0; } #endif @@ -53784,739 +53292,19 @@ int lua_ax_base_Label_getLabelType(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLabelType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getTTFConfig'", nullptr); return 0; } - int ret = (int)cobj->getLabelType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getTTFConfig(); + ttfconfig_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLabelType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getTTFConfig",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLabelType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getTextColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getTextColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getTextColor'", nullptr); - return 0; - } - auto&& ret = cobj->getTextColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getTextColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getTextColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableWrap(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableWrap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:enableWrap"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableWrap'", nullptr); - return 0; - } - cobj->enableWrap(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableWrap",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableWrap'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setWidth'", nullptr); - return 0; - } - cobj->setWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getAdditionalKerning(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getAdditionalKerning'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getAdditionalKerning'", nullptr); - return 0; - } - auto&& ret = cobj->getAdditionalKerning(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getAdditionalKerning",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getAdditionalKerning'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getBMFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getBMFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getBMFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getBMFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getBMFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getBMFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getMaxLineWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getMaxLineWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getMaxLineWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxLineWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getMaxLineWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getMaxLineWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getHorizontalAlignment'", nullptr); - return 0; - } - int ret = (int)cobj->getHorizontalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getHorizontalAlignment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getShadowOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getShadowOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getShadowOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getShadowOffset(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getShadowOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getShadowOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getLineSpacing(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLineSpacing'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLineSpacing'", nullptr); - return 0; - } - auto&& ret = cobj->getLineSpacing(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLineSpacing",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLineSpacing'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setClipMarginEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setClipMarginEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:setClipMarginEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setClipMarginEnabled'", nullptr); - return 0; - } - cobj->setClipMarginEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setClipMarginEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setClipMarginEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setString(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setString'", nullptr); - return 0; - } - cobj->setString(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setSystemFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setSystemFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setSystemFontName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setSystemFontName'", nullptr); - return 0; - } - cobj->setSystemFontName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setSystemFontName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setSystemFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_isWrapEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_isWrapEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_isWrapEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isWrapEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:isWrapEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_isWrapEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getOutlineSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getOutlineSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getOutlineSize'", nullptr); - return 0; - } - auto&& ret = cobj->getOutlineSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getOutlineSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getOutlineSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getTTFConfig'.",&tolua_err); #endif return 0; @@ -54660,6 +53448,3261 @@ int lua_ax_base_Label_setBMFontFilePath(lua_State* tolua_S) return 0; } +int lua_ax_base_Label_getBMFontFilePath(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getBMFontFilePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getBMFontFilePath'", nullptr); + return 0; + } + auto&& ret = cobj->getBMFontFilePath(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getBMFontFilePath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getBMFontFilePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setCharMap(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setCharMap'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 4) { + ax::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Label:setCharMap"); + + if (!ok) { break; } + int arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:setCharMap"); + + if (!ok) { break; } + int arg2; + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Label:setCharMap"); + + if (!ok) { break; } + int arg3; + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Label:setCharMap"); + + if (!ok) { break; } + bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 4) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setCharMap"); + + if (!ok) { break; } + int arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:setCharMap"); + + if (!ok) { break; } + int arg2; + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Label:setCharMap"); + + if (!ok) { break; } + int arg3; + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Label:setCharMap"); + + if (!ok) { break; } + bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setCharMap"); + + if (!ok) { break; } + bool ret = cobj->setCharMap(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setCharMap",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setCharMap'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setSystemFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setSystemFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setSystemFontName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setSystemFontName'", nullptr); + return 0; + } + cobj->setSystemFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setSystemFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setSystemFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getSystemFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getSystemFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getSystemFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getSystemFontName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getSystemFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getSystemFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setSystemFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setSystemFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setSystemFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setSystemFontSize'", nullptr); + return 0; + } + cobj->setSystemFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setSystemFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setSystemFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getSystemFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getSystemFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getSystemFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getSystemFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getSystemFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getSystemFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_requestSystemFontRefresh(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_requestSystemFontRefresh'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_requestSystemFontRefresh'", nullptr); + return 0; + } + cobj->requestSystemFontRefresh(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:requestSystemFontRefresh",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_requestSystemFontRefresh'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setString(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setString'", nullptr); + return 0; + } + cobj->setString(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getString(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getString'", nullptr); + return 0; + } + auto&& ret = cobj->getString(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getString",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getStringNumLines(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getStringNumLines'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getStringNumLines'", nullptr); + return 0; + } + auto&& ret = cobj->getStringNumLines(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getStringNumLines",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getStringNumLines'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getStringLength(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getStringLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getStringLength'", nullptr); + return 0; + } + auto&& ret = cobj->getStringLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getStringLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getStringLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setTextColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setTextColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:setTextColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setTextColor'", nullptr); + return 0; + } + cobj->setTextColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setTextColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setTextColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getTextColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getTextColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getTextColor'", nullptr); + return 0; + } + auto&& ret = cobj->getTextColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getTextColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getTextColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableShadow(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableShadow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); + return 0; + } + cobj->enableShadow(); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 1) + { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); + return 0; + } + cobj->enableShadow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + ax::Color4B arg0; + ax::Vec2 arg1; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableShadow"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.Label:enableShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); + return 0; + } + cobj->enableShadow(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 3) + { + ax::Color4B arg0; + ax::Vec2 arg1; + int arg2; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableShadow"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.Label:enableShadow"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Label:enableShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableShadow'", nullptr); + return 0; + } + cobj->enableShadow(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableShadow",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableShadow'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableOutline(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableOutline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableOutline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableOutline'", nullptr); + return 0; + } + cobj->enableOutline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + ax::Color4B arg0; + int arg1; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableOutline"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:enableOutline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableOutline'", nullptr); + return 0; + } + cobj->enableOutline(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableOutline",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableOutline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableGlow(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableGlow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableGlow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableGlow'", nullptr); + return 0; + } + cobj->enableGlow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableGlow",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableGlow'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableItalics(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableItalics'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableItalics'", nullptr); + return 0; + } + cobj->enableItalics(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableItalics",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableItalics'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableBold(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableBold'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableBold'", nullptr); + return 0; + } + cobj->enableBold(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableBold",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableBold'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableUnderline(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableUnderline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableUnderline'", nullptr); + return 0; + } + cobj->enableUnderline(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableUnderline",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableUnderline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableStrikethrough(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableStrikethrough'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableStrikethrough'", nullptr); + return 0; + } + cobj->enableStrikethrough(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableStrikethrough",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableStrikethrough'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_disableEffect(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_disableEffect'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::LabelEffect arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:disableEffect"); + + if (!ok) { break; } + cobj->disableEffect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->disableEffect(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:disableEffect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_disableEffect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_isShadowEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_isShadowEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_isShadowEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isShadowEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:isShadowEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_isShadowEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getShadowOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getShadowOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getShadowOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getShadowOffset(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getShadowOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getShadowOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getShadowBlurRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getShadowBlurRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getShadowBlurRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getShadowBlurRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getShadowBlurRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getShadowBlurRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getShadowColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getShadowColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getShadowColor'", nullptr); + return 0; + } + auto&& ret = cobj->getShadowColor(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getShadowColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getShadowColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getOutlineSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getOutlineSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getOutlineSize'", nullptr); + return 0; + } + auto&& ret = cobj->getOutlineSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getOutlineSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getOutlineSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getLabelEffectType(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLabelEffectType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLabelEffectType'", nullptr); + return 0; + } + int ret = (int)cobj->getLabelEffectType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLabelEffectType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLabelEffectType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getEffectColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getEffectColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getEffectColor'", nullptr); + return 0; + } + auto&& ret = cobj->getEffectColor(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getEffectColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getEffectColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setAlignment'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + ax::TextHAlignment arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setAlignment"); + + if (!ok) { break; } + ax::TextVAlignment arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:setAlignment"); + + if (!ok) { break; } + cobj->setAlignment(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::TextHAlignment arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setAlignment"); + + if (!ok) { break; } + cobj->setAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getTextAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getTextAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getTextAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getTextAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getTextAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getTextAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextHAlignment arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setHorizontalAlignment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setHorizontalAlignment'", nullptr); + return 0; + } + cobj->setHorizontalAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setHorizontalAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getHorizontalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getHorizontalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getHorizontalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setVerticalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setVerticalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextVAlignment arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setVerticalAlignment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setVerticalAlignment'", nullptr); + return 0; + } + cobj->setVerticalAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setVerticalAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setVerticalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getVerticalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getVerticalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getVerticalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getVerticalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getVerticalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getVerticalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setLineBreakWithoutSpace(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setLineBreakWithoutSpace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:setLineBreakWithoutSpace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setLineBreakWithoutSpace'", nullptr); + return 0; + } + cobj->setLineBreakWithoutSpace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setLineBreakWithoutSpace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setLineBreakWithoutSpace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setMaxLineWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setMaxLineWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setMaxLineWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setMaxLineWidth'", nullptr); + return 0; + } + cobj->setMaxLineWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setMaxLineWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setMaxLineWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getMaxLineWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getMaxLineWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getMaxLineWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxLineWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getMaxLineWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getMaxLineWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setBMFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setBMFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setBMFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setBMFontSize'", nullptr); + return 0; + } + cobj->setBMFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setBMFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setBMFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getBMFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getBMFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getBMFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getBMFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getBMFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getBMFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_enableWrap(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableWrap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:enableWrap"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableWrap'", nullptr); + return 0; + } + cobj->enableWrap(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableWrap",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableWrap'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_isWrapEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_isWrapEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_isWrapEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isWrapEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:isWrapEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_isWrapEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setOverflow(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setOverflow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Label::Overflow arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setOverflow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setOverflow'", nullptr); + return 0; + } + cobj->setOverflow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setOverflow",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setOverflow'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getOverflow(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getOverflow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getOverflow'", nullptr); + return 0; + } + int ret = (int)cobj->getOverflow(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getOverflow",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getOverflow'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setWidth'", nullptr); + return 0; + } + cobj->setWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setHeight'", nullptr); + return 0; + } + cobj->setHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setDimensions(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setDimensions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setDimensions"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Label:setDimensions"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setDimensions'", nullptr); + return 0; + } + cobj->setDimensions(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setDimensions",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setDimensions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getDimensions(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getDimensions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getDimensions'", nullptr); + return 0; + } + auto&& ret = cobj->getDimensions(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getDimensions",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getDimensions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_updateContent(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_updateContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_updateContent'", nullptr); + return 0; + } + cobj->updateContent(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:updateContent",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_updateContent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getLetter(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLetter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:getLetter"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLetter'", nullptr); + return 0; + } + auto&& ret = cobj->getLetter(arg0); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLetter",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLetter'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setClipMarginEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setClipMarginEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:setClipMarginEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setClipMarginEnabled'", nullptr); + return 0; + } + cobj->setClipMarginEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setClipMarginEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setClipMarginEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_isClipMarginEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_isClipMarginEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_isClipMarginEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isClipMarginEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:isClipMarginEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_isClipMarginEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setLineHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setLineHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setLineHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setLineHeight'", nullptr); + return 0; + } + cobj->setLineHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setLineHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setLineHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getLineHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLineHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLineHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getLineHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLineHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLineHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setLineSpacing(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setLineSpacing'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setLineSpacing"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setLineSpacing'", nullptr); + return 0; + } + cobj->setLineSpacing(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setLineSpacing",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setLineSpacing'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getLineSpacing(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLineSpacing'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLineSpacing'", nullptr); + return 0; + } + auto&& ret = cobj->getLineSpacing(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLineSpacing",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLineSpacing'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getLabelType(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLabelType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLabelType'", nullptr); + return 0; + } + int ret = (int)cobj->getLabelType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLabelType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLabelType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getRenderingFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getRenderingFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getRenderingFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderingFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getRenderingFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getRenderingFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setAdditionalKerning(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setAdditionalKerning'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setAdditionalKerning"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setAdditionalKerning'", nullptr); + return 0; + } + cobj->setAdditionalKerning(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setAdditionalKerning",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setAdditionalKerning'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getAdditionalKerning(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getAdditionalKerning'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getAdditionalKerning'", nullptr); + return 0; + } + auto&& ret = cobj->getAdditionalKerning(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getAdditionalKerning",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getAdditionalKerning'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getFontAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getFontAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getFontAtlas'", nullptr); + return 0; + } + auto&& ret = cobj->getFontAtlas(); + object_to_luaval(tolua_S, "ax.FontAtlas",(ax::FontAtlas*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getFontAtlas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getFontAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Label:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Label_removeAllChildrenWithCleanup(lua_State* tolua_S) +{ + int argc = 0; + ax::Label* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_removeAllChildrenWithCleanup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:removeAllChildrenWithCleanup"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_removeAllChildrenWithCleanup'", nullptr); + return 0; + } + cobj->removeAllChildrenWithCleanup(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:removeAllChildrenWithCleanup",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_removeAllChildrenWithCleanup'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Label_initWithTTF(lua_State* tolua_S) { int argc = 0; @@ -54855,2149 +56898,141 @@ int lua_ax_base_Label_initWithTTF(lua_State* tolua_S) return 0; } -int lua_ax_base_Label_getFontAtlas(lua_State* tolua_S) +int lua_ax_base_Label_create(lua_State* tolua_S) { int argc = 0; - ax::Label* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getFontAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getFontAtlas'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_create'", nullptr); return 0; } - auto&& ret = cobj->getFontAtlas(); - object_to_luaval(tolua_S, "ax.FontAtlas",(ax::FontAtlas*)ret); + auto&& ret = ax::Label::create(); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getFontAtlas",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Label:create",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getFontAtlas'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_create'.",&tolua_err); #endif - return 0; } -int lua_ax_base_Label_setLineHeight(lua_State* tolua_S) +int lua_ax_base_Label_createWithSystemFont(lua_State* tolua_S) { int argc = 0; - ax::Label* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 3) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setLineHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setLineHeight"); + std::string_view arg0; + std::string_view arg1; + double arg2; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setLineHeight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); return 0; } - cobj->setLineHeight(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setLineHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setLineHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setSystemFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 4) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setSystemFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setSystemFontSize"); + std::string_view arg0; + std::string_view arg1; + double arg2; + ax::Vec2 arg3; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.Label:createWithSystemFont"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setSystemFontSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); return 0; } - cobj->setSystemFontSize(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setSystemFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setSystemFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setOverflow(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 5) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setOverflow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Label::Overflow arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setOverflow"); + std::string_view arg0; + std::string_view arg1; + double arg2; + ax::Vec2 arg3; + ax::TextHAlignment arg4; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.Label:createWithSystemFont"); + ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Label:createWithSystemFont"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setOverflow'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); return 0; } - cobj->setOverflow(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setOverflow",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setOverflow'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableStrikethrough(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableStrikethrough'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 6) { + std::string_view arg0; + std::string_view arg1; + double arg2; + ax::Vec2 arg3; + ax::TextHAlignment arg4; + ax::TextVAlignment arg5; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.Label:createWithSystemFont"); + ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Label:createWithSystemFont"); + ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.Label:createWithSystemFont"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableStrikethrough'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); return 0; } - cobj->enableStrikethrough(); - lua_settop(tolua_S, 1); + auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableStrikethrough",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Label:createWithSystemFont",argc, 3); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableStrikethrough'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_createWithSystemFont'.",&tolua_err); #endif - - return 0; -} -int lua_ax_base_Label_updateContent(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_updateContent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_updateContent'", nullptr); - return 0; - } - cobj->updateContent(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:updateContent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_updateContent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getStringLength(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getStringLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getStringLength'", nullptr); - return 0; - } - auto&& ret = cobj->getStringLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getStringLength",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getStringLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setLineBreakWithoutSpace(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setLineBreakWithoutSpace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:setLineBreakWithoutSpace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setLineBreakWithoutSpace'", nullptr); - return 0; - } - cobj->setLineBreakWithoutSpace(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setLineBreakWithoutSpace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setLineBreakWithoutSpace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getStringNumLines(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getStringNumLines'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getStringNumLines'", nullptr); - return 0; - } - auto&& ret = cobj->getStringNumLines(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getStringNumLines",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getStringNumLines'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableOutline(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableOutline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableOutline"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableOutline'", nullptr); - return 0; - } - cobj->enableOutline(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - ax::Color4B arg0; - int arg1; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableOutline"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:enableOutline"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableOutline'", nullptr); - return 0; - } - cobj->enableOutline(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableOutline",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableOutline'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getShadowBlurRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getShadowBlurRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getShadowBlurRadius'", nullptr); - return 0; - } - auto&& ret = cobj->getShadowBlurRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getShadowBlurRadius",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getShadowBlurRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getEffectColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getEffectColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getEffectColor'", nullptr); - return 0; - } - auto&& ret = cobj->getEffectColor(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getEffectColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getEffectColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_removeAllChildrenWithCleanup(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_removeAllChildrenWithCleanup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Label:removeAllChildrenWithCleanup"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_removeAllChildrenWithCleanup'", nullptr); - return 0; - } - cobj->removeAllChildrenWithCleanup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:removeAllChildrenWithCleanup",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_removeAllChildrenWithCleanup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setCharMap(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setCharMap'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 4) { - ax::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Label:setCharMap"); - - if (!ok) { break; } - int arg1; - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:setCharMap"); - - if (!ok) { break; } - int arg2; - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Label:setCharMap"); - - if (!ok) { break; } - int arg3; - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Label:setCharMap"); - - if (!ok) { break; } - bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 4) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setCharMap"); - - if (!ok) { break; } - int arg1; - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:setCharMap"); - - if (!ok) { break; } - int arg2; - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Label:setCharMap"); - - if (!ok) { break; } - int arg3; - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.Label:setCharMap"); - - if (!ok) { break; } - bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:setCharMap"); - - if (!ok) { break; } - bool ret = cobj->setCharMap(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setCharMap",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setCharMap'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getDimensions(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getDimensions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getDimensions'", nullptr); - return 0; - } - auto&& ret = cobj->getDimensions(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getDimensions",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getDimensions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setMaxLineWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setMaxLineWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setMaxLineWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setMaxLineWidth'", nullptr); - return 0; - } - cobj->setMaxLineWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setMaxLineWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setMaxLineWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getSystemFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getSystemFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getSystemFontName'", nullptr); - return 0; - } - auto&& ret = cobj->getSystemFontName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getSystemFontName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getSystemFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setVerticalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setVerticalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextVAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setVerticalAlignment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setVerticalAlignment'", nullptr); - return 0; - } - cobj->setVerticalAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setVerticalAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setVerticalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setLineSpacing(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setLineSpacing'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setLineSpacing"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setLineSpacing'", nullptr); - return 0; - } - cobj->setLineSpacing(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setLineSpacing",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setLineSpacing'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getRenderingFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getRenderingFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getRenderingFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderingFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getRenderingFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getRenderingFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getLineHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLineHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLineHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getLineHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLineHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLineHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getShadowColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getShadowColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getShadowColor'", nullptr); - return 0; - } - auto&& ret = cobj->getShadowColor(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getShadowColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getShadowColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getTTFConfig(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getTTFConfig'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getTTFConfig'", nullptr); - return 0; - } - auto&& ret = cobj->getTTFConfig(); - ttfconfig_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getTTFConfig",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getTTFConfig'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableItalics(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableItalics'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableItalics'", nullptr); - return 0; - } - cobj->enableItalics(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableItalics",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableItalics'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setTextColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setTextColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:setTextColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setTextColor'", nullptr); - return 0; - } - cobj->setTextColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setTextColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setTextColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getLetter(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLetter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:getLetter"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLetter'", nullptr); - return 0; - } - auto&& ret = cobj->getLetter(arg0); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLetter",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLetter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setHeight'", nullptr); - return 0; - } - cobj->setHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_isShadowEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_isShadowEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_isShadowEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isShadowEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:isShadowEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_isShadowEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableGlow(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableGlow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.Label:enableGlow"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableGlow'", nullptr); - return 0; - } - cobj->enableGlow(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableGlow",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableGlow'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getOverflow(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getOverflow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getOverflow'", nullptr); - return 0; - } - int ret = (int)cobj->getOverflow(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getOverflow",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getOverflow'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getVerticalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getVerticalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getVerticalAlignment'", nullptr); - return 0; - } - int ret = (int)cobj->getVerticalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getVerticalAlignment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getVerticalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setAdditionalKerning(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setAdditionalKerning'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setAdditionalKerning"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setAdditionalKerning'", nullptr); - return 0; - } - cobj->setAdditionalKerning(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setAdditionalKerning",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setAdditionalKerning'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getSystemFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getSystemFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getSystemFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getSystemFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getSystemFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getSystemFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Label:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getTextAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getTextAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getTextAlignment'", nullptr); - return 0; - } - int ret = (int)cobj->getTextAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getTextAlignment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getTextAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getBMFontFilePath(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getBMFontFilePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getBMFontFilePath'", nullptr); - return 0; - } - auto&& ret = cobj->getBMFontFilePath(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getBMFontFilePath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getBMFontFilePath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextHAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setHorizontalAlignment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setHorizontalAlignment'", nullptr); - return 0; - } - cobj->setHorizontalAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setHorizontalAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableBold(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableBold'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableBold'", nullptr); - return 0; - } - cobj->enableBold(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableBold",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableBold'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_enableUnderline(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_enableUnderline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_enableUnderline'", nullptr); - return 0; - } - cobj->enableUnderline(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:enableUnderline",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_enableUnderline'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_getLabelEffectType(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_getLabelEffectType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_getLabelEffectType'", nullptr); - return 0; - } - int ret = (int)cobj->getLabelEffectType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:getLabelEffectType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_getLabelEffectType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setAlignment'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - ax::TextHAlignment arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setAlignment"); - - if (!ok) { break; } - ax::TextVAlignment arg1; - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Label:setAlignment"); - - if (!ok) { break; } - cobj->setAlignment(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::TextHAlignment arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Label:setAlignment"); - - if (!ok) { break; } - cobj->setAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_requestSystemFontRefresh(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_requestSystemFontRefresh'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_requestSystemFontRefresh'", nullptr); - return 0; - } - cobj->requestSystemFontRefresh(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:requestSystemFontRefresh",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_requestSystemFontRefresh'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Label_setBMFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::Label* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Label*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Label_setBMFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Label:setBMFontSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_setBMFontSize'", nullptr); - return 0; - } - cobj->setBMFontSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Label:setBMFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_setBMFontSize'.",&tolua_err); -#endif - return 0; } int lua_ax_base_Label_createWithBMFont(lua_State* tolua_S) @@ -57132,40 +57167,6 @@ int lua_ax_base_Label_createWithBMFont(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Label_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_create'", nullptr); - return 0; - } - auto&& ret = ax::Label::create(); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Label:create",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_Label_createWithCharMap(lua_State* tolua_S) { int argc = 0; @@ -57245,109 +57246,6 @@ int lua_ax_base_Label_createWithCharMap(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Label_createWithSystemFont(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Label",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 3) - { - std::string_view arg0; - std::string_view arg1; - double arg2; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); - return 0; - } - auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - if (argc == 4) - { - std::string_view arg0; - std::string_view arg1; - double arg2; - ax::Vec2 arg3; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); - ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.Label:createWithSystemFont"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); - return 0; - } - auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - if (argc == 5) - { - std::string_view arg0; - std::string_view arg1; - double arg2; - ax::Vec2 arg3; - ax::TextHAlignment arg4; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); - ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.Label:createWithSystemFont"); - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Label:createWithSystemFont"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); - return 0; - } - auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - if (argc == 6) - { - std::string_view arg0; - std::string_view arg1; - double arg2; - ax::Vec2 arg3; - ax::TextHAlignment arg4; - ax::TextVAlignment arg5; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Label:createWithSystemFont"); - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Label:createWithSystemFont"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Label:createWithSystemFont"); - ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ax.Label:createWithSystemFont"); - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Label:createWithSystemFont"); - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.Label:createWithSystemFont"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Label_createWithSystemFont'", nullptr); - return 0; - } - auto&& ret = ax::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Label:createWithSystemFont",argc, 3); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Label_createWithSystemFont'.",&tolua_err); -#endif - return 0; -} static int lua_ax_base_Label_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Label)"); @@ -57360,79 +57258,79 @@ int lua_register_ax_base_Label(lua_State* tolua_S) tolua_cclass(tolua_S,"Label","ax.Label","ax.Node",nullptr); tolua_beginmodule(tolua_S,"Label"); - tolua_function(tolua_S,"isClipMarginEnabled",lua_ax_base_Label_isClipMarginEnabled); - tolua_function(tolua_S,"enableShadow",lua_ax_base_Label_enableShadow); - tolua_function(tolua_S,"setDimensions",lua_ax_base_Label_setDimensions); - tolua_function(tolua_S,"getWidth",lua_ax_base_Label_getWidth); - tolua_function(tolua_S,"getString",lua_ax_base_Label_getString); - tolua_function(tolua_S,"getHeight",lua_ax_base_Label_getHeight); - tolua_function(tolua_S,"disableEffect",lua_ax_base_Label_disableEffect); tolua_function(tolua_S,"setTTFConfig",lua_ax_base_Label_setTTFConfig); - tolua_function(tolua_S,"getLabelType",lua_ax_base_Label_getLabelType); - tolua_function(tolua_S,"getTextColor",lua_ax_base_Label_getTextColor); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_Label_getBlendFunc); - tolua_function(tolua_S,"enableWrap",lua_ax_base_Label_enableWrap); - tolua_function(tolua_S,"setWidth",lua_ax_base_Label_setWidth); - tolua_function(tolua_S,"getAdditionalKerning",lua_ax_base_Label_getAdditionalKerning); - tolua_function(tolua_S,"getBMFontSize",lua_ax_base_Label_getBMFontSize); - tolua_function(tolua_S,"getMaxLineWidth",lua_ax_base_Label_getMaxLineWidth); - tolua_function(tolua_S,"getHorizontalAlignment",lua_ax_base_Label_getHorizontalAlignment); - tolua_function(tolua_S,"getShadowOffset",lua_ax_base_Label_getShadowOffset); - tolua_function(tolua_S,"getLineSpacing",lua_ax_base_Label_getLineSpacing); - tolua_function(tolua_S,"setClipMarginEnabled",lua_ax_base_Label_setClipMarginEnabled); - tolua_function(tolua_S,"setString",lua_ax_base_Label_setString); - tolua_function(tolua_S,"setSystemFontName",lua_ax_base_Label_setSystemFontName); - tolua_function(tolua_S,"isWrapEnabled",lua_ax_base_Label_isWrapEnabled); - tolua_function(tolua_S,"getOutlineSize",lua_ax_base_Label_getOutlineSize); - tolua_function(tolua_S,"setBMFontFilePath",lua_ax_base_Label_setBMFontFilePath); - tolua_function(tolua_S,"initWithTTF",lua_ax_base_Label_initWithTTF); - tolua_function(tolua_S,"getFontAtlas",lua_ax_base_Label_getFontAtlas); - tolua_function(tolua_S,"setLineHeight",lua_ax_base_Label_setLineHeight); - tolua_function(tolua_S,"setSystemFontSize",lua_ax_base_Label_setSystemFontSize); - tolua_function(tolua_S,"setOverflow",lua_ax_base_Label_setOverflow); - tolua_function(tolua_S,"enableStrikethrough",lua_ax_base_Label_enableStrikethrough); - tolua_function(tolua_S,"updateContent",lua_ax_base_Label_updateContent); - tolua_function(tolua_S,"getStringLength",lua_ax_base_Label_getStringLength); - tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_ax_base_Label_setLineBreakWithoutSpace); - tolua_function(tolua_S,"getStringNumLines",lua_ax_base_Label_getStringNumLines); - tolua_function(tolua_S,"enableOutline",lua_ax_base_Label_enableOutline); - tolua_function(tolua_S,"getShadowBlurRadius",lua_ax_base_Label_getShadowBlurRadius); - tolua_function(tolua_S,"getEffectColor",lua_ax_base_Label_getEffectColor); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_Label_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"setCharMap",lua_ax_base_Label_setCharMap); - tolua_function(tolua_S,"getDimensions",lua_ax_base_Label_getDimensions); - tolua_function(tolua_S,"setMaxLineWidth",lua_ax_base_Label_setMaxLineWidth); - tolua_function(tolua_S,"getSystemFontName",lua_ax_base_Label_getSystemFontName); - tolua_function(tolua_S,"setVerticalAlignment",lua_ax_base_Label_setVerticalAlignment); - tolua_function(tolua_S,"setLineSpacing",lua_ax_base_Label_setLineSpacing); - tolua_function(tolua_S,"getRenderingFontSize",lua_ax_base_Label_getRenderingFontSize); - tolua_function(tolua_S,"getLineHeight",lua_ax_base_Label_getLineHeight); - tolua_function(tolua_S,"getShadowColor",lua_ax_base_Label_getShadowColor); tolua_function(tolua_S,"getTTFConfig",lua_ax_base_Label_getTTFConfig); - tolua_function(tolua_S,"enableItalics",lua_ax_base_Label_enableItalics); - tolua_function(tolua_S,"setTextColor",lua_ax_base_Label_setTextColor); - tolua_function(tolua_S,"getLetter",lua_ax_base_Label_getLetter); - tolua_function(tolua_S,"setHeight",lua_ax_base_Label_setHeight); - tolua_function(tolua_S,"isShadowEnabled",lua_ax_base_Label_isShadowEnabled); - tolua_function(tolua_S,"enableGlow",lua_ax_base_Label_enableGlow); - tolua_function(tolua_S,"getOverflow",lua_ax_base_Label_getOverflow); - tolua_function(tolua_S,"getVerticalAlignment",lua_ax_base_Label_getVerticalAlignment); - tolua_function(tolua_S,"setAdditionalKerning",lua_ax_base_Label_setAdditionalKerning); - tolua_function(tolua_S,"getSystemFontSize",lua_ax_base_Label_getSystemFontSize); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_Label_setBlendFunc); - tolua_function(tolua_S,"getTextAlignment",lua_ax_base_Label_getTextAlignment); + tolua_function(tolua_S,"setBMFontFilePath",lua_ax_base_Label_setBMFontFilePath); tolua_function(tolua_S,"getBMFontFilePath",lua_ax_base_Label_getBMFontFilePath); - tolua_function(tolua_S,"setHorizontalAlignment",lua_ax_base_Label_setHorizontalAlignment); + tolua_function(tolua_S,"setCharMap",lua_ax_base_Label_setCharMap); + tolua_function(tolua_S,"setSystemFontName",lua_ax_base_Label_setSystemFontName); + tolua_function(tolua_S,"getSystemFontName",lua_ax_base_Label_getSystemFontName); + tolua_function(tolua_S,"setSystemFontSize",lua_ax_base_Label_setSystemFontSize); + tolua_function(tolua_S,"getSystemFontSize",lua_ax_base_Label_getSystemFontSize); + tolua_function(tolua_S,"requestSystemFontRefresh",lua_ax_base_Label_requestSystemFontRefresh); + tolua_function(tolua_S,"setString",lua_ax_base_Label_setString); + tolua_function(tolua_S,"getString",lua_ax_base_Label_getString); + tolua_function(tolua_S,"getStringNumLines",lua_ax_base_Label_getStringNumLines); + tolua_function(tolua_S,"getStringLength",lua_ax_base_Label_getStringLength); + tolua_function(tolua_S,"setTextColor",lua_ax_base_Label_setTextColor); + tolua_function(tolua_S,"getTextColor",lua_ax_base_Label_getTextColor); + tolua_function(tolua_S,"enableShadow",lua_ax_base_Label_enableShadow); + tolua_function(tolua_S,"enableOutline",lua_ax_base_Label_enableOutline); + tolua_function(tolua_S,"enableGlow",lua_ax_base_Label_enableGlow); + tolua_function(tolua_S,"enableItalics",lua_ax_base_Label_enableItalics); tolua_function(tolua_S,"enableBold",lua_ax_base_Label_enableBold); tolua_function(tolua_S,"enableUnderline",lua_ax_base_Label_enableUnderline); + tolua_function(tolua_S,"enableStrikethrough",lua_ax_base_Label_enableStrikethrough); + tolua_function(tolua_S,"disableEffect",lua_ax_base_Label_disableEffect); + tolua_function(tolua_S,"isShadowEnabled",lua_ax_base_Label_isShadowEnabled); + tolua_function(tolua_S,"getShadowOffset",lua_ax_base_Label_getShadowOffset); + tolua_function(tolua_S,"getShadowBlurRadius",lua_ax_base_Label_getShadowBlurRadius); + tolua_function(tolua_S,"getShadowColor",lua_ax_base_Label_getShadowColor); + tolua_function(tolua_S,"getOutlineSize",lua_ax_base_Label_getOutlineSize); tolua_function(tolua_S,"getLabelEffectType",lua_ax_base_Label_getLabelEffectType); + tolua_function(tolua_S,"getEffectColor",lua_ax_base_Label_getEffectColor); tolua_function(tolua_S,"setAlignment",lua_ax_base_Label_setAlignment); - tolua_function(tolua_S,"requestSystemFontRefresh",lua_ax_base_Label_requestSystemFontRefresh); + tolua_function(tolua_S,"getTextAlignment",lua_ax_base_Label_getTextAlignment); + tolua_function(tolua_S,"setHorizontalAlignment",lua_ax_base_Label_setHorizontalAlignment); + tolua_function(tolua_S,"getHorizontalAlignment",lua_ax_base_Label_getHorizontalAlignment); + tolua_function(tolua_S,"setVerticalAlignment",lua_ax_base_Label_setVerticalAlignment); + tolua_function(tolua_S,"getVerticalAlignment",lua_ax_base_Label_getVerticalAlignment); + tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_ax_base_Label_setLineBreakWithoutSpace); + tolua_function(tolua_S,"setMaxLineWidth",lua_ax_base_Label_setMaxLineWidth); + tolua_function(tolua_S,"getMaxLineWidth",lua_ax_base_Label_getMaxLineWidth); tolua_function(tolua_S,"setBMFontSize",lua_ax_base_Label_setBMFontSize); - tolua_function(tolua_S,"createWithBMFont", lua_ax_base_Label_createWithBMFont); + tolua_function(tolua_S,"getBMFontSize",lua_ax_base_Label_getBMFontSize); + tolua_function(tolua_S,"enableWrap",lua_ax_base_Label_enableWrap); + tolua_function(tolua_S,"isWrapEnabled",lua_ax_base_Label_isWrapEnabled); + tolua_function(tolua_S,"setOverflow",lua_ax_base_Label_setOverflow); + tolua_function(tolua_S,"getOverflow",lua_ax_base_Label_getOverflow); + tolua_function(tolua_S,"setWidth",lua_ax_base_Label_setWidth); + tolua_function(tolua_S,"getWidth",lua_ax_base_Label_getWidth); + tolua_function(tolua_S,"setHeight",lua_ax_base_Label_setHeight); + tolua_function(tolua_S,"getHeight",lua_ax_base_Label_getHeight); + tolua_function(tolua_S,"setDimensions",lua_ax_base_Label_setDimensions); + tolua_function(tolua_S,"getDimensions",lua_ax_base_Label_getDimensions); + tolua_function(tolua_S,"updateContent",lua_ax_base_Label_updateContent); + tolua_function(tolua_S,"getLetter",lua_ax_base_Label_getLetter); + tolua_function(tolua_S,"setClipMarginEnabled",lua_ax_base_Label_setClipMarginEnabled); + tolua_function(tolua_S,"isClipMarginEnabled",lua_ax_base_Label_isClipMarginEnabled); + tolua_function(tolua_S,"setLineHeight",lua_ax_base_Label_setLineHeight); + tolua_function(tolua_S,"getLineHeight",lua_ax_base_Label_getLineHeight); + tolua_function(tolua_S,"setLineSpacing",lua_ax_base_Label_setLineSpacing); + tolua_function(tolua_S,"getLineSpacing",lua_ax_base_Label_getLineSpacing); + tolua_function(tolua_S,"getLabelType",lua_ax_base_Label_getLabelType); + tolua_function(tolua_S,"getRenderingFontSize",lua_ax_base_Label_getRenderingFontSize); + tolua_function(tolua_S,"setAdditionalKerning",lua_ax_base_Label_setAdditionalKerning); + tolua_function(tolua_S,"getAdditionalKerning",lua_ax_base_Label_getAdditionalKerning); + tolua_function(tolua_S,"getFontAtlas",lua_ax_base_Label_getFontAtlas); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_Label_getBlendFunc); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_Label_setBlendFunc); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_Label_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"initWithTTF",lua_ax_base_Label_initWithTTF); tolua_function(tolua_S,"create", lua_ax_base_Label_create); - tolua_function(tolua_S,"createWithCharMap", lua_ax_base_Label_createWithCharMap); tolua_function(tolua_S,"createWithSystemFont", lua_ax_base_Label_createWithSystemFont); + tolua_function(tolua_S,"createWithBMFont", lua_ax_base_Label_createWithBMFont); + tolua_function(tolua_S,"createWithCharMap", lua_ax_base_Label_createWithCharMap); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Label).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Label"; @@ -57440,56 +57338,6 @@ int lua_register_ax_base_Label(lua_State* tolua_S) return 1; } -int lua_ax_base_LabelAtlas_setString(lua_State* tolua_S) -{ - int argc = 0; - ax::LabelAtlas* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LabelAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LabelAtlas_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.LabelAtlas:setString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LabelAtlas_setString'", nullptr); - return 0; - } - cobj->setString(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LabelAtlas:setString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LabelAtlas_setString'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LabelAtlas_initWithString(lua_State* tolua_S) { int argc = 0; @@ -57593,6 +57441,56 @@ int lua_ax_base_LabelAtlas_initWithString(lua_State* tolua_S) return 0; } +int lua_ax_base_LabelAtlas_setString(lua_State* tolua_S) +{ + int argc = 0; + ax::LabelAtlas* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LabelAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LabelAtlas*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LabelAtlas_setString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.LabelAtlas:setString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LabelAtlas_setString'", nullptr); + return 0; + } + cobj->setString(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LabelAtlas:setString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LabelAtlas_setString'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_LabelAtlas_getString(lua_State* tolua_S) { int argc = 0; @@ -57778,8 +57676,8 @@ int lua_register_ax_base_LabelAtlas(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LabelAtlas"); tolua_function(tolua_S,"new",lua_ax_base_LabelAtlas_constructor); - tolua_function(tolua_S,"setString",lua_ax_base_LabelAtlas_setString); tolua_function(tolua_S,"initWithString",lua_ax_base_LabelAtlas_initWithString); + tolua_function(tolua_S,"setString",lua_ax_base_LabelAtlas_setString); tolua_function(tolua_S,"getString",lua_ax_base_LabelAtlas_getString); tolua_function(tolua_S,"_create", lua_ax_base_LabelAtlas_create); tolua_endmodule(tolua_S); @@ -57789,57 +57687,99 @@ int lua_register_ax_base_LabelAtlas(lua_State* tolua_S) return 1; } -int lua_ax_base_Sprite_setSpriteFrame(lua_State* tolua_S) +int lua_ax_base_Sprite_getBatchNode(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setSpriteFrame'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getBatchNode'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.Sprite:setSpriteFrame"); - - if (!ok) { break; } - cobj->setSpriteFrame(arg0); - lua_settop(tolua_S, 1); - return 1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getBatchNode'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:setSpriteFrame"); - - if (!ok) { break; } - cobj->setSpriteFrame(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setSpriteFrame",argc, 1); + auto&& ret = cobj->getBatchNode(); + object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getBatchNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setSpriteFrame'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getBatchNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setBatchNode(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setBatchNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::SpriteBatchNode* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteBatchNode",&arg0, "ax.Sprite:setBatchNode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setBatchNode'", nullptr); + return 0; + } + cobj->setBatchNode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setBatchNode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setBatchNode'.",&tolua_err); #endif return 0; @@ -57946,444 +57886,6 @@ int lua_ax_base_Sprite_getTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_Sprite_setFlippedY(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setFlippedY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setFlippedY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setFlippedY'", nullptr); - return 0; - } - cobj->setFlippedY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setFlippedY",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setFlippedY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setFlippedX(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setFlippedX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setFlippedX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setFlippedX'", nullptr); - return 0; - } - cobj->setFlippedX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setFlippedX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setFlippedX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_getResourceType(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getResourceType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getResourceType'", nullptr); - return 0; - } - auto&& ret = cobj->getResourceType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getResourceType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getResourceType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setDisplayFrameWithAnimationName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - unsigned int arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:setDisplayFrameWithAnimationName"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Sprite:setDisplayFrameWithAnimationName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setDisplayFrameWithAnimationName'", nullptr); - return 0; - } - cobj->setDisplayFrameWithAnimationName(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setDisplayFrameWithAnimationName",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setDisplayFrameWithAnimationName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_getBatchNode(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getBatchNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getBatchNode'", nullptr); - return 0; - } - auto&& ret = cobj->getBatchNode(); - object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getBatchNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getBatchNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_getOffsetPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getOffsetPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getOffsetPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getOffsetPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getOffsetPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getOffsetPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_getCenterRect(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getCenterRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getCenterRect'", nullptr); - return 0; - } - auto&& ret = cobj->getCenterRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getCenterRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getCenterRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setCenterRectNormalized(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setCenterRectNormalized'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.Sprite:setCenterRectNormalized"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setCenterRectNormalized'", nullptr); - return 0; - } - cobj->setCenterRectNormalized(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setCenterRectNormalized",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setCenterRectNormalized'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_isStretchEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isStretchEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isStretchEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isStretchEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isStretchEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isStretchEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Sprite_setTextureRect(lua_State* tolua_S) { int argc = 0; @@ -58447,7 +57949,7 @@ int lua_ax_base_Sprite_setTextureRect(lua_State* tolua_S) return 0; } -int lua_ax_base_Sprite_initWithSpriteFrameName(lua_State* tolua_S) +int lua_ax_base_Sprite_setVertexRect(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -58467,7 +57969,7 @@ int lua_ax_base_Sprite_initWithSpriteFrameName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_initWithSpriteFrameName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setVertexRect'", nullptr); return 0; } #endif @@ -58475,79 +57977,29 @@ int lua_ax_base_Sprite_initWithSpriteFrameName(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + ax::Rect arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:initWithSpriteFrameName"); + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.Sprite:setVertexRect"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_initWithSpriteFrameName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setVertexRect'", nullptr); return 0; } - auto&& ret = cobj->initWithSpriteFrameName(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:initWithSpriteFrameName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_initWithSpriteFrameName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setStretchEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setStretchEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setStretchEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setStretchEnabled'", nullptr); - return 0; - } - cobj->setStretchEnabled(arg0); + cobj->setVertexRect(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setStretchEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setVertexRect",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setStretchEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setVertexRect'.",&tolua_err); #endif return 0; } -int lua_ax_base_Sprite_isFrameDisplayed(lua_State* tolua_S) +int lua_ax_base_Sprite_setCenterRectNormalized(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -58567,7 +58019,7 @@ int lua_ax_base_Sprite_isFrameDisplayed(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isFrameDisplayed'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setCenterRectNormalized'", nullptr); return 0; } #endif @@ -58575,29 +58027,29 @@ int lua_ax_base_Sprite_isFrameDisplayed(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::SpriteFrame* arg0; + ax::Rect arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.Sprite:isFrameDisplayed"); + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.Sprite:setCenterRectNormalized"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isFrameDisplayed'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setCenterRectNormalized'", nullptr); return 0; } - auto&& ret = cobj->isFrameDisplayed(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setCenterRectNormalized(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isFrameDisplayed",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setCenterRectNormalized",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isFrameDisplayed'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setCenterRectNormalized'.",&tolua_err); #endif return 0; } -int lua_ax_base_Sprite_getAtlasIndex(lua_State* tolua_S) +int lua_ax_base_Sprite_getCenterRectNormalized(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -58617,7 +58069,7 @@ int lua_ax_base_Sprite_getAtlasIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getAtlasIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getCenterRectNormalized'", nullptr); return 0; } #endif @@ -58627,166 +58079,19 @@ int lua_ax_base_Sprite_getAtlasIndex(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getAtlasIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getCenterRectNormalized'", nullptr); return 0; } - auto&& ret = cobj->getAtlasIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getCenterRectNormalized(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getAtlasIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getCenterRectNormalized",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getAtlasIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextureAtlas* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.Sprite:setTextureAtlas"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setTextureAtlas'", nullptr); - return 0; - } - cobj->setTextureAtlas(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setTextureAtlas",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setBatchNode(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setBatchNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::SpriteBatchNode* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteBatchNode",&arg0, "ax.Sprite:setBatchNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setBatchNode'", nullptr); - return 0; - } - cobj->setBatchNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setBatchNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setBatchNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getCenterRectNormalized'.",&tolua_err); #endif return 0; @@ -58841,6 +58146,158 @@ int lua_ax_base_Sprite_setCenterRect(lua_State* tolua_S) return 0; } +int lua_ax_base_Sprite_getCenterRect(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getCenterRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getCenterRect'", nullptr); + return 0; + } + auto&& ret = cobj->getCenterRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getCenterRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getCenterRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setSpriteFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setSpriteFrame'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::SpriteFrame* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.Sprite:setSpriteFrame"); + + if (!ok) { break; } + cobj->setSpriteFrame(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:setSpriteFrame"); + + if (!ok) { break; } + cobj->setSpriteFrame(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setSpriteFrame",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setSpriteFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_isFrameDisplayed(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isFrameDisplayed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::SpriteFrame* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.Sprite:isFrameDisplayed"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isFrameDisplayed'", nullptr); + return 0; + } + auto&& ret = cobj->isFrameDisplayed(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isFrameDisplayed",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isFrameDisplayed'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Sprite_getSpriteFrame(lua_State* tolua_S) { int argc = 0; @@ -58888,7 +58345,7 @@ int lua_ax_base_Sprite_getSpriteFrame(lua_State* tolua_S) return 0; } -int lua_ax_base_Sprite_setVertexLayout(lua_State* tolua_S) +int lua_ax_base_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -58908,7 +58365,60 @@ int lua_ax_base_Sprite_setVertexLayout(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setVertexLayout'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setDisplayFrameWithAnimationName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + unsigned int arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:setDisplayFrameWithAnimationName"); + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Sprite:setDisplayFrameWithAnimationName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setDisplayFrameWithAnimationName'", nullptr); + return 0; + } + cobj->setDisplayFrameWithAnimationName(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setDisplayFrameWithAnimationName",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setDisplayFrameWithAnimationName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_isDirty(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isDirty'", nullptr); return 0; } #endif @@ -58918,19 +58428,69 @@ int lua_ax_base_Sprite_setVertexLayout(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setVertexLayout'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isDirty'", nullptr); return 0; } - cobj->setVertexLayout(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->isDirty(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setVertexLayout",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isDirty",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setVertexLayout'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isDirty'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setDirty(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setDirty"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setDirty'", nullptr); + return 0; + } + cobj->setDirty(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setDirty",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setDirty'.",&tolua_err); #endif return 0; @@ -58985,7 +58545,7 @@ int lua_ax_base_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) return 0; } -int lua_ax_base_Sprite_getResourceName(lua_State* tolua_S) +int lua_ax_base_Sprite_isTextureRectRotated(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -59005,7 +58565,7 @@ int lua_ax_base_Sprite_getResourceName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getResourceName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isTextureRectRotated'", nullptr); return 0; } #endif @@ -59015,71 +58575,24 @@ int lua_ax_base_Sprite_getResourceName(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getResourceName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isTextureRectRotated'", nullptr); return 0; } - auto&& ret = cobj->getResourceName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getResourceName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getResourceName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_isDirty(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isDirty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isDirty'", nullptr); - return 0; - } - auto&& ret = cobj->isDirty(); + auto&& ret = cobj->isTextureRectRotated(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isDirty",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isTextureRectRotated",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isDirty'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isTextureRectRotated'.",&tolua_err); #endif return 0; } -int lua_ax_base_Sprite_getCenterRectNormalized(lua_State* tolua_S) +int lua_ax_base_Sprite_getAtlasIndex(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -59099,7 +58612,7 @@ int lua_ax_base_Sprite_getCenterRectNormalized(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getCenterRectNormalized'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getAtlasIndex'", nullptr); return 0; } #endif @@ -59109,19 +58622,19 @@ int lua_ax_base_Sprite_getCenterRectNormalized(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getCenterRectNormalized'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getAtlasIndex'", nullptr); return 0; } - auto&& ret = cobj->getCenterRectNormalized(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->getAtlasIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getCenterRectNormalized",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getAtlasIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getCenterRectNormalized'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getAtlasIndex'.",&tolua_err); #endif return 0; @@ -59176,6 +58689,679 @@ int lua_ax_base_Sprite_setAtlasIndex(lua_State* tolua_S) return 0; } +int lua_ax_base_Sprite_getTextureRect(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getTextureRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getTextureRect'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getTextureRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getTextureRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_getTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getTextureAtlas'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getTextureAtlas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextureAtlas* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.Sprite:setTextureAtlas"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setTextureAtlas'", nullptr); + return 0; + } + cobj->setTextureAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setTextureAtlas",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_getOffsetPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getOffsetPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getOffsetPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getOffsetPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getOffsetPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getOffsetPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_isFlippedX(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isFlippedX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isFlippedX'", nullptr); + return 0; + } + auto&& ret = cobj->isFlippedX(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isFlippedX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isFlippedX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setFlippedX(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setFlippedX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setFlippedX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setFlippedX'", nullptr); + return 0; + } + cobj->setFlippedX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setFlippedX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setFlippedX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_isFlippedY(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isFlippedY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isFlippedY'", nullptr); + return 0; + } + auto&& ret = cobj->isFlippedY(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isFlippedY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isFlippedY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setFlippedY(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setFlippedY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setFlippedY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setFlippedY'", nullptr); + return 0; + } + cobj->setFlippedY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setFlippedY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setFlippedY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setStretchEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setStretchEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setStretchEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setStretchEnabled'", nullptr); + return 0; + } + cobj->setStretchEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setStretchEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setStretchEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_isStretchEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isStretchEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isStretchEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isStretchEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isStretchEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isStretchEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Sprite:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_getResourceType(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getResourceType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getResourceType'", nullptr); + return 0; + } + auto&& ret = cobj->getResourceType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getResourceType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getResourceType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Sprite_getResourceName(lua_State* tolua_S) +{ + int argc = 0; + ax::Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getResourceName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getResourceName'", nullptr); + return 0; + } + auto&& ret = cobj->getResourceName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getResourceName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getResourceName'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Sprite_initWithTexture(lua_State* tolua_S) { int argc = 0; @@ -59255,7 +59441,7 @@ int lua_ax_base_Sprite_initWithTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_Sprite_setDirty(lua_State* tolua_S) +int lua_ax_base_Sprite_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -59275,7 +59461,7 @@ int lua_ax_base_Sprite_setDirty(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setDirty'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_initWithSpriteFrame'", nullptr); return 0; } #endif @@ -59283,76 +59469,29 @@ int lua_ax_base_Sprite_setDirty(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + ax::SpriteFrame* arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Sprite:setDirty"); + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.Sprite:initWithSpriteFrame"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setDirty'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_initWithSpriteFrame'", nullptr); return 0; } - cobj->setDirty(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setDirty",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setDirty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_isTextureRectRotated(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isTextureRectRotated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isTextureRectRotated'", nullptr); - return 0; - } - auto&& ret = cobj->isTextureRectRotated(); + auto&& ret = cobj->initWithSpriteFrame(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isTextureRectRotated",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:initWithSpriteFrame",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isTextureRectRotated'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_initWithSpriteFrame'.",&tolua_err); #endif return 0; } -int lua_ax_base_Sprite_getTextureRect(lua_State* tolua_S) +int lua_ax_base_Sprite_initWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -59372,29 +59511,32 @@ int lua_ax_base_Sprite_getTextureRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getTextureRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_initWithSpriteFrameName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:initWithSpriteFrameName"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getTextureRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_initWithSpriteFrameName'", nullptr); return 0; } - auto&& ret = cobj->getTextureRect(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->initWithSpriteFrameName(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getTextureRect",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:initWithSpriteFrameName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getTextureRect'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_initWithSpriteFrameName'.",&tolua_err); #endif return 0; @@ -59474,7 +59616,7 @@ int lua_ax_base_Sprite_initWithFile(lua_State* tolua_S) return 0; } -int lua_ax_base_Sprite_setBlendFunc(lua_State* tolua_S) +int lua_ax_base_Sprite_setVertexLayout(lua_State* tolua_S) { int argc = 0; ax::Sprite* cobj = nullptr; @@ -59494,273 +59636,29 @@ int lua_ax_base_Sprite_setBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setVertexLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Sprite:setBlendFunc"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setVertexLayout'", nullptr); return 0; } - cobj->setBlendFunc(arg0); + cobj->setVertexLayout(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setBlendFunc",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setVertexLayout",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_getTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_getTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_getTextureAtlas'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:getTextureAtlas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_getTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_initWithSpriteFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_initWithSpriteFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::SpriteFrame* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.Sprite:initWithSpriteFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_initWithSpriteFrame'", nullptr); - return 0; - } - auto&& ret = cobj->initWithSpriteFrame(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:initWithSpriteFrame",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_initWithSpriteFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_isFlippedX(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isFlippedX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isFlippedX'", nullptr); - return 0; - } - auto&& ret = cobj->isFlippedX(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isFlippedX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isFlippedX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_isFlippedY(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_isFlippedY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_isFlippedY'", nullptr); - return 0; - } - auto&& ret = cobj->isFlippedY(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:isFlippedY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_isFlippedY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Sprite_setVertexRect(lua_State* tolua_S) -{ - int argc = 0; - ax::Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Sprite_setVertexRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.Sprite:setVertexRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_setVertexRect'", nullptr); - return 0; - } - cobj->setVertexRect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Sprite:setVertexRect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setVertexRect'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_setVertexLayout'.",&tolua_err); #endif return 0; @@ -59835,42 +59733,6 @@ int lua_ax_base_Sprite_createWithTexture(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Sprite_createWithSpriteFrameName(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:createWithSpriteFrameName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_createWithSpriteFrameName'", nullptr); - return 0; - } - auto&& ret = ax::Sprite::createWithSpriteFrameName(arg0); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Sprite:createWithSpriteFrameName",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_createWithSpriteFrameName'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_Sprite_createWithSpriteFrame(lua_State* tolua_S) { int argc = 0; @@ -59907,6 +59769,42 @@ int lua_ax_base_Sprite_createWithSpriteFrame(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_Sprite_createWithSpriteFrameName(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Sprite:createWithSpriteFrameName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Sprite_createWithSpriteFrameName'", nullptr); + return 0; + } + auto&& ret = ax::Sprite::createWithSpriteFrameName(arg0); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Sprite:createWithSpriteFrameName",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Sprite_createWithSpriteFrameName'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_Sprite_constructor(lua_State* tolua_S) { int argc = 0; @@ -59957,48 +59855,48 @@ int lua_register_ax_base_Sprite(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Sprite"); tolua_function(tolua_S,"new",lua_ax_base_Sprite_constructor); - tolua_function(tolua_S,"setSpriteFrame",lua_ax_base_Sprite_setSpriteFrame); + tolua_function(tolua_S,"getBatchNode",lua_ax_base_Sprite_getBatchNode); + tolua_function(tolua_S,"setBatchNode",lua_ax_base_Sprite_setBatchNode); tolua_function(tolua_S,"setTexture",lua_ax_base_Sprite_setTexture); tolua_function(tolua_S,"getTexture",lua_ax_base_Sprite_getTexture); - tolua_function(tolua_S,"setFlippedY",lua_ax_base_Sprite_setFlippedY); - tolua_function(tolua_S,"setFlippedX",lua_ax_base_Sprite_setFlippedX); - tolua_function(tolua_S,"getResourceType",lua_ax_base_Sprite_getResourceType); - tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_ax_base_Sprite_setDisplayFrameWithAnimationName); - tolua_function(tolua_S,"getBatchNode",lua_ax_base_Sprite_getBatchNode); - tolua_function(tolua_S,"getOffsetPosition",lua_ax_base_Sprite_getOffsetPosition); - tolua_function(tolua_S,"getCenterRect",lua_ax_base_Sprite_getCenterRect); - tolua_function(tolua_S,"setCenterRectNormalized",lua_ax_base_Sprite_setCenterRectNormalized); - tolua_function(tolua_S,"isStretchEnabled",lua_ax_base_Sprite_isStretchEnabled); tolua_function(tolua_S,"setTextureRect",lua_ax_base_Sprite_setTextureRect); - tolua_function(tolua_S,"initWithSpriteFrameName",lua_ax_base_Sprite_initWithSpriteFrameName); - tolua_function(tolua_S,"setStretchEnabled",lua_ax_base_Sprite_setStretchEnabled); - tolua_function(tolua_S,"isFrameDisplayed",lua_ax_base_Sprite_isFrameDisplayed); - tolua_function(tolua_S,"getAtlasIndex",lua_ax_base_Sprite_getAtlasIndex); - tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_Sprite_setTextureAtlas); - tolua_function(tolua_S,"setBatchNode",lua_ax_base_Sprite_setBatchNode); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_Sprite_getBlendFunc); - tolua_function(tolua_S,"setCenterRect",lua_ax_base_Sprite_setCenterRect); - tolua_function(tolua_S,"getSpriteFrame",lua_ax_base_Sprite_getSpriteFrame); - tolua_function(tolua_S,"setVertexLayout",lua_ax_base_Sprite_setVertexLayout); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_Sprite_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"getResourceName",lua_ax_base_Sprite_getResourceName); - tolua_function(tolua_S,"isDirty",lua_ax_base_Sprite_isDirty); - tolua_function(tolua_S,"getCenterRectNormalized",lua_ax_base_Sprite_getCenterRectNormalized); - tolua_function(tolua_S,"setAtlasIndex",lua_ax_base_Sprite_setAtlasIndex); - tolua_function(tolua_S,"initWithTexture",lua_ax_base_Sprite_initWithTexture); - tolua_function(tolua_S,"setDirty",lua_ax_base_Sprite_setDirty); - tolua_function(tolua_S,"isTextureRectRotated",lua_ax_base_Sprite_isTextureRectRotated); - tolua_function(tolua_S,"getTextureRect",lua_ax_base_Sprite_getTextureRect); - tolua_function(tolua_S,"initWithFile",lua_ax_base_Sprite_initWithFile); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_Sprite_setBlendFunc); - tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_Sprite_getTextureAtlas); - tolua_function(tolua_S,"initWithSpriteFrame",lua_ax_base_Sprite_initWithSpriteFrame); - tolua_function(tolua_S,"isFlippedX",lua_ax_base_Sprite_isFlippedX); - tolua_function(tolua_S,"isFlippedY",lua_ax_base_Sprite_isFlippedY); tolua_function(tolua_S,"setVertexRect",lua_ax_base_Sprite_setVertexRect); + tolua_function(tolua_S,"setCenterRectNormalized",lua_ax_base_Sprite_setCenterRectNormalized); + tolua_function(tolua_S,"getCenterRectNormalized",lua_ax_base_Sprite_getCenterRectNormalized); + tolua_function(tolua_S,"setCenterRect",lua_ax_base_Sprite_setCenterRect); + tolua_function(tolua_S,"getCenterRect",lua_ax_base_Sprite_getCenterRect); + tolua_function(tolua_S,"setSpriteFrame",lua_ax_base_Sprite_setSpriteFrame); + tolua_function(tolua_S,"isFrameDisplayed",lua_ax_base_Sprite_isFrameDisplayed); + tolua_function(tolua_S,"getSpriteFrame",lua_ax_base_Sprite_getSpriteFrame); + tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_ax_base_Sprite_setDisplayFrameWithAnimationName); + tolua_function(tolua_S,"isDirty",lua_ax_base_Sprite_isDirty); + tolua_function(tolua_S,"setDirty",lua_ax_base_Sprite_setDirty); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_Sprite_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"isTextureRectRotated",lua_ax_base_Sprite_isTextureRectRotated); + tolua_function(tolua_S,"getAtlasIndex",lua_ax_base_Sprite_getAtlasIndex); + tolua_function(tolua_S,"setAtlasIndex",lua_ax_base_Sprite_setAtlasIndex); + tolua_function(tolua_S,"getTextureRect",lua_ax_base_Sprite_getTextureRect); + tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_Sprite_getTextureAtlas); + tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_Sprite_setTextureAtlas); + tolua_function(tolua_S,"getOffsetPosition",lua_ax_base_Sprite_getOffsetPosition); + tolua_function(tolua_S,"isFlippedX",lua_ax_base_Sprite_isFlippedX); + tolua_function(tolua_S,"setFlippedX",lua_ax_base_Sprite_setFlippedX); + tolua_function(tolua_S,"isFlippedY",lua_ax_base_Sprite_isFlippedY); + tolua_function(tolua_S,"setFlippedY",lua_ax_base_Sprite_setFlippedY); + tolua_function(tolua_S,"setStretchEnabled",lua_ax_base_Sprite_setStretchEnabled); + tolua_function(tolua_S,"isStretchEnabled",lua_ax_base_Sprite_isStretchEnabled); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_Sprite_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_Sprite_getBlendFunc); + tolua_function(tolua_S,"getResourceType",lua_ax_base_Sprite_getResourceType); + tolua_function(tolua_S,"getResourceName",lua_ax_base_Sprite_getResourceName); + tolua_function(tolua_S,"initWithTexture",lua_ax_base_Sprite_initWithTexture); + tolua_function(tolua_S,"initWithSpriteFrame",lua_ax_base_Sprite_initWithSpriteFrame); + tolua_function(tolua_S,"initWithSpriteFrameName",lua_ax_base_Sprite_initWithSpriteFrameName); + tolua_function(tolua_S,"initWithFile",lua_ax_base_Sprite_initWithFile); + tolua_function(tolua_S,"setVertexLayout",lua_ax_base_Sprite_setVertexLayout); tolua_function(tolua_S,"createWithTexture", lua_ax_base_Sprite_createWithTexture); - tolua_function(tolua_S,"createWithSpriteFrameName", lua_ax_base_Sprite_createWithSpriteFrameName); tolua_function(tolua_S,"createWithSpriteFrame", lua_ax_base_Sprite_createWithSpriteFrame); + tolua_function(tolua_S,"createWithSpriteFrameName", lua_ax_base_Sprite_createWithSpriteFrameName); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Sprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Sprite"; @@ -60060,7 +59958,7 @@ int lua_register_ax_base_Layer(lua_State* tolua_S) return 1; } -int lua_ax_base_LayerColor_changeWidthAndHeight(lua_State* tolua_S) +int lua_ax_base_LayerColor_changeWidth(lua_State* tolua_S) { int argc = 0; ax::LayerColor* cobj = nullptr; @@ -60080,35 +59978,32 @@ int lua_ax_base_LayerColor_changeWidthAndHeight(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerColor_changeWidthAndHeight'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerColor_changeWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 1) { double arg0; - double arg1; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.LayerColor:changeWidthAndHeight"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.LayerColor:changeWidthAndHeight"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.LayerColor:changeWidth"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerColor_changeWidthAndHeight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerColor_changeWidth'", nullptr); return 0; } - cobj->changeWidthAndHeight(arg0, arg1); + cobj->changeWidth(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerColor:changeWidthAndHeight",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerColor:changeWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerColor_changeWidthAndHeight'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerColor_changeWidth'.",&tolua_err); #endif return 0; @@ -60163,6 +60058,59 @@ int lua_ax_base_LayerColor_changeHeight(lua_State* tolua_S) return 0; } +int lua_ax_base_LayerColor_changeWidthAndHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerColor* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerColor",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerColor*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerColor_changeWidthAndHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.LayerColor:changeWidthAndHeight"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.LayerColor:changeWidthAndHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerColor_changeWidthAndHeight'", nullptr); + return 0; + } + cobj->changeWidthAndHeight(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerColor:changeWidthAndHeight",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerColor_changeWidthAndHeight'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_LayerColor_initWithColor(lua_State* tolua_S) { int argc = 0; @@ -60226,56 +60174,6 @@ int lua_ax_base_LayerColor_initWithColor(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerColor_changeWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerColor* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerColor",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerColor*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerColor_changeWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.LayerColor:changeWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerColor_changeWidth'", nullptr); - return 0; - } - cobj->changeWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerColor:changeWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerColor_changeWidth'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LayerColor_create(lua_State* tolua_S) { int argc = 0; @@ -60390,10 +60288,10 @@ int lua_register_ax_base_LayerColor(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LayerColor"); tolua_function(tolua_S,"new",lua_ax_base_LayerColor_constructor); - tolua_function(tolua_S,"changeWidthAndHeight",lua_ax_base_LayerColor_changeWidthAndHeight); - tolua_function(tolua_S,"changeHeight",lua_ax_base_LayerColor_changeHeight); - tolua_function(tolua_S,"initWithColor",lua_ax_base_LayerColor_initWithColor); tolua_function(tolua_S,"changeWidth",lua_ax_base_LayerColor_changeWidth); + tolua_function(tolua_S,"changeHeight",lua_ax_base_LayerColor_changeHeight); + tolua_function(tolua_S,"changeWidthAndHeight",lua_ax_base_LayerColor_changeWidthAndHeight); + tolua_function(tolua_S,"initWithColor",lua_ax_base_LayerColor_initWithColor); tolua_function(tolua_S,"create", lua_ax_base_LayerColor_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::LayerColor).name(); // rtti is literal storage @@ -60402,7 +60300,7 @@ int lua_register_ax_base_LayerColor(lua_State* tolua_S) return 1; } -int lua_ax_base_LayerGradient_getStartColor(lua_State* tolua_S) +int lua_ax_base_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) { int argc = 0; ax::LayerGradient* cobj = nullptr; @@ -60422,29 +60320,32 @@ int lua_ax_base_LayerGradient_getStartColor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getStartColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setCompressedInterpolation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.LayerGradient:setCompressedInterpolation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getStartColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setCompressedInterpolation'", nullptr); return 0; } - auto&& ret = cobj->getStartColor(); - color3b_to_luaval(tolua_S, ret); + cobj->setCompressedInterpolation(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getStartColor",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setCompressedInterpolation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getStartColor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setCompressedInterpolation'.",&tolua_err); #endif return 0; @@ -60496,7 +60397,7 @@ int lua_ax_base_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerGradient_getStartOpacity(lua_State* tolua_S) +int lua_ax_base_LayerGradient_setStartColor(lua_State* tolua_S) { int argc = 0; ax::LayerGradient* cobj = nullptr; @@ -60516,7 +60417,57 @@ int lua_ax_base_LayerGradient_getStartOpacity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getStartOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setStartColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerGradient:setStartColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setStartColor'", nullptr); + return 0; + } + cobj->setStartColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setStartColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setStartColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerGradient_getStartColor(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getStartColor'", nullptr); return 0; } #endif @@ -60526,24 +60477,24 @@ int lua_ax_base_LayerGradient_getStartOpacity(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getStartOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getStartColor'", nullptr); return 0; } - auto&& ret = cobj->getStartOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getStartColor(); + color3b_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getStartOpacity",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getStartColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getStartOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getStartColor'.",&tolua_err); #endif return 0; } -int lua_ax_base_LayerGradient_setVector(lua_State* tolua_S) +int lua_ax_base_LayerGradient_setEndColor(lua_State* tolua_S) { int argc = 0; ax::LayerGradient* cobj = nullptr; @@ -60563,7 +60514,7 @@ int lua_ax_base_LayerGradient_setVector(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setVector'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setEndColor'", nullptr); return 0; } #endif @@ -60571,24 +60522,71 @@ int lua_ax_base_LayerGradient_setVector(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Vec2 arg0; + ax::Color3B arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.LayerGradient:setVector"); + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerGradient:setEndColor"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setVector'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setEndColor'", nullptr); return 0; } - cobj->setVector(arg0); + cobj->setEndColor(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setVector",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setEndColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setVector'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setEndColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerGradient_getEndColor(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getEndColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getEndColor'", nullptr); + return 0; + } + auto&& ret = cobj->getEndColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getEndColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getEndColor'.",&tolua_err); #endif return 0; @@ -60643,7 +60641,7 @@ int lua_ax_base_LayerGradient_setStartOpacity(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) +int lua_ax_base_LayerGradient_getStartOpacity(lua_State* tolua_S) { int argc = 0; ax::LayerGradient* cobj = nullptr; @@ -60663,32 +60661,29 @@ int lua_ax_base_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setCompressedInterpolation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getStartOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.LayerGradient:setCompressedInterpolation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setCompressedInterpolation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getStartOpacity'", nullptr); return 0; } - cobj->setCompressedInterpolation(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getStartOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setCompressedInterpolation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getStartOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setCompressedInterpolation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getStartOpacity'.",&tolua_err); #endif return 0; @@ -60743,6 +60738,103 @@ int lua_ax_base_LayerGradient_setEndOpacity(lua_State* tolua_S) return 0; } +int lua_ax_base_LayerGradient_getEndOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getEndOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getEndOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getEndOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getEndOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getEndOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerGradient_setVector(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setVector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.LayerGradient:setVector"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setVector'", nullptr); + return 0; + } + cobj->setVector(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setVector",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setVector'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_LayerGradient_getVector(lua_State* tolua_S) { int argc = 0; @@ -60790,56 +60882,6 @@ int lua_ax_base_LayerGradient_getVector(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerGradient_setEndColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setEndColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerGradient:setEndColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setEndColor'", nullptr); - return 0; - } - cobj->setEndColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setEndColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setEndColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LayerGradient_initWithColor(lua_State* tolua_S) { int argc = 0; @@ -60907,150 +60949,6 @@ int lua_ax_base_LayerGradient_initWithColor(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerGradient_getEndColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getEndColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getEndColor'", nullptr); - return 0; - } - auto&& ret = cobj->getEndColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getEndColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getEndColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerGradient_getEndOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_getEndOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_getEndOpacity'", nullptr); - return 0; - } - auto&& ret = cobj->getEndOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:getEndOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_getEndOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerGradient_setStartColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerGradient_setStartColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerGradient:setStartColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerGradient_setStartColor'", nullptr); - return 0; - } - cobj->setStartColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerGradient:setStartColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerGradient_setStartColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LayerGradient_create(lua_State* tolua_S) { int argc = 0; @@ -61168,19 +61066,19 @@ int lua_register_ax_base_LayerGradient(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LayerGradient"); tolua_function(tolua_S,"new",lua_ax_base_LayerGradient_constructor); - tolua_function(tolua_S,"getStartColor",lua_ax_base_LayerGradient_getStartColor); - tolua_function(tolua_S,"isCompressedInterpolation",lua_ax_base_LayerGradient_isCompressedInterpolation); - tolua_function(tolua_S,"getStartOpacity",lua_ax_base_LayerGradient_getStartOpacity); - tolua_function(tolua_S,"setVector",lua_ax_base_LayerGradient_setVector); - tolua_function(tolua_S,"setStartOpacity",lua_ax_base_LayerGradient_setStartOpacity); tolua_function(tolua_S,"setCompressedInterpolation",lua_ax_base_LayerGradient_setCompressedInterpolation); - tolua_function(tolua_S,"setEndOpacity",lua_ax_base_LayerGradient_setEndOpacity); - tolua_function(tolua_S,"getVector",lua_ax_base_LayerGradient_getVector); - tolua_function(tolua_S,"setEndColor",lua_ax_base_LayerGradient_setEndColor); - tolua_function(tolua_S,"initWithColor",lua_ax_base_LayerGradient_initWithColor); - tolua_function(tolua_S,"getEndColor",lua_ax_base_LayerGradient_getEndColor); - tolua_function(tolua_S,"getEndOpacity",lua_ax_base_LayerGradient_getEndOpacity); + tolua_function(tolua_S,"isCompressedInterpolation",lua_ax_base_LayerGradient_isCompressedInterpolation); tolua_function(tolua_S,"setStartColor",lua_ax_base_LayerGradient_setStartColor); + tolua_function(tolua_S,"getStartColor",lua_ax_base_LayerGradient_getStartColor); + tolua_function(tolua_S,"setEndColor",lua_ax_base_LayerGradient_setEndColor); + tolua_function(tolua_S,"getEndColor",lua_ax_base_LayerGradient_getEndColor); + tolua_function(tolua_S,"setStartOpacity",lua_ax_base_LayerGradient_setStartOpacity); + tolua_function(tolua_S,"getStartOpacity",lua_ax_base_LayerGradient_getStartOpacity); + tolua_function(tolua_S,"setEndOpacity",lua_ax_base_LayerGradient_setEndOpacity); + tolua_function(tolua_S,"getEndOpacity",lua_ax_base_LayerGradient_getEndOpacity); + tolua_function(tolua_S,"setVector",lua_ax_base_LayerGradient_setVector); + tolua_function(tolua_S,"getVector",lua_ax_base_LayerGradient_getVector); + tolua_function(tolua_S,"initWithColor",lua_ax_base_LayerGradient_initWithColor); tolua_function(tolua_S,"create", lua_ax_base_LayerGradient_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::LayerGradient).name(); // rtti is literal storage @@ -61189,291 +61087,6 @@ int lua_register_ax_base_LayerGradient(lua_State* tolua_S) return 1; } -int lua_ax_base_LayerRadialGradient_getStartColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getStartColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getStartColor'", nullptr); - return 0; - } - auto&& ret = cobj->getStartColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getStartColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getStartColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getStartColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getStartColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getStartColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->getStartColor3B(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getStartColor3B",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getStartColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getStartOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getStartOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getStartOpacity'", nullptr); - return 0; - } - auto&& ret = cobj->getStartOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getStartOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getStartOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_setCenter(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setCenter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setCenter"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_setCenter'", nullptr); - return 0; - } - cobj->setCenter(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setCenter",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setCenter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getEndColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getEndColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getEndColor'", nullptr); - return 0; - } - auto&& ret = cobj->getEndColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getEndColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getEndColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LayerRadialGradient_setStartOpacity(lua_State* tolua_S) { int argc = 0; @@ -61524,7 +61137,7 @@ int lua_ax_base_LayerRadialGradient_setStartOpacity(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerRadialGradient_getCenter(lua_State* tolua_S) +int lua_ax_base_LayerRadialGradient_getStartOpacity(lua_State* tolua_S) { int argc = 0; ax::LayerRadialGradient* cobj = nullptr; @@ -61544,7 +61157,7 @@ int lua_ax_base_LayerRadialGradient_getCenter(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getCenter'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getStartOpacity'", nullptr); return 0; } #endif @@ -61554,19 +61167,19 @@ int lua_ax_base_LayerRadialGradient_getCenter(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getCenter'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getStartOpacity'", nullptr); return 0; } - auto&& ret = cobj->getCenter(); - vec2_to_luaval(tolua_S, ret); + auto&& ret = cobj->getStartOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getCenter",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getStartOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getCenter'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getStartOpacity'.",&tolua_err); #endif return 0; @@ -61621,6 +61234,247 @@ int lua_ax_base_LayerRadialGradient_setEndOpacity(lua_State* tolua_S) return 0; } +int lua_ax_base_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getEndOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getEndOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getEndOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getEndOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getEndOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_setRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.LayerRadialGradient:setRadius"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_setRadius'", nullptr); + return 0; + } + cobj->setRadius(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setRadius",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_setCenter(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setCenter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setCenter"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_setCenter'", nullptr); + return 0; + } + cobj->setCenter(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setCenter",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setCenter'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getCenter(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getCenter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getCenter'", nullptr); + return 0; + } + auto&& ret = cobj->getCenter(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getCenter",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getCenter'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_LayerRadialGradient_setExpand(lua_State* tolua_S) { int argc = 0; @@ -61671,7 +61525,7 @@ int lua_ax_base_LayerRadialGradient_setExpand(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) +int lua_ax_base_LayerRadialGradient_getExpand(lua_State* tolua_S) { int argc = 0; ax::LayerRadialGradient* cobj = nullptr; @@ -61691,7 +61545,7 @@ int lua_ax_base_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getEndOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getExpand'", nullptr); return 0; } #endif @@ -61701,19 +61555,414 @@ int lua_ax_base_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getEndOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getExpand'", nullptr); return 0; } - auto&& ret = cobj->getEndOpacity(); + auto&& ret = cobj->getExpand(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getEndOpacity",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getExpand",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getEndOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getExpand'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_setStartColor(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setStartColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setStartColor"); + + if (!ok) { break; } + cobj->setStartColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setStartColor"); + + if (!ok) { break; } + cobj->setStartColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setStartColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setStartColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getStartColor(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getStartColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getStartColor'", nullptr); + return 0; + } + auto&& ret = cobj->getStartColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getStartColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getStartColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getStartColor3B(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getStartColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getStartColor3B'", nullptr); + return 0; + } + auto&& ret = cobj->getStartColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getStartColor3B",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getStartColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_setEndColor(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setEndColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setEndColor"); + + if (!ok) { break; } + cobj->setEndColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setEndColor"); + + if (!ok) { break; } + cobj->setEndColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setEndColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setEndColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getEndColor(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getEndColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getEndColor'", nullptr); + return 0; + } + auto&& ret = cobj->getEndColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getEndColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getEndColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getEndColor3B(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getEndColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getEndColor3B'", nullptr); + return 0; + } + auto&& ret = cobj->getEndColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getEndColor3B",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getEndColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerRadialGradient_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerRadialGradient* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getBlendFunc'.",&tolua_err); #endif return 0; @@ -61780,357 +62029,6 @@ int lua_ax_base_LayerRadialGradient_initWithColor(lua_State* tolua_S) return 0; } -int lua_ax_base_LayerRadialGradient_setEndColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setEndColor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Color4B arg0; - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setEndColor"); - - if (!ok) { break; } - cobj->setEndColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Color3B arg0; - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setEndColor"); - - if (!ok) { break; } - cobj->setEndColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setEndColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setEndColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getEndColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getEndColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getEndColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->getEndColor3B(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getEndColor3B",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getEndColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_setRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.LayerRadialGradient:setRadius"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_setRadius'", nullptr); - return 0; - } - cobj->setRadius(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setRadius",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_setStartColor(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setStartColor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Color4B arg0; - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setStartColor"); - - if (!ok) { break; } - cobj->setStartColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Color3B arg0; - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setStartColor"); - - if (!ok) { break; } - cobj->setStartColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setStartColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setStartColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getExpand(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getExpand'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getExpand'", nullptr); - return 0; - } - auto&& ret = cobj->getExpand(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getExpand",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getExpand'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.LayerRadialGradient:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerRadialGradient_getRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerRadialGradient* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerRadialGradient_getRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerRadialGradient_getRadius'", nullptr); - return 0; - } - auto&& ret = cobj->getRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerRadialGradient:getRadius",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerRadialGradient_getRadius'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LayerRadialGradient_create(lua_State* tolua_S) { int argc = 0; @@ -62238,25 +62136,25 @@ int lua_register_ax_base_LayerRadialGradient(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LayerRadialGradient"); tolua_function(tolua_S,"new",lua_ax_base_LayerRadialGradient_constructor); - tolua_function(tolua_S,"getStartColor",lua_ax_base_LayerRadialGradient_getStartColor); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_LayerRadialGradient_getBlendFunc); - tolua_function(tolua_S,"getStartColor3B",lua_ax_base_LayerRadialGradient_getStartColor3B); - tolua_function(tolua_S,"getStartOpacity",lua_ax_base_LayerRadialGradient_getStartOpacity); - tolua_function(tolua_S,"setCenter",lua_ax_base_LayerRadialGradient_setCenter); - tolua_function(tolua_S,"getEndColor",lua_ax_base_LayerRadialGradient_getEndColor); tolua_function(tolua_S,"setStartOpacity",lua_ax_base_LayerRadialGradient_setStartOpacity); - tolua_function(tolua_S,"getCenter",lua_ax_base_LayerRadialGradient_getCenter); + tolua_function(tolua_S,"getStartOpacity",lua_ax_base_LayerRadialGradient_getStartOpacity); tolua_function(tolua_S,"setEndOpacity",lua_ax_base_LayerRadialGradient_setEndOpacity); - tolua_function(tolua_S,"setExpand",lua_ax_base_LayerRadialGradient_setExpand); tolua_function(tolua_S,"getEndOpacity",lua_ax_base_LayerRadialGradient_getEndOpacity); - tolua_function(tolua_S,"initWithColor",lua_ax_base_LayerRadialGradient_initWithColor); - tolua_function(tolua_S,"setEndColor",lua_ax_base_LayerRadialGradient_setEndColor); - tolua_function(tolua_S,"getEndColor3B",lua_ax_base_LayerRadialGradient_getEndColor3B); tolua_function(tolua_S,"setRadius",lua_ax_base_LayerRadialGradient_setRadius); - tolua_function(tolua_S,"setStartColor",lua_ax_base_LayerRadialGradient_setStartColor); - tolua_function(tolua_S,"getExpand",lua_ax_base_LayerRadialGradient_getExpand); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_LayerRadialGradient_setBlendFunc); tolua_function(tolua_S,"getRadius",lua_ax_base_LayerRadialGradient_getRadius); + tolua_function(tolua_S,"setCenter",lua_ax_base_LayerRadialGradient_setCenter); + tolua_function(tolua_S,"getCenter",lua_ax_base_LayerRadialGradient_getCenter); + tolua_function(tolua_S,"setExpand",lua_ax_base_LayerRadialGradient_setExpand); + tolua_function(tolua_S,"getExpand",lua_ax_base_LayerRadialGradient_getExpand); + tolua_function(tolua_S,"setStartColor",lua_ax_base_LayerRadialGradient_setStartColor); + tolua_function(tolua_S,"getStartColor",lua_ax_base_LayerRadialGradient_getStartColor); + tolua_function(tolua_S,"getStartColor3B",lua_ax_base_LayerRadialGradient_getStartColor3B); + tolua_function(tolua_S,"setEndColor",lua_ax_base_LayerRadialGradient_setEndColor); + tolua_function(tolua_S,"getEndColor",lua_ax_base_LayerRadialGradient_getEndColor); + tolua_function(tolua_S,"getEndColor3B",lua_ax_base_LayerRadialGradient_getEndColor3B); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_LayerRadialGradient_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_LayerRadialGradient_getBlendFunc); + tolua_function(tolua_S,"initWithColor",lua_ax_base_LayerRadialGradient_initWithColor); tolua_function(tolua_S,"create", lua_ax_base_LayerRadialGradient_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::LayerRadialGradient).name(); // rtti is literal storage @@ -62265,106 +62163,6 @@ int lua_register_ax_base_LayerRadialGradient(lua_State* tolua_S) return 1; } -int lua_ax_base_LayerMultiplex_initWithArray(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerMultiplex* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerMultiplex_initWithArray'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.LayerMultiplex:initWithArray"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerMultiplex_initWithArray'", nullptr); - return 0; - } - auto&& ret = cobj->initWithArray(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerMultiplex:initWithArray",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerMultiplex_initWithArray'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) -{ - int argc = 0; - ax::LayerMultiplex* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerMultiplex_switchToAndReleaseMe'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.LayerMultiplex:switchToAndReleaseMe"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerMultiplex_switchToAndReleaseMe'", nullptr); - return 0; - } - cobj->switchToAndReleaseMe(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerMultiplex:switchToAndReleaseMe",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerMultiplex_switchToAndReleaseMe'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_LayerMultiplex_addLayer(lua_State* tolua_S) { int argc = 0; @@ -62474,6 +62272,106 @@ int lua_ax_base_LayerMultiplex_switchTo(lua_State* tolua_S) return 0; } +int lua_ax_base_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerMultiplex* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerMultiplex_switchToAndReleaseMe'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.LayerMultiplex:switchToAndReleaseMe"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerMultiplex_switchToAndReleaseMe'", nullptr); + return 0; + } + cobj->switchToAndReleaseMe(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerMultiplex:switchToAndReleaseMe",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerMultiplex_switchToAndReleaseMe'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_LayerMultiplex_initWithArray(lua_State* tolua_S) +{ + int argc = 0; + ax::LayerMultiplex* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_LayerMultiplex_initWithArray'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.LayerMultiplex:initWithArray"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_LayerMultiplex_initWithArray'", nullptr); + return 0; + } + auto&& ret = cobj->initWithArray(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.LayerMultiplex:initWithArray",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_LayerMultiplex_initWithArray'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_LayerMultiplex_constructor(lua_State* tolua_S) { int argc = 0; @@ -62524,10 +62422,10 @@ int lua_register_ax_base_LayerMultiplex(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LayerMultiplex"); tolua_function(tolua_S,"new",lua_ax_base_LayerMultiplex_constructor); - tolua_function(tolua_S,"initWithArray",lua_ax_base_LayerMultiplex_initWithArray); - tolua_function(tolua_S,"switchToAndReleaseMe",lua_ax_base_LayerMultiplex_switchToAndReleaseMe); tolua_function(tolua_S,"addLayer",lua_ax_base_LayerMultiplex_addLayer); tolua_function(tolua_S,"switchTo",lua_ax_base_LayerMultiplex_switchTo); + tolua_function(tolua_S,"switchToAndReleaseMe",lua_ax_base_LayerMultiplex_switchToAndReleaseMe); + tolua_function(tolua_S,"initWithArray",lua_ax_base_LayerMultiplex_initWithArray); tolua_endmodule(tolua_S); auto typeName = typeid(ax::LayerMultiplex).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.LayerMultiplex"; @@ -62535,7 +62433,7 @@ int lua_register_ax_base_LayerMultiplex(lua_State* tolua_S) return 1; } -int lua_ax_base_MenuItem_setEnabled(lua_State* tolua_S) +int lua_ax_base_MenuItem_rect(lua_State* tolua_S) { int argc = 0; ax::MenuItem* cobj = nullptr; @@ -62555,32 +62453,29 @@ int lua_ax_base_MenuItem_setEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_rect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MenuItem:setEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_rect'", nullptr); return 0; } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->rect(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:setEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:rect",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_setEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_rect'.",&tolua_err); #endif return 0; @@ -62632,53 +62527,6 @@ int lua_ax_base_MenuItem_activate(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItem_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_isEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_isEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:isEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_isEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MenuItem_selected(lua_State* tolua_S) { int argc = 0; @@ -62726,53 +62574,6 @@ int lua_ax_base_MenuItem_selected(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItem_isSelected(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_isSelected'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_isSelected'", nullptr); - return 0; - } - auto&& ret = cobj->isSelected(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:isSelected",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_isSelected'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MenuItem_unselected(lua_State* tolua_S) { int argc = 0; @@ -62820,7 +62621,7 @@ int lua_ax_base_MenuItem_unselected(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItem_rect(lua_State* tolua_S) +int lua_ax_base_MenuItem_isEnabled(lua_State* tolua_S) { int argc = 0; ax::MenuItem* cobj = nullptr; @@ -62840,7 +62641,7 @@ int lua_ax_base_MenuItem_rect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_rect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_isEnabled'", nullptr); return 0; } #endif @@ -62850,19 +62651,116 @@ int lua_ax_base_MenuItem_rect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_rect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_isEnabled'", nullptr); return 0; } - auto&& ret = cobj->rect(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:rect",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:isEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_rect'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_isEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItem_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_setEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MenuItem:setEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_setEnabled'", nullptr); + return 0; + } + cobj->setEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:setEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_setEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItem_isSelected(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItem_isSelected'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItem_isSelected'", nullptr); + return 0; + } + auto&& ret = cobj->isSelected(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItem:isSelected",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItem_isSelected'.",&tolua_err); #endif return 0; @@ -62917,13 +62815,13 @@ int lua_register_ax_base_MenuItem(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MenuItem"); tolua_function(tolua_S,"new",lua_ax_base_MenuItem_constructor); - tolua_function(tolua_S,"setEnabled",lua_ax_base_MenuItem_setEnabled); - tolua_function(tolua_S,"activate",lua_ax_base_MenuItem_activate); - tolua_function(tolua_S,"isEnabled",lua_ax_base_MenuItem_isEnabled); - tolua_function(tolua_S,"selected",lua_ax_base_MenuItem_selected); - tolua_function(tolua_S,"isSelected",lua_ax_base_MenuItem_isSelected); - tolua_function(tolua_S,"unselected",lua_ax_base_MenuItem_unselected); tolua_function(tolua_S,"rect",lua_ax_base_MenuItem_rect); + tolua_function(tolua_S,"activate",lua_ax_base_MenuItem_activate); + tolua_function(tolua_S,"selected",lua_ax_base_MenuItem_selected); + tolua_function(tolua_S,"unselected",lua_ax_base_MenuItem_unselected); + tolua_function(tolua_S,"isEnabled",lua_ax_base_MenuItem_isEnabled); + tolua_function(tolua_S,"setEnabled",lua_ax_base_MenuItem_setEnabled); + tolua_function(tolua_S,"isSelected",lua_ax_base_MenuItem_isSelected); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MenuItem).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MenuItem"; @@ -62931,7 +62829,7 @@ int lua_register_ax_base_MenuItem(lua_State* tolua_S) return 1; } -int lua_ax_base_MenuItemLabel_setLabel(lua_State* tolua_S) +int lua_ax_base_MenuItemLabel_setString(lua_State* tolua_S) { int argc = 0; ax::MenuItemLabel* cobj = nullptr; @@ -62951,7 +62849,7 @@ int lua_ax_base_MenuItemLabel_setLabel(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemLabel_setLabel'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemLabel_setString'", nullptr); return 0; } #endif @@ -62959,24 +62857,24 @@ int lua_ax_base_MenuItemLabel_setLabel(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Node* arg0; + std::string_view arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemLabel:setLabel"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MenuItemLabel:setString"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemLabel_setLabel'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemLabel_setString'", nullptr); return 0; } - cobj->setLabel(arg0); + cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemLabel:setLabel",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemLabel:setString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemLabel_setLabel'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemLabel_setString'.",&tolua_err); #endif return 0; @@ -63075,113 +62973,6 @@ int lua_ax_base_MenuItemLabel_getDisabledColor(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItemLabel_setString(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemLabel* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemLabel_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MenuItemLabel:setString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemLabel_setString'", nullptr); - return 0; - } - cobj->setString(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemLabel:setString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemLabel_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemLabel_initWithLabel(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemLabel* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemLabel_initWithLabel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Node* arg0; - std::function arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemLabel:initWithLabel"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemLabel_initWithLabel'", nullptr); - return 0; - } - auto&& ret = cobj->initWithLabel(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemLabel:initWithLabel",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemLabel_initWithLabel'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MenuItemLabel_setDisabledColor(lua_State* tolua_S) { int argc = 0; @@ -63279,6 +63070,113 @@ int lua_ax_base_MenuItemLabel_getLabel(lua_State* tolua_S) return 0; } +int lua_ax_base_MenuItemLabel_setLabel(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemLabel* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemLabel_setLabel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemLabel:setLabel"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemLabel_setLabel'", nullptr); + return 0; + } + cobj->setLabel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemLabel:setLabel",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemLabel_setLabel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItemLabel_initWithLabel(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemLabel* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemLabel_initWithLabel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Node* arg0; + std::function arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemLabel:initWithLabel"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemLabel_initWithLabel'", nullptr); + return 0; + } + auto&& ret = cobj->initWithLabel(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemLabel:initWithLabel",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemLabel_initWithLabel'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MenuItemLabel_constructor(lua_State* tolua_S) { int argc = 0; @@ -63329,13 +63227,13 @@ int lua_register_ax_base_MenuItemLabel(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MenuItemLabel"); tolua_function(tolua_S,"new",lua_ax_base_MenuItemLabel_constructor); - tolua_function(tolua_S,"setLabel",lua_ax_base_MenuItemLabel_setLabel); + tolua_function(tolua_S,"setString",lua_ax_base_MenuItemLabel_setString); tolua_function(tolua_S,"getString",lua_ax_base_MenuItemLabel_getString); tolua_function(tolua_S,"getDisabledColor",lua_ax_base_MenuItemLabel_getDisabledColor); - tolua_function(tolua_S,"setString",lua_ax_base_MenuItemLabel_setString); - tolua_function(tolua_S,"initWithLabel",lua_ax_base_MenuItemLabel_initWithLabel); tolua_function(tolua_S,"setDisabledColor",lua_ax_base_MenuItemLabel_setDisabledColor); tolua_function(tolua_S,"getLabel",lua_ax_base_MenuItemLabel_getLabel); + tolua_function(tolua_S,"setLabel",lua_ax_base_MenuItemLabel_setLabel); + tolua_function(tolua_S,"initWithLabel",lua_ax_base_MenuItemLabel_initWithLabel); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MenuItemLabel).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MenuItemLabel"; @@ -63470,7 +63368,7 @@ int lua_register_ax_base_MenuItemAtlasFont(lua_State* tolua_S) return 1; } -int lua_ax_base_MenuItemFont_getFontNameObj(lua_State* tolua_S) +int lua_ax_base_MenuItemFont_setFontSizeObj(lua_State* tolua_S) { int argc = 0; ax::MenuItemFont* cobj = nullptr; @@ -63490,7 +63388,57 @@ int lua_ax_base_MenuItemFont_getFontNameObj(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemFont_getFontNameObj'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemFont_setFontSizeObj'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MenuItemFont:setFontSizeObj"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_setFontSizeObj'", nullptr); + return 0; + } + cobj->setFontSizeObj(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemFont:setFontSizeObj",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_setFontSizeObj'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItemFont_getFontSizeObj(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemFont* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemFont_getFontSizeObj'", nullptr); return 0; } #endif @@ -63500,19 +63448,19 @@ int lua_ax_base_MenuItemFont_getFontNameObj(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_getFontNameObj'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_getFontSizeObj'", nullptr); return 0; } - auto&& ret = cobj->getFontNameObj(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); + auto&& ret = cobj->getFontSizeObj(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemFont:getFontNameObj",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemFont:getFontSizeObj",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_getFontNameObj'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_getFontSizeObj'.",&tolua_err); #endif return 0; @@ -63567,6 +63515,53 @@ int lua_ax_base_MenuItemFont_setFontNameObj(lua_State* tolua_S) return 0; } +int lua_ax_base_MenuItemFont_getFontNameObj(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemFont* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemFont_getFontNameObj'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_getFontNameObj'", nullptr); + return 0; + } + auto&& ret = cobj->getFontNameObj(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemFont:getFontNameObj",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_getFontNameObj'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MenuItemFont_initWithString(lua_State* tolua_S) { int argc = 0; @@ -63624,101 +63619,74 @@ int lua_ax_base_MenuItemFont_initWithString(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItemFont_getFontSizeObj(lua_State* tolua_S) +int lua_ax_base_MenuItemFont_setFontSize(lua_State* tolua_S) { int argc = 0; - ax::MenuItemFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemFont_getFontSizeObj'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_getFontSizeObj'", nullptr); - return 0; - } - auto&& ret = cobj->getFontSizeObj(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemFont:getFontSizeObj",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_getFontSizeObj'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemFont_setFontSizeObj(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemFont* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemFont_setFontSizeObj'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MenuItemFont:setFontSizeObj"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MenuItemFont:setFontSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_setFontSizeObj'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_setFontSize'", nullptr); return 0; } - cobj->setFontSizeObj(arg0); + ax::MenuItemFont::setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemFont:setFontSizeObj",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MenuItemFont:setFontSize",argc, 1); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_setFontSizeObj'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_setFontSize'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_MenuItemFont_getFontSize(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; #endif +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_getFontSize'", nullptr); + return 0; + } + auto&& ret = ax::MenuItemFont::getFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MenuItemFont:getFontSize",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_getFontSize'.",&tolua_err); +#endif return 0; } int lua_ax_base_MenuItemFont_setFontName(lua_State* tolua_S) @@ -63757,40 +63725,6 @@ int lua_ax_base_MenuItemFont_setFontName(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_MenuItemFont_getFontSize(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_getFontSize'", nullptr); - return 0; - } - auto&& ret = ax::MenuItemFont::getFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MenuItemFont:getFontSize",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_getFontSize'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_MenuItemFont_getFontName(lua_State* tolua_S) { int argc = 0; @@ -63825,42 +63759,6 @@ int lua_ax_base_MenuItemFont_getFontName(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_MenuItemFont_setFontSize(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.MenuItemFont",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MenuItemFont:setFontSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemFont_setFontSize'", nullptr); - return 0; - } - ax::MenuItemFont::setFontSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MenuItemFont:setFontSize",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemFont_setFontSize'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_MenuItemFont_constructor(lua_State* tolua_S) { int argc = 0; @@ -63911,15 +63809,15 @@ int lua_register_ax_base_MenuItemFont(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MenuItemFont"); tolua_function(tolua_S,"new",lua_ax_base_MenuItemFont_constructor); - tolua_function(tolua_S,"getFontNameObj",lua_ax_base_MenuItemFont_getFontNameObj); - tolua_function(tolua_S,"setFontNameObj",lua_ax_base_MenuItemFont_setFontNameObj); - tolua_function(tolua_S,"initWithString",lua_ax_base_MenuItemFont_initWithString); - tolua_function(tolua_S,"getFontSizeObj",lua_ax_base_MenuItemFont_getFontSizeObj); tolua_function(tolua_S,"setFontSizeObj",lua_ax_base_MenuItemFont_setFontSizeObj); - tolua_function(tolua_S,"setFontName", lua_ax_base_MenuItemFont_setFontName); - tolua_function(tolua_S,"getFontSize", lua_ax_base_MenuItemFont_getFontSize); - tolua_function(tolua_S,"getFontName", lua_ax_base_MenuItemFont_getFontName); + tolua_function(tolua_S,"getFontSizeObj",lua_ax_base_MenuItemFont_getFontSizeObj); + tolua_function(tolua_S,"setFontNameObj",lua_ax_base_MenuItemFont_setFontNameObj); + tolua_function(tolua_S,"getFontNameObj",lua_ax_base_MenuItemFont_getFontNameObj); + tolua_function(tolua_S,"initWithString",lua_ax_base_MenuItemFont_initWithString); tolua_function(tolua_S,"setFontSize", lua_ax_base_MenuItemFont_setFontSize); + tolua_function(tolua_S,"getFontSize", lua_ax_base_MenuItemFont_getFontSize); + tolua_function(tolua_S,"setFontName", lua_ax_base_MenuItemFont_setFontName); + tolua_function(tolua_S,"getFontName", lua_ax_base_MenuItemFont_getFontName); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MenuItemFont).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MenuItemFont"; @@ -63927,7 +63825,7 @@ int lua_register_ax_base_MenuItemFont(lua_State* tolua_S) return 1; } -int lua_ax_base_MenuItemSprite_setEnabled(lua_State* tolua_S) +int lua_ax_base_MenuItemSprite_getNormalImage(lua_State* tolua_S) { int argc = 0; ax::MenuItemSprite* cobj = nullptr; @@ -63947,57 +63845,7 @@ int lua_ax_base_MenuItemSprite_setEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MenuItemSprite:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:setEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_setEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemSprite_selected(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemSprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_selected'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_getNormalImage'", nullptr); return 0; } #endif @@ -64007,19 +63855,19 @@ int lua_ax_base_MenuItemSprite_selected(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_selected'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_getNormalImage'", nullptr); return 0; } - cobj->selected(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getNormalImage(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:selected",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:getNormalImage",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_selected'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_getNormalImage'.",&tolua_err); #endif return 0; @@ -64074,7 +63922,7 @@ int lua_ax_base_MenuItemSprite_setNormalImage(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItemSprite_setDisabledImage(lua_State* tolua_S) +int lua_ax_base_MenuItemSprite_getSelectedImage(lua_State* tolua_S) { int argc = 0; ax::MenuItemSprite* cobj = nullptr; @@ -64094,95 +63942,29 @@ int lua_ax_base_MenuItemSprite_setDisabledImage(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_setDisabledImage'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_getSelectedImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemSprite:setDisabledImage"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_setDisabledImage'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_getSelectedImage'", nullptr); return 0; } - cobj->setDisabledImage(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getSelectedImage(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:setDisabledImage",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:getSelectedImage",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_setDisabledImage'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemSprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_initWithNormalSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - ax::Node* arg0; - ax::Node* arg1; - ax::Node* arg2; - std::function arg3; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemSprite:initWithNormalSprite"); - - ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.MenuItemSprite:initWithNormalSprite"); - - ok &= luaval_to_object(tolua_S, 4, "ax.Node",&arg2, "ax.MenuItemSprite:initWithNormalSprite"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_initWithNormalSprite'", nullptr); - return 0; - } - auto&& ret = cobj->initWithNormalSprite(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:initWithNormalSprite",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_initWithNormalSprite'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_getSelectedImage'.",&tolua_err); #endif return 0; @@ -64284,7 +64066,7 @@ int lua_ax_base_MenuItemSprite_getDisabledImage(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItemSprite_getSelectedImage(lua_State* tolua_S) +int lua_ax_base_MenuItemSprite_setDisabledImage(lua_State* tolua_S) { int argc = 0; ax::MenuItemSprite* cobj = nullptr; @@ -64304,34 +64086,37 @@ int lua_ax_base_MenuItemSprite_getSelectedImage(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_getSelectedImage'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_setDisabledImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemSprite:setDisabledImage"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_getSelectedImage'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_setDisabledImage'", nullptr); return 0; } - auto&& ret = cobj->getSelectedImage(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + cobj->setDisabledImage(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:getSelectedImage",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:setDisabledImage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_getSelectedImage'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_setDisabledImage'.",&tolua_err); #endif return 0; } -int lua_ax_base_MenuItemSprite_getNormalImage(lua_State* tolua_S) +int lua_ax_base_MenuItemSprite_selected(lua_State* tolua_S) { int argc = 0; ax::MenuItemSprite* cobj = nullptr; @@ -64351,7 +64136,7 @@ int lua_ax_base_MenuItemSprite_getNormalImage(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_getNormalImage'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_selected'", nullptr); return 0; } #endif @@ -64361,19 +64146,19 @@ int lua_ax_base_MenuItemSprite_getNormalImage(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_getNormalImage'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_selected'", nullptr); return 0; } - auto&& ret = cobj->getNormalImage(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + cobj->selected(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:getNormalImage",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:selected",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_getNormalImage'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_selected'.",&tolua_err); #endif return 0; @@ -64425,6 +64210,119 @@ int lua_ax_base_MenuItemSprite_unselected(lua_State* tolua_S) return 0; } +int lua_ax_base_MenuItemSprite_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemSprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_setEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MenuItemSprite:setEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_setEnabled'", nullptr); + return 0; + } + cobj->setEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:setEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_setEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemSprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemSprite_initWithNormalSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + ax::Node* arg0; + ax::Node* arg1; + ax::Node* arg2; + std::function arg3; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.MenuItemSprite:initWithNormalSprite"); + + ok &= luaval_to_object(tolua_S, 3, "ax.Node",&arg1, "ax.MenuItemSprite:initWithNormalSprite"); + + ok &= luaval_to_object(tolua_S, 4, "ax.Node",&arg2, "ax.MenuItemSprite:initWithNormalSprite"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemSprite_initWithNormalSprite'", nullptr); + return 0; + } + auto&& ret = cobj->initWithNormalSprite(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemSprite:initWithNormalSprite",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemSprite_initWithNormalSprite'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MenuItemSprite_constructor(lua_State* tolua_S) { int argc = 0; @@ -64475,16 +64373,16 @@ int lua_register_ax_base_MenuItemSprite(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MenuItemSprite"); tolua_function(tolua_S,"new",lua_ax_base_MenuItemSprite_constructor); - tolua_function(tolua_S,"setEnabled",lua_ax_base_MenuItemSprite_setEnabled); - tolua_function(tolua_S,"selected",lua_ax_base_MenuItemSprite_selected); + tolua_function(tolua_S,"getNormalImage",lua_ax_base_MenuItemSprite_getNormalImage); tolua_function(tolua_S,"setNormalImage",lua_ax_base_MenuItemSprite_setNormalImage); - tolua_function(tolua_S,"setDisabledImage",lua_ax_base_MenuItemSprite_setDisabledImage); - tolua_function(tolua_S,"initWithNormalSprite",lua_ax_base_MenuItemSprite_initWithNormalSprite); + tolua_function(tolua_S,"getSelectedImage",lua_ax_base_MenuItemSprite_getSelectedImage); tolua_function(tolua_S,"setSelectedImage",lua_ax_base_MenuItemSprite_setSelectedImage); tolua_function(tolua_S,"getDisabledImage",lua_ax_base_MenuItemSprite_getDisabledImage); - tolua_function(tolua_S,"getSelectedImage",lua_ax_base_MenuItemSprite_getSelectedImage); - tolua_function(tolua_S,"getNormalImage",lua_ax_base_MenuItemSprite_getNormalImage); + tolua_function(tolua_S,"setDisabledImage",lua_ax_base_MenuItemSprite_setDisabledImage); + tolua_function(tolua_S,"selected",lua_ax_base_MenuItemSprite_selected); tolua_function(tolua_S,"unselected",lua_ax_base_MenuItemSprite_unselected); + tolua_function(tolua_S,"setEnabled",lua_ax_base_MenuItemSprite_setEnabled); + tolua_function(tolua_S,"initWithNormalSprite",lua_ax_base_MenuItemSprite_initWithNormalSprite); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MenuItemSprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MenuItemSprite"; @@ -64492,7 +64390,7 @@ int lua_register_ax_base_MenuItemSprite(lua_State* tolua_S) return 1; } -int lua_ax_base_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) +int lua_ax_base_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) { int argc = 0; ax::MenuItemImage* cobj = nullptr; @@ -64512,7 +64410,7 @@ int lua_ax_base_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemImage_setDisabledSpriteFrame'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemImage_setNormalSpriteFrame'", nullptr); return 0; } #endif @@ -64522,22 +64420,22 @@ int lua_ax_base_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) { ax::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.MenuItemImage:setDisabledSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.MenuItemImage:setNormalSpriteFrame"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemImage_setDisabledSpriteFrame'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemImage_setNormalSpriteFrame'", nullptr); return 0; } - cobj->setDisabledSpriteFrame(arg0); + cobj->setNormalSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemImage:setDisabledSpriteFrame",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemImage:setNormalSpriteFrame",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemImage_setDisabledSpriteFrame'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemImage_setNormalSpriteFrame'.",&tolua_err); #endif return 0; @@ -64592,7 +64490,7 @@ int lua_ax_base_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) +int lua_ax_base_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) { int argc = 0; ax::MenuItemImage* cobj = nullptr; @@ -64612,7 +64510,7 @@ int lua_ax_base_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemImage_setNormalSpriteFrame'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemImage_setDisabledSpriteFrame'", nullptr); return 0; } #endif @@ -64622,22 +64520,22 @@ int lua_ax_base_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) { ax::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.MenuItemImage:setNormalSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.MenuItemImage:setDisabledSpriteFrame"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemImage_setNormalSpriteFrame'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemImage_setDisabledSpriteFrame'", nullptr); return 0; } - cobj->setNormalSpriteFrame(arg0); + cobj->setDisabledSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemImage:setNormalSpriteFrame",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemImage:setDisabledSpriteFrame",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemImage_setNormalSpriteFrame'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemImage_setDisabledSpriteFrame'.",&tolua_err); #endif return 0; @@ -64802,9 +64700,9 @@ int lua_register_ax_base_MenuItemImage(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MenuItemImage"); tolua_function(tolua_S,"new",lua_ax_base_MenuItemImage_constructor); - tolua_function(tolua_S,"setDisabledSpriteFrame",lua_ax_base_MenuItemImage_setDisabledSpriteFrame); - tolua_function(tolua_S,"setSelectedSpriteFrame",lua_ax_base_MenuItemImage_setSelectedSpriteFrame); tolua_function(tolua_S,"setNormalSpriteFrame",lua_ax_base_MenuItemImage_setNormalSpriteFrame); + tolua_function(tolua_S,"setSelectedSpriteFrame",lua_ax_base_MenuItemImage_setSelectedSpriteFrame); + tolua_function(tolua_S,"setDisabledSpriteFrame",lua_ax_base_MenuItemImage_setDisabledSpriteFrame); tolua_function(tolua_S,"init",lua_ax_base_MenuItemImage_init); tolua_function(tolua_S,"initWithNormalImage",lua_ax_base_MenuItemImage_initWithNormalImage); tolua_endmodule(tolua_S); @@ -64814,6 +64712,200 @@ int lua_register_ax_base_MenuItemImage(lua_State* tolua_S) return 1; } +int lua_ax_base_MenuItemToggle_addSubItem(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemToggle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_addSubItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::MenuItem* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.MenuItem",&arg0, "ax.MenuItemToggle:addSubItem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_addSubItem'", nullptr); + return 0; + } + cobj->addSubItem(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:addSubItem",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_addSubItem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItemToggle_getSelectedItem(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemToggle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_getSelectedItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_getSelectedItem'", nullptr); + return 0; + } + auto&& ret = cobj->getSelectedItem(); + object_to_luaval(tolua_S, "ax.MenuItem",(ax::MenuItem*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:getSelectedItem",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_getSelectedItem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemToggle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_getSelectedIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_getSelectedIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getSelectedIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:getSelectedIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_getSelectedIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::MenuItemToggle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_setSelectedIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.MenuItemToggle:setSelectedIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_setSelectedIndex'", nullptr); + return 0; + } + cobj->setSelectedIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:setSelectedIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_setSelectedIndex'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MenuItemToggle_setSubItems(lua_State* tolua_S) { int argc = 0; @@ -64914,200 +65006,6 @@ int lua_ax_base_MenuItemToggle_initWithItem(lua_State* tolua_S) return 0; } -int lua_ax_base_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemToggle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_getSelectedIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_getSelectedIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getSelectedIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:getSelectedIndex",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_getSelectedIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemToggle_addSubItem(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemToggle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_addSubItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::MenuItem* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.MenuItem",&arg0, "ax.MenuItemToggle:addSubItem"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_addSubItem'", nullptr); - return 0; - } - cobj->addSubItem(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:addSubItem",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_addSubItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemToggle_getSelectedItem(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemToggle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_getSelectedItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_getSelectedItem'", nullptr); - return 0; - } - auto&& ret = cobj->getSelectedItem(); - object_to_luaval(tolua_S, "ax.MenuItem",(ax::MenuItem*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:getSelectedItem",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_getSelectedItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::MenuItemToggle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MenuItemToggle_setSelectedIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.MenuItemToggle:setSelectedIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MenuItemToggle_setSelectedIndex'", nullptr); - return 0; - } - cobj->setSelectedIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MenuItemToggle:setSelectedIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MenuItemToggle_setSelectedIndex'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MenuItemToggle_constructor(lua_State* tolua_S) { int argc = 0; @@ -65158,12 +65056,12 @@ int lua_register_ax_base_MenuItemToggle(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MenuItemToggle"); tolua_function(tolua_S,"new",lua_ax_base_MenuItemToggle_constructor); - tolua_function(tolua_S,"setSubItems",lua_ax_base_MenuItemToggle_setSubItems); - tolua_function(tolua_S,"initWithItem",lua_ax_base_MenuItemToggle_initWithItem); - tolua_function(tolua_S,"getSelectedIndex",lua_ax_base_MenuItemToggle_getSelectedIndex); tolua_function(tolua_S,"addSubItem",lua_ax_base_MenuItemToggle_addSubItem); tolua_function(tolua_S,"getSelectedItem",lua_ax_base_MenuItemToggle_getSelectedItem); + tolua_function(tolua_S,"getSelectedIndex",lua_ax_base_MenuItemToggle_getSelectedIndex); tolua_function(tolua_S,"setSelectedIndex",lua_ax_base_MenuItemToggle_setSelectedIndex); + tolua_function(tolua_S,"setSubItems",lua_ax_base_MenuItemToggle_setSubItems); + tolua_function(tolua_S,"initWithItem",lua_ax_base_MenuItemToggle_initWithItem); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MenuItemToggle).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.MenuItemToggle"; @@ -65171,106 +65069,6 @@ int lua_register_ax_base_MenuItemToggle(lua_State* tolua_S) return 1; } -int lua_ax_base_Menu_initWithArray(lua_State* tolua_S) -{ - int argc = 0; - ax::Menu* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Menu",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Menu*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_initWithArray'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Menu:initWithArray"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_initWithArray'", nullptr); - return 0; - } - auto&& ret = cobj->initWithArray(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:initWithArray",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_initWithArray'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Menu_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Menu* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Menu",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Menu*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Menu:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:setEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_setEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Menu_alignItemsVertically(lua_State* tolua_S) { int argc = 0; @@ -65318,7 +65116,7 @@ int lua_ax_base_Menu_alignItemsVertically(lua_State* tolua_S) return 0; } -int lua_ax_base_Menu_isEnabled(lua_State* tolua_S) +int lua_ax_base_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) { int argc = 0; ax::Menu* cobj = nullptr; @@ -65338,29 +65136,32 @@ int lua_ax_base_Menu_isEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_isEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_alignItemsVerticallyWithPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Menu:alignItemsVerticallyWithPadding"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_isEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_alignItemsVerticallyWithPadding'", nullptr); return 0; } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->alignItemsVerticallyWithPadding(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:isEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:alignItemsVerticallyWithPadding",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_isEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_alignItemsVerticallyWithPadding'.",&tolua_err); #endif return 0; @@ -65462,7 +65263,7 @@ int lua_ax_base_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) return 0; } -int lua_ax_base_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) +int lua_ax_base_Menu_isEnabled(lua_State* tolua_S) { int argc = 0; ax::Menu* cobj = nullptr; @@ -65482,7 +65283,54 @@ int lua_ax_base_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_alignItemsVerticallyWithPadding'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_isEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_isEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:isEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_isEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Menu_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Menu* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Menu",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Menu*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_setEnabled'", nullptr); return 0; } #endif @@ -65490,24 +65338,74 @@ int lua_ax_base_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + bool arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Menu:alignItemsVerticallyWithPadding"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Menu:setEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_alignItemsVerticallyWithPadding'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_setEnabled'", nullptr); return 0; } - cobj->alignItemsVerticallyWithPadding(arg0); + cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:alignItemsVerticallyWithPadding",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:setEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_alignItemsVerticallyWithPadding'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_setEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Menu_initWithArray(lua_State* tolua_S) +{ + int argc = 0; + ax::Menu* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Menu",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Menu*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Menu_initWithArray'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.Menu:initWithArray"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Menu_initWithArray'", nullptr); + return 0; + } + auto&& ret = cobj->initWithArray(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Menu:initWithArray",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Menu_initWithArray'.",&tolua_err); #endif return 0; @@ -65562,13 +65460,13 @@ int lua_register_ax_base_Menu(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Menu"); tolua_function(tolua_S,"new",lua_ax_base_Menu_constructor); - tolua_function(tolua_S,"initWithArray",lua_ax_base_Menu_initWithArray); - tolua_function(tolua_S,"setEnabled",lua_ax_base_Menu_setEnabled); tolua_function(tolua_S,"alignItemsVertically",lua_ax_base_Menu_alignItemsVertically); - tolua_function(tolua_S,"isEnabled",lua_ax_base_Menu_isEnabled); + tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_ax_base_Menu_alignItemsVerticallyWithPadding); tolua_function(tolua_S,"alignItemsHorizontally",lua_ax_base_Menu_alignItemsHorizontally); tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_ax_base_Menu_alignItemsHorizontallyWithPadding); - tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_ax_base_Menu_alignItemsVerticallyWithPadding); + tolua_function(tolua_S,"isEnabled",lua_ax_base_Menu_isEnabled); + tolua_function(tolua_S,"setEnabled",lua_ax_base_Menu_setEnabled); + tolua_function(tolua_S,"initWithArray",lua_ax_base_Menu_initWithArray); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Menu).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Menu"; @@ -65576,200 +65474,6 @@ int lua_register_ax_base_Menu(lua_State* tolua_S) return 1; } -int lua_ax_base_MotionStreak_reset(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_reset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_reset'", nullptr); - return 0; - } - cobj->reset(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:reset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_reset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MotionStreak:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak_tintWithColor(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_tintWithColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.MotionStreak:tintWithColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_tintWithColor'", nullptr); - return 0; - } - cobj->tintWithColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:tintWithColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_tintWithColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MotionStreak_getTexture(lua_State* tolua_S) { int argc = 0; @@ -65817,56 +65521,6 @@ int lua_ax_base_MotionStreak_getTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setStartingPositionInitialized'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MotionStreak:setStartingPositionInitialized"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setStartingPositionInitialized'", nullptr); - return 0; - } - cobj->setStartingPositionInitialized(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setStartingPositionInitialized",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setStartingPositionInitialized'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MotionStreak_setTexture(lua_State* tolua_S) { int argc = 0; @@ -65917,7 +65571,7 @@ int lua_ax_base_MotionStreak_setTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) +int lua_ax_base_MotionStreak_setBlendFunc(lua_State* tolua_S) { int argc = 0; ax::MotionStreak* cobj = nullptr; @@ -65937,7 +65591,57 @@ int lua_ax_base_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_isStartingPositionInitialized'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MotionStreak:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_getBlendFunc'", nullptr); return 0; } #endif @@ -65947,19 +65651,116 @@ int lua_ax_base_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_isStartingPositionInitialized'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_getBlendFunc'", nullptr); return 0; } - auto&& ret = cobj->isStartingPositionInitialized(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:isStartingPositionInitialized",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:getBlendFunc",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_isStartingPositionInitialized'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak_tintWithColor(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_tintWithColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ax.MotionStreak:tintWithColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_tintWithColor'", nullptr); + return 0; + } + cobj->tintWithColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:tintWithColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_tintWithColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak_reset(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_reset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_reset'", nullptr); + return 0; + } + cobj->reset(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:reset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_reset'.",&tolua_err); #endif return 0; @@ -66011,6 +65812,56 @@ int lua_ax_base_MotionStreak_isFastMode(lua_State* tolua_S) return 0; } +int lua_ax_base_MotionStreak_setFastMode(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setFastMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MotionStreak:setFastMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setFastMode'", nullptr); + return 0; + } + cobj->setFastMode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setFastMode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setFastMode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MotionStreak_getStroke(lua_State* tolua_S) { int argc = 0; @@ -66058,6 +65909,153 @@ int lua_ax_base_MotionStreak_getStroke(lua_State* tolua_S) return 0; } +int lua_ax_base_MotionStreak_setStroke(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setStroke'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.MotionStreak:setStroke"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setStroke'", nullptr); + return 0; + } + cobj->setStroke(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setStroke",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setStroke'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_isStartingPositionInitialized'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_isStartingPositionInitialized'", nullptr); + return 0; + } + auto&& ret = cobj->isStartingPositionInitialized(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:isStartingPositionInitialized",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_isStartingPositionInitialized'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setStartingPositionInitialized'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MotionStreak:setStartingPositionInitialized"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setStartingPositionInitialized'", nullptr); + return 0; + } + cobj->setStartingPositionInitialized(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setStartingPositionInitialized",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setStartingPositionInitialized'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MotionStreak_initWithFade(lua_State* tolua_S) { int argc = 0; @@ -66145,106 +66143,6 @@ int lua_ax_base_MotionStreak_initWithFade(lua_State* tolua_S) return 0; } -int lua_ax_base_MotionStreak_setFastMode(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setFastMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MotionStreak:setFastMode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setFastMode'", nullptr); - return 0; - } - cobj->setFastMode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setFastMode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setFastMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak_setStroke(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak_setStroke'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.MotionStreak:setStroke"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak_setStroke'", nullptr); - return 0; - } - cobj->setStroke(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak:setStroke",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak_setStroke'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MotionStreak_create(lua_State* tolua_S) { int argc = 0; @@ -66367,19 +66265,19 @@ int lua_register_ax_base_MotionStreak(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MotionStreak"); tolua_function(tolua_S,"new",lua_ax_base_MotionStreak_constructor); - tolua_function(tolua_S,"reset",lua_ax_base_MotionStreak_reset); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_MotionStreak_getBlendFunc); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_MotionStreak_setBlendFunc); - tolua_function(tolua_S,"tintWithColor",lua_ax_base_MotionStreak_tintWithColor); tolua_function(tolua_S,"getTexture",lua_ax_base_MotionStreak_getTexture); - tolua_function(tolua_S,"setStartingPositionInitialized",lua_ax_base_MotionStreak_setStartingPositionInitialized); tolua_function(tolua_S,"setTexture",lua_ax_base_MotionStreak_setTexture); - tolua_function(tolua_S,"isStartingPositionInitialized",lua_ax_base_MotionStreak_isStartingPositionInitialized); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_MotionStreak_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_MotionStreak_getBlendFunc); + tolua_function(tolua_S,"tintWithColor",lua_ax_base_MotionStreak_tintWithColor); + tolua_function(tolua_S,"reset",lua_ax_base_MotionStreak_reset); tolua_function(tolua_S,"isFastMode",lua_ax_base_MotionStreak_isFastMode); - tolua_function(tolua_S,"getStroke",lua_ax_base_MotionStreak_getStroke); - tolua_function(tolua_S,"initWithFade",lua_ax_base_MotionStreak_initWithFade); tolua_function(tolua_S,"setFastMode",lua_ax_base_MotionStreak_setFastMode); + tolua_function(tolua_S,"getStroke",lua_ax_base_MotionStreak_getStroke); tolua_function(tolua_S,"setStroke",lua_ax_base_MotionStreak_setStroke); + tolua_function(tolua_S,"isStartingPositionInitialized",lua_ax_base_MotionStreak_isStartingPositionInitialized); + tolua_function(tolua_S,"setStartingPositionInitialized",lua_ax_base_MotionStreak_setStartingPositionInitialized); + tolua_function(tolua_S,"initWithFade",lua_ax_base_MotionStreak_initWithFade); tolua_function(tolua_S,"create", lua_ax_base_MotionStreak_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MotionStreak).name(); // rtti is literal storage @@ -66388,102 +66286,49 @@ int lua_register_ax_base_MotionStreak(lua_State* tolua_S) return 1; } -int lua_ax_base_NodeGrid_setGridRect(lua_State* tolua_S) +int lua_ax_base_NodeGrid_getGrid(lua_State* tolua_S) { int argc = 0; ax::NodeGrid* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::NodeGrid*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_NodeGrid_setGridRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_NodeGrid_getGrid'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.NodeGrid:setGridRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_NodeGrid_setGridRect'", nullptr); - return 0; + do{ + if (argc == 0) { + const ax::GridBase* ret = cobj->getGrid(); + object_to_luaval(tolua_S, "ax.GridBase",(ax::GridBase*)ret); + return 1; } - cobj->setGridRect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NodeGrid:setGridRect",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 0) { + ax::GridBase* ret = cobj->getGrid(); + object_to_luaval(tolua_S, "ax.GridBase",(ax::GridBase*)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NodeGrid:getGrid",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_NodeGrid_setGridRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_NodeGrid_setTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::NodeGrid* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NodeGrid",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NodeGrid*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_NodeGrid_setTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.NodeGrid:setTarget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_NodeGrid_setTarget'", nullptr); - return 0; - } - cobj->setTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NodeGrid:setTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_NodeGrid_setTarget'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_NodeGrid_getGrid'.",&tolua_err); #endif return 0; @@ -66538,49 +66383,102 @@ int lua_ax_base_NodeGrid_setGrid(lua_State* tolua_S) return 0; } -int lua_ax_base_NodeGrid_getGrid(lua_State* tolua_S) +int lua_ax_base_NodeGrid_setTarget(lua_State* tolua_S) { int argc = 0; ax::NodeGrid* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (ax::NodeGrid*)tolua_tousertype(tolua_S,1,0); + #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_NodeGrid_getGrid'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_NodeGrid_setTarget'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - const ax::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "ax.GridBase",(ax::GridBase*)ret); - return 1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.NodeGrid:setTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_NodeGrid_setTarget'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 0) { - ax::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "ax.GridBase",(ax::GridBase*)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NodeGrid:getGrid",argc, 0); + cobj->setTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NodeGrid:setTarget",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_NodeGrid_getGrid'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_NodeGrid_setTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_NodeGrid_setGridRect(lua_State* tolua_S) +{ + int argc = 0; + ax::NodeGrid* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NodeGrid",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NodeGrid*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_NodeGrid_setGridRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.NodeGrid:setGridRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_NodeGrid_setGridRect'", nullptr); + return 0; + } + cobj->setGridRect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NodeGrid:setGridRect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_NodeGrid_setGridRect'.",&tolua_err); #endif return 0; @@ -66727,10 +66625,10 @@ int lua_register_ax_base_NodeGrid(lua_State* tolua_S) tolua_beginmodule(tolua_S,"NodeGrid"); tolua_function(tolua_S,"new",lua_ax_base_NodeGrid_constructor); - tolua_function(tolua_S,"setGridRect",lua_ax_base_NodeGrid_setGridRect); - tolua_function(tolua_S,"setTarget",lua_ax_base_NodeGrid_setTarget); - tolua_function(tolua_S,"setGrid",lua_ax_base_NodeGrid_setGrid); tolua_function(tolua_S,"getGrid",lua_ax_base_NodeGrid_getGrid); + tolua_function(tolua_S,"setGrid",lua_ax_base_NodeGrid_setGrid); + tolua_function(tolua_S,"setTarget",lua_ax_base_NodeGrid_setTarget); + tolua_function(tolua_S,"setGridRect",lua_ax_base_NodeGrid_setGridRect); tolua_function(tolua_S,"getGridRect",lua_ax_base_NodeGrid_getGridRect); tolua_function(tolua_S,"create", lua_ax_base_NodeGrid_create); tolua_endmodule(tolua_S); @@ -66740,503 +66638,6 @@ int lua_register_ax_base_NodeGrid(lua_State* tolua_S) return 1; } -int lua_ax_base_ParticleBatchNode_setTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_setTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.ParticleBatchNode:setTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_setTexture'", nullptr); - return 0; - } - cobj->setTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:setTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_setTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_initWithTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_initWithTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Texture2D* arg0; - int arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.ParticleBatchNode:initWithTexture"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleBatchNode:initWithTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_initWithTexture'", nullptr); - return 0; - } - auto&& ret = cobj->initWithTexture(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:initWithTexture",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_initWithTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_disableParticle(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_disableParticle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleBatchNode:disableParticle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_disableParticle'", nullptr); - return 0; - } - cobj->disableParticle(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:disableParticle",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_disableParticle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_getTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_getTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_getTexture'", nullptr); - return 0; - } - auto&& ret = cobj->getTexture(); - object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:getTexture",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_getTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_setTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextureAtlas* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.ParticleBatchNode:setTextureAtlas"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_setTextureAtlas'", nullptr); - return 0; - } - cobj->setTextureAtlas(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:setTextureAtlas",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_setTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_initWithFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_initWithFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - int arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleBatchNode:initWithFile"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleBatchNode:initWithFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_initWithFile'", nullptr); - return 0; - } - auto&& ret = cobj->initWithFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:initWithFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_initWithFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleBatchNode:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleBatchNode:removeAllChildrenWithCleanup"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); - return 0; - } - cobj->removeAllChildrenWithCleanup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:removeAllChildrenWithCleanup",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_getTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_getTextureAtlas'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:getTextureAtlas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_getTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ParticleBatchNode_insertChild(lua_State* tolua_S) { int argc = 0; @@ -67343,55 +66744,501 @@ int lua_ax_base_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleBatchNode_create(lua_State* tolua_S) +int lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - if (argc == 1) +#if _AX_DEBUG >= 1 + if (!cobj) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleBatchNode:create"); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleBatchNode:removeAllChildrenWithCleanup"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } - auto&& ret = ax::ParticleBatchNode::create(arg0); - object_to_luaval(tolua_S, "ax.ParticleBatchNode",(ax::ParticleBatchNode*)ret); + cobj->removeAllChildrenWithCleanup(arg0); + lua_settop(tolua_S, 1); return 1; } - if (argc == 2) + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:removeAllChildrenWithCleanup",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_disableParticle(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_disableParticle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleBatchNode:disableParticle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_disableParticle'", nullptr); + return 0; + } + cobj->disableParticle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:disableParticle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_disableParticle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_getTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_getTextureAtlas'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:getTextureAtlas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_getTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_setTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextureAtlas* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.ParticleBatchNode:setTextureAtlas"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_setTextureAtlas'", nullptr); + return 0; + } + cobj->setTextureAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:setTextureAtlas",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_setTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_getTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_getTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_getTexture'", nullptr); + return 0; + } + auto&& ret = cobj->getTexture(); + object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:getTexture",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_getTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_setTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_setTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.ParticleBatchNode:setTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_setTexture'", nullptr); + return 0; + } + cobj->setTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:setTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_setTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleBatchNode:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_initWithTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_initWithTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Texture2D* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.ParticleBatchNode:initWithTexture"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleBatchNode:initWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_initWithTexture'", nullptr); + return 0; + } + auto&& ret = cobj->initWithTexture(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:initWithTexture",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_initWithTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleBatchNode_initWithFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleBatchNode_initWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) { std::string_view arg0; int arg1; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleBatchNode:create"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleBatchNode:create"); + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleBatchNode:initWithFile"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleBatchNode:initWithFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_initWithFile'", nullptr); return 0; } - auto&& ret = ax::ParticleBatchNode::create(arg0, arg1); - object_to_luaval(tolua_S, "ax.ParticleBatchNode",(ax::ParticleBatchNode*)ret); + auto&& ret = cobj->initWithFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleBatchNode:create",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleBatchNode:initWithFile",argc, 2); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_create'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_initWithFile'.",&tolua_err); #endif + return 0; } int lua_ax_base_ParticleBatchNode_createWithTexture(lua_State* tolua_S) @@ -67445,6 +67292,57 @@ int lua_ax_base_ParticleBatchNode_createWithTexture(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_ParticleBatchNode_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleBatchNode:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_create'", nullptr); + return 0; + } + auto&& ret = ax::ParticleBatchNode::create(arg0); + object_to_luaval(tolua_S, "ax.ParticleBatchNode",(ax::ParticleBatchNode*)ret); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + int arg1; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleBatchNode:create"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleBatchNode:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleBatchNode_create'", nullptr); + return 0; + } + auto&& ret = ax::ParticleBatchNode::create(arg0, arg1); + object_to_luaval(tolua_S, "ax.ParticleBatchNode",(ax::ParticleBatchNode*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleBatchNode:create",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleBatchNode_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_ParticleBatchNode_constructor(lua_State* tolua_S) { int argc = 0; @@ -67495,20 +67393,20 @@ int lua_register_ax_base_ParticleBatchNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ParticleBatchNode"); tolua_function(tolua_S,"new",lua_ax_base_ParticleBatchNode_constructor); - tolua_function(tolua_S,"setTexture",lua_ax_base_ParticleBatchNode_setTexture); - tolua_function(tolua_S,"initWithTexture",lua_ax_base_ParticleBatchNode_initWithTexture); - tolua_function(tolua_S,"disableParticle",lua_ax_base_ParticleBatchNode_disableParticle); - tolua_function(tolua_S,"getTexture",lua_ax_base_ParticleBatchNode_getTexture); - tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_ParticleBatchNode_setTextureAtlas); - tolua_function(tolua_S,"initWithFile",lua_ax_base_ParticleBatchNode_initWithFile); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_ParticleBatchNode_setBlendFunc); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_ParticleBatchNode_getTextureAtlas); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_ParticleBatchNode_getBlendFunc); tolua_function(tolua_S,"insertChild",lua_ax_base_ParticleBatchNode_insertChild); tolua_function(tolua_S,"removeChildAtIndex",lua_ax_base_ParticleBatchNode_removeChildAtIndex); - tolua_function(tolua_S,"create", lua_ax_base_ParticleBatchNode_create); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_ParticleBatchNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"disableParticle",lua_ax_base_ParticleBatchNode_disableParticle); + tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_ParticleBatchNode_getTextureAtlas); + tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_ParticleBatchNode_setTextureAtlas); + tolua_function(tolua_S,"getTexture",lua_ax_base_ParticleBatchNode_getTexture); + tolua_function(tolua_S,"setTexture",lua_ax_base_ParticleBatchNode_setTexture); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_ParticleBatchNode_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_ParticleBatchNode_getBlendFunc); + tolua_function(tolua_S,"initWithTexture",lua_ax_base_ParticleBatchNode_initWithTexture); + tolua_function(tolua_S,"initWithFile",lua_ax_base_ParticleBatchNode_initWithFile); tolua_function(tolua_S,"createWithTexture", lua_ax_base_ParticleBatchNode_createWithTexture); + tolua_function(tolua_S,"create", lua_ax_base_ParticleBatchNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ParticleBatchNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.ParticleBatchNode"; @@ -67535,7 +67433,7 @@ int lua_register_ax_base_SpriteSheet(lua_State* tolua_S) return 1; } -int lua_ax_base_SpriteFrameCache_reloadTexture(lua_State* tolua_S) +int lua_ax_base_SpriteFrameCache_init(lua_State* tolua_S) { int argc = 0; ax::SpriteFrameCache* cobj = nullptr; @@ -67555,185 +67453,29 @@ int lua_ax_base_SpriteFrameCache_reloadTexture(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_reloadTexture'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:reloadTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_reloadTexture'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_init'", nullptr); return 0; } - auto&& ret = cobj->reloadTexture(arg0); + auto&& ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:reloadTexture",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_reloadTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_getSpriteSheetLoader(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_getSpriteSheetLoader'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.SpriteFrameCache:getSpriteSheetLoader"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_getSpriteSheetLoader'", nullptr); - return 0; - } - auto&& ret = cobj->getSpriteSheetLoader(arg0); - object_to_luaval(tolua_S, "ax.ISpriteSheetLoader",(ax::ISpriteSheetLoader*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:getSpriteSheetLoader",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_getSpriteSheetLoader'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_addSpriteFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::SpriteFrame* arg0; - std::string_view arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.SpriteFrameCache:addSpriteFrame"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.SpriteFrameCache:addSpriteFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_addSpriteFrame'", nullptr); - return 0; - } - cobj->addSpriteFrame(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:addSpriteFrame",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_addSpriteFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_findFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_findFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:findFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_findFrame'", nullptr); - return 0; - } - auto&& ret = cobj->findFrame(arg0); - object_to_luaval(tolua_S, "ax.SpriteFrame",(ax::SpriteFrame*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:findFrame",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_findFrame'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_init'.",&tolua_err); #endif return 0; @@ -67869,6 +67611,403 @@ int lua_ax_base_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) return 0; } +int lua_ax_base_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_addSpriteFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::SpriteFrame* arg0; + std::string_view arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "ax.SpriteFrameCache:addSpriteFrame"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.SpriteFrameCache:addSpriteFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_addSpriteFrame'", nullptr); + return 0; + } + cobj->addSpriteFrame(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:addSpriteFrame",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_addSpriteFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:isSpriteFramesWithFileLoaded"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded'", nullptr); + return 0; + } + auto&& ret = cobj->isSpriteFramesWithFileLoaded(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:isSpriteFramesWithFileLoaded",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrames'", nullptr); + return 0; + } + cobj->removeSpriteFrames(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFrames",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); + return 0; + } + cobj->removeUnusedSpriteFrames(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeUnusedSpriteFrames",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrameByName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:removeSpriteFrameByName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrameByName'", nullptr); + return 0; + } + cobj->removeSpriteFrameByName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFrameByName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrameByName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:removeSpriteFramesFromFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); + return 0; + } + cobj->removeSpriteFramesFromFile(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFramesFromFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:removeSpriteFramesFromFileContent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); + return 0; + } + cobj->removeSpriteFramesFromFileContent(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFramesFromFileContent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteFrameCache:removeSpriteFramesFromTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); + return 0; + } + cobj->removeSpriteFramesFromTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFramesFromTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) { int argc = 0; @@ -67919,6 +68058,156 @@ int lua_ax_base_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) return 0; } +int lua_ax_base_SpriteFrameCache_reloadTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_reloadTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:reloadTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_reloadTexture'", nullptr); + return 0; + } + auto&& ret = cobj->reloadTexture(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:reloadTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_reloadTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_findFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_findFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:findFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_findFrame'", nullptr); + return 0; + } + auto&& ret = cobj->findFrame(arg0); + object_to_luaval(tolua_S, "ax.SpriteFrame",(ax::SpriteFrame*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:findFrame",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_findFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteFrameCache_eraseFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteFrameCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_eraseFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:eraseFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_eraseFrame'", nullptr); + return 0; + } + auto&& ret = cobj->eraseFrame(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:eraseFrame",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_eraseFrame'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpriteFrameCache_addSpriteFrameCapInset(lua_State* tolua_S) { int argc = 0; @@ -67975,150 +68264,6 @@ int lua_ax_base_SpriteFrameCache_addSpriteFrameCapInset(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:removeSpriteFramesFromFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); - return 0; - } - cobj->removeSpriteFramesFromFile(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFramesFromFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_init(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrames'", nullptr); - return 0; - } - cobj->removeSpriteFrames(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFrames",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrames'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_SpriteFrameCache_deregisterSpriteSheetLoader(lua_State* tolua_S) { int argc = 0; @@ -68169,7 +68314,7 @@ int lua_ax_base_SpriteFrameCache_deregisterSpriteSheetLoader(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) +int lua_ax_base_SpriteFrameCache_getSpriteSheetLoader(lua_State* tolua_S) { int argc = 0; ax::SpriteFrameCache* cobj = nullptr; @@ -68189,54 +68334,7 @@ int lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); - return 0; - } - cobj->removeUnusedSpriteFrames(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeUnusedSpriteFrames",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_getSpriteSheetLoader'", nullptr); return 0; } #endif @@ -68244,262 +68342,28 @@ int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* to argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + unsigned int arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:removeSpriteFramesFromFileContent"); + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.SpriteFrameCache:getSpriteSheetLoader"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_getSpriteSheetLoader'", nullptr); return 0; } - cobj->removeSpriteFramesFromFileContent(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getSpriteSheetLoader(arg0); + object_to_luaval(tolua_S, "ax.ISpriteSheetLoader",(ax::ISpriteSheetLoader*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFramesFromFileContent",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:getSpriteSheetLoader",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_getSpriteSheetLoader'.",&tolua_err); #endif return 0; } -int lua_ax_base_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrameByName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:removeSpriteFrameByName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrameByName'", nullptr); - return 0; - } - cobj->removeSpriteFrameByName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFrameByName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFrameByName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_eraseFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_eraseFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:eraseFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_eraseFrame'", nullptr); - return 0; - } - auto&& ret = cobj->eraseFrame(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:eraseFrame",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_eraseFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.SpriteFrameCache:isSpriteFramesWithFileLoaded"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded'", nullptr); - return 0; - } - auto&& ret = cobj->isSpriteFramesWithFileLoaded(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:isSpriteFramesWithFileLoaded",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteFrameCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteFrameCache:removeSpriteFramesFromTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); - return 0; - } - cobj->removeSpriteFramesFromTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteFrameCache:removeSpriteFramesFromTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteFrameCache_destroyInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_destroyInstance'", nullptr); - return 0; - } - ax::SpriteFrameCache::destroyInstance(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.SpriteFrameCache:destroyInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_destroyInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_SpriteFrameCache_getInstance(lua_State* tolua_S) { int argc = 0; @@ -68534,6 +68398,40 @@ int lua_ax_base_SpriteFrameCache_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_SpriteFrameCache_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteFrameCache_destroyInstance'", nullptr); + return 0; + } + ax::SpriteFrameCache::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.SpriteFrameCache:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteFrameCache_destroyInstance'.",&tolua_err); +#endif + return 0; +} static int lua_ax_base_SpriteFrameCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteFrameCache)"); @@ -68546,25 +68444,25 @@ int lua_register_ax_base_SpriteFrameCache(lua_State* tolua_S) tolua_cclass(tolua_S,"SpriteFrameCache","ax.SpriteFrameCache","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"SpriteFrameCache"); - tolua_function(tolua_S,"reloadTexture",lua_ax_base_SpriteFrameCache_reloadTexture); - tolua_function(tolua_S,"getSpriteSheetLoader",lua_ax_base_SpriteFrameCache_getSpriteSheetLoader); - tolua_function(tolua_S,"addSpriteFrame",lua_ax_base_SpriteFrameCache_addSpriteFrame); - tolua_function(tolua_S,"findFrame",lua_ax_base_SpriteFrameCache_findFrame); - tolua_function(tolua_S,"addSpriteFrames",lua_ax_base_SpriteFrameCache_addSpriteFramesWithFile); - tolua_function(tolua_S,"getSpriteFrame",lua_ax_base_SpriteFrameCache_getSpriteFrameByName); - tolua_function(tolua_S,"addSpriteFrameCapInset",lua_ax_base_SpriteFrameCache_addSpriteFrameCapInset); - tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile); tolua_function(tolua_S,"init",lua_ax_base_SpriteFrameCache_init); - tolua_function(tolua_S,"removeSpriteFrames",lua_ax_base_SpriteFrameCache_removeSpriteFrames); - tolua_function(tolua_S,"deregisterSpriteSheetLoader",lua_ax_base_SpriteFrameCache_deregisterSpriteSheetLoader); - tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames); - tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent); - tolua_function(tolua_S,"removeSpriteFrameByName",lua_ax_base_SpriteFrameCache_removeSpriteFrameByName); - tolua_function(tolua_S,"eraseFrame",lua_ax_base_SpriteFrameCache_eraseFrame); + tolua_function(tolua_S,"addSpriteFrames",lua_ax_base_SpriteFrameCache_addSpriteFramesWithFile); + tolua_function(tolua_S,"addSpriteFrame",lua_ax_base_SpriteFrameCache_addSpriteFrame); tolua_function(tolua_S,"isSpriteFramesWithFileLoaded",lua_ax_base_SpriteFrameCache_isSpriteFramesWithFileLoaded); + tolua_function(tolua_S,"removeSpriteFrames",lua_ax_base_SpriteFrameCache_removeSpriteFrames); + tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_ax_base_SpriteFrameCache_removeUnusedSpriteFrames); + tolua_function(tolua_S,"removeSpriteFrameByName",lua_ax_base_SpriteFrameCache_removeSpriteFrameByName); + tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFile); + tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_ax_base_SpriteFrameCache_removeSpriteFramesFromFileContent); tolua_function(tolua_S,"removeSpriteFramesFromTexture",lua_ax_base_SpriteFrameCache_removeSpriteFramesFromTexture); - tolua_function(tolua_S,"destroyInstance", lua_ax_base_SpriteFrameCache_destroyInstance); + tolua_function(tolua_S,"getSpriteFrame",lua_ax_base_SpriteFrameCache_getSpriteFrameByName); + tolua_function(tolua_S,"reloadTexture",lua_ax_base_SpriteFrameCache_reloadTexture); + tolua_function(tolua_S,"findFrame",lua_ax_base_SpriteFrameCache_findFrame); + tolua_function(tolua_S,"eraseFrame",lua_ax_base_SpriteFrameCache_eraseFrame); + tolua_function(tolua_S,"addSpriteFrameCapInset",lua_ax_base_SpriteFrameCache_addSpriteFrameCapInset); + tolua_function(tolua_S,"deregisterSpriteSheetLoader",lua_ax_base_SpriteFrameCache_deregisterSpriteSheetLoader); + tolua_function(tolua_S,"getSpriteSheetLoader",lua_ax_base_SpriteFrameCache_getSpriteSheetLoader); tolua_function(tolua_S,"getInstance", lua_ax_base_SpriteFrameCache_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_base_SpriteFrameCache_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::SpriteFrameCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.SpriteFrameCache"; @@ -68572,6 +68470,56 @@ int lua_register_ax_base_SpriteFrameCache(lua_State* tolua_S) return 1; } +int lua_ax_base_ParticleData_init(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleData_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleData:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleData_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleData:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleData_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ParticleData_release(lua_State* tolua_S) { int argc = 0; @@ -68666,56 +68614,6 @@ int lua_ax_base_ParticleData_getMaxCount(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleData_init(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleData_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleData:init"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleData_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleData:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleData_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ParticleData_copyParticle(lua_State* tolua_S) { int argc = 0; @@ -68817,9 +68715,9 @@ int lua_register_ax_base_ParticleData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ParticleData"); tolua_function(tolua_S,"new",lua_ax_base_ParticleData_constructor); + tolua_function(tolua_S,"init",lua_ax_base_ParticleData_init); tolua_function(tolua_S,"release",lua_ax_base_ParticleData_release); tolua_function(tolua_S,"getMaxCount",lua_ax_base_ParticleData_getMaxCount); - tolua_function(tolua_S,"init",lua_ax_base_ParticleData_init); tolua_function(tolua_S,"copyParticle",lua_ax_base_ParticleData_copyParticle); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ParticleData).name(); // rtti is literal storage @@ -69035,56 +68933,6 @@ int lua_ax_base_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleEmissionMaskCache_removeMask(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleEmissionMaskCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleEmissionMaskCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleEmissionMaskCache_removeMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleEmissionMaskCache:removeMask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleEmissionMaskCache_removeMask'", nullptr); - return 0; - } - cobj->removeMask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleEmissionMaskCache:removeMask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleEmissionMaskCache_removeMask'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) { int argc = 0; @@ -69140,6 +68988,56 @@ int lua_ax_base_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) return 0; } +int lua_ax_base_ParticleEmissionMaskCache_removeMask(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleEmissionMaskCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleEmissionMaskCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleEmissionMaskCache_removeMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleEmissionMaskCache:removeMask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleEmissionMaskCache_removeMask'", nullptr); + return 0; + } + cobj->removeMask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleEmissionMaskCache:removeMask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleEmissionMaskCache_removeMask'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ParticleEmissionMaskCache_removeAllMasks(lua_State* tolua_S) { int argc = 0; @@ -69234,8 +69132,8 @@ int lua_register_ax_base_ParticleEmissionMaskCache(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ParticleEmissionMaskCache"); tolua_function(tolua_S,"bakeEmissionMask",lua_ax_base_ParticleEmissionMaskCache_bakeEmissionMask); - tolua_function(tolua_S,"removeMask",lua_ax_base_ParticleEmissionMaskCache_removeMask); tolua_function(tolua_S,"getEmissionMask",lua_ax_base_ParticleEmissionMaskCache_getEmissionMask); + tolua_function(tolua_S,"removeMask",lua_ax_base_ParticleEmissionMaskCache_removeMask); tolua_function(tolua_S,"removeAllMasks",lua_ax_base_ParticleEmissionMaskCache_removeAllMasks); tolua_function(tolua_S,"getInstance", lua_ax_base_ParticleEmissionMaskCache_getInstance); tolua_endmodule(tolua_S); @@ -69245,7 +69143,7 @@ int lua_register_ax_base_ParticleEmissionMaskCache(lua_State* tolua_S) return 1; } -int lua_ax_base_ParticleSystem_getStartSizeVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_addParticles(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69265,145 +69163,74 @@ int lua_ax_base_ParticleSystem_getStartSizeVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSizeVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:addParticles"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSizeVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); return 0; } - auto&& ret = cobj->getStartSizeVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->addParticles(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSizeVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSizeVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAnimationDescriptor(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 2) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationDescriptor'", nullptr); - return 0; + int arg0; + int arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:addParticles"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleSystem:addParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); + return 0; + } + cobj->addParticles(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - std::vector arg0; - ok &= luaval_to_std_vector_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); + if (argc == 3) + { + int arg0; + int arg1; + int arg2; - if (!ok) { break; } - cobj->setAnimationDescriptor(arg0); - lua_settop(tolua_S, 1); - return 1; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:addParticles"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleSystem:addParticles"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.ParticleSystem:addParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 2) { - std::vector arg0; - ok &= luaval_to_std_vector_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - bool arg1; - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - cobj->setAnimationDescriptor(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 4) { - unsigned short arg0; - ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - std::vector arg3; - ok &= luaval_to_std_vector_ushort(tolua_S, 5, &arg3, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - cobj->setAnimationDescriptor(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 5) { - unsigned short arg0; - ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - std::vector arg3; - ok &= luaval_to_std_vector_ushort(tolua_S, 5, &arg3, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - bool arg4; - ok &= luaval_to_boolean(tolua_S, 6,&arg4, "ax.ParticleSystem:setAnimationDescriptor"); - - if (!ok) { break; } - cobj->setAnimationDescriptor(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationDescriptor",argc, 4); + cobj->addParticles(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:addParticles",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationDescriptor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_addParticles'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_getTexture(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_stopSystem(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69423,7 +69250,7 @@ int lua_ax_base_ParticleSystem_getTexture(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTexture'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_stopSystem'", nullptr); return 0; } #endif @@ -69433,19 +69260,66 @@ int lua_ax_base_ParticleSystem_getTexture(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTexture'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_stopSystem'", nullptr); return 0; } - auto&& ret = cobj->getTexture(); - object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); + cobj->stopSystem(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTexture",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:stopSystem",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTexture'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_stopSystem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_resetSystem(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetSystem'", nullptr); + return 0; + } + cobj->resetSystem(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetSystem",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetSystem'.",&tolua_err); #endif return 0; @@ -69497,7 +69371,7 @@ int lua_ax_base_ParticleSystem_isFull(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_getBatchNode(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_updateParticleQuads(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69517,7 +69391,7 @@ int lua_ax_base_ParticleSystem_getBatchNode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getBatchNode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_updateParticleQuads'", nullptr); return 0; } #endif @@ -69527,215 +69401,24 @@ int lua_ax_base_ParticleSystem_getBatchNode(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getBatchNode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_updateParticleQuads'", nullptr); return 0; } - auto&& ret = cobj->getBatchNode(); - object_to_luaval(tolua_S, "ax.ParticleBatchNode",(ax::ParticleBatchNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getBatchNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getBatchNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getStartColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartColor'", nullptr); - return 0; - } - auto&& ret = cobj->getStartColor(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getPositionType(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getPositionType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getPositionType'", nullptr); - return 0; - } - int ret = (int)cobj->getPositionType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getPositionType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getPositionType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpawnAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getSpawnAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setPosVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setPosVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:setPosVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setPosVar'", nullptr); - return 0; - } - cobj->setPosVar(arg0); + cobj->updateParticleQuads(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setPosVar",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:updateParticleQuads",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setPosVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_updateParticleQuads'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_getEndSpin(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_postStep(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69755,7 +69438,7 @@ int lua_ax_base_ParticleSystem_getEndSpin(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSpin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_postStep'", nullptr); return 0; } #endif @@ -69765,121 +69448,24 @@ int lua_ax_base_ParticleSystem_getEndSpin(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSpin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_postStep'", nullptr); return 0; } - auto&& ret = cobj->getEndSpin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSpin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSpin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpawnScaleInVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnScaleInVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnScaleInVar'", nullptr); - return 0; - } - auto&& ret = cobj->getSpawnScaleInVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnScaleInVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnScaleInVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRotatePerSecondVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setRotatePerSecondVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRotatePerSecondVar'", nullptr); - return 0; - } - cobj->setRotatePerSecondVar(arg0); + cobj->postStep(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRotatePerSecondVar",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:postStep",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRotatePerSecondVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_postStep'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_updateWithNoTime(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69899,7 +69485,101 @@ int lua_ax_base_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSourcePositionCompatible'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_updateWithNoTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_updateWithNoTime'", nullptr); + return 0; + } + cobj->updateWithNoTime(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:updateWithNoTime",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_updateWithNoTime'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isAutoRemoveOnFinish'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isAutoRemoveOnFinish'", nullptr); + return 0; + } + auto&& ret = cobj->isAutoRemoveOnFinish(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isAutoRemoveOnFinish",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isAutoRemoveOnFinish'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAutoRemoveOnFinish'", nullptr); return 0; } #endif @@ -69909,27 +69589,27 @@ int lua_ax_base_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setSourcePositionCompatible"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setAutoRemoveOnFinish"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSourcePositionCompatible'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAutoRemoveOnFinish'", nullptr); return 0; } - cobj->setSourcePositionCompatible(arg0); + cobj->setAutoRemoveOnFinish(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSourcePositionCompatible",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAutoRemoveOnFinish",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSourcePositionCompatible'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAutoRemoveOnFinish'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_getStartSpinVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getGravity(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69949,7 +69629,7 @@ int lua_ax_base_ParticleSystem_getStartSpinVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSpinVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getGravity'", nullptr); return 0; } #endif @@ -69959,24 +69639,24 @@ int lua_ax_base_ParticleSystem_getStartSpinVar(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSpinVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getGravity'", nullptr); return 0; } - auto&& ret = cobj->getStartSpinVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getGravity(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSpinVar",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getGravity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSpinVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getGravity'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setGravity(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -69996,123 +69676,273 @@ int lua_ax_base_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRadialAccelVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setGravity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:setGravity"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRadialAccelVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setGravity'", nullptr); return 0; } - auto&& ret = cobj->getRadialAccelVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRadialAccelVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRadialAccelVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndSizeVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSizeVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSizeVar'", nullptr); - return 0; - } - auto&& ret = cobj->getEndSizeVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSizeVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSizeVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_resetAnimationIndices(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetAnimationIndices'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetAnimationIndices'", nullptr); - return 0; - } - cobj->resetAnimationIndices(); + cobj->setGravity(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetAnimationIndices",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setGravity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetAnimationIndices'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setGravity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpeed(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpeed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpeed'", nullptr); + return 0; + } + auto&& ret = cobj->getSpeed(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpeed",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpeed(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpeed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpeed"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpeed'", nullptr); + return 0; + } + cobj->setSpeed(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpeed",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpeedVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpeedVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpeedVar'", nullptr); + return 0; + } + auto&& ret = cobj->getSpeedVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpeedVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpeedVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpeedVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpeedVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpeedVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpeedVar'", nullptr); + return 0; + } + cobj->setSpeedVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpeedVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpeedVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getTangentialAccel(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTangentialAccel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTangentialAccel'", nullptr); + return 0; + } + auto&& ret = cobj->getTangentialAccel(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTangentialAccel",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTangentialAccel'.",&tolua_err); #endif return 0; @@ -70167,7 +69997,7 @@ int lua_ax_base_ParticleSystem_setTangentialAccel(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -70187,7 +70017,7 @@ int lua_ax_base_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTotalAnimationIndices'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTangentialAccelVar'", nullptr); return 0; } #endif @@ -70197,19 +70027,69 @@ int lua_ax_base_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTotalAnimationIndices'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTangentialAccelVar'", nullptr); return 0; } - auto&& ret = cobj->getTotalAnimationIndices(); + auto&& ret = cobj->getTangentialAccelVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTotalAnimationIndices",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTangentialAccelVar",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTotalAnimationIndices'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTangentialAccelVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTangentialAccelVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setTangentialAccelVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTangentialAccelVar'", nullptr); + return 0; + } + cobj->setTangentialAccelVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTangentialAccelVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTangentialAccelVar'.",&tolua_err); #endif return 0; @@ -70261,7 +70141,7 @@ int lua_ax_base_ParticleSystem_getRadialAccel(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_getHue(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setRadialAccel(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -70281,7 +70161,57 @@ int lua_ax_base_ParticleSystem_getHue(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHue'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRadialAccel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setRadialAccel"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRadialAccel'", nullptr); + return 0; + } + cobj->setRadialAccel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRadialAccel",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRadialAccel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRadialAccelVar'", nullptr); return 0; } #endif @@ -70291,19 +70221,601 @@ int lua_ax_base_ParticleSystem_getHue(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHue'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRadialAccelVar'", nullptr); return 0; } - auto&& ret = cobj->getHue(); + auto&& ret = cobj->getRadialAccelVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHue",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRadialAccelVar",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHue'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRadialAccelVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRadialAccelVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setRadialAccelVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRadialAccelVar'", nullptr); + return 0; + } + cobj->setRadialAccelVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRadialAccelVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRadialAccelVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getRotationIsDir(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRotationIsDir'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRotationIsDir'", nullptr); + return 0; + } + auto&& ret = cobj->getRotationIsDir(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRotationIsDir",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRotationIsDir'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setRotationIsDir(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRotationIsDir'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setRotationIsDir"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRotationIsDir'", nullptr); + return 0; + } + cobj->setRotationIsDir(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRotationIsDir",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRotationIsDir'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getStartRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getStartRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartRadius"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartRadius'", nullptr); + return 0; + } + cobj->setStartRadius(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartRadius",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartRadiusVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartRadiusVar'", nullptr); + return 0; + } + auto&& ret = cobj->getStartRadiusVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartRadiusVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartRadiusVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartRadiusVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartRadiusVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartRadiusVar'", nullptr); + return 0; + } + cobj->setStartRadiusVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartRadiusVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartRadiusVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getEndRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndRadius"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndRadius'", nullptr); + return 0; + } + cobj->setEndRadius(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndRadius",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndRadiusVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndRadiusVar'", nullptr); + return 0; + } + auto&& ret = cobj->getEndRadiusVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndRadiusVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndRadiusVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndRadiusVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndRadiusVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndRadiusVar'", nullptr); + return 0; + } + cobj->setEndRadiusVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndRadiusVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndRadiusVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRotatePerSecond'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRotatePerSecond'", nullptr); + return 0; + } + auto&& ret = cobj->getRotatePerSecond(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRotatePerSecond",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRotatePerSecond'.",&tolua_err); #endif return 0; @@ -70358,6 +70870,1505 @@ int lua_ax_base_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) return 0; } +int lua_ax_base_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRotatePerSecondVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRotatePerSecondVar'", nullptr); + return 0; + } + auto&& ret = cobj->getRotatePerSecondVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRotatePerSecondVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRotatePerSecondVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRotatePerSecondVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setRotatePerSecondVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRotatePerSecondVar'", nullptr); + return 0; + } + cobj->setRotatePerSecondVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRotatePerSecondVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRotatePerSecondVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isActive(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isActive'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isActive'", nullptr); + return 0; + } + auto&& ret = cobj->isActive(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isActive",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isActive'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isBlendAdditive(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isBlendAdditive'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isBlendAdditive'", nullptr); + return 0; + } + auto&& ret = cobj->isBlendAdditive(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isBlendAdditive",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isBlendAdditive'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setBlendAdditive(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setBlendAdditive'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setBlendAdditive"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setBlendAdditive'", nullptr); + return 0; + } + cobj->setBlendAdditive(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setBlendAdditive",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setBlendAdditive'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getBatchNode(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getBatchNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getBatchNode'", nullptr); + return 0; + } + auto&& ret = cobj->getBatchNode(); + object_to_luaval(tolua_S, "ax.ParticleBatchNode",(ax::ParticleBatchNode*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getBatchNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getBatchNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setBatchNode(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setBatchNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ParticleBatchNode* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.ParticleBatchNode",&arg0, "ax.ParticleSystem:setBatchNode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setBatchNode'", nullptr); + return 0; + } + cobj->setBatchNode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setBatchNode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setBatchNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getAtlasIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getAtlasIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAtlasIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getAtlasIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getAtlasIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAtlasIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setAtlasIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAtlasIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setAtlasIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAtlasIndex'", nullptr); + return 0; + } + cobj->setAtlasIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAtlasIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAtlasIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getParticleCount(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getParticleCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getParticleCount'", nullptr); + return 0; + } + auto&& ret = cobj->getParticleCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getParticleCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getParticleCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getDuration'", nullptr); + return 0; + } + auto&& ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getDuration",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setDuration'", nullptr); + return 0; + } + cobj->setDuration(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setDuration",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSourcePosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSourcePosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSourcePosition'", nullptr); + return 0; + } + auto&& ret = cobj->getSourcePosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSourcePosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSourcePosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSourcePosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSourcePosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:setSourcePosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSourcePosition'", nullptr); + return 0; + } + cobj->setSourcePosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSourcePosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSourcePosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getPosVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getPosVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getPosVar'", nullptr); + return 0; + } + auto&& ret = cobj->getPosVar(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getPosVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getPosVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setPosVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setPosVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:setPosVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setPosVar'", nullptr); + return 0; + } + cobj->setPosVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setPosVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setPosVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getLife(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getLife'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getLife'", nullptr); + return 0; + } + auto&& ret = cobj->getLife(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getLife",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getLife'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setLife(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLife'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setLife"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLife'", nullptr); + return 0; + } + cobj->setLife(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLife",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLife'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getLifeVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getLifeVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getLifeVar'", nullptr); + return 0; + } + auto&& ret = cobj->getLifeVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getLifeVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getLifeVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setLifeVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLifeVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setLifeVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLifeVar'", nullptr); + return 0; + } + cobj->setLifeVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLifeVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLifeVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setAngle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAngle'", nullptr); + return 0; + } + cobj->setAngle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAngle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getAngleVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getAngleVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAngleVar'", nullptr); + return 0; + } + auto&& ret = cobj->getAngleVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getAngleVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAngleVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setAngleVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAngleVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setAngleVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAngleVar'", nullptr); + return 0; + } + cobj->setAngleVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAngleVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAngleVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEmitterMode(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEmitterMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEmitterMode'", nullptr); + return 0; + } + int ret = (int)cobj->getEmitterMode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEmitterMode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEmitterMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEmitterMode(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmitterMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ParticleSystem::Mode arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setEmitterMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmitterMode'", nullptr); + return 0; + } + cobj->setEmitterMode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmitterMode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmitterMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getStartSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSize'", nullptr); + return 0; + } + auto&& ret = cobj->getStartSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartSize'", nullptr); + return 0; + } + cobj->setStartSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getStartSizeVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSizeVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSizeVar'", nullptr); + return 0; + } + auto&& ret = cobj->getStartSizeVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSizeVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSizeVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartSizeVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartSizeVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartSizeVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartSizeVar'", nullptr); + return 0; + } + cobj->setStartSizeVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartSizeVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartSizeVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSize'", nullptr); + return 0; + } + auto&& ret = cobj->getEndSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSize'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ParticleSystem_setEndSize(lua_State* tolua_S) { int argc = 0; @@ -70408,7 +72419,7 @@ int lua_ax_base_ParticleSystem_setEndSize(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getEndSizeVar(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -70428,7 +72439,7 @@ int lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* t #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSizeVar'", nullptr); return 0; } #endif @@ -70438,19 +72449,893 @@ int lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* t { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSizeVar'", nullptr); return 0; } - auto&& ret = cobj->isAnimationSpeedTimescaleIndependent(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getEndSizeVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isAnimationSpeedTimescaleIndependent",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSizeVar",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSizeVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndSizeVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndSizeVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndSizeVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndSizeVar'", nullptr); + return 0; + } + cobj->setEndSizeVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndSizeVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndSizeVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getStartColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartColor'", nullptr); + return 0; + } + auto&& ret = cobj->getStartColor(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4F arg0; + + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setStartColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartColor'", nullptr); + return 0; + } + cobj->setStartColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getStartColorVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartColorVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartColorVar'", nullptr); + return 0; + } + auto&& ret = cobj->getStartColorVar(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartColorVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartColorVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartColorVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartColorVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4F arg0; + + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setStartColorVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartColorVar'", nullptr); + return 0; + } + cobj->setStartColorVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartColorVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartColorVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndColor'", nullptr); + return 0; + } + auto&& ret = cobj->getEndColor(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4F arg0; + + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setEndColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndColor'", nullptr); + return 0; + } + cobj->setEndColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndColorVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndColorVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndColorVar'", nullptr); + return 0; + } + auto&& ret = cobj->getEndColorVar(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndColorVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndColorVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndColorVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndColorVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4F arg0; + + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setEndColorVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndColorVar'", nullptr); + return 0; + } + cobj->setEndColorVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndColorVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndColorVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_useHSV(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_useHSV'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:useHSV"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_useHSV'", nullptr); + return 0; + } + cobj->useHSV(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:useHSV",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_useHSV'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isHSV(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isHSV'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isHSV'", nullptr); + return 0; + } + auto&& ret = cobj->isHSV(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isHSV",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isHSV'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getHue(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHue'", nullptr); + return 0; + } + auto&& ret = cobj->getHue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHue",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHue'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setHue(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setHue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setHue"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setHue'", nullptr); + return 0; + } + cobj->setHue(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setHue",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setHue'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getHueVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHueVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHueVar'", nullptr); + return 0; + } + auto&& ret = cobj->getHueVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHueVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHueVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setHueVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setHueVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setHueVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setHueVar'", nullptr); + return 0; + } + cobj->setHueVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setHueVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setHueVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getHSV(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHSV'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHSV'", nullptr); + return 0; + } + auto&& ret = cobj->getHSV(); + #pragma warning NO CONVERSION FROM NATIVE FOR HSV; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHSV",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHSV'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setHSV(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setHSV'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::HSV arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR HSV + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setHSV'", nullptr); + return 0; + } + cobj->setHSV(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setHSV",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setHSV'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getHSVVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHSVVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHSVVar'", nullptr); + return 0; + } + auto&& ret = cobj->getHSVVar(); + #pragma warning NO CONVERSION FROM NATIVE FOR HSV; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHSVVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHSVVar'.",&tolua_err); #endif return 0; @@ -70506,7 +73391,7 @@ int lua_ax_base_ParticleSystem_setHSVVar(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_getGravity(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getStartSpin(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -70526,7 +73411,7 @@ int lua_ax_base_ParticleSystem_getGravity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getGravity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSpin'", nullptr); return 0; } #endif @@ -70536,451 +73421,19 @@ int lua_ax_base_ParticleSystem_getGravity(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getGravity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSpin'", nullptr); return 0; } - auto&& ret = cobj->getGravity(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getGravity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getGravity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_resumeEmissions(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resumeEmissions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resumeEmissions'", nullptr); - return 0; - } - cobj->resumeEmissions(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resumeEmissions",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resumeEmissions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getTangentialAccel(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTangentialAccel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTangentialAccel'", nullptr); - return 0; - } - auto&& ret = cobj->getTangentialAccel(); + auto&& ret = cobj->getStartSpin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTangentialAccel",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSpin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTangentialAccel'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEndRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndRadius"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndRadius'", nullptr); - return 0; - } - cobj->setEndRadius(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndRadius",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpeed(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpeed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpeed'", nullptr); - return 0; - } - auto&& ret = cobj->getSpeed(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpeed",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpeed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_pauseEmissions(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_pauseEmissions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_pauseEmissions'", nullptr); - return 0; - } - cobj->pauseEmissions(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:pauseEmissions",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_pauseEmissions'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isLoopAnimated(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isLoopAnimated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isLoopAnimated'", nullptr); - return 0; - } - auto&& ret = cobj->isLoopAnimated(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isLoopAnimated",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isLoopAnimated'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setLifeAnimation(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLifeAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setLifeAnimation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLifeAnimation'", nullptr); - return 0; - } - cobj->setLifeAnimation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLifeAnimation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLifeAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEndColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4F arg0; - - ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setEndColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndColor'", nullptr); - return 0; - } - cobj->setEndColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndColor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSpin'.",&tolua_err); #endif return 0; @@ -71035,7 +73488,7 @@ int lua_ax_base_ParticleSystem_setStartSpin(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_setDuration(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getStartSpinVar(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -71055,7 +73508,54 @@ int lua_ax_base_ParticleSystem_setDuration(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setDuration'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSpinVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSpinVar'", nullptr); + return 0; + } + auto&& ret = cobj->getStartSpinVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSpinVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSpinVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setStartSpinVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartSpinVar'", nullptr); return 0; } #endif @@ -71065,22 +73565,1685 @@ int lua_ax_base_ParticleSystem_setDuration(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setDuration"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartSpinVar"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setDuration'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartSpinVar'", nullptr); return 0; } - cobj->setDuration(arg0); + cobj->setStartSpinVar(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setDuration",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartSpinVar",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setDuration'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartSpinVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndSpin(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSpin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSpin'", nullptr); + return 0; + } + auto&& ret = cobj->getEndSpin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSpin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSpin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndSpin(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndSpin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndSpin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndSpin'", nullptr); + return 0; + } + cobj->setEndSpin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndSpin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndSpin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEndSpinVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSpinVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSpinVar'", nullptr); + return 0; + } + auto&& ret = cobj->getEndSpinVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSpinVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSpinVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEndSpinVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndSpinVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndSpinVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndSpinVar'", nullptr); + return 0; + } + cobj->setEndSpinVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndSpinVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndSpinVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpawnAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getSpawnAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpawnAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnAngle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnAngle'", nullptr); + return 0; + } + cobj->setSpawnAngle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnAngle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnAngleVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnAngleVar'", nullptr); + return 0; + } + auto&& ret = cobj->getSpawnAngleVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnAngleVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnAngleVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpawnAngleVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnAngleVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnAngleVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnAngleVar'", nullptr); + return 0; + } + cobj->setSpawnAngleVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnAngleVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnAngleVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpawnFadeIn(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnFadeIn'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnFadeIn'", nullptr); + return 0; + } + auto&& ret = cobj->getSpawnFadeIn(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnFadeIn",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnFadeIn'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpawnFadeIn(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnFadeIn'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnFadeIn"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnFadeIn'", nullptr); + return 0; + } + cobj->setSpawnFadeIn(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnFadeIn",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnFadeIn'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpawnFadeInVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnFadeInVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnFadeInVar'", nullptr); + return 0; + } + auto&& ret = cobj->getSpawnFadeInVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnFadeInVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnFadeInVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpawnFadeInVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnFadeInVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnFadeInVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnFadeInVar'", nullptr); + return 0; + } + cobj->setSpawnFadeInVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnFadeInVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnFadeInVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpawnScaleIn(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnScaleIn'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnScaleIn'", nullptr); + return 0; + } + auto&& ret = cobj->getSpawnScaleIn(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnScaleIn",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnScaleIn'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpawnScaleIn(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnScaleIn'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnScaleIn"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnScaleIn'", nullptr); + return 0; + } + cobj->setSpawnScaleIn(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnScaleIn",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnScaleIn'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getSpawnScaleInVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnScaleInVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnScaleInVar'", nullptr); + return 0; + } + auto&& ret = cobj->getSpawnScaleInVar(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnScaleInVar",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnScaleInVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setSpawnScaleInVar(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnScaleInVar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnScaleInVar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnScaleInVar'", nullptr); + return 0; + } + cobj->setSpawnScaleInVar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnScaleInVar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnScaleInVar'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getEmissionRate(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEmissionRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEmissionRate'", nullptr); + return 0; + } + auto&& ret = cobj->getEmissionRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEmissionRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEmissionRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEmissionRate(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmissionRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEmissionRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmissionRate'", nullptr); + return 0; + } + cobj->setEmissionRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmissionRate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmissionRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTotalParticles'", nullptr); + return 0; + } + auto&& ret = cobj->getTotalParticles(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTotalParticles",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTotalParticles'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTotalParticles'", nullptr); + return 0; + } + cobj->setTotalParticles(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTotalParticles",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTotalParticles'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setLifeAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLifeAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setLifeAnimation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLifeAnimation'", nullptr); + return 0; + } + cobj->setLifeAnimation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLifeAnimation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLifeAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmitterAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setEmitterAnimation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmitterAnimation'", nullptr); + return 0; + } + cobj->setEmitterAnimation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmitterAnimation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmitterAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setLoopAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLoopAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setLoopAnimation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLoopAnimation'", nullptr); + return 0; + } + cobj->setLoopAnimation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLoopAnimation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLoopAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isLifeAnimated(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isLifeAnimated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isLifeAnimated'", nullptr); + return 0; + } + auto&& ret = cobj->isLifeAnimated(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isLifeAnimated",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isLifeAnimated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isEmitterAnimated(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isEmitterAnimated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isEmitterAnimated'", nullptr); + return 0; + } + auto&& ret = cobj->isEmitterAnimated(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isEmitterAnimated",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isEmitterAnimated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isLoopAnimated(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isLoopAnimated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isLoopAnimated'", nullptr); + return 0; + } + auto&& ret = cobj->isLoopAnimated(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isLoopAnimated",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isLoopAnimated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTotalAnimationIndices'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTotalAnimationIndices'", nullptr); + return 0; + } + auto&& ret = cobj->getTotalAnimationIndices(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTotalAnimationIndices",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTotalAnimationIndices'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setAnimationReverse(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationReverse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationReverse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAnimationReverse'", nullptr); + return 0; + } + cobj->setAnimationReverse(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationReverse",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationReverse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isAnimationReversed(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isAnimationReversed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isAnimationReversed'", nullptr); + return 0; + } + auto&& ret = cobj->isAnimationReversed(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isAnimationReversed",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isAnimationReversed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_resetAnimationIndices(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetAnimationIndices'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetAnimationIndices'", nullptr); + return 0; + } + cobj->resetAnimationIndices(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetAnimationIndices",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetAnimationIndices'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_resetAnimationDescriptors(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetAnimationDescriptors'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetAnimationDescriptors'", nullptr); + return 0; + } + cobj->resetAnimationDescriptors(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetAnimationDescriptors",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetAnimationDescriptors'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::vector arg0; + + ok &= luaval_to_std_vector_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setMultiAnimationRandomSpecific"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific'", nullptr); + return 0; + } + cobj->setMultiAnimationRandomSpecific(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setMultiAnimationRandomSpecific",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandom'", nullptr); + return 0; + } + cobj->setMultiAnimationRandom(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setMultiAnimationRandom",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandom'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setAnimationIndicesAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationIndicesAtlas'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + unsigned int arg0; + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationIndicesAtlas"); + + if (!ok) { break; } + cobj->setAnimationIndicesAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + unsigned int arg0; + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationIndicesAtlas"); + + if (!ok) { break; } + ax::ParticleSystem::TexAnimDir arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleSystem:setAnimationIndicesAtlas"); + + if (!ok) { break; } + cobj->setAnimationIndicesAtlas(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->setAnimationIndicesAtlas(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationIndicesAtlas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationIndicesAtlas'.",&tolua_err); #endif return 0; @@ -71208,7 +75371,7 @@ int lua_ax_base_ParticleSystem_addAnimationIndex(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setRectForUndefinedIndices(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -71228,7 +75391,7 @@ int lua_ax_base_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_initWithTotalParticles'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRectForUndefinedIndices'", nullptr); return 0; } #endif @@ -71236,166 +75399,140 @@ int lua_ax_base_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + ax::Rect arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:initWithTotalParticles"); + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.ParticleSystem:setRectForUndefinedIndices"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_initWithTotalParticles'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRectForUndefinedIndices'", nullptr); return 0; } - auto&& ret = cobj->initWithTotalParticles(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:initWithTotalParticles",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_initWithTotalParticles'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_addParticles(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:addParticles"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); - return 0; - } - cobj->addParticles(arg0); + cobj->setRectForUndefinedIndices(arg0); lua_settop(tolua_S, 1); return 1; } - if (argc == 2) - { - int arg0; - int arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:addParticles"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleSystem:addParticles"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); - return 0; - } - cobj->addParticles(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 3) - { - int arg0; - int arg1; - int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:addParticles"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleSystem:addParticles"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.ParticleSystem:addParticles"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addParticles'", nullptr); - return 0; - } - cobj->addParticles(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:addParticles",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRectForUndefinedIndices",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_addParticles'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRectForUndefinedIndices'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setTexture(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setAnimationDescriptor(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTexture'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationDescriptor'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; + do{ + if (argc == 1) { + std::vector arg0; + ok &= luaval_to_std_vector_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.ParticleSystem:setTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTexture'", nullptr); - return 0; + if (!ok) { break; } + cobj->setAnimationDescriptor(arg0); + lua_settop(tolua_S, 1); + return 1; } - cobj->setTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTexture",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 2) { + std::vector arg0; + ok &= luaval_to_std_vector_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + cobj->setAnimationDescriptor(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 4) { + unsigned short arg0; + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + std::vector arg3; + ok &= luaval_to_std_vector_ushort(tolua_S, 5, &arg3, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + cobj->setAnimationDescriptor(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 5) { + unsigned short arg0; + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + std::vector arg3; + ok &= luaval_to_std_vector_ushort(tolua_S, 5, &arg3, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + bool arg4; + ok &= luaval_to_boolean(tolua_S, 6,&arg4, "ax.ParticleSystem:setAnimationDescriptor"); + + if (!ok) { break; } + cobj->setAnimationDescriptor(arg0, arg1, arg2, arg3, arg4); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationDescriptor",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTexture'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationDescriptor'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setSpawnFadeInVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -71415,489 +75552,7 @@ int lua_ax_base_ParticleSystem_setSpawnFadeInVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnFadeInVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnFadeInVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnFadeInVar'", nullptr); - return 0; - } - cobj->setSpawnFadeInVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnFadeInVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnFadeInVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getPosVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getPosVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getPosVar'", nullptr); - return 0; - } - auto&& ret = cobj->getPosVar(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getPosVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getPosVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_updateWithNoTime(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_updateWithNoTime'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_updateWithNoTime'", nullptr); - return 0; - } - cobj->updateWithNoTime(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:updateWithNoTime",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_updateWithNoTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isBlendAdditive(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isBlendAdditive'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isBlendAdditive'", nullptr); - return 0; - } - auto&& ret = cobj->isBlendAdditive(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isBlendAdditive",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isBlendAdditive'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpeedVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpeedVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpeedVar'", nullptr); - return 0; - } - auto&& ret = cobj->getSpeedVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpeedVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpeedVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setPositionType(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setPositionType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ParticleSystem::PositionType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setPositionType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setPositionType'", nullptr); - return 0; - } - cobj->setPositionType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setPositionType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setPositionType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_stopSystem(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_stopSystem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_stopSystem'", nullptr); - return 0; - } - cobj->stopSystem(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:stopSystem",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_stopSystem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSourcePosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSourcePosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSourcePosition'", nullptr); - return 0; - } - auto&& ret = cobj->getSourcePosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSourcePosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSourcePosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setLifeVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLifeVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setLifeVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLifeVar'", nullptr); - return 0; - } - cobj->setLifeVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLifeVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLifeVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setHue(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setHue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setHue"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setHue'", nullptr); - return 0; - } - cobj->setHue(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setHue",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setHue'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_useHSV(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_useHSV'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent'", nullptr); return 0; } #endif @@ -71907,27 +75562,27 @@ int lua_ax_base_ParticleSystem_useHSV(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:useHSV"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationSpeedTimescaleIndependent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_useHSV'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent'", nullptr); return 0; } - cobj->useHSV(arg0); + cobj->setAnimationSpeedTimescaleIndependent(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:useHSV",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationSpeedTimescaleIndependent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_useHSV'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -71947,7 +75602,54 @@ int lua_ax_base_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmitterAnimation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent'", nullptr); + return 0; + } + auto&& ret = cobj->isAnimationSpeedTimescaleIndependent(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isAnimationSpeedTimescaleIndependent",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setEmissionShapes(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmissionShapes'", nullptr); return 0; } #endif @@ -71957,27 +75659,27 @@ int lua_ax_base_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setEmitterAnimation"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setEmissionShapes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmitterAnimation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmissionShapes'", nullptr); return 0; } - cobj->setEmitterAnimation(arg0); + cobj->setEmissionShapes(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmitterAnimation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmissionShapes",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmitterAnimation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmissionShapes'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setEndColorVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_isEmissionShapes(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -71997,7 +75699,101 @@ int lua_ax_base_ParticleSystem_setEndColorVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndColorVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isEmissionShapes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isEmissionShapes'", nullptr); + return 0; + } + auto&& ret = cobj->isEmissionShapes(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isEmissionShapes",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isEmissionShapes'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_resetEmissionShapes(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetEmissionShapes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetEmissionShapes'", nullptr); + return 0; + } + cobj->resetEmissionShapes(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetEmissionShapes",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetEmissionShapes'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_addEmissionShape(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_addEmissionShape'", nullptr); return 0; } #endif @@ -72005,118 +75801,25 @@ int lua_ax_base_ParticleSystem_setEndColorVar(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Color4F arg0; + ax::EmissionShape arg0; - ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setEndColorVar"); + #pragma warning NO CONVERSION TO NATIVE FOR EmissionShape + ok = false; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndColorVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addEmissionShape'", nullptr); return 0; } - cobj->setEndColorVar(arg0); + cobj->addEmissionShape(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndColorVar",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:addEmissionShape",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndColorVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getAtlasIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getAtlasIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAtlasIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getAtlasIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getAtlasIndex",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAtlasIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getStartSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSize'", nullptr); - return 0; - } - auto&& ret = cobj->getStartSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_addEmissionShape'.",&tolua_err); #endif return 0; @@ -72175,7 +75878,7 @@ int lua_ax_base_ParticleSystem_setEmissionShape(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_setStartSpinVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getPositionType(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -72195,57 +75898,7 @@ int lua_ax_base_ParticleSystem_setStartSpinVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartSpinVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartSpinVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartSpinVar'", nullptr); - return 0; - } - cobj->setStartSpinVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartSpinVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartSpinVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getHueVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHueVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getPositionType'", nullptr); return 0; } #endif @@ -72255,24 +75908,24 @@ int lua_ax_base_ParticleSystem_getHueVar(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHueVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getPositionType'", nullptr); return 0; } - auto&& ret = cobj->getHueVar(); + int ret = (int)cobj->getPositionType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHueVar",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getPositionType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHueVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getPositionType'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setSpawnAngle(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setPositionType(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -72292,7 +75945,7 @@ int lua_ax_base_ParticleSystem_setSpawnAngle(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnAngle'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setPositionType'", nullptr); return 0; } #endif @@ -72300,2287 +75953,24 @@ int lua_ax_base_ParticleSystem_setSpawnAngle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::ParticleSystem::PositionType arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnAngle"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setPositionType"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnAngle'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setPositionType'", nullptr); return 0; } - cobj->setSpawnAngle(arg0); + cobj->setPositionType(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnAngle",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setPositionType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_resetSystem(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetSystem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetSystem'", nullptr); - return 0; - } - cobj->resetSystem(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetSystem",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetSystem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAtlasIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAtlasIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setAtlasIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAtlasIndex'", nullptr); - return 0; - } - cobj->setAtlasIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAtlasIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAtlasIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTangentialAccelVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setTangentialAccelVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTangentialAccelVar'", nullptr); - return 0; - } - cobj->setTangentialAccelVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTangentialAccelVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTangentialAccelVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndRadiusVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndRadiusVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndRadiusVar'", nullptr); - return 0; - } - cobj->setEndRadiusVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndRadiusVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndRadiusVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndRadius'", nullptr); - return 0; - } - auto&& ret = cobj->getEndRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndRadius",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setRectForUndefinedIndices(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRectForUndefinedIndices'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.ParticleSystem:setRectForUndefinedIndices"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRectForUndefinedIndices'", nullptr); - return 0; - } - cobj->setRectForUndefinedIndices(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRectForUndefinedIndices",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRectForUndefinedIndices'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isActive(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isActive'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isActive'", nullptr); - return 0; - } - auto&& ret = cobj->isActive(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isActive",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isActive'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getTimeScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTimeScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTimeScale'", nullptr); - return 0; - } - auto&& ret = cobj->getTimeScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTimeScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTimeScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRadialAccelVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setRadialAccelVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRadialAccelVar'", nullptr); - return 0; - } - cobj->setRadialAccelVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRadialAccelVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRadialAccelVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSpawnAngleVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnAngleVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnAngleVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnAngleVar'", nullptr); - return 0; - } - cobj->setSpawnAngleVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnAngleVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnAngleVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setStartSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartSize'", nullptr); - return 0; - } - cobj->setStartSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSpeed(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpeed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpeed"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpeed'", nullptr); - return 0; - } - cobj->setSpeed(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpeed",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpeed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getStartSpin(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartSpin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartSpin'", nullptr); - return 0; - } - auto&& ret = cobj->getStartSpin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartSpin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartSpin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationSpeedTimescaleIndependent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent'", nullptr); - return 0; - } - cobj->setAnimationSpeedTimescaleIndependent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationSpeedTimescaleIndependent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getHSVVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHSVVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHSVVar'", nullptr); - return 0; - } - auto&& ret = cobj->getHSVVar(); - #pragma warning NO CONVERSION FROM NATIVE FOR HSV; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHSVVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHSVVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setStartRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartRadius"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartRadius'", nullptr); - return 0; - } - cobj->setStartRadius(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartRadius",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getResourceFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getResourceFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getResourceFile'", nullptr); - return 0; - } - auto&& ret = cobj->getResourceFile(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getResourceFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getResourceFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRotatePerSecond'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRotatePerSecond'", nullptr); - return 0; - } - auto&& ret = cobj->getRotatePerSecond(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRotatePerSecond",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRotatePerSecond'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_resetEmissionShapes(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetEmissionShapes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetEmissionShapes'", nullptr); - return 0; - } - cobj->resetEmissionShapes(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetEmissionShapes",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetEmissionShapes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEmitterMode(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmitterMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ParticleSystem::Mode arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setEmitterMode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmitterMode'", nullptr); - return 0; - } - cobj->setEmitterMode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmitterMode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmitterMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getDuration(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getDuration'", nullptr); - return 0; - } - auto&& ret = cobj->getDuration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getDuration",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getDuration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getHSV(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getHSV'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getHSV'", nullptr); - return 0; - } - auto&& ret = cobj->getHSV(); - #pragma warning NO CONVERSION FROM NATIVE FOR HSV; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getHSV",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getHSV'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSourcePosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSourcePosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:setSourcePosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSourcePosition'", nullptr); - return 0; - } - cobj->setSourcePosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSourcePosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSourcePosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_stop(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_stop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_stop'", nullptr); - return 0; - } - cobj->stop(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:stop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_stop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isEmitterAnimated(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isEmitterAnimated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isEmitterAnimated'", nullptr); - return 0; - } - auto&& ret = cobj->isEmitterAnimated(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isEmitterAnimated",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isEmitterAnimated'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setTimeScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTimeScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTimeScale'", nullptr); - return 0; - } - cobj->setTimeScale(); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setTimeScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTimeScale'", nullptr); - return 0; - } - cobj->setTimeScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTimeScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTimeScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_updateParticleQuads(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_updateParticleQuads'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_updateParticleQuads'", nullptr); - return 0; - } - cobj->updateParticleQuads(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:updateParticleQuads",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_updateParticleQuads'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndSpinVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSpinVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSpinVar'", nullptr); - return 0; - } - auto&& ret = cobj->getEndSpinVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSpinVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSpinVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_resetAnimationDescriptors(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resetAnimationDescriptors'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resetAnimationDescriptors'", nullptr); - return 0; - } - cobj->resetAnimationDescriptors(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resetAnimationDescriptors",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resetAnimationDescriptors'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setBlendAdditive(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setBlendAdditive'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setBlendAdditive"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setBlendAdditive'", nullptr); - return 0; - } - cobj->setBlendAdditive(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setBlendAdditive",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setBlendAdditive'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setLife(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLife'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setLife"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLife'", nullptr); - return 0; - } - cobj->setLife(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLife",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLife'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAngleVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAngleVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setAngleVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAngleVar'", nullptr); - return 0; - } - cobj->setAngleVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAngleVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAngleVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAnimationIndicesAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationIndicesAtlas'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - unsigned int arg0; - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationIndicesAtlas"); - - if (!ok) { break; } - cobj->setAnimationIndicesAtlas(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - unsigned int arg0; - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationIndicesAtlas"); - - if (!ok) { break; } - ax::ParticleSystem::TexAnimDir arg1; - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ParticleSystem:setAnimationIndicesAtlas"); - - if (!ok) { break; } - cobj->setAnimationIndicesAtlas(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->setAnimationIndicesAtlas(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationIndicesAtlas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationIndicesAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSpawnFadeIn(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnFadeIn'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnFadeIn"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnFadeIn'", nullptr); - return 0; - } - cobj->setSpawnFadeIn(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnFadeIn",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnFadeIn'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setRotationIsDir(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRotationIsDir'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setRotationIsDir"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRotationIsDir'", nullptr); - return 0; - } - cobj->setRotationIsDir(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRotationIsDir",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRotationIsDir'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_start(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_start'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_start'", nullptr); - return 0; - } - cobj->start(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:start",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_start'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEndSizeVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndSizeVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndSizeVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndSizeVar'", nullptr); - return 0; - } - cobj->setEndSizeVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndSizeVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndSizeVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isLifeAnimated(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isLifeAnimated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isLifeAnimated'", nullptr); - return 0; - } - auto&& ret = cobj->isLifeAnimated(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isLifeAnimated",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isLifeAnimated'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setAngle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAngle'", nullptr); - return 0; - } - cobj->setAngle(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAngle",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setBatchNode(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setBatchNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ParticleBatchNode* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.ParticleBatchNode",&arg0, "ax.ParticleSystem:setBatchNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setBatchNode'", nullptr); - return 0; - } - cobj->setBatchNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setBatchNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setBatchNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTangentialAccelVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTangentialAccelVar'", nullptr); - return 0; - } - auto&& ret = cobj->getTangentialAccelVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTangentialAccelVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTangentialAccelVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_addEmissionShape(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_addEmissionShape'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::EmissionShape arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR EmissionShape - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_addEmissionShape'", nullptr); - return 0; - } - cobj->addEmissionShape(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:addEmissionShape",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_addEmissionShape'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEmitterMode(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEmitterMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEmitterMode'", nullptr); - return 0; - } - int ret = (int)cobj->getEmitterMode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEmitterMode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEmitterMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEndSpinVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndSpinVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndSpinVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndSpinVar'", nullptr); - return 0; - } - cobj->setEndSpinVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndSpinVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndSpinVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpawnFadeIn(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnFadeIn'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnFadeIn'", nullptr); - return 0; - } - auto&& ret = cobj->getSpawnFadeIn(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnFadeIn",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnFadeIn'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpawnFadeInVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnFadeInVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnFadeInVar'", nullptr); - return 0; - } - auto&& ret = cobj->getSpawnFadeInVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnFadeInVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnFadeInVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setPositionType'.",&tolua_err); #endif return 0; @@ -74663,1473 +76053,6 @@ int lua_ax_base_ParticleSystem_simulate(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_initWithFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_initWithFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleSystem:initWithFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_initWithFile'", nullptr); - return 0; - } - auto&& ret = cobj->initWithFile(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:initWithFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_initWithFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getAngleVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getAngleVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAngleVar'", nullptr); - return 0; - } - auto&& ret = cobj->getAngleVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getAngleVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAngleVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setStartColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4F arg0; - - ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setStartColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartColor'", nullptr); - return 0; - } - cobj->setStartColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRotatePerSecondVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRotatePerSecondVar'", nullptr); - return 0; - } - auto&& ret = cobj->getRotatePerSecondVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRotatePerSecondVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRotatePerSecondVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setHueVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setHueVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setHueVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setHueVar'", nullptr); - return 0; - } - cobj->setHueVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setHueVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setHueVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndSize'", nullptr); - return 0; - } - auto&& ret = cobj->getEndSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isAnimationReversed(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isAnimationReversed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isAnimationReversed'", nullptr); - return 0; - } - auto&& ret = cobj->isAnimationReversed(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isAnimationReversed",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isAnimationReversed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getLife(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getLife'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getLife'", nullptr); - return 0; - } - auto&& ret = cobj->getLife(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getLife",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getLife'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isPaused(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isPaused'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isPaused'", nullptr); - return 0; - } - auto&& ret = cobj->isPaused(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isPaused",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isPaused'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getSpawnScaleIn(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnScaleIn'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnScaleIn'", nullptr); - return 0; - } - auto&& ret = cobj->getSpawnScaleIn(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnScaleIn",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnScaleIn'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setFixedFPS(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setFixedFPS'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setFixedFPS'", nullptr); - return 0; - } - cobj->setFixedFPS(); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setFixedFPS"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setFixedFPS'", nullptr); - return 0; - } - cobj->setFixedFPS(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setFixedFPS",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setFixedFPS'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isHSV(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isHSV'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isHSV'", nullptr); - return 0; - } - auto&& ret = cobj->isHSV(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isHSV",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isHSV'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSpeedVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpeedVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpeedVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpeedVar'", nullptr); - return 0; - } - cobj->setSpeedVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpeedVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpeedVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAutoRemoveOnFinish'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setAutoRemoveOnFinish"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAutoRemoveOnFinish'", nullptr); - return 0; - } - cobj->setAutoRemoveOnFinish(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAutoRemoveOnFinish",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAutoRemoveOnFinish'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setGravity(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setGravity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:setGravity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setGravity'", nullptr); - return 0; - } - cobj->setGravity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setGravity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setGravity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_postStep(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_postStep'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_postStep'", nullptr); - return 0; - } - cobj->postStep(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:postStep",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_postStep'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isEmissionShapes(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isEmissionShapes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isEmissionShapes'", nullptr); - return 0; - } - auto&& ret = cobj->isEmissionShapes(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isEmissionShapes",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isEmissionShapes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setLoopAnimation(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setLoopAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setLoopAnimation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setLoopAnimation'", nullptr); - return 0; - } - cobj->setLoopAnimation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setLoopAnimation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setLoopAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEmissionRate(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmissionRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEmissionRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmissionRate'", nullptr); - return 0; - } - cobj->setEmissionRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmissionRate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmissionRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndColorVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndColorVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndColorVar'", nullptr); - return 0; - } - auto&& ret = cobj->getEndColorVar(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndColorVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndColorVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getRotationIsDir(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getRotationIsDir'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getRotationIsDir'", nullptr); - return 0; - } - auto&& ret = cobj->getRotationIsDir(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getRotationIsDir",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getRotationIsDir'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSpawnScaleIn(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnScaleIn'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnScaleIn"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnScaleIn'", nullptr); - return 0; - } - cobj->setSpawnScaleIn(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnScaleIn",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnScaleIn'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEmissionRate(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEmissionRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEmissionRate'", nullptr); - return 0; - } - auto&& ret = cobj->getEmissionRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEmissionRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEmissionRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setSpawnScaleInVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSpawnScaleInVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setSpawnScaleInVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSpawnScaleInVar'", nullptr); - return 0; - } - cobj->setSpawnScaleInVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSpawnScaleInVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSpawnScaleInVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndColor'", nullptr); - return 0; - } - auto&& ret = cobj->getEndColor(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setEmissionShapes(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEmissionShapes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setEmissionShapes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEmissionShapes'", nullptr); - return 0; - } - cobj->setEmissionShapes(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEmissionShapes",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEmissionShapes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getLifeVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getLifeVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getLifeVar'", nullptr); - return 0; - } - auto&& ret = cobj->getLifeVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getLifeVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getLifeVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setStartSizeVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartSizeVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartSizeVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartSizeVar'", nullptr); - return 0; - } - cobj->setStartSizeVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartSizeVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartSizeVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::vector arg0; - - ok &= luaval_to_std_vector_ushort(tolua_S, 2, &arg0, "ax.ParticleSystem:setMultiAnimationRandomSpecific"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific'", nullptr); - return 0; - } - cobj->setMultiAnimationRandomSpecific(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setMultiAnimationRandomSpecific",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setHSV(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setHSV'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::HSV arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR HSV - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setHSV'", nullptr); - return 0; - } - cobj->setHSV(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setHSV",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setHSV'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ParticleSystem_resimulate(lua_State* tolua_S) { int argc = 0; @@ -76208,7 +76131,7 @@ int lua_ax_base_ParticleSystem_resimulate(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getTexture(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76228,7 +76151,7 @@ int lua_ax_base_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandom'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTexture'", nullptr); return 0; } #endif @@ -76238,24 +76161,74 @@ int lua_ax_base_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandom'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTexture'", nullptr); return 0; } - cobj->setMultiAnimationRandom(); + auto&& ret = cobj->getTexture(); + object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTexture",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_setTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.ParticleSystem:setTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTexture'", nullptr); + return 0; + } + cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setMultiAnimationRandom",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setMultiAnimationRandom'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTexture'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_getStartRadius(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76275,123 +76248,32 @@ int lua_ax_base_ParticleSystem_getStartRadius(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartRadius'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleSystem:setBlendFunc"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartRadius'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setBlendFunc'", nullptr); return 0; } - auto&& ret = cobj->getStartRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartRadius",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setBlendFunc",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getParticleCount(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getParticleCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getParticleCount'", nullptr); - return 0; - } - auto&& ret = cobj->getParticleCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getParticleCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getParticleCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartRadiusVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartRadiusVar'", nullptr); - return 0; - } - auto&& ret = cobj->getStartRadiusVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartRadiusVar",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartRadiusVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setBlendFunc'.",&tolua_err); #endif return 0; @@ -76443,7 +76325,7 @@ int lua_ax_base_ParticleSystem_getBlendFunc(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_setStartColorVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getResourceFile(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76463,37 +76345,34 @@ int lua_ax_base_ParticleSystem_setStartColorVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartColorVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getResourceFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Color4F arg0; - - ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.ParticleSystem:setStartColorVar"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartColorVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getResourceFile'", nullptr); return 0; } - cobj->setStartColorVar(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getResourceFile(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartColorVar",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getResourceFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartColorVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getResourceFile'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setEndSpin(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_start(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76513,37 +76392,34 @@ int lua_ax_base_ParticleSystem_setEndSpin(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setEndSpin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_start'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setEndSpin"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setEndSpin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_start'", nullptr); return 0; } - cobj->setEndSpin(arg0); + cobj->start(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setEndSpin",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:start",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setEndSpin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_start'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setRadialAccel(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_stop(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76563,37 +76439,34 @@ int lua_ax_base_ParticleSystem_setRadialAccel(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setRadialAccel'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_stop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setRadialAccel"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setRadialAccel'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_stop'", nullptr); return 0; } - cobj->setRadialAccel(arg0); + cobj->stop(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setRadialAccel",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:stop",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setRadialAccel'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_stop'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setAnimationReverse(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76613,7 +76486,7 @@ int lua_ax_base_ParticleSystem_setAnimationReverse(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setAnimationReverse'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setSourcePositionCompatible'", nullptr); return 0; } #endif @@ -76623,22 +76496,119 @@ int lua_ax_base_ParticleSystem_setAnimationReverse(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setAnimationReverse"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem:setSourcePositionCompatible"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setAnimationReverse'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setSourcePositionCompatible'", nullptr); return 0; } - cobj->setAnimationReverse(arg0); + cobj->setSourcePositionCompatible(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setAnimationReverse",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setSourcePositionCompatible",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setAnimationReverse'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setSourcePositionCompatible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_isSourcePositionCompatible(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isSourcePositionCompatible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isSourcePositionCompatible'", nullptr); + return 0; + } + auto&& ret = cobj->isSourcePositionCompatible(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isSourcePositionCompatible",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isSourcePositionCompatible'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_initWithFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_initWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.ParticleSystem:initWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_initWithFile'", nullptr); + return 0; + } + auto&& ret = cobj->initWithFile(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:initWithFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_initWithFile'.",&tolua_err); #endif return 0; @@ -76702,7 +76672,7 @@ int lua_ax_base_ParticleSystem_initWithDictionary(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76722,198 +76692,7 @@ int lua_ax_base_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isAutoRemoveOnFinish'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isAutoRemoveOnFinish'", nullptr); - return 0; - } - auto&& ret = cobj->isAutoRemoveOnFinish(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isAutoRemoveOnFinish",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isAutoRemoveOnFinish'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_isSourcePositionCompatible(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isSourcePositionCompatible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isSourcePositionCompatible'", nullptr); - return 0; - } - auto&& ret = cobj->isSourcePositionCompatible(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isSourcePositionCompatible",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isSourcePositionCompatible'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getTotalParticles(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTotalParticles'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTotalParticles'", nullptr); - return 0; - } - auto&& ret = cobj->getTotalParticles(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTotalParticles",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTotalParticles'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setStartRadiusVar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setStartRadiusVar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setStartRadiusVar'", nullptr); - return 0; - } - cobj->setStartRadiusVar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setStartRadiusVar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setStartRadiusVar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_setTotalParticles(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTotalParticles'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_initWithTotalParticles'", nullptr); return 0; } #endif @@ -76923,27 +76702,27 @@ int lua_ax_base_ParticleSystem_setTotalParticles(lua_State* tolua_S) { int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:setTotalParticles"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem:initWithTotalParticles"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTotalParticles'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_initWithTotalParticles'", nullptr); return 0; } - cobj->setTotalParticles(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initWithTotalParticles(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTotalParticles",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:initWithTotalParticles",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTotalParticles'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_initWithTotalParticles'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_setBlendFunc(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_isPaused(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -76963,57 +76742,7 @@ int lua_ax_base_ParticleSystem_setBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleSystem:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getEndRadiusVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_isPaused'", nullptr); return 0; } #endif @@ -77023,24 +76752,24 @@ int lua_ax_base_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getEndRadiusVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_isPaused'", nullptr); return 0; } - auto&& ret = cobj->getEndRadiusVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->isPaused(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getEndRadiusVar",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:isPaused",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getEndRadiusVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_isPaused'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_pauseEmissions(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -77060,7 +76789,7 @@ int lua_ax_base_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getSpawnAngleVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_pauseEmissions'", nullptr); return 0; } #endif @@ -77070,19 +76799,66 @@ int lua_ax_base_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getSpawnAngleVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_pauseEmissions'", nullptr); return 0; } - auto&& ret = cobj->getSpawnAngleVar(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->pauseEmissions(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getSpawnAngleVar",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:pauseEmissions",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getSpawnAngleVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_pauseEmissions'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ParticleSystem_resumeEmissions(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_resumeEmissions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_resumeEmissions'", nullptr); + return 0; + } + cobj->resumeEmissions(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:resumeEmissions",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_resumeEmissions'.",&tolua_err); #endif return 0; @@ -77134,7 +76910,7 @@ int lua_ax_base_ParticleSystem_getFixedFPS(lua_State* tolua_S) return 0; } -int lua_ax_base_ParticleSystem_getStartColorVar(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setFixedFPS(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem* cobj = nullptr; @@ -77154,7 +76930,7 @@ int lua_ax_base_ParticleSystem_getStartColorVar(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getStartColorVar'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setFixedFPS'", nullptr); return 0; } #endif @@ -77164,183 +76940,143 @@ int lua_ax_base_ParticleSystem_getStartColorVar(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getStartColorVar'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setFixedFPS'", nullptr); return 0; } - auto&& ret = cobj->getStartColorVar(); - color4f_to_luaval(tolua_S, ret); + cobj->setFixedFPS(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getStartColorVar",argc, 0); + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setFixedFPS"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setFixedFPS'", nullptr); + return 0; + } + cobj->setFixedFPS(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setFixedFPS",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getStartColorVar'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setFixedFPS'.",&tolua_err); #endif return 0; } -int lua_ax_base_ParticleSystem_createRectTorusShape(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getTimeScale(lua_State* tolua_S) { int argc = 0; + ax::ParticleSystem* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - if (argc == 3) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_getTimeScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { - ax::Vec2 arg0; - ax::Size arg1; - ax::Size arg2; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createRectTorusShape"); - ok &= luaval_to_size(tolua_S, 3, &arg1, "ax.ParticleSystem:createRectTorusShape"); - ok &= luaval_to_size(tolua_S, 4, &arg2, "ax.ParticleSystem:createRectTorusShape"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createRectTorusShape'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getTimeScale'", nullptr); return 0; } - auto&& ret = ax::ParticleSystem::createRectTorusShape(arg0, arg1, arg2); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + auto&& ret = cobj->getTimeScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createRectTorusShape",argc, 3); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:getTimeScale",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createRectTorusShape'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getTimeScale'.",&tolua_err); #endif + return 0; } -int lua_ax_base_ParticleSystem_createTorusShape(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_setTimeScale(lua_State* tolua_S) { int argc = 0; + ax::ParticleSystem* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - if (argc == 3) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ParticleSystem_setTimeScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { - ax::Vec2 arg0; - double arg1; - double arg2; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createTorusShape"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createTorusShape"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createTorusShape"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createTorusShape'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTimeScale'", nullptr); return 0; } - auto&& ret = ax::ParticleSystem::createTorusShape(arg0, arg1, arg2); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + cobj->setTimeScale(); + lua_settop(tolua_S, 1); return 1; } - if (argc == 4) + if (argc == 1) { - ax::Vec2 arg0; - double arg1; - double arg2; - double arg3; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createTorusShape"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createTorusShape"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createTorusShape"); - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.ParticleSystem:createTorusShape"); + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.ParticleSystem:setTimeScale"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createTorusShape'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_setTimeScale'", nullptr); return 0; } - auto&& ret = ax::ParticleSystem::createTorusShape(arg0, arg1, arg2, arg3); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + cobj->setTimeScale(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createTorusShape",argc, 3); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem:setTimeScale",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createTorusShape'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_ParticleSystem_createConeShape(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_setTimeScale'.",&tolua_err); #endif -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 4) - { - ax::Vec2 arg0; - double arg1; - double arg2; - double arg3; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.ParticleSystem:createConeShape"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createConeShape'", nullptr); - return 0; - } - auto&& ret = ax::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; - return 1; - } - if (argc == 5) - { - ax::Vec2 arg0; - double arg1; - double arg2; - double arg3; - double arg4; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.ParticleSystem:createConeShape"); - ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.ParticleSystem:createConeShape"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createConeShape'", nullptr); - return 0; - } - auto&& ret = ax::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3, arg4); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createConeShape",argc, 4); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createConeShape'.",&tolua_err); -#endif return 0; } int lua_ax_base_ParticleSystem_create(lua_State* tolua_S) @@ -77415,7 +77151,7 @@ int lua_ax_base_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_ParticleSystem_createPointShape(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_getAllParticleSystems(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -77430,79 +77166,22 @@ int lua_ax_base_ParticleSystem_createPointShape(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 1) + if (argc == 0) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createPointShape"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createPointShape'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAllParticleSystems'", nullptr); return 0; } - auto&& ret = ax::ParticleSystem::createPointShape(arg0); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + auto&& ret = ax::ParticleSystem::getAllParticleSystems(); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createPointShape",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:getAllParticleSystems",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createPointShape'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_ParticleSystem_createCircleShape(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - ax::Vec2 arg0; - double arg1; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createCircleShape"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createCircleShape"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createCircleShape'", nullptr); - return 0; - } - auto&& ret = ax::ParticleSystem::createCircleShape(arg0, arg1); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; - return 1; - } - if (argc == 3) - { - ax::Vec2 arg0; - double arg1; - double arg2; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createCircleShape"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createCircleShape"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createCircleShape"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createCircleShape'", nullptr); - return 0; - } - auto&& ret = ax::ParticleSystem::createCircleShape(arg0, arg1, arg2); - #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createCircleShape",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createCircleShape'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAllParticleSystems'.",&tolua_err); #endif return 0; } @@ -77614,6 +77293,42 @@ int lua_ax_base_ParticleSystem_createMaskShape(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_ParticleSystem_createPointShape(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createPointShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createPointShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createPointShape(arg0); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createPointShape",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createPointShape'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_ParticleSystem_createRectShape(lua_State* tolua_S) { int argc = 0; @@ -77652,7 +77367,7 @@ int lua_ax_base_ParticleSystem_createRectShape(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_ParticleSystem_getAllParticleSystems(lua_State* tolua_S) +int lua_ax_base_ParticleSystem_createRectTorusShape(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -77667,22 +77382,205 @@ int lua_ax_base_ParticleSystem_getAllParticleSystems(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 0) + if (argc == 3) { + ax::Vec2 arg0; + ax::Size arg1; + ax::Size arg2; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createRectTorusShape"); + ok &= luaval_to_size(tolua_S, 3, &arg1, "ax.ParticleSystem:createRectTorusShape"); + ok &= luaval_to_size(tolua_S, 4, &arg2, "ax.ParticleSystem:createRectTorusShape"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_getAllParticleSystems'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createRectTorusShape'", nullptr); return 0; } - auto&& ret = ax::ParticleSystem::getAllParticleSystems(); - ccvector_to_luaval(tolua_S, ret); + auto&& ret = ax::ParticleSystem::createRectTorusShape(arg0, arg1, arg2); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:getAllParticleSystems",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createRectTorusShape",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_getAllParticleSystems'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createRectTorusShape'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_ParticleSystem_createCircleShape(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + ax::Vec2 arg0; + double arg1; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createCircleShape"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createCircleShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createCircleShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createCircleShape(arg0, arg1); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + if (argc == 3) + { + ax::Vec2 arg0; + double arg1; + double arg2; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createCircleShape"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createCircleShape"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createCircleShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createCircleShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createCircleShape(arg0, arg1, arg2); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createCircleShape",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createCircleShape'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_ParticleSystem_createConeShape(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 4) + { + ax::Vec2 arg0; + double arg1; + double arg2; + double arg3; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.ParticleSystem:createConeShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createConeShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + if (argc == 5) + { + ax::Vec2 arg0; + double arg1; + double arg2; + double arg3; + double arg4; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.ParticleSystem:createConeShape"); + ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.ParticleSystem:createConeShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createConeShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3, arg4); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createConeShape",argc, 4); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createConeShape'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_ParticleSystem_createTorusShape(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.ParticleSystem",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 3) + { + ax::Vec2 arg0; + double arg1; + double arg2; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createTorusShape"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createTorusShape"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createTorusShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createTorusShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createTorusShape(arg0, arg1, arg2); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + if (argc == 4) + { + ax::Vec2 arg0; + double arg1; + double arg2; + double arg3; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ParticleSystem:createTorusShape"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.ParticleSystem:createTorusShape"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.ParticleSystem:createTorusShape"); + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.ParticleSystem:createTorusShape"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ParticleSystem_createTorusShape'", nullptr); + return 0; + } + auto&& ret = ax::ParticleSystem::createTorusShape(arg0, arg1, arg2, arg3); + #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ParticleSystem:createTorusShape",argc, 3); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ParticleSystem_createTorusShape'.",&tolua_err); #endif return 0; } @@ -77803,174 +77701,174 @@ int lua_register_ax_base_ParticleSystem(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ParticleSystem"); tolua_function(tolua_S,"new",lua_ax_base_ParticleSystem_constructor); - tolua_function(tolua_S,"getStartSizeVar",lua_ax_base_ParticleSystem_getStartSizeVar); - tolua_function(tolua_S,"setAnimationDescriptor",lua_ax_base_ParticleSystem_setAnimationDescriptor); - tolua_function(tolua_S,"getTexture",lua_ax_base_ParticleSystem_getTexture); - tolua_function(tolua_S,"isFull",lua_ax_base_ParticleSystem_isFull); - tolua_function(tolua_S,"getBatchNode",lua_ax_base_ParticleSystem_getBatchNode); - tolua_function(tolua_S,"getStartColor",lua_ax_base_ParticleSystem_getStartColor); - tolua_function(tolua_S,"getPositionType",lua_ax_base_ParticleSystem_getPositionType); - tolua_function(tolua_S,"getSpawnAngle",lua_ax_base_ParticleSystem_getSpawnAngle); - tolua_function(tolua_S,"setPosVar",lua_ax_base_ParticleSystem_setPosVar); - tolua_function(tolua_S,"getEndSpin",lua_ax_base_ParticleSystem_getEndSpin); - tolua_function(tolua_S,"getSpawnScaleInVar",lua_ax_base_ParticleSystem_getSpawnScaleInVar); - tolua_function(tolua_S,"setRotatePerSecondVar",lua_ax_base_ParticleSystem_setRotatePerSecondVar); - tolua_function(tolua_S,"setSourcePositionCompatible",lua_ax_base_ParticleSystem_setSourcePositionCompatible); - tolua_function(tolua_S,"getStartSpinVar",lua_ax_base_ParticleSystem_getStartSpinVar); - tolua_function(tolua_S,"getRadialAccelVar",lua_ax_base_ParticleSystem_getRadialAccelVar); - tolua_function(tolua_S,"getEndSizeVar",lua_ax_base_ParticleSystem_getEndSizeVar); - tolua_function(tolua_S,"resetAnimationIndices",lua_ax_base_ParticleSystem_resetAnimationIndices); - tolua_function(tolua_S,"setTangentialAccel",lua_ax_base_ParticleSystem_setTangentialAccel); - tolua_function(tolua_S,"getTotalAnimationIndices",lua_ax_base_ParticleSystem_getTotalAnimationIndices); - tolua_function(tolua_S,"getRadialAccel",lua_ax_base_ParticleSystem_getRadialAccel); - tolua_function(tolua_S,"getHue",lua_ax_base_ParticleSystem_getHue); - tolua_function(tolua_S,"setRotatePerSecond",lua_ax_base_ParticleSystem_setRotatePerSecond); - tolua_function(tolua_S,"setEndSize",lua_ax_base_ParticleSystem_setEndSize); - tolua_function(tolua_S,"isAnimationSpeedTimescaleIndependent",lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent); - tolua_function(tolua_S,"setHSVVar",lua_ax_base_ParticleSystem_setHSVVar); - tolua_function(tolua_S,"getGravity",lua_ax_base_ParticleSystem_getGravity); - tolua_function(tolua_S,"resumeEmissions",lua_ax_base_ParticleSystem_resumeEmissions); - tolua_function(tolua_S,"getTangentialAccel",lua_ax_base_ParticleSystem_getTangentialAccel); - tolua_function(tolua_S,"setEndRadius",lua_ax_base_ParticleSystem_setEndRadius); - tolua_function(tolua_S,"getSpeed",lua_ax_base_ParticleSystem_getSpeed); - tolua_function(tolua_S,"pauseEmissions",lua_ax_base_ParticleSystem_pauseEmissions); - tolua_function(tolua_S,"getAngle",lua_ax_base_ParticleSystem_getAngle); - tolua_function(tolua_S,"isLoopAnimated",lua_ax_base_ParticleSystem_isLoopAnimated); - tolua_function(tolua_S,"setLifeAnimation",lua_ax_base_ParticleSystem_setLifeAnimation); - tolua_function(tolua_S,"setEndColor",lua_ax_base_ParticleSystem_setEndColor); - tolua_function(tolua_S,"setStartSpin",lua_ax_base_ParticleSystem_setStartSpin); - tolua_function(tolua_S,"setDuration",lua_ax_base_ParticleSystem_setDuration); - tolua_function(tolua_S,"addAnimationIndex",lua_ax_base_ParticleSystem_addAnimationIndex); - tolua_function(tolua_S,"initWithTotalParticles",lua_ax_base_ParticleSystem_initWithTotalParticles); tolua_function(tolua_S,"addParticles",lua_ax_base_ParticleSystem_addParticles); - tolua_function(tolua_S,"setTexture",lua_ax_base_ParticleSystem_setTexture); - tolua_function(tolua_S,"setSpawnFadeInVar",lua_ax_base_ParticleSystem_setSpawnFadeInVar); - tolua_function(tolua_S,"getPosVar",lua_ax_base_ParticleSystem_getPosVar); - tolua_function(tolua_S,"updateWithNoTime",lua_ax_base_ParticleSystem_updateWithNoTime); - tolua_function(tolua_S,"isBlendAdditive",lua_ax_base_ParticleSystem_isBlendAdditive); - tolua_function(tolua_S,"getSpeedVar",lua_ax_base_ParticleSystem_getSpeedVar); - tolua_function(tolua_S,"setPositionType",lua_ax_base_ParticleSystem_setPositionType); tolua_function(tolua_S,"stopSystem",lua_ax_base_ParticleSystem_stopSystem); - tolua_function(tolua_S,"getSourcePosition",lua_ax_base_ParticleSystem_getSourcePosition); - tolua_function(tolua_S,"setLifeVar",lua_ax_base_ParticleSystem_setLifeVar); - tolua_function(tolua_S,"setHue",lua_ax_base_ParticleSystem_setHue); - tolua_function(tolua_S,"useHSV",lua_ax_base_ParticleSystem_useHSV); - tolua_function(tolua_S,"setEmitterAnimation",lua_ax_base_ParticleSystem_setEmitterAnimation); - tolua_function(tolua_S,"setEndColorVar",lua_ax_base_ParticleSystem_setEndColorVar); - tolua_function(tolua_S,"getAtlasIndex",lua_ax_base_ParticleSystem_getAtlasIndex); - tolua_function(tolua_S,"getStartSize",lua_ax_base_ParticleSystem_getStartSize); - tolua_function(tolua_S,"setEmissionShape",lua_ax_base_ParticleSystem_setEmissionShape); - tolua_function(tolua_S,"setStartSpinVar",lua_ax_base_ParticleSystem_setStartSpinVar); - tolua_function(tolua_S,"getHueVar",lua_ax_base_ParticleSystem_getHueVar); - tolua_function(tolua_S,"setSpawnAngle",lua_ax_base_ParticleSystem_setSpawnAngle); tolua_function(tolua_S,"resetSystem",lua_ax_base_ParticleSystem_resetSystem); - tolua_function(tolua_S,"setAtlasIndex",lua_ax_base_ParticleSystem_setAtlasIndex); - tolua_function(tolua_S,"setTangentialAccelVar",lua_ax_base_ParticleSystem_setTangentialAccelVar); - tolua_function(tolua_S,"setEndRadiusVar",lua_ax_base_ParticleSystem_setEndRadiusVar); - tolua_function(tolua_S,"getEndRadius",lua_ax_base_ParticleSystem_getEndRadius); - tolua_function(tolua_S,"setRectForUndefinedIndices",lua_ax_base_ParticleSystem_setRectForUndefinedIndices); - tolua_function(tolua_S,"isActive",lua_ax_base_ParticleSystem_isActive); - tolua_function(tolua_S,"getTimeScale",lua_ax_base_ParticleSystem_getTimeScale); - tolua_function(tolua_S,"setRadialAccelVar",lua_ax_base_ParticleSystem_setRadialAccelVar); - tolua_function(tolua_S,"setSpawnAngleVar",lua_ax_base_ParticleSystem_setSpawnAngleVar); - tolua_function(tolua_S,"setStartSize",lua_ax_base_ParticleSystem_setStartSize); - tolua_function(tolua_S,"setSpeed",lua_ax_base_ParticleSystem_setSpeed); - tolua_function(tolua_S,"getStartSpin",lua_ax_base_ParticleSystem_getStartSpin); - tolua_function(tolua_S,"setAnimationSpeedTimescaleIndependent",lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent); - tolua_function(tolua_S,"getHSVVar",lua_ax_base_ParticleSystem_getHSVVar); - tolua_function(tolua_S,"setStartRadius",lua_ax_base_ParticleSystem_setStartRadius); - tolua_function(tolua_S,"getResourceFile",lua_ax_base_ParticleSystem_getResourceFile); - tolua_function(tolua_S,"getRotatePerSecond",lua_ax_base_ParticleSystem_getRotatePerSecond); - tolua_function(tolua_S,"resetEmissionShapes",lua_ax_base_ParticleSystem_resetEmissionShapes); - tolua_function(tolua_S,"setEmitterMode",lua_ax_base_ParticleSystem_setEmitterMode); - tolua_function(tolua_S,"getDuration",lua_ax_base_ParticleSystem_getDuration); - tolua_function(tolua_S,"getHSV",lua_ax_base_ParticleSystem_getHSV); - tolua_function(tolua_S,"setSourcePosition",lua_ax_base_ParticleSystem_setSourcePosition); - tolua_function(tolua_S,"stop",lua_ax_base_ParticleSystem_stop); - tolua_function(tolua_S,"isEmitterAnimated",lua_ax_base_ParticleSystem_isEmitterAnimated); - tolua_function(tolua_S,"setTimeScale",lua_ax_base_ParticleSystem_setTimeScale); + tolua_function(tolua_S,"isFull",lua_ax_base_ParticleSystem_isFull); tolua_function(tolua_S,"updateParticleQuads",lua_ax_base_ParticleSystem_updateParticleQuads); - tolua_function(tolua_S,"getEndSpinVar",lua_ax_base_ParticleSystem_getEndSpinVar); - tolua_function(tolua_S,"resetAnimationDescriptors",lua_ax_base_ParticleSystem_resetAnimationDescriptors); - tolua_function(tolua_S,"setBlendAdditive",lua_ax_base_ParticleSystem_setBlendAdditive); - tolua_function(tolua_S,"setLife",lua_ax_base_ParticleSystem_setLife); - tolua_function(tolua_S,"setAngleVar",lua_ax_base_ParticleSystem_setAngleVar); - tolua_function(tolua_S,"setAnimationIndicesAtlas",lua_ax_base_ParticleSystem_setAnimationIndicesAtlas); - tolua_function(tolua_S,"setSpawnFadeIn",lua_ax_base_ParticleSystem_setSpawnFadeIn); - tolua_function(tolua_S,"setRotationIsDir",lua_ax_base_ParticleSystem_setRotationIsDir); - tolua_function(tolua_S,"start",lua_ax_base_ParticleSystem_start); - tolua_function(tolua_S,"setEndSizeVar",lua_ax_base_ParticleSystem_setEndSizeVar); - tolua_function(tolua_S,"isLifeAnimated",lua_ax_base_ParticleSystem_isLifeAnimated); - tolua_function(tolua_S,"setAngle",lua_ax_base_ParticleSystem_setAngle); - tolua_function(tolua_S,"setBatchNode",lua_ax_base_ParticleSystem_setBatchNode); - tolua_function(tolua_S,"getTangentialAccelVar",lua_ax_base_ParticleSystem_getTangentialAccelVar); - tolua_function(tolua_S,"addEmissionShape",lua_ax_base_ParticleSystem_addEmissionShape); - tolua_function(tolua_S,"getEmitterMode",lua_ax_base_ParticleSystem_getEmitterMode); - tolua_function(tolua_S,"setEndSpinVar",lua_ax_base_ParticleSystem_setEndSpinVar); - tolua_function(tolua_S,"getSpawnFadeIn",lua_ax_base_ParticleSystem_getSpawnFadeIn); - tolua_function(tolua_S,"getSpawnFadeInVar",lua_ax_base_ParticleSystem_getSpawnFadeInVar); - tolua_function(tolua_S,"simulate",lua_ax_base_ParticleSystem_simulate); - tolua_function(tolua_S,"initWithFile",lua_ax_base_ParticleSystem_initWithFile); - tolua_function(tolua_S,"getAngleVar",lua_ax_base_ParticleSystem_getAngleVar); - tolua_function(tolua_S,"setStartColor",lua_ax_base_ParticleSystem_setStartColor); - tolua_function(tolua_S,"getRotatePerSecondVar",lua_ax_base_ParticleSystem_getRotatePerSecondVar); - tolua_function(tolua_S,"setHueVar",lua_ax_base_ParticleSystem_setHueVar); - tolua_function(tolua_S,"getEndSize",lua_ax_base_ParticleSystem_getEndSize); - tolua_function(tolua_S,"isAnimationReversed",lua_ax_base_ParticleSystem_isAnimationReversed); - tolua_function(tolua_S,"getLife",lua_ax_base_ParticleSystem_getLife); - tolua_function(tolua_S,"isPaused",lua_ax_base_ParticleSystem_isPaused); - tolua_function(tolua_S,"getSpawnScaleIn",lua_ax_base_ParticleSystem_getSpawnScaleIn); - tolua_function(tolua_S,"setFixedFPS",lua_ax_base_ParticleSystem_setFixedFPS); - tolua_function(tolua_S,"isHSV",lua_ax_base_ParticleSystem_isHSV); - tolua_function(tolua_S,"setSpeedVar",lua_ax_base_ParticleSystem_setSpeedVar); - tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_ax_base_ParticleSystem_setAutoRemoveOnFinish); - tolua_function(tolua_S,"setGravity",lua_ax_base_ParticleSystem_setGravity); tolua_function(tolua_S,"postStep",lua_ax_base_ParticleSystem_postStep); - tolua_function(tolua_S,"isEmissionShapes",lua_ax_base_ParticleSystem_isEmissionShapes); - tolua_function(tolua_S,"setLoopAnimation",lua_ax_base_ParticleSystem_setLoopAnimation); - tolua_function(tolua_S,"setEmissionRate",lua_ax_base_ParticleSystem_setEmissionRate); - tolua_function(tolua_S,"getEndColorVar",lua_ax_base_ParticleSystem_getEndColorVar); - tolua_function(tolua_S,"getRotationIsDir",lua_ax_base_ParticleSystem_getRotationIsDir); - tolua_function(tolua_S,"setSpawnScaleIn",lua_ax_base_ParticleSystem_setSpawnScaleIn); - tolua_function(tolua_S,"getEmissionRate",lua_ax_base_ParticleSystem_getEmissionRate); - tolua_function(tolua_S,"setSpawnScaleInVar",lua_ax_base_ParticleSystem_setSpawnScaleInVar); - tolua_function(tolua_S,"getEndColor",lua_ax_base_ParticleSystem_getEndColor); - tolua_function(tolua_S,"setEmissionShapes",lua_ax_base_ParticleSystem_setEmissionShapes); - tolua_function(tolua_S,"getLifeVar",lua_ax_base_ParticleSystem_getLifeVar); - tolua_function(tolua_S,"setStartSizeVar",lua_ax_base_ParticleSystem_setStartSizeVar); - tolua_function(tolua_S,"setMultiAnimationRandomSpecific",lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific); - tolua_function(tolua_S,"setHSV",lua_ax_base_ParticleSystem_setHSV); - tolua_function(tolua_S,"resimulate",lua_ax_base_ParticleSystem_resimulate); - tolua_function(tolua_S,"setMultiAnimationRandom",lua_ax_base_ParticleSystem_setMultiAnimationRandom); - tolua_function(tolua_S,"getStartRadius",lua_ax_base_ParticleSystem_getStartRadius); - tolua_function(tolua_S,"getParticleCount",lua_ax_base_ParticleSystem_getParticleCount); - tolua_function(tolua_S,"getStartRadiusVar",lua_ax_base_ParticleSystem_getStartRadiusVar); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_ParticleSystem_getBlendFunc); - tolua_function(tolua_S,"setStartColorVar",lua_ax_base_ParticleSystem_setStartColorVar); - tolua_function(tolua_S,"setEndSpin",lua_ax_base_ParticleSystem_setEndSpin); - tolua_function(tolua_S,"setRadialAccel",lua_ax_base_ParticleSystem_setRadialAccel); - tolua_function(tolua_S,"setAnimationReverse",lua_ax_base_ParticleSystem_setAnimationReverse); - tolua_function(tolua_S,"initWithDictionary",lua_ax_base_ParticleSystem_initWithDictionary); + tolua_function(tolua_S,"updateWithNoTime",lua_ax_base_ParticleSystem_updateWithNoTime); tolua_function(tolua_S,"isAutoRemoveOnFinish",lua_ax_base_ParticleSystem_isAutoRemoveOnFinish); - tolua_function(tolua_S,"isSourcePositionCompatible",lua_ax_base_ParticleSystem_isSourcePositionCompatible); - tolua_function(tolua_S,"getTotalParticles",lua_ax_base_ParticleSystem_getTotalParticles); + tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_ax_base_ParticleSystem_setAutoRemoveOnFinish); + tolua_function(tolua_S,"getGravity",lua_ax_base_ParticleSystem_getGravity); + tolua_function(tolua_S,"setGravity",lua_ax_base_ParticleSystem_setGravity); + tolua_function(tolua_S,"getSpeed",lua_ax_base_ParticleSystem_getSpeed); + tolua_function(tolua_S,"setSpeed",lua_ax_base_ParticleSystem_setSpeed); + tolua_function(tolua_S,"getSpeedVar",lua_ax_base_ParticleSystem_getSpeedVar); + tolua_function(tolua_S,"setSpeedVar",lua_ax_base_ParticleSystem_setSpeedVar); + tolua_function(tolua_S,"getTangentialAccel",lua_ax_base_ParticleSystem_getTangentialAccel); + tolua_function(tolua_S,"setTangentialAccel",lua_ax_base_ParticleSystem_setTangentialAccel); + tolua_function(tolua_S,"getTangentialAccelVar",lua_ax_base_ParticleSystem_getTangentialAccelVar); + tolua_function(tolua_S,"setTangentialAccelVar",lua_ax_base_ParticleSystem_setTangentialAccelVar); + tolua_function(tolua_S,"getRadialAccel",lua_ax_base_ParticleSystem_getRadialAccel); + tolua_function(tolua_S,"setRadialAccel",lua_ax_base_ParticleSystem_setRadialAccel); + tolua_function(tolua_S,"getRadialAccelVar",lua_ax_base_ParticleSystem_getRadialAccelVar); + tolua_function(tolua_S,"setRadialAccelVar",lua_ax_base_ParticleSystem_setRadialAccelVar); + tolua_function(tolua_S,"getRotationIsDir",lua_ax_base_ParticleSystem_getRotationIsDir); + tolua_function(tolua_S,"setRotationIsDir",lua_ax_base_ParticleSystem_setRotationIsDir); + tolua_function(tolua_S,"getStartRadius",lua_ax_base_ParticleSystem_getStartRadius); + tolua_function(tolua_S,"setStartRadius",lua_ax_base_ParticleSystem_setStartRadius); + tolua_function(tolua_S,"getStartRadiusVar",lua_ax_base_ParticleSystem_getStartRadiusVar); tolua_function(tolua_S,"setStartRadiusVar",lua_ax_base_ParticleSystem_setStartRadiusVar); - tolua_function(tolua_S,"setTotalParticles",lua_ax_base_ParticleSystem_setTotalParticles); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_ParticleSystem_setBlendFunc); + tolua_function(tolua_S,"getEndRadius",lua_ax_base_ParticleSystem_getEndRadius); + tolua_function(tolua_S,"setEndRadius",lua_ax_base_ParticleSystem_setEndRadius); tolua_function(tolua_S,"getEndRadiusVar",lua_ax_base_ParticleSystem_getEndRadiusVar); - tolua_function(tolua_S,"getSpawnAngleVar",lua_ax_base_ParticleSystem_getSpawnAngleVar); - tolua_function(tolua_S,"getFixedFPS",lua_ax_base_ParticleSystem_getFixedFPS); + tolua_function(tolua_S,"setEndRadiusVar",lua_ax_base_ParticleSystem_setEndRadiusVar); + tolua_function(tolua_S,"getRotatePerSecond",lua_ax_base_ParticleSystem_getRotatePerSecond); + tolua_function(tolua_S,"setRotatePerSecond",lua_ax_base_ParticleSystem_setRotatePerSecond); + tolua_function(tolua_S,"getRotatePerSecondVar",lua_ax_base_ParticleSystem_getRotatePerSecondVar); + tolua_function(tolua_S,"setRotatePerSecondVar",lua_ax_base_ParticleSystem_setRotatePerSecondVar); + tolua_function(tolua_S,"isActive",lua_ax_base_ParticleSystem_isActive); + tolua_function(tolua_S,"isBlendAdditive",lua_ax_base_ParticleSystem_isBlendAdditive); + tolua_function(tolua_S,"setBlendAdditive",lua_ax_base_ParticleSystem_setBlendAdditive); + tolua_function(tolua_S,"getBatchNode",lua_ax_base_ParticleSystem_getBatchNode); + tolua_function(tolua_S,"setBatchNode",lua_ax_base_ParticleSystem_setBatchNode); + tolua_function(tolua_S,"getAtlasIndex",lua_ax_base_ParticleSystem_getAtlasIndex); + tolua_function(tolua_S,"setAtlasIndex",lua_ax_base_ParticleSystem_setAtlasIndex); + tolua_function(tolua_S,"getParticleCount",lua_ax_base_ParticleSystem_getParticleCount); + tolua_function(tolua_S,"getDuration",lua_ax_base_ParticleSystem_getDuration); + tolua_function(tolua_S,"setDuration",lua_ax_base_ParticleSystem_setDuration); + tolua_function(tolua_S,"getSourcePosition",lua_ax_base_ParticleSystem_getSourcePosition); + tolua_function(tolua_S,"setSourcePosition",lua_ax_base_ParticleSystem_setSourcePosition); + tolua_function(tolua_S,"getPosVar",lua_ax_base_ParticleSystem_getPosVar); + tolua_function(tolua_S,"setPosVar",lua_ax_base_ParticleSystem_setPosVar); + tolua_function(tolua_S,"getLife",lua_ax_base_ParticleSystem_getLife); + tolua_function(tolua_S,"setLife",lua_ax_base_ParticleSystem_setLife); + tolua_function(tolua_S,"getLifeVar",lua_ax_base_ParticleSystem_getLifeVar); + tolua_function(tolua_S,"setLifeVar",lua_ax_base_ParticleSystem_setLifeVar); + tolua_function(tolua_S,"getAngle",lua_ax_base_ParticleSystem_getAngle); + tolua_function(tolua_S,"setAngle",lua_ax_base_ParticleSystem_setAngle); + tolua_function(tolua_S,"getAngleVar",lua_ax_base_ParticleSystem_getAngleVar); + tolua_function(tolua_S,"setAngleVar",lua_ax_base_ParticleSystem_setAngleVar); + tolua_function(tolua_S,"getEmitterMode",lua_ax_base_ParticleSystem_getEmitterMode); + tolua_function(tolua_S,"setEmitterMode",lua_ax_base_ParticleSystem_setEmitterMode); + tolua_function(tolua_S,"getStartSize",lua_ax_base_ParticleSystem_getStartSize); + tolua_function(tolua_S,"setStartSize",lua_ax_base_ParticleSystem_setStartSize); + tolua_function(tolua_S,"getStartSizeVar",lua_ax_base_ParticleSystem_getStartSizeVar); + tolua_function(tolua_S,"setStartSizeVar",lua_ax_base_ParticleSystem_setStartSizeVar); + tolua_function(tolua_S,"getEndSize",lua_ax_base_ParticleSystem_getEndSize); + tolua_function(tolua_S,"setEndSize",lua_ax_base_ParticleSystem_setEndSize); + tolua_function(tolua_S,"getEndSizeVar",lua_ax_base_ParticleSystem_getEndSizeVar); + tolua_function(tolua_S,"setEndSizeVar",lua_ax_base_ParticleSystem_setEndSizeVar); + tolua_function(tolua_S,"getStartColor",lua_ax_base_ParticleSystem_getStartColor); + tolua_function(tolua_S,"setStartColor",lua_ax_base_ParticleSystem_setStartColor); tolua_function(tolua_S,"getStartColorVar",lua_ax_base_ParticleSystem_getStartColorVar); - tolua_function(tolua_S,"createRectTorusShape", lua_ax_base_ParticleSystem_createRectTorusShape); - tolua_function(tolua_S,"createTorusShape", lua_ax_base_ParticleSystem_createTorusShape); - tolua_function(tolua_S,"createConeShape", lua_ax_base_ParticleSystem_createConeShape); + tolua_function(tolua_S,"setStartColorVar",lua_ax_base_ParticleSystem_setStartColorVar); + tolua_function(tolua_S,"getEndColor",lua_ax_base_ParticleSystem_getEndColor); + tolua_function(tolua_S,"setEndColor",lua_ax_base_ParticleSystem_setEndColor); + tolua_function(tolua_S,"getEndColorVar",lua_ax_base_ParticleSystem_getEndColorVar); + tolua_function(tolua_S,"setEndColorVar",lua_ax_base_ParticleSystem_setEndColorVar); + tolua_function(tolua_S,"useHSV",lua_ax_base_ParticleSystem_useHSV); + tolua_function(tolua_S,"isHSV",lua_ax_base_ParticleSystem_isHSV); + tolua_function(tolua_S,"getHue",lua_ax_base_ParticleSystem_getHue); + tolua_function(tolua_S,"setHue",lua_ax_base_ParticleSystem_setHue); + tolua_function(tolua_S,"getHueVar",lua_ax_base_ParticleSystem_getHueVar); + tolua_function(tolua_S,"setHueVar",lua_ax_base_ParticleSystem_setHueVar); + tolua_function(tolua_S,"getHSV",lua_ax_base_ParticleSystem_getHSV); + tolua_function(tolua_S,"setHSV",lua_ax_base_ParticleSystem_setHSV); + tolua_function(tolua_S,"getHSVVar",lua_ax_base_ParticleSystem_getHSVVar); + tolua_function(tolua_S,"setHSVVar",lua_ax_base_ParticleSystem_setHSVVar); + tolua_function(tolua_S,"getStartSpin",lua_ax_base_ParticleSystem_getStartSpin); + tolua_function(tolua_S,"setStartSpin",lua_ax_base_ParticleSystem_setStartSpin); + tolua_function(tolua_S,"getStartSpinVar",lua_ax_base_ParticleSystem_getStartSpinVar); + tolua_function(tolua_S,"setStartSpinVar",lua_ax_base_ParticleSystem_setStartSpinVar); + tolua_function(tolua_S,"getEndSpin",lua_ax_base_ParticleSystem_getEndSpin); + tolua_function(tolua_S,"setEndSpin",lua_ax_base_ParticleSystem_setEndSpin); + tolua_function(tolua_S,"getEndSpinVar",lua_ax_base_ParticleSystem_getEndSpinVar); + tolua_function(tolua_S,"setEndSpinVar",lua_ax_base_ParticleSystem_setEndSpinVar); + tolua_function(tolua_S,"getSpawnAngle",lua_ax_base_ParticleSystem_getSpawnAngle); + tolua_function(tolua_S,"setSpawnAngle",lua_ax_base_ParticleSystem_setSpawnAngle); + tolua_function(tolua_S,"getSpawnAngleVar",lua_ax_base_ParticleSystem_getSpawnAngleVar); + tolua_function(tolua_S,"setSpawnAngleVar",lua_ax_base_ParticleSystem_setSpawnAngleVar); + tolua_function(tolua_S,"getSpawnFadeIn",lua_ax_base_ParticleSystem_getSpawnFadeIn); + tolua_function(tolua_S,"setSpawnFadeIn",lua_ax_base_ParticleSystem_setSpawnFadeIn); + tolua_function(tolua_S,"getSpawnFadeInVar",lua_ax_base_ParticleSystem_getSpawnFadeInVar); + tolua_function(tolua_S,"setSpawnFadeInVar",lua_ax_base_ParticleSystem_setSpawnFadeInVar); + tolua_function(tolua_S,"getSpawnScaleIn",lua_ax_base_ParticleSystem_getSpawnScaleIn); + tolua_function(tolua_S,"setSpawnScaleIn",lua_ax_base_ParticleSystem_setSpawnScaleIn); + tolua_function(tolua_S,"getSpawnScaleInVar",lua_ax_base_ParticleSystem_getSpawnScaleInVar); + tolua_function(tolua_S,"setSpawnScaleInVar",lua_ax_base_ParticleSystem_setSpawnScaleInVar); + tolua_function(tolua_S,"getEmissionRate",lua_ax_base_ParticleSystem_getEmissionRate); + tolua_function(tolua_S,"setEmissionRate",lua_ax_base_ParticleSystem_setEmissionRate); + tolua_function(tolua_S,"getTotalParticles",lua_ax_base_ParticleSystem_getTotalParticles); + tolua_function(tolua_S,"setTotalParticles",lua_ax_base_ParticleSystem_setTotalParticles); + tolua_function(tolua_S,"setLifeAnimation",lua_ax_base_ParticleSystem_setLifeAnimation); + tolua_function(tolua_S,"setEmitterAnimation",lua_ax_base_ParticleSystem_setEmitterAnimation); + tolua_function(tolua_S,"setLoopAnimation",lua_ax_base_ParticleSystem_setLoopAnimation); + tolua_function(tolua_S,"isLifeAnimated",lua_ax_base_ParticleSystem_isLifeAnimated); + tolua_function(tolua_S,"isEmitterAnimated",lua_ax_base_ParticleSystem_isEmitterAnimated); + tolua_function(tolua_S,"isLoopAnimated",lua_ax_base_ParticleSystem_isLoopAnimated); + tolua_function(tolua_S,"getTotalAnimationIndices",lua_ax_base_ParticleSystem_getTotalAnimationIndices); + tolua_function(tolua_S,"setAnimationReverse",lua_ax_base_ParticleSystem_setAnimationReverse); + tolua_function(tolua_S,"isAnimationReversed",lua_ax_base_ParticleSystem_isAnimationReversed); + tolua_function(tolua_S,"resetAnimationIndices",lua_ax_base_ParticleSystem_resetAnimationIndices); + tolua_function(tolua_S,"resetAnimationDescriptors",lua_ax_base_ParticleSystem_resetAnimationDescriptors); + tolua_function(tolua_S,"setMultiAnimationRandomSpecific",lua_ax_base_ParticleSystem_setMultiAnimationRandomSpecific); + tolua_function(tolua_S,"setMultiAnimationRandom",lua_ax_base_ParticleSystem_setMultiAnimationRandom); + tolua_function(tolua_S,"setAnimationIndicesAtlas",lua_ax_base_ParticleSystem_setAnimationIndicesAtlas); + tolua_function(tolua_S,"addAnimationIndex",lua_ax_base_ParticleSystem_addAnimationIndex); + tolua_function(tolua_S,"setRectForUndefinedIndices",lua_ax_base_ParticleSystem_setRectForUndefinedIndices); + tolua_function(tolua_S,"setAnimationDescriptor",lua_ax_base_ParticleSystem_setAnimationDescriptor); + tolua_function(tolua_S,"setAnimationSpeedTimescaleIndependent",lua_ax_base_ParticleSystem_setAnimationSpeedTimescaleIndependent); + tolua_function(tolua_S,"isAnimationSpeedTimescaleIndependent",lua_ax_base_ParticleSystem_isAnimationSpeedTimescaleIndependent); + tolua_function(tolua_S,"setEmissionShapes",lua_ax_base_ParticleSystem_setEmissionShapes); + tolua_function(tolua_S,"isEmissionShapes",lua_ax_base_ParticleSystem_isEmissionShapes); + tolua_function(tolua_S,"resetEmissionShapes",lua_ax_base_ParticleSystem_resetEmissionShapes); + tolua_function(tolua_S,"addEmissionShape",lua_ax_base_ParticleSystem_addEmissionShape); + tolua_function(tolua_S,"setEmissionShape",lua_ax_base_ParticleSystem_setEmissionShape); + tolua_function(tolua_S,"getPositionType",lua_ax_base_ParticleSystem_getPositionType); + tolua_function(tolua_S,"setPositionType",lua_ax_base_ParticleSystem_setPositionType); + tolua_function(tolua_S,"simulate",lua_ax_base_ParticleSystem_simulate); + tolua_function(tolua_S,"resimulate",lua_ax_base_ParticleSystem_resimulate); + tolua_function(tolua_S,"getTexture",lua_ax_base_ParticleSystem_getTexture); + tolua_function(tolua_S,"setTexture",lua_ax_base_ParticleSystem_setTexture); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_ParticleSystem_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_ParticleSystem_getBlendFunc); + tolua_function(tolua_S,"getResourceFile",lua_ax_base_ParticleSystem_getResourceFile); + tolua_function(tolua_S,"start",lua_ax_base_ParticleSystem_start); + tolua_function(tolua_S,"stop",lua_ax_base_ParticleSystem_stop); + tolua_function(tolua_S,"setSourcePositionCompatible",lua_ax_base_ParticleSystem_setSourcePositionCompatible); + tolua_function(tolua_S,"isSourcePositionCompatible",lua_ax_base_ParticleSystem_isSourcePositionCompatible); + tolua_function(tolua_S,"initWithFile",lua_ax_base_ParticleSystem_initWithFile); + tolua_function(tolua_S,"initWithDictionary",lua_ax_base_ParticleSystem_initWithDictionary); + tolua_function(tolua_S,"initWithTotalParticles",lua_ax_base_ParticleSystem_initWithTotalParticles); + tolua_function(tolua_S,"isPaused",lua_ax_base_ParticleSystem_isPaused); + tolua_function(tolua_S,"pauseEmissions",lua_ax_base_ParticleSystem_pauseEmissions); + tolua_function(tolua_S,"resumeEmissions",lua_ax_base_ParticleSystem_resumeEmissions); + tolua_function(tolua_S,"getFixedFPS",lua_ax_base_ParticleSystem_getFixedFPS); + tolua_function(tolua_S,"setFixedFPS",lua_ax_base_ParticleSystem_setFixedFPS); + tolua_function(tolua_S,"getTimeScale",lua_ax_base_ParticleSystem_getTimeScale); + tolua_function(tolua_S,"setTimeScale",lua_ax_base_ParticleSystem_setTimeScale); tolua_function(tolua_S,"create", lua_ax_base_ParticleSystem_create); tolua_function(tolua_S,"createWithTotalParticles", lua_ax_base_ParticleSystem_createWithTotalParticles); - tolua_function(tolua_S,"createPointShape", lua_ax_base_ParticleSystem_createPointShape); - tolua_function(tolua_S,"createCircleShape", lua_ax_base_ParticleSystem_createCircleShape); - tolua_function(tolua_S,"createMaskShape", lua_ax_base_ParticleSystem_createMaskShape); - tolua_function(tolua_S,"createRectShape", lua_ax_base_ParticleSystem_createRectShape); tolua_function(tolua_S,"getAllParticleSystems", lua_ax_base_ParticleSystem_getAllParticleSystems); + tolua_function(tolua_S,"createMaskShape", lua_ax_base_ParticleSystem_createMaskShape); + tolua_function(tolua_S,"createPointShape", lua_ax_base_ParticleSystem_createPointShape); + tolua_function(tolua_S,"createRectShape", lua_ax_base_ParticleSystem_createRectShape); + tolua_function(tolua_S,"createRectTorusShape", lua_ax_base_ParticleSystem_createRectTorusShape); + tolua_function(tolua_S,"createCircleShape", lua_ax_base_ParticleSystem_createCircleShape); + tolua_function(tolua_S,"createConeShape", lua_ax_base_ParticleSystem_createConeShape); + tolua_function(tolua_S,"createTorusShape", lua_ax_base_ParticleSystem_createTorusShape); tolua_function(tolua_S,"createConeTorusShape", lua_ax_base_ParticleSystem_createConeTorusShape); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ParticleSystem).name(); // rtti is literal storage @@ -80697,7 +80595,7 @@ int lua_register_ax_base_ParticleRain(lua_State* tolua_S) return 1; } -int lua_ax_base_ProgressTimer_initWithSprite(lua_State* tolua_S) +int lua_ax_base_ProgressTimer_getType(lua_State* tolua_S) { int argc = 0; ax::ProgressTimer* cobj = nullptr; @@ -80717,57 +80615,7 @@ int lua_ax_base_ProgressTimer_initWithSprite(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_initWithSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.ProgressTimer:initWithSprite"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_initWithSprite'", nullptr); - return 0; - } - auto&& ret = cobj->initWithSprite(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:initWithSprite",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_initWithSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProgressTimer_isReverseDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_isReverseDirection'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_getType'", nullptr); return 0; } #endif @@ -80777,69 +80625,19 @@ int lua_ax_base_ProgressTimer_isReverseDirection(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_isReverseDirection'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_getType'", nullptr); return 0; } - auto&& ret = cobj->isReverseDirection(); - tolua_pushboolean(tolua_S,(bool)ret); + int ret = (int)cobj->getType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:isReverseDirection",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:getType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_isReverseDirection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProgressTimer_setBarChangeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setBarChangeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ProgressTimer:setBarChangeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setBarChangeRate'", nullptr); - return 0; - } - cobj->setBarChangeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setBarChangeRate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setBarChangeRate'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_getType'.",&tolua_err); #endif return 0; @@ -80891,103 +80689,6 @@ int lua_ax_base_ProgressTimer_getPercentage(lua_State* tolua_S) return 0; } -int lua_ax_base_ProgressTimer_setSprite(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.ProgressTimer:setSprite"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setSprite'", nullptr); - return 0; - } - cobj->setSprite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setSprite",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProgressTimer_getType(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_getType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_getType'", nullptr); - return 0; - } - int ret = (int)cobj->getType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:getType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_getType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ProgressTimer_getSprite(lua_State* tolua_S) { int argc = 0; @@ -81035,200 +80736,6 @@ int lua_ax_base_ProgressTimer_getSprite(lua_State* tolua_S) return 0; } -int lua_ax_base_ProgressTimer_setMidpoint(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setMidpoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ProgressTimer:setMidpoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setMidpoint'", nullptr); - return 0; - } - cobj->setMidpoint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setMidpoint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setMidpoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProgressTimer_getBarChangeRate(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_getBarChangeRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_getBarChangeRate'", nullptr); - return 0; - } - auto&& ret = cobj->getBarChangeRate(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:getBarChangeRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_getBarChangeRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProgressTimer_setReverseDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setReverseDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ProgressTimer:setReverseDirection"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setReverseDirection'", nullptr); - return 0; - } - cobj->setReverseDirection(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setReverseDirection",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setReverseDirection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProgressTimer_getMidpoint(lua_State* tolua_S) -{ - int argc = 0; - ax::ProgressTimer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_getMidpoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_getMidpoint'", nullptr); - return 0; - } - auto&& ret = cobj->getMidpoint(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:getMidpoint",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_getMidpoint'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ProgressTimer_setPercentage(lua_State* tolua_S) { int argc = 0; @@ -81279,6 +80786,56 @@ int lua_ax_base_ProgressTimer_setPercentage(lua_State* tolua_S) return 0; } +int lua_ax_base_ProgressTimer_setSprite(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.ProgressTimer:setSprite"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setSprite'", nullptr); + return 0; + } + cobj->setSprite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setSprite",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setSprite'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ProgressTimer_setType(lua_State* tolua_S) { int argc = 0; @@ -81329,6 +80886,347 @@ int lua_ax_base_ProgressTimer_setType(lua_State* tolua_S) return 0; } +int lua_ax_base_ProgressTimer_isReverseDirection(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_isReverseDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_isReverseDirection'", nullptr); + return 0; + } + auto&& ret = cobj->isReverseDirection(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:isReverseDirection",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_isReverseDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProgressTimer_setReverseDirection(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setReverseDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ProgressTimer:setReverseDirection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setReverseDirection'", nullptr); + return 0; + } + cobj->setReverseDirection(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setReverseDirection",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setReverseDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProgressTimer_setMidpoint(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setMidpoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ProgressTimer:setMidpoint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setMidpoint'", nullptr); + return 0; + } + cobj->setMidpoint(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setMidpoint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setMidpoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProgressTimer_getMidpoint(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_getMidpoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_getMidpoint'", nullptr); + return 0; + } + auto&& ret = cobj->getMidpoint(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:getMidpoint",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_getMidpoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProgressTimer_setBarChangeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_setBarChangeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.ProgressTimer:setBarChangeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_setBarChangeRate'", nullptr); + return 0; + } + cobj->setBarChangeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:setBarChangeRate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_setBarChangeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProgressTimer_getBarChangeRate(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_getBarChangeRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_getBarChangeRate'", nullptr); + return 0; + } + auto&& ret = cobj->getBarChangeRate(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:getBarChangeRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_getBarChangeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProgressTimer_initWithSprite(lua_State* tolua_S) +{ + int argc = 0; + ax::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProgressTimer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProgressTimer_initWithSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.ProgressTimer:initWithSprite"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProgressTimer_initWithSprite'", nullptr); + return 0; + } + auto&& ret = cobj->initWithSprite(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProgressTimer:initWithSprite",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProgressTimer_initWithSprite'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ProgressTimer_create(lua_State* tolua_S) { int argc = 0; @@ -81415,19 +81313,19 @@ int lua_register_ax_base_ProgressTimer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ProgressTimer"); tolua_function(tolua_S,"new",lua_ax_base_ProgressTimer_constructor); - tolua_function(tolua_S,"initWithSprite",lua_ax_base_ProgressTimer_initWithSprite); - tolua_function(tolua_S,"isReverseDirection",lua_ax_base_ProgressTimer_isReverseDirection); - tolua_function(tolua_S,"setBarChangeRate",lua_ax_base_ProgressTimer_setBarChangeRate); - tolua_function(tolua_S,"getPercentage",lua_ax_base_ProgressTimer_getPercentage); - tolua_function(tolua_S,"setSprite",lua_ax_base_ProgressTimer_setSprite); tolua_function(tolua_S,"getType",lua_ax_base_ProgressTimer_getType); + tolua_function(tolua_S,"getPercentage",lua_ax_base_ProgressTimer_getPercentage); tolua_function(tolua_S,"getSprite",lua_ax_base_ProgressTimer_getSprite); - tolua_function(tolua_S,"setMidpoint",lua_ax_base_ProgressTimer_setMidpoint); - tolua_function(tolua_S,"getBarChangeRate",lua_ax_base_ProgressTimer_getBarChangeRate); - tolua_function(tolua_S,"setReverseDirection",lua_ax_base_ProgressTimer_setReverseDirection); - tolua_function(tolua_S,"getMidpoint",lua_ax_base_ProgressTimer_getMidpoint); tolua_function(tolua_S,"setPercentage",lua_ax_base_ProgressTimer_setPercentage); + tolua_function(tolua_S,"setSprite",lua_ax_base_ProgressTimer_setSprite); tolua_function(tolua_S,"setType",lua_ax_base_ProgressTimer_setType); + tolua_function(tolua_S,"isReverseDirection",lua_ax_base_ProgressTimer_isReverseDirection); + tolua_function(tolua_S,"setReverseDirection",lua_ax_base_ProgressTimer_setReverseDirection); + tolua_function(tolua_S,"setMidpoint",lua_ax_base_ProgressTimer_setMidpoint); + tolua_function(tolua_S,"getMidpoint",lua_ax_base_ProgressTimer_getMidpoint); + tolua_function(tolua_S,"setBarChangeRate",lua_ax_base_ProgressTimer_setBarChangeRate); + tolua_function(tolua_S,"getBarChangeRate",lua_ax_base_ProgressTimer_getBarChangeRate); + tolua_function(tolua_S,"initWithSprite",lua_ax_base_ProgressTimer_initWithSprite); tolua_function(tolua_S,"create", lua_ax_base_ProgressTimer_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ProgressTimer).name(); // rtti is literal storage @@ -81515,317 +81413,6 @@ int lua_ax_base_ProtectedNode_addProtectedChild(lua_State* tolua_S) return 0; } -int lua_ax_base_ProtectedNode_disableCascadeColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ProtectedNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_disableCascadeColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_disableCascadeColor'", nullptr); - return 0; - } - cobj->disableCascadeColor(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:disableCascadeColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_disableCascadeColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) -{ - int argc = 0; - ax::ProtectedNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ProtectedNode:removeProtectedChildByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'", nullptr); - return 0; - } - cobj->removeProtectedChildByTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - int arg0; - bool arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ProtectedNode:removeProtectedChildByTag"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.ProtectedNode:removeProtectedChildByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'", nullptr); - return 0; - } - cobj->removeProtectedChildByTag(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:removeProtectedChildByTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) -{ - int argc = 0; - ax::ProtectedNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_reorderProtectedChild'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Node* arg0; - int arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ProtectedNode:reorderProtectedChild"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ProtectedNode:reorderProtectedChild"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_reorderProtectedChild'", nullptr); - return 0; - } - cobj->reorderProtectedChild(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:reorderProtectedChild",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_reorderProtectedChild'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* tolua_S) -{ - int argc = 0; - ax::ProtectedNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ProtectedNode:removeAllProtectedChildrenWithCleanup"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); - return 0; - } - cobj->removeAllProtectedChildrenWithCleanup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:removeAllProtectedChildrenWithCleanup",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::ProtectedNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_disableCascadeOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_disableCascadeOpacity'", nullptr); - return 0; - } - cobj->disableCascadeOpacity(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:disableCascadeOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_disableCascadeOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) -{ - int argc = 0; - ax::ProtectedNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_sortAllProtectedChildren'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_sortAllProtectedChildren'", nullptr); - return 0; - } - cobj->sortAllProtectedChildren(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:sortAllProtectedChildren",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_sortAllProtectedChildren'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) { int argc = 0; @@ -81943,6 +81530,73 @@ int lua_ax_base_ProtectedNode_removeProtectedChild(lua_State* tolua_S) return 0; } +int lua_ax_base_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) +{ + int argc = 0; + ax::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ProtectedNode:removeProtectedChildByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'", nullptr); + return 0; + } + cobj->removeProtectedChildByTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + int arg0; + bool arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ProtectedNode:removeProtectedChildByTag"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.ProtectedNode:removeProtectedChildByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'", nullptr); + return 0; + } + cobj->removeProtectedChildByTag(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:removeProtectedChildByTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_removeProtectedChildByTag'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) { int argc = 0; @@ -81990,6 +81644,250 @@ int lua_ax_base_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) return 0; } +int lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* tolua_S) +{ + int argc = 0; + ax::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ProtectedNode:removeAllProtectedChildrenWithCleanup"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); + return 0; + } + cobj->removeAllProtectedChildrenWithCleanup(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:removeAllProtectedChildrenWithCleanup",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) +{ + int argc = 0; + ax::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_reorderProtectedChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Node* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ax.ProtectedNode:reorderProtectedChild"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.ProtectedNode:reorderProtectedChild"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_reorderProtectedChild'", nullptr); + return 0; + } + cobj->reorderProtectedChild(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:reorderProtectedChild",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_reorderProtectedChild'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) +{ + int argc = 0; + ax::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_sortAllProtectedChildren'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_sortAllProtectedChildren'", nullptr); + return 0; + } + cobj->sortAllProtectedChildren(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:sortAllProtectedChildren",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_sortAllProtectedChildren'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProtectedNode_disableCascadeColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_disableCascadeColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_disableCascadeColor'", nullptr); + return 0; + } + cobj->disableCascadeColor(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:disableCascadeColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_disableCascadeColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ProtectedNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_ProtectedNode_disableCascadeOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_ProtectedNode_disableCascadeOpacity'", nullptr); + return 0; + } + cobj->disableCascadeOpacity(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ProtectedNode:disableCascadeOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_ProtectedNode_disableCascadeOpacity'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_ProtectedNode_create(lua_State* tolua_S) { int argc = 0; @@ -82075,15 +81973,15 @@ int lua_register_ax_base_ProtectedNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ProtectedNode"); tolua_function(tolua_S,"new",lua_ax_base_ProtectedNode_constructor); tolua_function(tolua_S,"addProtectedChild",lua_ax_base_ProtectedNode_addProtectedChild); - tolua_function(tolua_S,"disableCascadeColor",lua_ax_base_ProtectedNode_disableCascadeColor); - tolua_function(tolua_S,"removeProtectedChildByTag",lua_ax_base_ProtectedNode_removeProtectedChildByTag); - tolua_function(tolua_S,"reorderProtectedChild",lua_ax_base_ProtectedNode_reorderProtectedChild); - tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup); - tolua_function(tolua_S,"disableCascadeOpacity",lua_ax_base_ProtectedNode_disableCascadeOpacity); - tolua_function(tolua_S,"sortAllProtectedChildren",lua_ax_base_ProtectedNode_sortAllProtectedChildren); tolua_function(tolua_S,"getProtectedChildByTag",lua_ax_base_ProtectedNode_getProtectedChildByTag); tolua_function(tolua_S,"removeProtectedChild",lua_ax_base_ProtectedNode_removeProtectedChild); + tolua_function(tolua_S,"removeProtectedChildByTag",lua_ax_base_ProtectedNode_removeProtectedChildByTag); tolua_function(tolua_S,"removeAllProtectedChildren",lua_ax_base_ProtectedNode_removeAllProtectedChildren); + tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_ax_base_ProtectedNode_removeAllProtectedChildrenWithCleanup); + tolua_function(tolua_S,"reorderProtectedChild",lua_ax_base_ProtectedNode_reorderProtectedChild); + tolua_function(tolua_S,"sortAllProtectedChildren",lua_ax_base_ProtectedNode_sortAllProtectedChildren); + tolua_function(tolua_S,"disableCascadeColor",lua_ax_base_ProtectedNode_disableCascadeColor); + tolua_function(tolua_S,"disableCascadeOpacity",lua_ax_base_ProtectedNode_disableCascadeOpacity); tolua_function(tolua_S,"create", lua_ax_base_ProtectedNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ProtectedNode).name(); // rtti is literal storage @@ -82092,7 +81990,7 @@ int lua_register_ax_base_ProtectedNode(lua_State* tolua_S) return 1; } -int lua_ax_base_RenderTexture_setVirtualViewport(lua_State* tolua_S) +int lua_ax_base_RenderTexture_begin(lua_State* tolua_S) { int argc = 0; ax::RenderTexture* cobj = nullptr; @@ -82112,38 +82010,300 @@ int lua_ax_base_RenderTexture_setVirtualViewport(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setVirtualViewport'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_begin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 0) { - ax::Vec2 arg0; - ax::Rect arg1; - ax::Rect arg2; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.RenderTexture:setVirtualViewport"); - - ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.RenderTexture:setVirtualViewport"); - - ok &= luaval_to_rect(tolua_S, 4, &arg2, "ax.RenderTexture:setVirtualViewport"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setVirtualViewport'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_begin'", nullptr); return 0; } - cobj->setVirtualViewport(arg0, arg1, arg2); + cobj->begin(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setVirtualViewport",argc, 3); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:begin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setVirtualViewport'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_begin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_beginWithClear(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_beginWithClear'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 5) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg3; + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg4; + ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 4) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg3; + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + cobj->beginWithClear(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 6) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg3; + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + double arg4; + ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + int arg5; + ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.RenderTexture:beginWithClear"); + + if (!ok) { break; } + cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4, arg5); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:beginWithClear",argc, 6); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_beginWithClear'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_end(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_end'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_end'", nullptr); + return 0; + } + cobj->end(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:end",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_end'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_clear(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_clear'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + double arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:clear"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:clear"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:clear"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:clear"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_clear'", nullptr); + return 0; + } + cobj->clear(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:clear",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_clear'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_clearDepth(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_clearDepth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:clearDepth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_clearDepth'", nullptr); + return 0; + } + cobj->clearDepth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:clearDepth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_clearDepth'.",&tolua_err); #endif return 0; @@ -82198,341 +82358,6 @@ int lua_ax_base_RenderTexture_clearStencil(lua_State* tolua_S) return 0; } -int lua_ax_base_RenderTexture_getClearDepth(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearDepth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearDepth'", nullptr); - return 0; - } - auto&& ret = cobj->getClearDepth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearDepth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearDepth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_getClearStencil(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearStencil'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearStencil'", nullptr); - return 0; - } - auto&& ret = cobj->getClearStencil(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearStencil",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearStencil'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_setClearStencil(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setClearStencil'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.RenderTexture:setClearStencil"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setClearStencil'", nullptr); - return 0; - } - cobj->setClearStencil(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setClearStencil",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setClearStencil'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_getRenderTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getRenderTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getRenderTarget'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderTarget(); - object_to_luaval(tolua_S, "axb.RenderTarget",(ax::backend::RenderTarget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getRenderTarget",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getRenderTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_setSprite(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.RenderTexture:setSprite"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setSprite'", nullptr); - return 0; - } - cobj->setSprite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setSprite",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_getSprite(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getSprite'", nullptr); - return 0; - } - auto&& ret = cobj->getSprite(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getSprite",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_isAutoDraw(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_isAutoDraw'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_isAutoDraw'", nullptr); - return 0; - } - auto&& ret = cobj->isAutoDraw(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:isAutoDraw",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_isAutoDraw'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) { int argc = 0; @@ -82644,153 +82469,6 @@ int lua_ax_base_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) return 0; } -int lua_ax_base_RenderTexture_setKeepMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setKeepMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.RenderTexture:setKeepMatrix"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setKeepMatrix'", nullptr); - return 0; - } - cobj->setKeepMatrix(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setKeepMatrix",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setKeepMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_setClearFlags(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setClearFlags'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::TargetBufferFlags arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.RenderTexture:setClearFlags"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setClearFlags'", nullptr); - return 0; - } - cobj->setClearFlags(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setClearFlags",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setClearFlags'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_begin(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_begin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_begin'", nullptr); - return 0; - } - cobj->begin(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:begin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_begin'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_RenderTexture_saveToFile(lua_State* tolua_S) { int argc = 0; @@ -82938,7 +82616,7 @@ int lua_ax_base_RenderTexture_saveToFile(lua_State* tolua_S) return 0; } -int lua_ax_base_RenderTexture_setAutoDraw(lua_State* tolua_S) +int lua_ax_base_RenderTexture_getClearFlags(lua_State* tolua_S) { int argc = 0; ax::RenderTexture* cobj = nullptr; @@ -82958,7 +82636,54 @@ int lua_ax_base_RenderTexture_setAutoDraw(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setAutoDraw'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearFlags'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearFlags'", nullptr); + return 0; + } + int ret = (int)cobj->getClearFlags(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearFlags",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearFlags'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_setClearFlags(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setClearFlags'", nullptr); return 0; } #endif @@ -82966,24 +82691,71 @@ int lua_ax_base_RenderTexture_setAutoDraw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + ax::backend::TargetBufferFlags arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.RenderTexture:setAutoDraw"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.RenderTexture:setClearFlags"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setAutoDraw'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setClearFlags'", nullptr); return 0; } - cobj->setAutoDraw(arg0); + cobj->setClearFlags(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setAutoDraw",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setClearFlags",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setAutoDraw'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setClearFlags'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_getClearColor(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearColor'", nullptr); + return 0; + } + auto&& ret = cobj->getClearColor(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearColor'.",&tolua_err); #endif return 0; @@ -83038,7 +82810,7 @@ int lua_ax_base_RenderTexture_setClearColor(lua_State* tolua_S) return 0; } -int lua_ax_base_RenderTexture_end(lua_State* tolua_S) +int lua_ax_base_RenderTexture_getClearDepth(lua_State* tolua_S) { int argc = 0; ax::RenderTexture* cobj = nullptr; @@ -83058,7 +82830,7 @@ int lua_ax_base_RenderTexture_end(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_end'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearDepth'", nullptr); return 0; } #endif @@ -83068,384 +82840,19 @@ int lua_ax_base_RenderTexture_end(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_end'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearDepth'", nullptr); return 0; } - cobj->end(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:end",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_end'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_beginWithClear(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_beginWithClear'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 5) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg3; - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg4; - ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 4) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg3; - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - cobj->beginWithClear(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 6) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg3; - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - double arg4; - ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - int arg5; - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.RenderTexture:beginWithClear"); - - if (!ok) { break; } - cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4, arg5); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:beginWithClear",argc, 6); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_beginWithClear'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_clearDepth(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_clearDepth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:clearDepth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_clearDepth'", nullptr); - return 0; - } - cobj->clearDepth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:clearDepth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_clearDepth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_getClearColor(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearColor'", nullptr); - return 0; - } - auto&& ret = cobj->getClearColor(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_clear(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_clear'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - double arg0; - double arg1; - double arg2; - double arg3; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.RenderTexture:clear"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.RenderTexture:clear"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.RenderTexture:clear"); - - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.RenderTexture:clear"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_clear'", nullptr); - return 0; - } - cobj->clear(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:clear",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_clear'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_isSharedRenderTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_isSharedRenderTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_isSharedRenderTarget'", nullptr); - return 0; - } - auto&& ret = cobj->isSharedRenderTarget(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:isSharedRenderTarget",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_isSharedRenderTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_RenderTexture_getClearFlags(lua_State* tolua_S) -{ - int argc = 0; - ax::RenderTexture* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearFlags'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearFlags'", nullptr); - return 0; - } - int ret = (int)cobj->getClearFlags(); + auto&& ret = cobj->getClearDepth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearFlags",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearDepth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearFlags'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearDepth'.",&tolua_err); #endif return 0; @@ -83500,6 +82907,497 @@ int lua_ax_base_RenderTexture_setClearDepth(lua_State* tolua_S) return 0; } +int lua_ax_base_RenderTexture_getClearStencil(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getClearStencil'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getClearStencil'", nullptr); + return 0; + } + auto&& ret = cobj->getClearStencil(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getClearStencil",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getClearStencil'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_setClearStencil(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setClearStencil'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.RenderTexture:setClearStencil"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setClearStencil'", nullptr); + return 0; + } + cobj->setClearStencil(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setClearStencil",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setClearStencil'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_isAutoDraw(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_isAutoDraw'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_isAutoDraw'", nullptr); + return 0; + } + auto&& ret = cobj->isAutoDraw(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:isAutoDraw",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_isAutoDraw'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_setAutoDraw(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setAutoDraw'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.RenderTexture:setAutoDraw"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setAutoDraw'", nullptr); + return 0; + } + cobj->setAutoDraw(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setAutoDraw",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setAutoDraw'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_getSprite(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getSprite'", nullptr); + return 0; + } + auto&& ret = cobj->getSprite(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getSprite",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_getRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_getRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_getRenderTarget'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderTarget(); + object_to_luaval(tolua_S, "axb.RenderTarget",(ax::backend::RenderTarget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:getRenderTarget",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_getRenderTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_setSprite(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.RenderTexture:setSprite"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setSprite'", nullptr); + return 0; + } + cobj->setSprite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setSprite",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_setKeepMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setKeepMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.RenderTexture:setKeepMatrix"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setKeepMatrix'", nullptr); + return 0; + } + cobj->setKeepMatrix(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setKeepMatrix",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setKeepMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_setVirtualViewport(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_setVirtualViewport'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Vec2 arg0; + ax::Rect arg1; + ax::Rect arg2; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.RenderTexture:setVirtualViewport"); + + ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.RenderTexture:setVirtualViewport"); + + ok &= luaval_to_rect(tolua_S, 4, &arg2, "ax.RenderTexture:setVirtualViewport"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_setVirtualViewport'", nullptr); + return 0; + } + cobj->setVirtualViewport(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:setVirtualViewport",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_setVirtualViewport'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_RenderTexture_isSharedRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::RenderTexture* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.RenderTexture",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::RenderTexture*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_RenderTexture_isSharedRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_RenderTexture_isSharedRenderTarget'", nullptr); + return 0; + } + auto&& ret = cobj->isSharedRenderTarget(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.RenderTexture:isSharedRenderTarget",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_RenderTexture_isSharedRenderTarget'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) { int argc = 0; @@ -83822,30 +83720,30 @@ int lua_register_ax_base_RenderTexture(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RenderTexture"); tolua_function(tolua_S,"new",lua_ax_base_RenderTexture_constructor); - tolua_function(tolua_S,"setVirtualViewport",lua_ax_base_RenderTexture_setVirtualViewport); + tolua_function(tolua_S,"begin",lua_ax_base_RenderTexture_begin); + tolua_function(tolua_S,"beginWithClear",lua_ax_base_RenderTexture_beginWithClear); + tolua_function(tolua_S,"endToLua",lua_ax_base_RenderTexture_end); + tolua_function(tolua_S,"clear",lua_ax_base_RenderTexture_clear); + tolua_function(tolua_S,"clearDepth",lua_ax_base_RenderTexture_clearDepth); tolua_function(tolua_S,"clearStencil",lua_ax_base_RenderTexture_clearStencil); + tolua_function(tolua_S,"saveToFileAsNonPMA",lua_ax_base_RenderTexture_saveToFileAsNonPMA); + tolua_function(tolua_S,"saveToFile",lua_ax_base_RenderTexture_saveToFile); + tolua_function(tolua_S,"getClearFlags",lua_ax_base_RenderTexture_getClearFlags); + tolua_function(tolua_S,"setClearFlags",lua_ax_base_RenderTexture_setClearFlags); + tolua_function(tolua_S,"getClearColor",lua_ax_base_RenderTexture_getClearColor); + tolua_function(tolua_S,"setClearColor",lua_ax_base_RenderTexture_setClearColor); tolua_function(tolua_S,"getClearDepth",lua_ax_base_RenderTexture_getClearDepth); + tolua_function(tolua_S,"setClearDepth",lua_ax_base_RenderTexture_setClearDepth); tolua_function(tolua_S,"getClearStencil",lua_ax_base_RenderTexture_getClearStencil); tolua_function(tolua_S,"setClearStencil",lua_ax_base_RenderTexture_setClearStencil); + tolua_function(tolua_S,"isAutoDraw",lua_ax_base_RenderTexture_isAutoDraw); + tolua_function(tolua_S,"setAutoDraw",lua_ax_base_RenderTexture_setAutoDraw); + tolua_function(tolua_S,"getSprite",lua_ax_base_RenderTexture_getSprite); tolua_function(tolua_S,"getRenderTarget",lua_ax_base_RenderTexture_getRenderTarget); tolua_function(tolua_S,"setSprite",lua_ax_base_RenderTexture_setSprite); - tolua_function(tolua_S,"getSprite",lua_ax_base_RenderTexture_getSprite); - tolua_function(tolua_S,"isAutoDraw",lua_ax_base_RenderTexture_isAutoDraw); - tolua_function(tolua_S,"saveToFileAsNonPMA",lua_ax_base_RenderTexture_saveToFileAsNonPMA); tolua_function(tolua_S,"setKeepMatrix",lua_ax_base_RenderTexture_setKeepMatrix); - tolua_function(tolua_S,"setClearFlags",lua_ax_base_RenderTexture_setClearFlags); - tolua_function(tolua_S,"begin",lua_ax_base_RenderTexture_begin); - tolua_function(tolua_S,"saveToFile",lua_ax_base_RenderTexture_saveToFile); - tolua_function(tolua_S,"setAutoDraw",lua_ax_base_RenderTexture_setAutoDraw); - tolua_function(tolua_S,"setClearColor",lua_ax_base_RenderTexture_setClearColor); - tolua_function(tolua_S,"endToLua",lua_ax_base_RenderTexture_end); - tolua_function(tolua_S,"beginWithClear",lua_ax_base_RenderTexture_beginWithClear); - tolua_function(tolua_S,"clearDepth",lua_ax_base_RenderTexture_clearDepth); - tolua_function(tolua_S,"getClearColor",lua_ax_base_RenderTexture_getClearColor); - tolua_function(tolua_S,"clear",lua_ax_base_RenderTexture_clear); + tolua_function(tolua_S,"setVirtualViewport",lua_ax_base_RenderTexture_setVirtualViewport); tolua_function(tolua_S,"isSharedRenderTarget",lua_ax_base_RenderTexture_isSharedRenderTarget); - tolua_function(tolua_S,"getClearFlags",lua_ax_base_RenderTexture_getClearFlags); - tolua_function(tolua_S,"setClearDepth",lua_ax_base_RenderTexture_setClearDepth); tolua_function(tolua_S,"initWithWidthAndHeight",lua_ax_base_RenderTexture_initWithWidthAndHeight); tolua_function(tolua_S,"create", lua_ax_base_RenderTexture_create); tolua_endmodule(tolua_S); @@ -83925,6 +83823,100 @@ int lua_register_ax_base_TransitionEaseScene(lua_State* tolua_S) return 1; } +int lua_ax_base_TransitionScene_finish(lua_State* tolua_S) +{ + int argc = 0; + ax::TransitionScene* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TransitionScene",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TransitionScene*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionScene_finish'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionScene_finish'", nullptr); + return 0; + } + cobj->finish(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionScene:finish",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionScene_finish'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TransitionScene_hideOutShowIn(lua_State* tolua_S) +{ + int argc = 0; + ax::TransitionScene* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TransitionScene",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TransitionScene*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionScene_hideOutShowIn'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionScene_hideOutShowIn'", nullptr); + return 0; + } + cobj->hideOutShowIn(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionScene:hideOutShowIn",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionScene_hideOutShowIn'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TransitionScene_getInScene(lua_State* tolua_S) { int argc = 0; @@ -83972,7 +83964,7 @@ int lua_ax_base_TransitionScene_getInScene(lua_State* tolua_S) return 0; } -int lua_ax_base_TransitionScene_finish(lua_State* tolua_S) +int lua_ax_base_TransitionScene_getDuration(lua_State* tolua_S) { int argc = 0; ax::TransitionScene* cobj = nullptr; @@ -83992,7 +83984,7 @@ int lua_ax_base_TransitionScene_finish(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionScene_finish'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionScene_getDuration'", nullptr); return 0; } #endif @@ -84002,19 +83994,19 @@ int lua_ax_base_TransitionScene_finish(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionScene_finish'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionScene_getDuration'", nullptr); return 0; } - cobj->finish(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionScene:finish",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionScene:getDuration",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionScene_finish'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionScene_getDuration'.",&tolua_err); #endif return 0; @@ -84072,100 +84064,6 @@ int lua_ax_base_TransitionScene_initWithDuration(lua_State* tolua_S) return 0; } -int lua_ax_base_TransitionScene_getDuration(lua_State* tolua_S) -{ - int argc = 0; - ax::TransitionScene* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TransitionScene",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TransitionScene*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionScene_getDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionScene_getDuration'", nullptr); - return 0; - } - auto&& ret = cobj->getDuration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionScene:getDuration",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionScene_getDuration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TransitionScene_hideOutShowIn(lua_State* tolua_S) -{ - int argc = 0; - ax::TransitionScene* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TransitionScene",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TransitionScene*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionScene_hideOutShowIn'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionScene_hideOutShowIn'", nullptr); - return 0; - } - cobj->hideOutShowIn(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionScene:hideOutShowIn",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionScene_hideOutShowIn'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TransitionScene_create(lua_State* tolua_S) { int argc = 0; @@ -84254,11 +84152,11 @@ int lua_register_ax_base_TransitionScene(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TransitionScene"); tolua_function(tolua_S,"new",lua_ax_base_TransitionScene_constructor); - tolua_function(tolua_S,"getInScene",lua_ax_base_TransitionScene_getInScene); tolua_function(tolua_S,"finish",lua_ax_base_TransitionScene_finish); - tolua_function(tolua_S,"initWithDuration",lua_ax_base_TransitionScene_initWithDuration); - tolua_function(tolua_S,"getDuration",lua_ax_base_TransitionScene_getDuration); tolua_function(tolua_S,"hideOutShowIn",lua_ax_base_TransitionScene_hideOutShowIn); + tolua_function(tolua_S,"getInScene",lua_ax_base_TransitionScene_getInScene); + tolua_function(tolua_S,"getDuration",lua_ax_base_TransitionScene_getDuration); + tolua_function(tolua_S,"initWithDuration",lua_ax_base_TransitionScene_initWithDuration); tolua_function(tolua_S,"create", lua_ax_base_TransitionScene_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TransitionScene).name(); // rtti is literal storage @@ -85097,53 +84995,6 @@ int lua_register_ax_base_TransitionMoveInB(lua_State* tolua_S) return 1; } -int lua_ax_base_TransitionSlideInL_action(lua_State* tolua_S) -{ - int argc = 0; - ax::TransitionSlideInL* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionSlideInL_action'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionSlideInL_action'", nullptr); - return 0; - } - auto&& ret = cobj->action(); - object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionSlideInL:action",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionSlideInL_action'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) { int argc = 0; @@ -85194,6 +85045,53 @@ int lua_ax_base_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) return 0; } +int lua_ax_base_TransitionSlideInL_action(lua_State* tolua_S) +{ + int argc = 0; + ax::TransitionSlideInL* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionSlideInL_action'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionSlideInL_action'", nullptr); + return 0; + } + auto&& ret = cobj->action(); + object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionSlideInL:action",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionSlideInL_action'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TransitionSlideInL_create(lua_State* tolua_S) { int argc = 0; @@ -85282,8 +85180,8 @@ int lua_register_ax_base_TransitionSlideInL(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TransitionSlideInL"); tolua_function(tolua_S,"new",lua_ax_base_TransitionSlideInL_constructor); - tolua_function(tolua_S,"action",lua_ax_base_TransitionSlideInL_action); tolua_function(tolua_S,"easeActionWithAction",lua_ax_base_TransitionSlideInL_easeActionWithAction); + tolua_function(tolua_S,"action",lua_ax_base_TransitionSlideInL_action); tolua_function(tolua_S,"create", lua_ax_base_TransitionSlideInL_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TransitionSlideInL).name(); // rtti is literal storage @@ -87134,56 +87032,6 @@ int lua_register_ax_base_TransitionSplitRows(lua_State* tolua_S) return 1; } -int lua_ax_base_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) -{ - int argc = 0; - ax::TransitionFadeTR* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionFadeTR_easeActionWithAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ActionInterval* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.ActionInterval",&arg0, "ax.TransitionFadeTR:easeActionWithAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionFadeTR_easeActionWithAction'", nullptr); - return 0; - } - auto&& ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionFadeTR:easeActionWithAction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionFadeTR_easeActionWithAction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TransitionFadeTR_actionWithSize(lua_State* tolua_S) { int argc = 0; @@ -87234,6 +87082,56 @@ int lua_ax_base_TransitionFadeTR_actionWithSize(lua_State* tolua_S) return 0; } +int lua_ax_base_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) +{ + int argc = 0; + ax::TransitionFadeTR* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionFadeTR_easeActionWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ActionInterval* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.ActionInterval",&arg0, "ax.TransitionFadeTR:easeActionWithAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionFadeTR_easeActionWithAction'", nullptr); + return 0; + } + auto&& ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionFadeTR:easeActionWithAction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionFadeTR_easeActionWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TransitionFadeTR_create(lua_State* tolua_S) { int argc = 0; @@ -87322,8 +87220,8 @@ int lua_register_ax_base_TransitionFadeTR(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TransitionFadeTR"); tolua_function(tolua_S,"new",lua_ax_base_TransitionFadeTR_constructor); - tolua_function(tolua_S,"easeActionWithAction",lua_ax_base_TransitionFadeTR_easeActionWithAction); tolua_function(tolua_S,"actionWithSize",lua_ax_base_TransitionFadeTR_actionWithSize); + tolua_function(tolua_S,"easeActionWithAction",lua_ax_base_TransitionFadeTR_easeActionWithAction); tolua_function(tolua_S,"create", lua_ax_base_TransitionFadeTR_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TransitionFadeTR).name(); // rtti is literal storage @@ -87620,56 +87518,6 @@ int lua_register_ax_base_TransitionFadeDown(lua_State* tolua_S) return 1; } -int lua_ax_base_TransitionPageTurn_actionWithSize(lua_State* tolua_S) -{ - int argc = 0; - ax::TransitionPageTurn* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionPageTurn_actionWithSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TransitionPageTurn:actionWithSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionPageTurn_actionWithSize'", nullptr); - return 0; - } - auto&& ret = cobj->actionWithSize(arg0); - object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionPageTurn:actionWithSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionPageTurn_actionWithSize'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TransitionPageTurn_initWithDuration(lua_State* tolua_S) { int argc = 0; @@ -87726,6 +87574,56 @@ int lua_ax_base_TransitionPageTurn_initWithDuration(lua_State* tolua_S) return 0; } +int lua_ax_base_TransitionPageTurn_actionWithSize(lua_State* tolua_S) +{ + int argc = 0; + ax::TransitionPageTurn* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TransitionPageTurn_actionWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TransitionPageTurn:actionWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TransitionPageTurn_actionWithSize'", nullptr); + return 0; + } + auto&& ret = cobj->actionWithSize(arg0); + object_to_luaval(tolua_S, "ax.ActionInterval",(ax::ActionInterval*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TransitionPageTurn:actionWithSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TransitionPageTurn_actionWithSize'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TransitionPageTurn_create(lua_State* tolua_S) { int argc = 0; @@ -87816,8 +87714,8 @@ int lua_register_ax_base_TransitionPageTurn(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TransitionPageTurn"); tolua_function(tolua_S,"new",lua_ax_base_TransitionPageTurn_constructor); - tolua_function(tolua_S,"actionWithSize",lua_ax_base_TransitionPageTurn_actionWithSize); tolua_function(tolua_S,"initWithDuration",lua_ax_base_TransitionPageTurn_initWithDuration); + tolua_function(tolua_S,"actionWithSize",lua_ax_base_TransitionPageTurn_actionWithSize); tolua_function(tolua_S,"create", lua_ax_base_TransitionPageTurn_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TransitionPageTurn).name(); // rtti is literal storage @@ -88498,7 +88396,7 @@ int lua_register_ax_base_TransitionProgressOutIn(lua_State* tolua_S) return 1; } -int lua_ax_base_Camera_getDepth(lua_State* tolua_S) +int lua_ax_base_Camera_getCameraFlag(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -88518,7 +88416,7 @@ int lua_ax_base_Camera_getDepth(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getDepth'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getCameraFlag'", nullptr); return 0; } #endif @@ -88528,24 +88426,24 @@ int lua_ax_base_Camera_getDepth(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getDepth'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getCameraFlag'", nullptr); return 0; } - auto&& ret = cobj->getDepth(); + int ret = (int)cobj->getCameraFlag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getDepth",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getCameraFlag",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getDepth'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getCameraFlag'.",&tolua_err); #endif return 0; } -int lua_ax_base_Camera_getViewProjectionMatrix(lua_State* tolua_S) +int lua_ax_base_Camera_setCameraFlag(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -88565,54 +88463,7 @@ int lua_ax_base_Camera_getViewProjectionMatrix(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getViewProjectionMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getViewProjectionMatrix'", nullptr); - return 0; - } - auto&& ret = cobj->getViewProjectionMatrix(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getViewProjectionMatrix",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getViewProjectionMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_setBackgroundBrush(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setBackgroundBrush'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setCameraFlag'", nullptr); return 0; } #endif @@ -88620,71 +88471,24 @@ int lua_ax_base_Camera_setBackgroundBrush(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::CameraBackgroundBrush* arg0; + ax::CameraFlag arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.CameraBackgroundBrush",&arg0, "ax.Camera:setBackgroundBrush"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Camera:setCameraFlag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setBackgroundBrush'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setCameraFlag'", nullptr); return 0; } - cobj->setBackgroundBrush(arg0); + cobj->setCameraFlag(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setBackgroundBrush",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setCameraFlag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setBackgroundBrush'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getZoom(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getZoom'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getZoom'", nullptr); - return 0; - } - auto&& ret = cobj->getZoom(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getZoom",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getZoom'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setCameraFlag'.",&tolua_err); #endif return 0; @@ -88756,7 +88560,7 @@ int lua_ax_base_Camera_lookAt(lua_State* tolua_S) return 0; } -int lua_ax_base_Camera_apply(lua_State* tolua_S) +int lua_ax_base_Camera_getProjectionMatrix(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -88776,7 +88580,7 @@ int lua_ax_base_Camera_apply(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_apply'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getProjectionMatrix'", nullptr); return 0; } #endif @@ -88786,24 +88590,24 @@ int lua_ax_base_Camera_apply(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_apply'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getProjectionMatrix'", nullptr); return 0; } - cobj->apply(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getProjectionMatrix(); + mat4_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:apply",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getProjectionMatrix",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_apply'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getProjectionMatrix'.",&tolua_err); #endif return 0; } -int lua_ax_base_Camera_getBackgroundBrush(lua_State* tolua_S) +int lua_ax_base_Camera_getViewMatrix(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -88823,7 +88627,7 @@ int lua_ax_base_Camera_getBackgroundBrush(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getBackgroundBrush'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getViewMatrix'", nullptr); return 0; } #endif @@ -88833,19 +88637,554 @@ int lua_ax_base_Camera_getBackgroundBrush(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getBackgroundBrush'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getViewMatrix'", nullptr); return 0; } - auto&& ret = cobj->getBackgroundBrush(); - object_to_luaval(tolua_S, "ax.CameraBackgroundBrush",(ax::CameraBackgroundBrush*)ret); + auto&& ret = cobj->getViewMatrix(); + mat4_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getBackgroundBrush",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getViewMatrix",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getBackgroundBrush'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getViewMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getViewProjectionMatrix(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getViewProjectionMatrix'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getViewProjectionMatrix'", nullptr); + return 0; + } + auto&& ret = cobj->getViewProjectionMatrix(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getViewProjectionMatrix",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getViewProjectionMatrix'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_project(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_project'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Camera:project"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_project'", nullptr); + return 0; + } + auto&& ret = cobj->project(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:project",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_project'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_projectGL(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_projectGL'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Camera:projectGL"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_projectGL'", nullptr); + return 0; + } + auto&& ret = cobj->projectGL(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:projectGL",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_projectGL'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_isVisibleInFrustum(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_isVisibleInFrustum'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const ax::AABB* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.AABB",&arg0, "ax.Camera:isVisibleInFrustum"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_isVisibleInFrustum'", nullptr); + return 0; + } + auto&& ret = cobj->isVisibleInFrustum(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:isVisibleInFrustum",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_isVisibleInFrustum'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getDepthInView(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getDepthInView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Mat4 arg0; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Camera:getDepthInView"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getDepthInView'", nullptr); + return 0; + } + auto&& ret = cobj->getDepthInView(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getDepthInView",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getDepthInView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_setDepth(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setDepth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int32_t arg0; + + ok &= luaval_to_int32(tolua_S, 2,&arg0, "ax.Camera:setDepth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setDepth'", nullptr); + return 0; + } + cobj->setDepth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setDepth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setDepth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getDepth(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getDepth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getDepth'", nullptr); + return 0; + } + auto&& ret = cobj->getDepth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getDepth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getDepth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getRenderOrder(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getRenderOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getRenderOrder'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderOrder(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getRenderOrder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getRenderOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getFOV(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getFOV'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getFOV'", nullptr); + return 0; + } + auto&& ret = cobj->getFOV(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getFOV",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getFOV'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_setFOV(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setFOV'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:setFOV"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setFOV'", nullptr); + return 0; + } + cobj->setFOV(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setFOV",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setFOV'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getFarPlane(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getFarPlane'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getFarPlane'", nullptr); + return 0; + } + auto&& ret = cobj->getFarPlane(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getFarPlane",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getFarPlane'.",&tolua_err); #endif return 0; @@ -88900,7 +89239,7 @@ int lua_ax_base_Camera_setFarPlane(lua_State* tolua_S) return 0; } -int lua_ax_base_Camera_getProjectionMatrix(lua_State* tolua_S) +int lua_ax_base_Camera_getNearPlane(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -88920,7 +89259,7 @@ int lua_ax_base_Camera_getProjectionMatrix(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getProjectionMatrix'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getNearPlane'", nullptr); return 0; } #endif @@ -88930,19 +89269,451 @@ int lua_ax_base_Camera_getProjectionMatrix(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getProjectionMatrix'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getNearPlane'", nullptr); return 0; } - auto&& ret = cobj->getProjectionMatrix(); - mat4_to_luaval(tolua_S, ret); + auto&& ret = cobj->getNearPlane(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getProjectionMatrix",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getNearPlane",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getProjectionMatrix'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getNearPlane'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_setNearPlane(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setNearPlane'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:setNearPlane"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setNearPlane'", nullptr); + return 0; + } + cobj->setNearPlane(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setNearPlane",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setNearPlane'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getZoom(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getZoom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getZoom'", nullptr); + return 0; + } + auto&& ret = cobj->getZoom(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getZoom",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getZoom'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_setZoom(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setZoom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:setZoom"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setZoom'", nullptr); + return 0; + } + cobj->setZoom(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setZoom",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setZoom'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_applyZoom(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_applyZoom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_applyZoom'", nullptr); + return 0; + } + cobj->applyZoom(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:applyZoom",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_applyZoom'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_clearBackground(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_clearBackground'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_clearBackground'", nullptr); + return 0; + } + cobj->clearBackground(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:clearBackground",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_clearBackground'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_apply(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_apply'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_apply'", nullptr); + return 0; + } + cobj->apply(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:apply",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_apply'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_isViewProjectionUpdated(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_isViewProjectionUpdated'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_isViewProjectionUpdated'", nullptr); + return 0; + } + auto&& ret = cobj->isViewProjectionUpdated(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:isViewProjectionUpdated",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_isViewProjectionUpdated'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_setBackgroundBrush(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setBackgroundBrush'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::CameraBackgroundBrush* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.CameraBackgroundBrush",&arg0, "ax.Camera:setBackgroundBrush"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setBackgroundBrush'", nullptr); + return 0; + } + cobj->setBackgroundBrush(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setBackgroundBrush",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setBackgroundBrush'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Camera_getBackgroundBrush(lua_State* tolua_S) +{ + int argc = 0; + ax::Camera* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getBackgroundBrush'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getBackgroundBrush'", nullptr); + return 0; + } + auto&& ret = cobj->getBackgroundBrush(); + object_to_luaval(tolua_S, "ax.CameraBackgroundBrush",(ax::CameraBackgroundBrush*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getBackgroundBrush",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getBackgroundBrush'.",&tolua_err); #endif return 0; @@ -88994,7 +89765,7 @@ int lua_ax_base_Camera_isBrushValid(lua_State* tolua_S) return 0; } -int lua_ax_base_Camera_applyViewport(lua_State* tolua_S) +int lua_ax_base_Camera_setScene(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -89014,76 +89785,32 @@ int lua_ax_base_Camera_applyViewport(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_applyViewport'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Scene* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.Camera:setScene"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_applyViewport'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setScene'", nullptr); return 0; } - cobj->applyViewport(); + cobj->setScene(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:applyViewport",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setScene",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_applyViewport'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_clearBackground(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_clearBackground'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_clearBackground'", nullptr); - return 0; - } - cobj->clearBackground(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:clearBackground",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_clearBackground'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setScene'.",&tolua_err); #endif return 0; @@ -89185,7 +89912,7 @@ int lua_ax_base_Camera_initDefault(lua_State* tolua_S) return 0; } -int lua_ax_base_Camera_setNearPlane(lua_State* tolua_S) +int lua_ax_base_Camera_initPerspective(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -89205,226 +89932,41 @@ int lua_ax_base_Camera_setNearPlane(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setNearPlane'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_initPerspective'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 4) { double arg0; + double arg1; + double arg2; + double arg3; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:setNearPlane"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:initPerspective"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Camera:initPerspective"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Camera:initPerspective"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Camera:initPerspective"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setNearPlane'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_initPerspective'", nullptr); return 0; } - cobj->setNearPlane(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initPerspective(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setNearPlane",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:initPerspective",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setNearPlane'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_applyZoom(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_applyZoom'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_applyZoom'", nullptr); - return 0; - } - cobj->applyZoom(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:applyZoom",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_applyZoom'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_setFOV(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setFOV'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:setFOV"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setFOV'", nullptr); - return 0; - } - cobj->setFOV(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setFOV",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setFOV'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getCameraFlag(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getCameraFlag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getCameraFlag'", nullptr); - return 0; - } - int ret = (int)cobj->getCameraFlag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getCameraFlag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getCameraFlag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_setZoom(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setZoom'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:setZoom"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setZoom'", nullptr); - return 0; - } - cobj->setZoom(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setZoom",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setZoom'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_initPerspective'.",&tolua_err); #endif return 0; @@ -89488,7 +90030,7 @@ int lua_ax_base_Camera_initOrthographic(lua_State* tolua_S) return 0; } -int lua_ax_base_Camera_getRenderOrder(lua_State* tolua_S) +int lua_ax_base_Camera_applyViewport(lua_State* tolua_S) { int argc = 0; ax::Camera* cobj = nullptr; @@ -89508,7 +90050,7 @@ int lua_ax_base_Camera_getRenderOrder(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getRenderOrder'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_applyViewport'", nullptr); return 0; } #endif @@ -89518,665 +90060,63 @@ int lua_ax_base_Camera_getRenderOrder(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getRenderOrder'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_applyViewport'", nullptr); return 0; } - auto&& ret = cobj->getRenderOrder(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getRenderOrder",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getRenderOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getFOV(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getFOV'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getFOV'", nullptr); - return 0; - } - auto&& ret = cobj->getFOV(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getFOV",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getFOV'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_isVisibleInFrustum(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_isVisibleInFrustum'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const ax::AABB* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.AABB",&arg0, "ax.Camera:isVisibleInFrustum"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_isVisibleInFrustum'", nullptr); - return 0; - } - auto&& ret = cobj->isVisibleInFrustum(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:isVisibleInFrustum",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_isVisibleInFrustum'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_setDepth(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setDepth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int32_t arg0; - - ok &= luaval_to_int32(tolua_S, 2,&arg0, "ax.Camera:setDepth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setDepth'", nullptr); - return 0; - } - cobj->setDepth(arg0); + cobj->applyViewport(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setDepth",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:applyViewport",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setDepth'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_applyViewport'.",&tolua_err); #endif return 0; } -int lua_ax_base_Camera_setScene(lua_State* tolua_S) +int lua_ax_base_Camera_createPerspective(lua_State* tolua_S) { int argc = 0; - ax::Camera* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setScene'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Scene* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Scene",&arg0, "ax.Camera:setScene"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setScene'", nullptr); - return 0; - } - cobj->setScene(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setScene",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setScene'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_projectGL(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_projectGL'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Camera:projectGL"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_projectGL'", nullptr); - return 0; - } - auto&& ret = cobj->projectGL(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:projectGL",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_projectGL'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getViewMatrix(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getViewMatrix'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getViewMatrix'", nullptr); - return 0; - } - auto&& ret = cobj->getViewMatrix(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getViewMatrix",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getViewMatrix'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getNearPlane(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getNearPlane'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getNearPlane'", nullptr); - return 0; - } - auto&& ret = cobj->getNearPlane(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getNearPlane",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getNearPlane'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_project(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_project'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Camera:project"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_project'", nullptr); - return 0; - } - auto&& ret = cobj->project(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:project",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_project'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_setCameraFlag(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_setCameraFlag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::CameraFlag arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Camera:setCameraFlag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_setCameraFlag'", nullptr); - return 0; - } - cobj->setCameraFlag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:setCameraFlag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_setCameraFlag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getDepthInView(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getDepthInView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Mat4 arg0; - - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Camera:getDepthInView"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getDepthInView'", nullptr); - return 0; - } - auto&& ret = cobj->getDepthInView(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getDepthInView",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getDepthInView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_getFarPlane(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getFarPlane'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getFarPlane'", nullptr); - return 0; - } - auto&& ret = cobj->getFarPlane(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getFarPlane",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getFarPlane'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_isViewProjectionUpdated(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_isViewProjectionUpdated'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_isViewProjectionUpdated'", nullptr); - return 0; - } - auto&& ret = cobj->isViewProjectionUpdated(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:isViewProjectionUpdated",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_isViewProjectionUpdated'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Camera_initPerspective(lua_State* tolua_S) -{ - int argc = 0; - ax::Camera* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_initPerspective'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:initPerspective"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Camera:initPerspective"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Camera:initPerspective"); - - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Camera:initPerspective"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:createPerspective"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Camera:createPerspective"); + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Camera:createPerspective"); + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Camera:createPerspective"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_initPerspective'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_createPerspective'", nullptr); return 0; } - auto&& ret = cobj->initPerspective(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = ax::Camera::createPerspective(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ax.Camera",(ax::Camera*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:initPerspective",argc, 4); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Camera:createPerspective",argc, 4); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_initPerspective'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_createPerspective'.",&tolua_err); #endif - return 0; } int lua_ax_base_Camera_createOrthographic(lua_State* tolua_S) @@ -90221,40 +90161,6 @@ int lua_ax_base_Camera_createOrthographic(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Camera_getVisitingCamera(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getVisitingCamera'", nullptr); - return 0; - } - auto&& ret = ax::Camera::getVisitingCamera(); - object_to_luaval(tolua_S, "ax.Camera",(ax::Camera*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Camera:getVisitingCamera",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getVisitingCamera'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_Camera_create(lua_State* tolua_S) { int argc = 0; @@ -90289,7 +90195,7 @@ int lua_ax_base_Camera_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Camera_createPerspective(lua_State* tolua_S) +int lua_ax_base_Camera_getVisitingCamera(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -90304,30 +90210,22 @@ int lua_ax_base_Camera_createPerspective(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 4) + if (argc == 0) { - double arg0; - double arg1; - double arg2; - double arg3; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Camera:createPerspective"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Camera:createPerspective"); - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Camera:createPerspective"); - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Camera:createPerspective"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_createPerspective'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getVisitingCamera'", nullptr); return 0; } - auto&& ret = ax::Camera::createPerspective(arg0, arg1, arg2, arg3); + auto&& ret = ax::Camera::getVisitingCamera(); object_to_luaval(tolua_S, "ax.Camera",(ax::Camera*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Camera:createPerspective",argc, 4); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Camera:getVisitingCamera",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_createPerspective'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getVisitingCamera'.",&tolua_err); #endif return 0; } @@ -90486,44 +90384,44 @@ int lua_register_ax_base_Camera(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Camera"); tolua_function(tolua_S,"new",lua_ax_base_Camera_constructor); - tolua_function(tolua_S,"getDepth",lua_ax_base_Camera_getDepth); - tolua_function(tolua_S,"getViewProjectionMatrix",lua_ax_base_Camera_getViewProjectionMatrix); - tolua_function(tolua_S,"setBackgroundBrush",lua_ax_base_Camera_setBackgroundBrush); - tolua_function(tolua_S,"getZoom",lua_ax_base_Camera_getZoom); - tolua_function(tolua_S,"lookAt",lua_ax_base_Camera_lookAt); - tolua_function(tolua_S,"apply",lua_ax_base_Camera_apply); - tolua_function(tolua_S,"getBackgroundBrush",lua_ax_base_Camera_getBackgroundBrush); - tolua_function(tolua_S,"setFarPlane",lua_ax_base_Camera_setFarPlane); - tolua_function(tolua_S,"getProjectionMatrix",lua_ax_base_Camera_getProjectionMatrix); - tolua_function(tolua_S,"isBrushValid",lua_ax_base_Camera_isBrushValid); - tolua_function(tolua_S,"applyViewport",lua_ax_base_Camera_applyViewport); - tolua_function(tolua_S,"clearBackground",lua_ax_base_Camera_clearBackground); - tolua_function(tolua_S,"setAdditionalProjection",lua_ax_base_Camera_setAdditionalProjection); - tolua_function(tolua_S,"initDefault",lua_ax_base_Camera_initDefault); - tolua_function(tolua_S,"setNearPlane",lua_ax_base_Camera_setNearPlane); - tolua_function(tolua_S,"applyZoom",lua_ax_base_Camera_applyZoom); - tolua_function(tolua_S,"setFOV",lua_ax_base_Camera_setFOV); tolua_function(tolua_S,"getCameraFlag",lua_ax_base_Camera_getCameraFlag); - tolua_function(tolua_S,"setZoom",lua_ax_base_Camera_setZoom); - tolua_function(tolua_S,"initOrthographic",lua_ax_base_Camera_initOrthographic); + tolua_function(tolua_S,"setCameraFlag",lua_ax_base_Camera_setCameraFlag); + tolua_function(tolua_S,"lookAt",lua_ax_base_Camera_lookAt); + tolua_function(tolua_S,"getProjectionMatrix",lua_ax_base_Camera_getProjectionMatrix); + tolua_function(tolua_S,"getViewMatrix",lua_ax_base_Camera_getViewMatrix); + tolua_function(tolua_S,"getViewProjectionMatrix",lua_ax_base_Camera_getViewProjectionMatrix); + tolua_function(tolua_S,"project",lua_ax_base_Camera_project); + tolua_function(tolua_S,"projectGL",lua_ax_base_Camera_projectGL); + tolua_function(tolua_S,"isVisibleInFrustum",lua_ax_base_Camera_isVisibleInFrustum); + tolua_function(tolua_S,"getDepthInView",lua_ax_base_Camera_getDepthInView); + tolua_function(tolua_S,"setDepth",lua_ax_base_Camera_setDepth); + tolua_function(tolua_S,"getDepth",lua_ax_base_Camera_getDepth); tolua_function(tolua_S,"getRenderOrder",lua_ax_base_Camera_getRenderOrder); tolua_function(tolua_S,"getFOV",lua_ax_base_Camera_getFOV); - tolua_function(tolua_S,"isVisibleInFrustum",lua_ax_base_Camera_isVisibleInFrustum); - tolua_function(tolua_S,"setDepth",lua_ax_base_Camera_setDepth); - tolua_function(tolua_S,"setScene",lua_ax_base_Camera_setScene); - tolua_function(tolua_S,"projectGL",lua_ax_base_Camera_projectGL); - tolua_function(tolua_S,"getViewMatrix",lua_ax_base_Camera_getViewMatrix); - tolua_function(tolua_S,"getNearPlane",lua_ax_base_Camera_getNearPlane); - tolua_function(tolua_S,"project",lua_ax_base_Camera_project); - tolua_function(tolua_S,"setCameraFlag",lua_ax_base_Camera_setCameraFlag); - tolua_function(tolua_S,"getDepthInView",lua_ax_base_Camera_getDepthInView); + tolua_function(tolua_S,"setFOV",lua_ax_base_Camera_setFOV); tolua_function(tolua_S,"getFarPlane",lua_ax_base_Camera_getFarPlane); + tolua_function(tolua_S,"setFarPlane",lua_ax_base_Camera_setFarPlane); + tolua_function(tolua_S,"getNearPlane",lua_ax_base_Camera_getNearPlane); + tolua_function(tolua_S,"setNearPlane",lua_ax_base_Camera_setNearPlane); + tolua_function(tolua_S,"getZoom",lua_ax_base_Camera_getZoom); + tolua_function(tolua_S,"setZoom",lua_ax_base_Camera_setZoom); + tolua_function(tolua_S,"applyZoom",lua_ax_base_Camera_applyZoom); + tolua_function(tolua_S,"clearBackground",lua_ax_base_Camera_clearBackground); + tolua_function(tolua_S,"apply",lua_ax_base_Camera_apply); tolua_function(tolua_S,"isViewProjectionUpdated",lua_ax_base_Camera_isViewProjectionUpdated); + tolua_function(tolua_S,"setBackgroundBrush",lua_ax_base_Camera_setBackgroundBrush); + tolua_function(tolua_S,"getBackgroundBrush",lua_ax_base_Camera_getBackgroundBrush); + tolua_function(tolua_S,"isBrushValid",lua_ax_base_Camera_isBrushValid); + tolua_function(tolua_S,"setScene",lua_ax_base_Camera_setScene); + tolua_function(tolua_S,"setAdditionalProjection",lua_ax_base_Camera_setAdditionalProjection); + tolua_function(tolua_S,"initDefault",lua_ax_base_Camera_initDefault); tolua_function(tolua_S,"initPerspective",lua_ax_base_Camera_initPerspective); - tolua_function(tolua_S,"createOrthographic", lua_ax_base_Camera_createOrthographic); - tolua_function(tolua_S,"getVisitingCamera", lua_ax_base_Camera_getVisitingCamera); - tolua_function(tolua_S,"create", lua_ax_base_Camera_create); + tolua_function(tolua_S,"initOrthographic",lua_ax_base_Camera_initOrthographic); + tolua_function(tolua_S,"applyViewport",lua_ax_base_Camera_applyViewport); tolua_function(tolua_S,"createPerspective", lua_ax_base_Camera_createPerspective); + tolua_function(tolua_S,"createOrthographic", lua_ax_base_Camera_createOrthographic); + tolua_function(tolua_S,"create", lua_ax_base_Camera_create); + tolua_function(tolua_S,"getVisitingCamera", lua_ax_base_Camera_getVisitingCamera); tolua_function(tolua_S,"getDefaultViewport", lua_ax_base_Camera_getDefaultViewport); tolua_function(tolua_S,"setDefaultViewport", lua_ax_base_Camera_setDefaultViewport); tolua_function(tolua_S,"getDefaultCamera", lua_ax_base_Camera_getDefaultCamera); @@ -90631,53 +90529,6 @@ int lua_ax_base_CameraBackgroundBrush_drawBackground(lua_State* tolua_S) return 0; } -int lua_ax_base_CameraBackgroundBrush_init(lua_State* tolua_S) -{ - int argc = 0; - ax::CameraBackgroundBrush* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CameraBackgroundBrush_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundBrush_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CameraBackgroundBrush:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundBrush_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_CameraBackgroundBrush_isValid(lua_State* tolua_S) { int argc = 0; @@ -90725,88 +90576,51 @@ int lua_ax_base_CameraBackgroundBrush_isValid(lua_State* tolua_S) return 0; } -int lua_ax_base_CameraBackgroundBrush_createSkyboxBrush(lua_State* tolua_S) +int lua_ax_base_CameraBackgroundBrush_init(lua_State* tolua_S) { int argc = 0; + ax::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ax.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); - if (argc == 6) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CameraBackgroundBrush_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { - std::string_view arg0; - std::string_view arg1; - std::string_view arg2; - std::string_view arg3; - std::string_view arg4; - std::string_view arg5; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.CameraBackgroundBrush:createSkyboxBrush"); - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.CameraBackgroundBrush:createSkyboxBrush"); - ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ax.CameraBackgroundBrush:createSkyboxBrush"); - ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ax.CameraBackgroundBrush:createSkyboxBrush"); - ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ax.CameraBackgroundBrush:createSkyboxBrush"); - ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.CameraBackgroundBrush:createSkyboxBrush"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundBrush_createSkyboxBrush'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundBrush_init'", nullptr); return 0; } - auto&& ret = ax::CameraBackgroundBrush::createSkyboxBrush(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ax.CameraBackgroundSkyBoxBrush",(ax::CameraBackgroundSkyBoxBrush*)ret); + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CameraBackgroundBrush:createSkyboxBrush",argc, 6); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CameraBackgroundBrush:init",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundBrush_createSkyboxBrush'.",&tolua_err); -#endif - return 0; -} -int lua_ax_base_CameraBackgroundBrush_createColorBrush(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundBrush_init'.",&tolua_err); #endif -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - ax::Color4F arg0; - double arg1; - ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.CameraBackgroundBrush:createColorBrush"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.CameraBackgroundBrush:createColorBrush"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundBrush_createColorBrush'", nullptr); - return 0; - } - auto&& ret = ax::CameraBackgroundBrush::createColorBrush(arg0, arg1); - object_to_luaval(tolua_S, "ax.CameraBackgroundColorBrush",(ax::CameraBackgroundColorBrush*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CameraBackgroundBrush:createColorBrush",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundBrush_createColorBrush'.",&tolua_err); -#endif return 0; } int lua_ax_base_CameraBackgroundBrush_createNoneBrush(lua_State* tolua_S) @@ -90890,6 +90704,90 @@ int lua_ax_base_CameraBackgroundBrush_createDepthBrush(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_CameraBackgroundBrush_createColorBrush(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 2) + { + ax::Color4F arg0; + double arg1; + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ax.CameraBackgroundBrush:createColorBrush"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.CameraBackgroundBrush:createColorBrush"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundBrush_createColorBrush'", nullptr); + return 0; + } + auto&& ret = ax::CameraBackgroundBrush::createColorBrush(arg0, arg1); + object_to_luaval(tolua_S, "ax.CameraBackgroundColorBrush",(ax::CameraBackgroundColorBrush*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CameraBackgroundBrush:createColorBrush",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundBrush_createColorBrush'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_CameraBackgroundBrush_createSkyboxBrush(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 6) + { + std::string_view arg0; + std::string_view arg1; + std::string_view arg2; + std::string_view arg3; + std::string_view arg4; + std::string_view arg5; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.CameraBackgroundBrush:createSkyboxBrush"); + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.CameraBackgroundBrush:createSkyboxBrush"); + ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ax.CameraBackgroundBrush:createSkyboxBrush"); + ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ax.CameraBackgroundBrush:createSkyboxBrush"); + ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ax.CameraBackgroundBrush:createSkyboxBrush"); + ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.CameraBackgroundBrush:createSkyboxBrush"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundBrush_createSkyboxBrush'", nullptr); + return 0; + } + auto&& ret = ax::CameraBackgroundBrush::createSkyboxBrush(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ax.CameraBackgroundSkyBoxBrush",(ax::CameraBackgroundSkyBoxBrush*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CameraBackgroundBrush:createSkyboxBrush",argc, 6); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundBrush_createSkyboxBrush'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_CameraBackgroundBrush_constructor(lua_State* tolua_S) { int argc = 0; @@ -90942,12 +90840,12 @@ int lua_register_ax_base_CameraBackgroundBrush(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_ax_base_CameraBackgroundBrush_constructor); tolua_function(tolua_S,"getBrushType",lua_ax_base_CameraBackgroundBrush_getBrushType); tolua_function(tolua_S,"drawBackground",lua_ax_base_CameraBackgroundBrush_drawBackground); - tolua_function(tolua_S,"init",lua_ax_base_CameraBackgroundBrush_init); tolua_function(tolua_S,"isValid",lua_ax_base_CameraBackgroundBrush_isValid); - tolua_function(tolua_S,"createSkyboxBrush", lua_ax_base_CameraBackgroundBrush_createSkyboxBrush); - tolua_function(tolua_S,"createColorBrush", lua_ax_base_CameraBackgroundBrush_createColorBrush); + tolua_function(tolua_S,"init",lua_ax_base_CameraBackgroundBrush_init); tolua_function(tolua_S,"createNoneBrush", lua_ax_base_CameraBackgroundBrush_createNoneBrush); tolua_function(tolua_S,"createDepthBrush", lua_ax_base_CameraBackgroundBrush_createDepthBrush); + tolua_function(tolua_S,"createColorBrush", lua_ax_base_CameraBackgroundBrush_createColorBrush); + tolua_function(tolua_S,"createSkyboxBrush", lua_ax_base_CameraBackgroundBrush_createSkyboxBrush); tolua_endmodule(tolua_S); auto typeName = typeid(ax::CameraBackgroundBrush).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.CameraBackgroundBrush"; @@ -91391,56 +91289,6 @@ int lua_ax_base_CameraBackgroundSkyBoxBrush_isActived(lua_State* tolua_S) return 0; } -int lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State* tolua_S) -{ - int argc = 0; - ax::CameraBackgroundSkyBoxBrush* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.CameraBackgroundSkyBoxBrush:setTextureValid"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid'", nullptr); - return 0; - } - cobj->setTextureValid(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CameraBackgroundSkyBoxBrush:setTextureValid",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_CameraBackgroundSkyBoxBrush_setActived(lua_State* tolua_S) { int argc = 0; @@ -91491,6 +91339,56 @@ int lua_ax_base_CameraBackgroundSkyBoxBrush_setActived(lua_State* tolua_S) return 0; } +int lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State* tolua_S) +{ + int argc = 0; + ax::CameraBackgroundSkyBoxBrush* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.CameraBackgroundSkyBoxBrush:setTextureValid"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid'", nullptr); + return 0; + } + cobj->setTextureValid(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CameraBackgroundSkyBoxBrush:setTextureValid",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_CameraBackgroundSkyBoxBrush_create(lua_State* tolua_S) { int argc = 0; @@ -91604,8 +91502,8 @@ int lua_register_ax_base_CameraBackgroundSkyBoxBrush(lua_State* tolua_S) tolua_function(tolua_S,"setTexture",lua_ax_base_CameraBackgroundSkyBoxBrush_setTexture); tolua_function(tolua_S,"getTexture",lua_ax_base_CameraBackgroundSkyBoxBrush_getTexture); tolua_function(tolua_S,"isActived",lua_ax_base_CameraBackgroundSkyBoxBrush_isActived); - tolua_function(tolua_S,"setTextureValid",lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid); tolua_function(tolua_S,"setActived",lua_ax_base_CameraBackgroundSkyBoxBrush_setActived); + tolua_function(tolua_S,"setTextureValid",lua_ax_base_CameraBackgroundSkyBoxBrush_setTextureValid); tolua_function(tolua_S,"create", lua_ax_base_CameraBackgroundSkyBoxBrush_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::CameraBackgroundSkyBoxBrush).name(); // rtti is literal storage @@ -91614,7 +91512,7 @@ int lua_register_ax_base_CameraBackgroundSkyBoxBrush(lua_State* tolua_S) return 1; } -int lua_ax_base_GridBase_setGridSize(lua_State* tolua_S) +int lua_ax_base_GridBase_beforeBlit(lua_State* tolua_S) { int argc = 0; ax::GridBase* cobj = nullptr; @@ -91634,364 +91532,29 @@ int lua_ax_base_GridBase_setGridSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setGridSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_beforeBlit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.GridBase:setGridSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setGridSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_beforeBlit'", nullptr); return 0; } - cobj->setGridSize(arg0); + cobj->beforeBlit(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setGridSize",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:beforeBlit",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setGridSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_setGridRect(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setGridRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.GridBase:setGridRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setGridRect'", nullptr); - return 0; - } - cobj->setGridRect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setGridRect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setGridRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_calculateVertexPoints(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_calculateVertexPoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_calculateVertexPoints'", nullptr); - return 0; - } - cobj->calculateVertexPoints(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:calculateVertexPoints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_calculateVertexPoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_reuse(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_reuse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_reuse'", nullptr); - return 0; - } - cobj->reuse(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:reuse",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_reuse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_beforeDraw(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_beforeDraw'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_beforeDraw'", nullptr); - return 0; - } - cobj->beforeDraw(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:beforeDraw",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_beforeDraw'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_getGridRect(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getGridRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getGridRect'", nullptr); - return 0; - } - auto&& ret = cobj->getGridRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getGridRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getGridRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_isTextureFlipped(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_isTextureFlipped'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_isTextureFlipped'", nullptr); - return 0; - } - auto&& ret = cobj->isTextureFlipped(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:isTextureFlipped",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_isTextureFlipped'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_getGridSize(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getGridSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getGridSize'", nullptr); - return 0; - } - auto&& ret = cobj->getGridSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getGridSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getGridSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_beforeBlit'.",&tolua_err); #endif return 0; @@ -92043,200 +91606,6 @@ int lua_ax_base_GridBase_afterBlit(lua_State* tolua_S) return 0; } -int lua_ax_base_GridBase_set2DProjection(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_set2DProjection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_set2DProjection'", nullptr); - return 0; - } - cobj->set2DProjection(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:set2DProjection",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_set2DProjection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_getStep(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getStep'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getStep'", nullptr); - return 0; - } - auto&& ret = cobj->getStep(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getStep",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getStep'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_setStep(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setStep'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.GridBase:setStep"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setStep'", nullptr); - return 0; - } - cobj->setStep(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setStep",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setStep'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_setTextureFlipped(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setTextureFlipped'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GridBase:setTextureFlipped"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setTextureFlipped'", nullptr); - return 0; - } - cobj->setTextureFlipped(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setTextureFlipped",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setTextureFlipped'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_GridBase_blit(lua_State* tolua_S) { int argc = 0; @@ -92284,7 +91653,7 @@ int lua_ax_base_GridBase_blit(lua_State* tolua_S) return 0; } -int lua_ax_base_GridBase_setActive(lua_State* tolua_S) +int lua_ax_base_GridBase_reuse(lua_State* tolua_S) { int argc = 0; ax::GridBase* cobj = nullptr; @@ -92304,57 +91673,7 @@ int lua_ax_base_GridBase_setActive(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setActive'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GridBase:setActive"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setActive'", nullptr); - return 0; - } - cobj->setActive(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setActive",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setActive'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_GridBase_getReuseGrid(lua_State* tolua_S) -{ - int argc = 0; - ax::GridBase* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getReuseGrid'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_reuse'", nullptr); return 0; } #endif @@ -92364,19 +91683,66 @@ int lua_ax_base_GridBase_getReuseGrid(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getReuseGrid'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_reuse'", nullptr); return 0; } - auto&& ret = cobj->getReuseGrid(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->reuse(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getReuseGrid",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:reuse",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getReuseGrid'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_reuse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_calculateVertexPoints(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_calculateVertexPoints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_calculateVertexPoints'", nullptr); + return 0; + } + cobj->calculateVertexPoints(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:calculateVertexPoints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_calculateVertexPoints'.",&tolua_err); #endif return 0; @@ -92484,7 +91850,7 @@ int lua_ax_base_GridBase_initWithSize(lua_State* tolua_S) return 0; } -int lua_ax_base_GridBase_beforeBlit(lua_State* tolua_S) +int lua_ax_base_GridBase_isActive(lua_State* tolua_S) { int argc = 0; ax::GridBase* cobj = nullptr; @@ -92504,7 +91870,7 @@ int lua_ax_base_GridBase_beforeBlit(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_beforeBlit'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_isActive'", nullptr); return 0; } #endif @@ -92514,19 +91880,116 @@ int lua_ax_base_GridBase_beforeBlit(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_beforeBlit'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_isActive'", nullptr); return 0; } - cobj->beforeBlit(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->isActive(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:beforeBlit",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:isActive",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_beforeBlit'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_isActive'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_setActive(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setActive'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GridBase:setActive"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setActive'", nullptr); + return 0; + } + cobj->setActive(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setActive",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setActive'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_getReuseGrid(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getReuseGrid'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getReuseGrid'", nullptr); + return 0; + } + auto&& ret = cobj->getReuseGrid(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getReuseGrid",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getReuseGrid'.",&tolua_err); #endif return 0; @@ -92581,7 +92044,7 @@ int lua_ax_base_GridBase_setReuseGrid(lua_State* tolua_S) return 0; } -int lua_ax_base_GridBase_isActive(lua_State* tolua_S) +int lua_ax_base_GridBase_getGridSize(lua_State* tolua_S) { int argc = 0; ax::GridBase* cobj = nullptr; @@ -92601,7 +92064,7 @@ int lua_ax_base_GridBase_isActive(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_isActive'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getGridSize'", nullptr); return 0; } #endif @@ -92611,19 +92074,310 @@ int lua_ax_base_GridBase_isActive(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_isActive'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getGridSize'", nullptr); return 0; } - auto&& ret = cobj->isActive(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getGridSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:isActive",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getGridSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_isActive'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getGridSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_setGridSize(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setGridSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.GridBase:setGridSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setGridSize'", nullptr); + return 0; + } + cobj->setGridSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setGridSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setGridSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_getStep(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getStep'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getStep'", nullptr); + return 0; + } + auto&& ret = cobj->getStep(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getStep",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getStep'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_setStep(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setStep'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.GridBase:setStep"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setStep'", nullptr); + return 0; + } + cobj->setStep(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setStep",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setStep'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_isTextureFlipped(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_isTextureFlipped'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_isTextureFlipped'", nullptr); + return 0; + } + auto&& ret = cobj->isTextureFlipped(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:isTextureFlipped",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_isTextureFlipped'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_setTextureFlipped(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setTextureFlipped'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GridBase:setTextureFlipped"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setTextureFlipped'", nullptr); + return 0; + } + cobj->setTextureFlipped(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setTextureFlipped",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setTextureFlipped'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_beforeDraw(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_beforeDraw'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_beforeDraw'", nullptr); + return 0; + } + cobj->beforeDraw(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:beforeDraw",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_beforeDraw'.",&tolua_err); #endif return 0; @@ -92678,6 +92432,150 @@ int lua_ax_base_GridBase_afterDraw(lua_State* tolua_S) return 0; } +int lua_ax_base_GridBase_set2DProjection(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_set2DProjection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_set2DProjection'", nullptr); + return 0; + } + cobj->set2DProjection(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:set2DProjection",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_set2DProjection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_setGridRect(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_setGridRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "ax.GridBase:setGridRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_setGridRect'", nullptr); + return 0; + } + cobj->setGridRect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:setGridRect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_setGridRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_GridBase_getGridRect(lua_State* tolua_S) +{ + int argc = 0; + ax::GridBase* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.GridBase",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::GridBase*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GridBase_getGridRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GridBase_getGridRect'", nullptr); + return 0; + } + auto&& ret = cobj->getGridRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridBase:getGridRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GridBase_getGridRect'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_base_GridBase_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GridBase)"); @@ -92690,27 +92588,27 @@ int lua_register_ax_base_GridBase(lua_State* tolua_S) tolua_cclass(tolua_S,"GridBase","ax.GridBase","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"GridBase"); - tolua_function(tolua_S,"setGridSize",lua_ax_base_GridBase_setGridSize); - tolua_function(tolua_S,"setGridRect",lua_ax_base_GridBase_setGridRect); - tolua_function(tolua_S,"calculateVertexPoints",lua_ax_base_GridBase_calculateVertexPoints); - tolua_function(tolua_S,"reuse",lua_ax_base_GridBase_reuse); - tolua_function(tolua_S,"beforeDraw",lua_ax_base_GridBase_beforeDraw); - tolua_function(tolua_S,"getGridRect",lua_ax_base_GridBase_getGridRect); - tolua_function(tolua_S,"isTextureFlipped",lua_ax_base_GridBase_isTextureFlipped); - tolua_function(tolua_S,"getGridSize",lua_ax_base_GridBase_getGridSize); + tolua_function(tolua_S,"beforeBlit",lua_ax_base_GridBase_beforeBlit); tolua_function(tolua_S,"afterBlit",lua_ax_base_GridBase_afterBlit); - tolua_function(tolua_S,"set2DProjection",lua_ax_base_GridBase_set2DProjection); - tolua_function(tolua_S,"getStep",lua_ax_base_GridBase_getStep); - tolua_function(tolua_S,"setStep",lua_ax_base_GridBase_setStep); - tolua_function(tolua_S,"setTextureFlipped",lua_ax_base_GridBase_setTextureFlipped); tolua_function(tolua_S,"blit",lua_ax_base_GridBase_blit); + tolua_function(tolua_S,"reuse",lua_ax_base_GridBase_reuse); + tolua_function(tolua_S,"calculateVertexPoints",lua_ax_base_GridBase_calculateVertexPoints); + tolua_function(tolua_S,"initWithSize",lua_ax_base_GridBase_initWithSize); + tolua_function(tolua_S,"isActive",lua_ax_base_GridBase_isActive); tolua_function(tolua_S,"setActive",lua_ax_base_GridBase_setActive); tolua_function(tolua_S,"getReuseGrid",lua_ax_base_GridBase_getReuseGrid); - tolua_function(tolua_S,"initWithSize",lua_ax_base_GridBase_initWithSize); - tolua_function(tolua_S,"beforeBlit",lua_ax_base_GridBase_beforeBlit); tolua_function(tolua_S,"setReuseGrid",lua_ax_base_GridBase_setReuseGrid); - tolua_function(tolua_S,"isActive",lua_ax_base_GridBase_isActive); + tolua_function(tolua_S,"getGridSize",lua_ax_base_GridBase_getGridSize); + tolua_function(tolua_S,"setGridSize",lua_ax_base_GridBase_setGridSize); + tolua_function(tolua_S,"getStep",lua_ax_base_GridBase_getStep); + tolua_function(tolua_S,"setStep",lua_ax_base_GridBase_setStep); + tolua_function(tolua_S,"isTextureFlipped",lua_ax_base_GridBase_isTextureFlipped); + tolua_function(tolua_S,"setTextureFlipped",lua_ax_base_GridBase_setTextureFlipped); + tolua_function(tolua_S,"beforeDraw",lua_ax_base_GridBase_beforeDraw); tolua_function(tolua_S,"afterDraw",lua_ax_base_GridBase_afterDraw); + tolua_function(tolua_S,"set2DProjection",lua_ax_base_GridBase_set2DProjection); + tolua_function(tolua_S,"setGridRect",lua_ax_base_GridBase_setGridRect); + tolua_function(tolua_S,"getGridRect",lua_ax_base_GridBase_getGridRect); tolua_endmodule(tolua_S); auto typeName = typeid(ax::GridBase).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.GridBase"; @@ -92718,53 +92616,6 @@ int lua_register_ax_base_GridBase(lua_State* tolua_S) return 1; } -int lua_ax_base_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) -{ - int argc = 0; - ax::Grid3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Grid3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Grid3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Grid3D_getNeedDepthTestForBlit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Grid3D_getNeedDepthTestForBlit'", nullptr); - return 0; - } - auto&& ret = cobj->getNeedDepthTestForBlit(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Grid3D:getNeedDepthTestForBlit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Grid3D_getNeedDepthTestForBlit'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) { int argc = 0; @@ -92815,6 +92666,53 @@ int lua_ax_base_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) return 0; } +int lua_ax_base_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) +{ + int argc = 0; + ax::Grid3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Grid3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Grid3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Grid3D_getNeedDepthTestForBlit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Grid3D_getNeedDepthTestForBlit'", nullptr); + return 0; + } + auto&& ret = cobj->getNeedDepthTestForBlit(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Grid3D:getNeedDepthTestForBlit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Grid3D_getNeedDepthTestForBlit'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Grid3D_create(lua_State* tolua_S) { int argc = 0; @@ -92957,8 +92855,8 @@ int lua_register_ax_base_Grid3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Grid3D"); tolua_function(tolua_S,"new",lua_ax_base_Grid3D_constructor); - tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_ax_base_Grid3D_getNeedDepthTestForBlit); tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_ax_base_Grid3D_setNeedDepthTestForBlit); + tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_ax_base_Grid3D_getNeedDepthTestForBlit); tolua_function(tolua_S,"create", lua_ax_base_Grid3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Grid3D).name(); // rtti is literal storage @@ -93079,150 +92977,6 @@ int lua_register_ax_base_TiledGrid3D(lua_State* tolua_S) return 1; } -int lua_ax_base_BaseLight_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::BaseLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.BaseLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::BaseLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.BaseLight:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:setEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_setEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_BaseLight_getIntensity(lua_State* tolua_S) -{ - int argc = 0; - ax::BaseLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.BaseLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::BaseLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_getIntensity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_getIntensity'", nullptr); - return 0; - } - auto&& ret = cobj->getIntensity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:getIntensity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_getIntensity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_BaseLight_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::BaseLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.BaseLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::BaseLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_isEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_isEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:isEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_isEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_BaseLight_getLightType(lua_State* tolua_S) { int argc = 0; @@ -93270,7 +93024,7 @@ int lua_ax_base_BaseLight_getLightType(lua_State* tolua_S) return 0; } -int lua_ax_base_BaseLight_setLightFlag(lua_State* tolua_S) +int lua_ax_base_BaseLight_getIntensity(lua_State* tolua_S) { int argc = 0; ax::BaseLight* cobj = nullptr; @@ -93290,32 +93044,29 @@ int lua_ax_base_BaseLight_setLightFlag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_setLightFlag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_getIntensity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::LightFlag arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.BaseLight:setLightFlag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_setLightFlag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_getIntensity'", nullptr); return 0; } - cobj->setLightFlag(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getIntensity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:setLightFlag",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:getIntensity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_setLightFlag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_getIntensity'.",&tolua_err); #endif return 0; @@ -93417,6 +93168,153 @@ int lua_ax_base_BaseLight_getLightFlag(lua_State* tolua_S) return 0; } +int lua_ax_base_BaseLight_setLightFlag(lua_State* tolua_S) +{ + int argc = 0; + ax::BaseLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.BaseLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::BaseLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_setLightFlag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::LightFlag arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.BaseLight:setLightFlag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_setLightFlag'", nullptr); + return 0; + } + cobj->setLightFlag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:setLightFlag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_setLightFlag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_BaseLight_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::BaseLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.BaseLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::BaseLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_setEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.BaseLight:setEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_setEnabled'", nullptr); + return 0; + } + cobj->setEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:setEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_setEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_BaseLight_isEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::BaseLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.BaseLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::BaseLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_BaseLight_isEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_BaseLight_isEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BaseLight:isEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_BaseLight_isEnabled'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_base_BaseLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BaseLight)"); @@ -93429,13 +93327,13 @@ int lua_register_ax_base_BaseLight(lua_State* tolua_S) tolua_cclass(tolua_S,"BaseLight","ax.BaseLight","ax.Node",nullptr); tolua_beginmodule(tolua_S,"BaseLight"); - tolua_function(tolua_S,"setEnabled",lua_ax_base_BaseLight_setEnabled); - tolua_function(tolua_S,"getIntensity",lua_ax_base_BaseLight_getIntensity); - tolua_function(tolua_S,"isEnabled",lua_ax_base_BaseLight_isEnabled); tolua_function(tolua_S,"getLightType",lua_ax_base_BaseLight_getLightType); - tolua_function(tolua_S,"setLightFlag",lua_ax_base_BaseLight_setLightFlag); + tolua_function(tolua_S,"getIntensity",lua_ax_base_BaseLight_getIntensity); tolua_function(tolua_S,"setIntensity",lua_ax_base_BaseLight_setIntensity); tolua_function(tolua_S,"getLightFlag",lua_ax_base_BaseLight_getLightFlag); + tolua_function(tolua_S,"setLightFlag",lua_ax_base_BaseLight_setLightFlag); + tolua_function(tolua_S,"setEnabled",lua_ax_base_BaseLight_setEnabled); + tolua_function(tolua_S,"isEnabled",lua_ax_base_BaseLight_isEnabled); tolua_endmodule(tolua_S); auto typeName = typeid(ax::BaseLight).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.BaseLight"; @@ -93443,6 +93341,56 @@ int lua_register_ax_base_BaseLight(lua_State* tolua_S) return 1; } +int lua_ax_base_DirectionLight_setDirection(lua_State* tolua_S) +{ + int argc = 0; + ax::DirectionLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.DirectionLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::DirectionLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DirectionLight_setDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.DirectionLight:setDirection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DirectionLight_setDirection'", nullptr); + return 0; + } + cobj->setDirection(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DirectionLight:setDirection",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DirectionLight_setDirection'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_DirectionLight_getDirection(lua_State* tolua_S) { int argc = 0; @@ -93537,56 +93485,6 @@ int lua_ax_base_DirectionLight_getDirectionInWorld(lua_State* tolua_S) return 0; } -int lua_ax_base_DirectionLight_setDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::DirectionLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.DirectionLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::DirectionLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_DirectionLight_setDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.DirectionLight:setDirection"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DirectionLight_setDirection'", nullptr); - return 0; - } - cobj->setDirection(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DirectionLight:setDirection",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DirectionLight_setDirection'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_DirectionLight_create(lua_State* tolua_S) { int argc = 0; @@ -93675,9 +93573,9 @@ int lua_register_ax_base_DirectionLight(lua_State* tolua_S) tolua_beginmodule(tolua_S,"DirectionLight"); tolua_function(tolua_S,"new",lua_ax_base_DirectionLight_constructor); + tolua_function(tolua_S,"setDirection",lua_ax_base_DirectionLight_setDirection); tolua_function(tolua_S,"getDirection",lua_ax_base_DirectionLight_getDirection); tolua_function(tolua_S,"getDirectionInWorld",lua_ax_base_DirectionLight_getDirectionInWorld); - tolua_function(tolua_S,"setDirection",lua_ax_base_DirectionLight_setDirection); tolua_function(tolua_S,"create", lua_ax_base_DirectionLight_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::DirectionLight).name(); // rtti is literal storage @@ -93883,53 +93781,6 @@ int lua_register_ax_base_PointLight(lua_State* tolua_S) return 1; } -int lua_ax_base_SpotLight_getRange(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getRange'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getRange'", nullptr); - return 0; - } - auto&& ret = cobj->getRange(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getRange",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getRange'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_SpotLight_setDirection(lua_State* tolua_S) { int argc = 0; @@ -93980,147 +93831,6 @@ int lua_ax_base_SpotLight_setDirection(lua_State* tolua_S) return 0; } -int lua_ax_base_SpotLight_getCosInnerAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getCosInnerAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getCosInnerAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getCosInnerAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getCosInnerAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getCosInnerAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpotLight_getOuterAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getOuterAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getOuterAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getOuterAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getOuterAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getOuterAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpotLight_getInnerAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getInnerAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getInnerAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getInnerAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getInnerAngle'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_SpotLight_getDirection(lua_State* tolua_S) { int argc = 0; @@ -94168,153 +93878,6 @@ int lua_ax_base_SpotLight_getDirection(lua_State* tolua_S) return 0; } -int lua_ax_base_SpotLight_getCosOuterAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getCosOuterAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getCosOuterAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getCosOuterAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getCosOuterAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getCosOuterAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpotLight_setOuterAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_setOuterAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.SpotLight:setOuterAngle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_setOuterAngle'", nullptr); - return 0; - } - cobj->setOuterAngle(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:setOuterAngle",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_setOuterAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpotLight_setInnerAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::SpotLight* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_setInnerAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.SpotLight:setInnerAngle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_setInnerAngle'", nullptr); - return 0; - } - cobj->setInnerAngle(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:setInnerAngle",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_setInnerAngle'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_SpotLight_getDirectionInWorld(lua_State* tolua_S) { int argc = 0; @@ -94412,6 +93975,341 @@ int lua_ax_base_SpotLight_setRange(lua_State* tolua_S) return 0; } +int lua_ax_base_SpotLight_getRange(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getRange'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getRange'", nullptr); + return 0; + } + auto&& ret = cobj->getRange(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getRange",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getRange'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpotLight_setInnerAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_setInnerAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.SpotLight:setInnerAngle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_setInnerAngle'", nullptr); + return 0; + } + cobj->setInnerAngle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:setInnerAngle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_setInnerAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpotLight_getInnerAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getInnerAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getInnerAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getInnerAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getInnerAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpotLight_getCosInnerAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getCosInnerAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getCosInnerAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getCosInnerAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getCosInnerAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getCosInnerAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpotLight_setOuterAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_setOuterAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.SpotLight:setOuterAngle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_setOuterAngle'", nullptr); + return 0; + } + cobj->setOuterAngle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:setOuterAngle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_setOuterAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpotLight_getOuterAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getOuterAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getOuterAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getOuterAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getOuterAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getOuterAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpotLight_getCosOuterAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::SpotLight* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpotLight",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpotLight*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpotLight_getCosOuterAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpotLight_getCosOuterAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getCosOuterAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpotLight:getCosOuterAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpotLight_getCosOuterAngle'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpotLight_create(lua_State* tolua_S) { int argc = 0; @@ -94508,17 +94406,17 @@ int lua_register_ax_base_SpotLight(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SpotLight"); tolua_function(tolua_S,"new",lua_ax_base_SpotLight_constructor); - tolua_function(tolua_S,"getRange",lua_ax_base_SpotLight_getRange); tolua_function(tolua_S,"setDirection",lua_ax_base_SpotLight_setDirection); - tolua_function(tolua_S,"getCosInnerAngle",lua_ax_base_SpotLight_getCosInnerAngle); - tolua_function(tolua_S,"getOuterAngle",lua_ax_base_SpotLight_getOuterAngle); - tolua_function(tolua_S,"getInnerAngle",lua_ax_base_SpotLight_getInnerAngle); tolua_function(tolua_S,"getDirection",lua_ax_base_SpotLight_getDirection); - tolua_function(tolua_S,"getCosOuterAngle",lua_ax_base_SpotLight_getCosOuterAngle); - tolua_function(tolua_S,"setOuterAngle",lua_ax_base_SpotLight_setOuterAngle); - tolua_function(tolua_S,"setInnerAngle",lua_ax_base_SpotLight_setInnerAngle); tolua_function(tolua_S,"getDirectionInWorld",lua_ax_base_SpotLight_getDirectionInWorld); tolua_function(tolua_S,"setRange",lua_ax_base_SpotLight_setRange); + tolua_function(tolua_S,"getRange",lua_ax_base_SpotLight_getRange); + tolua_function(tolua_S,"setInnerAngle",lua_ax_base_SpotLight_setInnerAngle); + tolua_function(tolua_S,"getInnerAngle",lua_ax_base_SpotLight_getInnerAngle); + tolua_function(tolua_S,"getCosInnerAngle",lua_ax_base_SpotLight_getCosInnerAngle); + tolua_function(tolua_S,"setOuterAngle",lua_ax_base_SpotLight_setOuterAngle); + tolua_function(tolua_S,"getOuterAngle",lua_ax_base_SpotLight_getOuterAngle); + tolua_function(tolua_S,"getCosOuterAngle",lua_ax_base_SpotLight_getCosOuterAngle); tolua_function(tolua_S,"create", lua_ax_base_SpotLight_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::SpotLight).name(); // rtti is literal storage @@ -94742,150 +94640,6 @@ int lua_register_ax_base_RenderState(lua_State* tolua_S) return 1; } -int lua_ax_base_Technique_getPassCount(lua_State* tolua_S) -{ - int argc = 0; - ax::Technique* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_getPassCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_getPassCount'", nullptr); - return 0; - } - auto&& ret = cobj->getPassCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:getPassCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_getPassCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Technique_setMaterial(lua_State* tolua_S) -{ - int argc = 0; - ax::Technique* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_setMaterial'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Material* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Material",&arg0, "ax.Technique:setMaterial"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_setMaterial'", nullptr); - return 0; - } - cobj->setMaterial(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:setMaterial",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_setMaterial'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Technique_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::Technique* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.Technique",(ax::Technique*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_clone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Technique_addPass(lua_State* tolua_S) { int argc = 0; @@ -94936,53 +94690,6 @@ int lua_ax_base_Technique_addPass(lua_State* tolua_S) return 0; } -int lua_ax_base_Technique_getPasses(lua_State* tolua_S) -{ - int argc = 0; - ax::Technique* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_getPasses'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_getPasses'", nullptr); - return 0; - } - auto&& ret = cobj->getPasses(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:getPasses",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_getPasses'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Technique_getName(lua_State* tolua_S) { int argc = 0; @@ -95080,6 +94787,197 @@ int lua_ax_base_Technique_getPassByIndex(lua_State* tolua_S) return 0; } +int lua_ax_base_Technique_getPassCount(lua_State* tolua_S) +{ + int argc = 0; + ax::Technique* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_getPassCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_getPassCount'", nullptr); + return 0; + } + auto&& ret = cobj->getPassCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:getPassCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_getPassCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Technique_getPasses(lua_State* tolua_S) +{ + int argc = 0; + ax::Technique* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_getPasses'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_getPasses'", nullptr); + return 0; + } + auto&& ret = cobj->getPasses(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:getPasses",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_getPasses'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Technique_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::Technique* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.Technique",(ax::Technique*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Technique_setMaterial(lua_State* tolua_S) +{ + int argc = 0; + ax::Technique* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Technique",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Technique*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Technique_setMaterial'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Material* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Material",&arg0, "ax.Technique:setMaterial"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Technique_setMaterial'", nullptr); + return 0; + } + cobj->setMaterial(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Technique:setMaterial",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Technique_setMaterial'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Technique_createWithProgramState(lua_State* tolua_S) { int argc = 0; @@ -95166,13 +95064,13 @@ int lua_register_ax_base_Technique(lua_State* tolua_S) tolua_cclass(tolua_S,"Technique","ax.Technique","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Technique"); - tolua_function(tolua_S,"getPassCount",lua_ax_base_Technique_getPassCount); - tolua_function(tolua_S,"setMaterial",lua_ax_base_Technique_setMaterial); - tolua_function(tolua_S,"clone",lua_ax_base_Technique_clone); tolua_function(tolua_S,"addPass",lua_ax_base_Technique_addPass); - tolua_function(tolua_S,"getPasses",lua_ax_base_Technique_getPasses); tolua_function(tolua_S,"getName",lua_ax_base_Technique_getName); tolua_function(tolua_S,"getPassByIndex",lua_ax_base_Technique_getPassByIndex); + tolua_function(tolua_S,"getPassCount",lua_ax_base_Technique_getPassCount); + tolua_function(tolua_S,"getPasses",lua_ax_base_Technique_getPasses); + tolua_function(tolua_S,"clone",lua_ax_base_Technique_clone); + tolua_function(tolua_S,"setMaterial",lua_ax_base_Technique_setMaterial); tolua_function(tolua_S,"createWithProgramState", lua_ax_base_Technique_createWithProgramState); tolua_function(tolua_S,"create", lua_ax_base_Technique_create); tolua_endmodule(tolua_S); @@ -95182,53 +95080,6 @@ int lua_register_ax_base_Technique(lua_State* tolua_S) return 1; } -int lua_ax_base_Material_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::Material* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Material*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_clone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Material_draw(lua_State* tolua_S) { int argc = 0; @@ -95300,7 +95151,7 @@ int lua_ax_base_Material_draw(lua_State* tolua_S) return 0; } -int lua_ax_base_Material_isTransparent(lua_State* tolua_S) +int lua_ax_base_Material_getName(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -95320,7 +95171,7 @@ int lua_ax_base_Material_isTransparent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_isTransparent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getName'", nullptr); return 0; } #endif @@ -95330,113 +95181,19 @@ int lua_ax_base_Material_isTransparent(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_isTransparent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getName'", nullptr); return 0; } - auto&& ret = cobj->isTransparent(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getName(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:isTransparent",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_isTransparent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Material_isForce2DQueue(lua_State* tolua_S) -{ - int argc = 0; - ax::Material* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Material*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_isForce2DQueue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_isForce2DQueue'", nullptr); - return 0; - } - auto&& ret = cobj->isForce2DQueue(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:isForce2DQueue",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_isForce2DQueue'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Material_getRenderState(lua_State* tolua_S) -{ - int argc = 0; - ax::Material* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Material*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getRenderState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getRenderState'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderState(); - object_to_luaval(tolua_S, "ax.RenderState",(ax::RenderState*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getRenderState",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getRenderState'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getName'.",&tolua_err); #endif return 0; @@ -95491,7 +95248,7 @@ int lua_ax_base_Material_setName(lua_State* tolua_S) return 0; } -int lua_ax_base_Material_setForce2DQueue(lua_State* tolua_S) +int lua_ax_base_Material_getTechniqueByName(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -95511,7 +95268,7 @@ int lua_ax_base_Material_setForce2DQueue(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_setForce2DQueue'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getTechniqueByName'", nullptr); return 0; } #endif @@ -95519,24 +95276,24 @@ int lua_ax_base_Material_setForce2DQueue(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + std::string_view arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Material:setForce2DQueue"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Material:getTechniqueByName"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_setForce2DQueue'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getTechniqueByName'", nullptr); return 0; } - cobj->setForce2DQueue(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getTechniqueByName(arg0); + object_to_luaval(tolua_S, "ax.Technique",(ax::Technique*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:setForce2DQueue",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getTechniqueByName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_setForce2DQueue'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getTechniqueByName'.",&tolua_err); #endif return 0; @@ -95591,7 +95348,7 @@ int lua_ax_base_Material_getTechniqueByIndex(lua_State* tolua_S) return 0; } -int lua_ax_base_Material_getName(lua_State* tolua_S) +int lua_ax_base_Material_getTechnique(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -95611,7 +95368,7 @@ int lua_ax_base_Material_getName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getTechnique'", nullptr); return 0; } #endif @@ -95621,19 +95378,19 @@ int lua_ax_base_Material_getName(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getTechnique'", nullptr); return 0; } - auto&& ret = cobj->getName(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + auto&& ret = cobj->getTechnique(); + object_to_luaval(tolua_S, "ax.Technique",(ax::Technique*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getName",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getTechnique",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getTechnique'.",&tolua_err); #endif return 0; @@ -95732,6 +95489,56 @@ int lua_ax_base_Material_getTechniqueCount(lua_State* tolua_S) return 0; } +int lua_ax_base_Material_addTechnique(lua_State* tolua_S) +{ + int argc = 0; + ax::Material* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Material*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_addTechnique'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Technique* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Technique",&arg0, "ax.Material:addTechnique"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_addTechnique'", nullptr); + return 0; + } + cobj->addTechnique(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:addTechnique",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_addTechnique'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Material_setTechnique(lua_State* tolua_S) { int argc = 0; @@ -95782,7 +95589,7 @@ int lua_ax_base_Material_setTechnique(lua_State* tolua_S) return 0; } -int lua_ax_base_Material_getTechniqueByName(lua_State* tolua_S) +int lua_ax_base_Material_clone(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -95802,32 +95609,76 @@ int lua_ax_base_Material_getTechniqueByName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getTechniqueByName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Material:getTechniqueByName"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getTechniqueByName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_clone'", nullptr); return 0; } - auto&& ret = cobj->getTechniqueByName(arg0); - object_to_luaval(tolua_S, "ax.Technique",(ax::Technique*)ret); + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getTechniqueByName",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:clone",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getTechniqueByName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Material_getRenderState(lua_State* tolua_S) +{ + int argc = 0; + ax::Material* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Material*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getRenderState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getRenderState'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderState(); + object_to_luaval(tolua_S, "ax.RenderState",(ax::RenderState*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getRenderState",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getRenderState'.",&tolua_err); #endif return 0; @@ -95882,7 +95733,7 @@ int lua_ax_base_Material_setPrimitiveType(lua_State* tolua_S) return 0; } -int lua_ax_base_Material_addTechnique(lua_State* tolua_S) +int lua_ax_base_Material_getPrimitiveType(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -95902,32 +95753,29 @@ int lua_ax_base_Material_addTechnique(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_addTechnique'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getPrimitiveType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Technique* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Technique",&arg0, "ax.Material:addTechnique"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_addTechnique'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getPrimitiveType'", nullptr); return 0; } - cobj->addTechnique(arg0); - lua_settop(tolua_S, 1); + int ret = (int)cobj->getPrimitiveType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:addTechnique",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getPrimitiveType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_addTechnique'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getPrimitiveType'.",&tolua_err); #endif return 0; @@ -95982,7 +95830,7 @@ int lua_ax_base_Material_setTransparent(lua_State* tolua_S) return 0; } -int lua_ax_base_Material_getPrimitiveType(lua_State* tolua_S) +int lua_ax_base_Material_isTransparent(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -96002,7 +95850,7 @@ int lua_ax_base_Material_getPrimitiveType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getPrimitiveType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_isTransparent'", nullptr); return 0; } #endif @@ -96012,24 +95860,24 @@ int lua_ax_base_Material_getPrimitiveType(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getPrimitiveType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_isTransparent'", nullptr); return 0; } - int ret = (int)cobj->getPrimitiveType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->isTransparent(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getPrimitiveType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:isTransparent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getPrimitiveType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_isTransparent'.",&tolua_err); #endif return 0; } -int lua_ax_base_Material_getTechnique(lua_State* tolua_S) +int lua_ax_base_Material_setForce2DQueue(lua_State* tolua_S) { int argc = 0; ax::Material* cobj = nullptr; @@ -96049,7 +95897,57 @@ int lua_ax_base_Material_getTechnique(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_getTechnique'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_setForce2DQueue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Material:setForce2DQueue"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_setForce2DQueue'", nullptr); + return 0; + } + cobj->setForce2DQueue(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:setForce2DQueue",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_setForce2DQueue'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Material_isForce2DQueue(lua_State* tolua_S) +{ + int argc = 0; + ax::Material* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Material*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Material_isForce2DQueue'", nullptr); return 0; } #endif @@ -96059,19 +95957,19 @@ int lua_ax_base_Material_getTechnique(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_getTechnique'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_isForce2DQueue'", nullptr); return 0; } - auto&& ret = cobj->getTechnique(); - object_to_luaval(tolua_S, "ax.Technique",(ax::Technique*)ret); + auto&& ret = cobj->isForce2DQueue(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:getTechnique",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Material:isForce2DQueue",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_getTechnique'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_isForce2DQueue'.",&tolua_err); #endif return 0; @@ -96112,42 +96010,6 @@ int lua_ax_base_Material_createWithFilename(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Material_createWithProperties(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - ax::Properties* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Properties",&arg0, "ax.Material:createWithProperties"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_createWithProperties'", nullptr); - return 0; - } - auto&& ret = ax::Material::createWithProperties(arg0); - object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Material:createWithProperties",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_createWithProperties'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_Material_createWithProgramState(lua_State* tolua_S) { int argc = 0; @@ -96184,6 +96046,42 @@ int lua_ax_base_Material_createWithProgramState(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_Material_createWithProperties(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Material",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + ax::Properties* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Properties",&arg0, "ax.Material:createWithProperties"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Material_createWithProperties'", nullptr); + return 0; + } + auto&& ret = ax::Material::createWithProperties(arg0); + object_to_luaval(tolua_S, "ax.Material",(ax::Material*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Material:createWithProperties",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Material_createWithProperties'.",&tolua_err); +#endif + return 0; +} static int lua_ax_base_Material_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Material)"); @@ -96196,27 +96094,27 @@ int lua_register_ax_base_Material(lua_State* tolua_S) tolua_cclass(tolua_S,"Material","ax.Material","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Material"); - tolua_function(tolua_S,"clone",lua_ax_base_Material_clone); tolua_function(tolua_S,"draw",lua_ax_base_Material_draw); - tolua_function(tolua_S,"isTransparent",lua_ax_base_Material_isTransparent); - tolua_function(tolua_S,"isForce2DQueue",lua_ax_base_Material_isForce2DQueue); - tolua_function(tolua_S,"getRenderState",lua_ax_base_Material_getRenderState); - tolua_function(tolua_S,"setName",lua_ax_base_Material_setName); - tolua_function(tolua_S,"setForce2DQueue",lua_ax_base_Material_setForce2DQueue); - tolua_function(tolua_S,"getTechniqueByIndex",lua_ax_base_Material_getTechniqueByIndex); tolua_function(tolua_S,"getName",lua_ax_base_Material_getName); + tolua_function(tolua_S,"setName",lua_ax_base_Material_setName); + tolua_function(tolua_S,"getTechniqueByName",lua_ax_base_Material_getTechniqueByName); + tolua_function(tolua_S,"getTechniqueByIndex",lua_ax_base_Material_getTechniqueByIndex); + tolua_function(tolua_S,"getTechnique",lua_ax_base_Material_getTechnique); tolua_function(tolua_S,"getTechniques",lua_ax_base_Material_getTechniques); tolua_function(tolua_S,"getTechniqueCount",lua_ax_base_Material_getTechniqueCount); - tolua_function(tolua_S,"setTechnique",lua_ax_base_Material_setTechnique); - tolua_function(tolua_S,"getTechniqueByName",lua_ax_base_Material_getTechniqueByName); - tolua_function(tolua_S,"setPrimitiveType",lua_ax_base_Material_setPrimitiveType); tolua_function(tolua_S,"addTechnique",lua_ax_base_Material_addTechnique); - tolua_function(tolua_S,"setTransparent",lua_ax_base_Material_setTransparent); + tolua_function(tolua_S,"setTechnique",lua_ax_base_Material_setTechnique); + tolua_function(tolua_S,"clone",lua_ax_base_Material_clone); + tolua_function(tolua_S,"getRenderState",lua_ax_base_Material_getRenderState); + tolua_function(tolua_S,"setPrimitiveType",lua_ax_base_Material_setPrimitiveType); tolua_function(tolua_S,"getPrimitiveType",lua_ax_base_Material_getPrimitiveType); - tolua_function(tolua_S,"getTechnique",lua_ax_base_Material_getTechnique); + tolua_function(tolua_S,"setTransparent",lua_ax_base_Material_setTransparent); + tolua_function(tolua_S,"isTransparent",lua_ax_base_Material_isTransparent); + tolua_function(tolua_S,"setForce2DQueue",lua_ax_base_Material_setForce2DQueue); + tolua_function(tolua_S,"isForce2DQueue",lua_ax_base_Material_isForce2DQueue); tolua_function(tolua_S,"createWithFilename", lua_ax_base_Material_createWithFilename); - tolua_function(tolua_S,"createWithProperties", lua_ax_base_Material_createWithProperties); tolua_function(tolua_S,"createWithProgramState", lua_ax_base_Material_createWithProgramState); + tolua_function(tolua_S,"createWithProperties", lua_ax_base_Material_createWithProperties); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Material).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Material"; @@ -96224,7 +96122,7 @@ int lua_register_ax_base_Material(lua_State* tolua_S) return 1; } -int lua_ax_base_Pass_setUniformPointLightPosition(lua_State* tolua_S) +int lua_ax_base_Pass_getProgramState(lua_State* tolua_S) { int argc = 0; ax::Pass* cobj = nullptr; @@ -96244,41 +96142,34 @@ int lua_ax_base_Pass_setUniformPointLightPosition(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformPointLightPosition'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_getProgramState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformPointLightPosition"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformPointLightPosition'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_getProgramState'", nullptr); return 0; } - cobj->setUniformPointLightPosition(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getProgramState(); + object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformPointLightPosition",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:getProgramState",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformPointLightPosition'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_getProgramState'.",&tolua_err); #endif return 0; } -int lua_ax_base_Pass_setUniformDirLightDir(lua_State* tolua_S) +int lua_ax_base_Pass_draw(lua_State* tolua_S) { int argc = 0; ax::Pass* cobj = nullptr; @@ -96298,41 +96189,58 @@ int lua_ax_base_Pass_setUniformDirLightDir(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformDirLightDir'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_draw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 8) { - const void* arg0; - unsigned int arg1; + ax::MeshCommand* arg0; + double arg1; + ax::backend::Buffer* arg2; + ax::backend::Buffer* arg3; + ax::backend::PrimitiveType arg4; + ax::backend::IndexFormat arg5; + unsigned int arg6; + ax::Mat4 arg7; - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; + ok &= luaval_to_object(tolua_S, 2, "ax.MeshCommand",&arg0, "ax.Pass:draw"); - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformDirLightDir"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Pass:draw"); + + ok &= luaval_to_object(tolua_S, 4, "axb.Buffer",&arg2, "ax.Pass:draw"); + + ok &= luaval_to_object(tolua_S, 5, "axb.Buffer",&arg3, "ax.Pass:draw"); + + ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Pass:draw"); + + ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.Pass:draw"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ax.Pass:draw"); + + ok &= luaval_to_mat4(tolua_S, 9, &arg7, "ax.Pass:draw"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformDirLightDir'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_draw'", nullptr); return 0; } - cobj->setUniformDirLightDir(arg0, arg1); + cobj->draw(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformDirLightDir",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:draw",argc, 8); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformDirLightDir'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_draw'.",&tolua_err); #endif return 0; } -int lua_ax_base_Pass_setTechnique(lua_State* tolua_S) +int lua_ax_base_Pass_setVertexAttribBinding(lua_State* tolua_S) { int argc = 0; ax::Pass* cobj = nullptr; @@ -96352,7 +96260,7 @@ int lua_ax_base_Pass_setTechnique(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setTechnique'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setVertexAttribBinding'", nullptr); return 0; } #endif @@ -96360,24 +96268,24 @@ int lua_ax_base_Pass_setTechnique(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Technique* arg0; + ax::VertexAttribBinding* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Technique",&arg0, "ax.Pass:setTechnique"); + ok &= luaval_to_object(tolua_S, 2, "ax.VertexAttribBinding",&arg0, "ax.Pass:setVertexAttribBinding"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setTechnique'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setVertexAttribBinding'", nullptr); return 0; } - cobj->setTechnique(arg0); + cobj->setVertexAttribBinding(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setTechnique",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setVertexAttribBinding",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setTechnique'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setVertexAttribBinding'.",&tolua_err); #endif return 0; @@ -96429,168 +96337,6 @@ int lua_ax_base_Pass_getVertexAttributeBinding(lua_State* tolua_S) return 0; } -int lua_ax_base_Pass_setUniformSpotLightOuterAngleCos(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightOuterAngleCos'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightOuterAngleCos"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightOuterAngleCos'", nullptr); - return 0; - } - cobj->setUniformSpotLightOuterAngleCos(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightOuterAngleCos",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightOuterAngleCos'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformSpotLightDir(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightDir'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightDir"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightDir'", nullptr); - return 0; - } - cobj->setUniformSpotLightDir(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightDir",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightDir'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformMatrixPalette(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformMatrixPalette'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformMatrixPalette"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformMatrixPalette'", nullptr); - return 0; - } - cobj->setUniformMatrixPalette(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformMatrixPalette",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformMatrixPalette'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Pass_setName(lua_State* tolua_S) { int argc = 0; @@ -96688,60 +96434,6 @@ int lua_ax_base_Pass_getName(lua_State* tolua_S) return 0; } -int lua_ax_base_Pass_setUniformSpotLightRangeInverse(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightRangeInverse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightRangeInverse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightRangeInverse'", nullptr); - return 0; - } - cobj->setUniformSpotLightRangeInverse(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightRangeInverse",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightRangeInverse'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Pass_clone(lua_State* tolua_S) { int argc = 0; @@ -96789,7 +96481,7 @@ int lua_ax_base_Pass_clone(lua_State* tolua_S) return 0; } -int lua_ax_base_Pass_draw(lua_State* tolua_S) +int lua_ax_base_Pass_setTechnique(lua_State* tolua_S) { int argc = 0; ax::Pass* cobj = nullptr; @@ -96809,160 +96501,32 @@ int lua_ax_base_Pass_draw(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_draw'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setTechnique'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 8) + if (argc == 1) { - ax::MeshCommand* arg0; - double arg1; - ax::backend::Buffer* arg2; - ax::backend::Buffer* arg3; - ax::backend::PrimitiveType arg4; - ax::backend::IndexFormat arg5; - unsigned int arg6; - ax::Mat4 arg7; + ax::Technique* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.MeshCommand",&arg0, "ax.Pass:draw"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Pass:draw"); - - ok &= luaval_to_object(tolua_S, 4, "axb.Buffer",&arg2, "ax.Pass:draw"); - - ok &= luaval_to_object(tolua_S, 5, "axb.Buffer",&arg3, "ax.Pass:draw"); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.Pass:draw"); - - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ax.Pass:draw"); - - ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ax.Pass:draw"); - - ok &= luaval_to_mat4(tolua_S, 9, &arg7, "ax.Pass:draw"); + ok &= luaval_to_object(tolua_S, 2, "ax.Technique",&arg0, "ax.Pass:setTechnique"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_draw'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setTechnique'", nullptr); return 0; } - cobj->draw(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + cobj->setTechnique(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:draw",argc, 8); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setTechnique",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_draw'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformPointLightRangeInverse(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformPointLightRangeInverse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformPointLightRangeInverse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformPointLightRangeInverse'", nullptr); - return 0; - } - cobj->setUniformPointLightRangeInverse(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformPointLightRangeInverse",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformPointLightRangeInverse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformNormTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformNormTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - unsigned int arg0; - ax::backend::TextureBackend* arg1; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Pass:setUniformNormTexture"); - - ok &= luaval_to_object(tolua_S, 3, "axb.TextureBackend",&arg1, "ax.Pass:setUniformNormTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformNormTexture'", nullptr); - return 0; - } - cobj->setUniformNormTexture(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformNormTexture",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformNormTexture'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setTechnique'.",&tolua_err); #endif return 0; @@ -97017,319 +96581,6 @@ int lua_ax_base_Pass_updateMVPUniform(lua_State* tolua_S) return 0; } -int lua_ax_base_Pass_getProgramState(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_getProgramState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_getProgramState'", nullptr); - return 0; - } - auto&& ret = cobj->getProgramState(); - object_to_luaval(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:getProgramState",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_getProgramState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformSpotLightColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightColor'", nullptr); - return 0; - } - cobj->setUniformSpotLightColor(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightColor",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformAmbientLigthColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformAmbientLigthColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformAmbientLigthColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformAmbientLigthColor'", nullptr); - return 0; - } - cobj->setUniformAmbientLigthColor(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformAmbientLigthColor",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformAmbientLigthColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformDirLightColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformDirLightColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformDirLightColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformDirLightColor'", nullptr); - return 0; - } - cobj->setUniformDirLightColor(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformDirLightColor",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformDirLightColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setUniformSpotLightPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const void* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightPosition'", nullptr); - return 0; - } - cobj->setUniformSpotLightPosition(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightPosition",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Pass_setVertexAttribBinding(lua_State* tolua_S) -{ - int argc = 0; - ax::Pass* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setVertexAttribBinding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::VertexAttribBinding* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.VertexAttribBinding",&arg0, "ax.Pass:setVertexAttribBinding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setVertexAttribBinding'", nullptr); - return 0; - } - cobj->setVertexAttribBinding(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setVertexAttribBinding",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setVertexAttribBinding'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Pass_setUniformTexture(lua_State* tolua_S) { int argc = 0; @@ -97383,7 +96634,7 @@ int lua_ax_base_Pass_setUniformTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) +int lua_ax_base_Pass_setUniformNormTexture(lua_State* tolua_S) { int argc = 0; ax::Pass* cobj = nullptr; @@ -97403,7 +96654,7 @@ int lua_ax_base_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightInnerAngleCos'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformNormTexture'", nullptr); return 0; } #endif @@ -97411,28 +96662,27 @@ int lua_ax_base_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - const void* arg0; - unsigned int arg1; + unsigned int arg0; + ax::backend::TextureBackend* arg1; - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Pass:setUniformNormTexture"); - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightInnerAngleCos"); + ok &= luaval_to_object(tolua_S, 3, "axb.TextureBackend",&arg1, "ax.Pass:setUniformNormTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightInnerAngleCos'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformNormTexture'", nullptr); return 0; } - cobj->setUniformSpotLightInnerAngleCos(arg0, arg1); + cobj->setUniformNormTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightInnerAngleCos",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformNormTexture",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightInnerAngleCos'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformNormTexture'.",&tolua_err); #endif return 0; @@ -97491,6 +96741,168 @@ int lua_ax_base_Pass_setUniformColor(lua_State* tolua_S) return 0; } +int lua_ax_base_Pass_setUniformMatrixPalette(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformMatrixPalette'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformMatrixPalette"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformMatrixPalette'", nullptr); + return 0; + } + cobj->setUniformMatrixPalette(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformMatrixPalette",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformMatrixPalette'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformDirLightColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformDirLightColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformDirLightColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformDirLightColor'", nullptr); + return 0; + } + cobj->setUniformDirLightColor(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformDirLightColor",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformDirLightColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformDirLightDir(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformDirLightDir'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformDirLightDir"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformDirLightDir'", nullptr); + return 0; + } + cobj->setUniformDirLightDir(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformDirLightDir",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformDirLightDir'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Pass_setUniformPointLightColor(lua_State* tolua_S) { int argc = 0; @@ -97545,6 +96957,492 @@ int lua_ax_base_Pass_setUniformPointLightColor(lua_State* tolua_S) return 0; } +int lua_ax_base_Pass_setUniformPointLightPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformPointLightPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformPointLightPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformPointLightPosition'", nullptr); + return 0; + } + cobj->setUniformPointLightPosition(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformPointLightPosition",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformPointLightPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformPointLightRangeInverse(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformPointLightRangeInverse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformPointLightRangeInverse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformPointLightRangeInverse'", nullptr); + return 0; + } + cobj->setUniformPointLightRangeInverse(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformPointLightRangeInverse",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformPointLightRangeInverse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformSpotLightColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightColor'", nullptr); + return 0; + } + cobj->setUniformSpotLightColor(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightColor",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformSpotLightPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightPosition'", nullptr); + return 0; + } + cobj->setUniformSpotLightPosition(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightPosition",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformSpotLightDir(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightDir'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightDir"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightDir'", nullptr); + return 0; + } + cobj->setUniformSpotLightDir(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightDir",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightDir'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightInnerAngleCos'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightInnerAngleCos"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightInnerAngleCos'", nullptr); + return 0; + } + cobj->setUniformSpotLightInnerAngleCos(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightInnerAngleCos",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightInnerAngleCos'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformSpotLightOuterAngleCos(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightOuterAngleCos'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightOuterAngleCos"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightOuterAngleCos'", nullptr); + return 0; + } + cobj->setUniformSpotLightOuterAngleCos(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightOuterAngleCos",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightOuterAngleCos'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformSpotLightRangeInverse(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformSpotLightRangeInverse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformSpotLightRangeInverse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformSpotLightRangeInverse'", nullptr); + return 0; + } + cobj->setUniformSpotLightRangeInverse(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformSpotLightRangeInverse",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformSpotLightRangeInverse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Pass_setUniformAmbientLigthColor(lua_State* tolua_S) +{ + int argc = 0; + ax::Pass* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Pass",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Pass*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Pass_setUniformAmbientLigthColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const void* arg0; + unsigned int arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Pass:setUniformAmbientLigthColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Pass_setUniformAmbientLigthColor'", nullptr); + return 0; + } + cobj->setUniformAmbientLigthColor(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Pass:setUniformAmbientLigthColor",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Pass_setUniformAmbientLigthColor'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_Pass_createWithProgramState(lua_State* tolua_S) { int argc = 0; @@ -97631,31 +97529,31 @@ int lua_register_ax_base_Pass(lua_State* tolua_S) tolua_cclass(tolua_S,"Pass","ax.Pass","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Pass"); - tolua_function(tolua_S,"setUniformPointLightPosition",lua_ax_base_Pass_setUniformPointLightPosition); - tolua_function(tolua_S,"setUniformDirLightDir",lua_ax_base_Pass_setUniformDirLightDir); - tolua_function(tolua_S,"setTechnique",lua_ax_base_Pass_setTechnique); + tolua_function(tolua_S,"getProgramState",lua_ax_base_Pass_getProgramState); + tolua_function(tolua_S,"draw",lua_ax_base_Pass_draw); + tolua_function(tolua_S,"setVertexAttribBinding",lua_ax_base_Pass_setVertexAttribBinding); tolua_function(tolua_S,"getVertexAttributeBinding",lua_ax_base_Pass_getVertexAttributeBinding); - tolua_function(tolua_S,"setUniformSpotLightOuterAngleCos",lua_ax_base_Pass_setUniformSpotLightOuterAngleCos); - tolua_function(tolua_S,"setUniformSpotLightDir",lua_ax_base_Pass_setUniformSpotLightDir); - tolua_function(tolua_S,"setUniformMatrixPalette",lua_ax_base_Pass_setUniformMatrixPalette); tolua_function(tolua_S,"setName",lua_ax_base_Pass_setName); tolua_function(tolua_S,"getName",lua_ax_base_Pass_getName); - tolua_function(tolua_S,"setUniformSpotLightRangeInverse",lua_ax_base_Pass_setUniformSpotLightRangeInverse); tolua_function(tolua_S,"clone",lua_ax_base_Pass_clone); - tolua_function(tolua_S,"draw",lua_ax_base_Pass_draw); - tolua_function(tolua_S,"setUniformPointLightRangeInverse",lua_ax_base_Pass_setUniformPointLightRangeInverse); - tolua_function(tolua_S,"setUniformNormTexture",lua_ax_base_Pass_setUniformNormTexture); + tolua_function(tolua_S,"setTechnique",lua_ax_base_Pass_setTechnique); tolua_function(tolua_S,"updateMVPUniform",lua_ax_base_Pass_updateMVPUniform); - tolua_function(tolua_S,"getProgramState",lua_ax_base_Pass_getProgramState); - tolua_function(tolua_S,"setUniformSpotLightColor",lua_ax_base_Pass_setUniformSpotLightColor); - tolua_function(tolua_S,"setUniformAmbientLigthColor",lua_ax_base_Pass_setUniformAmbientLigthColor); - tolua_function(tolua_S,"setUniformDirLightColor",lua_ax_base_Pass_setUniformDirLightColor); - tolua_function(tolua_S,"setUniformSpotLightPosition",lua_ax_base_Pass_setUniformSpotLightPosition); - tolua_function(tolua_S,"setVertexAttribBinding",lua_ax_base_Pass_setVertexAttribBinding); tolua_function(tolua_S,"setUniformTexture",lua_ax_base_Pass_setUniformTexture); - tolua_function(tolua_S,"setUniformSpotLightInnerAngleCos",lua_ax_base_Pass_setUniformSpotLightInnerAngleCos); + tolua_function(tolua_S,"setUniformNormTexture",lua_ax_base_Pass_setUniformNormTexture); tolua_function(tolua_S,"setUniformColor",lua_ax_base_Pass_setUniformColor); + tolua_function(tolua_S,"setUniformMatrixPalette",lua_ax_base_Pass_setUniformMatrixPalette); + tolua_function(tolua_S,"setUniformDirLightColor",lua_ax_base_Pass_setUniformDirLightColor); + tolua_function(tolua_S,"setUniformDirLightDir",lua_ax_base_Pass_setUniformDirLightDir); tolua_function(tolua_S,"setUniformPointLightColor",lua_ax_base_Pass_setUniformPointLightColor); + tolua_function(tolua_S,"setUniformPointLightPosition",lua_ax_base_Pass_setUniformPointLightPosition); + tolua_function(tolua_S,"setUniformPointLightRangeInverse",lua_ax_base_Pass_setUniformPointLightRangeInverse); + tolua_function(tolua_S,"setUniformSpotLightColor",lua_ax_base_Pass_setUniformSpotLightColor); + tolua_function(tolua_S,"setUniformSpotLightPosition",lua_ax_base_Pass_setUniformSpotLightPosition); + tolua_function(tolua_S,"setUniformSpotLightDir",lua_ax_base_Pass_setUniformSpotLightDir); + tolua_function(tolua_S,"setUniformSpotLightInnerAngleCos",lua_ax_base_Pass_setUniformSpotLightInnerAngleCos); + tolua_function(tolua_S,"setUniformSpotLightOuterAngleCos",lua_ax_base_Pass_setUniformSpotLightOuterAngleCos); + tolua_function(tolua_S,"setUniformSpotLightRangeInverse",lua_ax_base_Pass_setUniformSpotLightRangeInverse); + tolua_function(tolua_S,"setUniformAmbientLigthColor",lua_ax_base_Pass_setUniformAmbientLigthColor); tolua_function(tolua_S,"createWithProgramState", lua_ax_base_Pass_createWithProgramState); tolua_function(tolua_S,"create", lua_ax_base_Pass_create); tolua_endmodule(tolua_S); @@ -97665,7 +97563,7 @@ int lua_register_ax_base_Pass(lua_State* tolua_S) return 1; } -int lua_ax_base_Renderer_getWinding(lua_State* tolua_S) +int lua_ax_base_Renderer_init(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -97685,7 +97583,7 @@ int lua_ax_base_Renderer_getWinding(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getWinding'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_init'", nullptr); return 0; } #endif @@ -97695,655 +97593,19 @@ int lua_ax_base_Renderer_getWinding(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getWinding'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_init'", nullptr); return 0; } - int ret = (int)cobj->getWinding(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getWinding",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getWinding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getDrawnVertices(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDrawnVertices'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDrawnVertices'", nullptr); - return 0; - } - auto&& ret = cobj->getDrawnVertices(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDrawnVertices",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDrawnVertices'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_render(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_render'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_render'", nullptr); - return 0; - } - cobj->render(); + cobj->init(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:render",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_render'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_createRenderQueue(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_createRenderQueue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_createRenderQueue'", nullptr); - return 0; - } - auto&& ret = cobj->createRenderQueue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:createRenderQueue",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_createRenderQueue'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setDepthStencilDesc(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthStencilDesc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::DepthStencilDescriptor arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR DepthStencilDescriptor - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthStencilDesc'", nullptr); - return 0; - } - cobj->setDepthStencilDesc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthStencilDesc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthStencilDesc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getStencilTest(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilTest'", nullptr); - return 0; - } - auto&& ret = cobj->getStencilTest(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilTest",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilTest'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getRenderTargetFlag(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getRenderTargetFlag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getRenderTargetFlag'", nullptr); - return 0; - } - int ret = (int)cobj->getRenderTargetFlag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getRenderTargetFlag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getRenderTargetFlag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getClearFlag(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearFlag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearFlag'", nullptr); - return 0; - } - int ret = (int)cobj->getClearFlag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearFlag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearFlag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setViewPort(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setViewPort'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - int arg0; - int arg1; - unsigned int arg2; - unsigned int arg3; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setViewPort"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Renderer:setViewPort"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Renderer:setViewPort"); - - ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.Renderer:setViewPort"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setViewPort'", nullptr); - return 0; - } - cobj->setViewPort(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setViewPort",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setViewPort'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getStencilReadMask(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilReadMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilReadMask'", nullptr); - return 0; - } - auto&& ret = cobj->getStencilReadMask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilReadMask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilReadMask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getClearDepth(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearDepth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearDepth'", nullptr); - return 0; - } - auto&& ret = cobj->getClearDepth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearDepth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearDepth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setStencilCompareFunction(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilCompareFunction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::backend::CompareFunction arg0; - unsigned int arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setStencilCompareFunction"); - - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Renderer:setStencilCompareFunction"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Renderer:setStencilCompareFunction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilCompareFunction'", nullptr); - return 0; - } - cobj->setStencilCompareFunction(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilCompareFunction",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilCompareFunction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getViewport(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getViewport'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getViewport'", nullptr); - return 0; - } - auto&& ret = cobj->getViewport(); - #pragma warning NO CONVERSION FROM NATIVE FOR Viewport; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getViewport",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getViewport'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getClearStencil(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearStencil'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearStencil'", nullptr); - return 0; - } - auto&& ret = cobj->getClearStencil(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearStencil",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearStencil'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_init'.",&tolua_err); #endif return 0; @@ -98423,150 +97685,6 @@ int lua_ax_base_Renderer_addCallbackCommand(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_setStencilTest(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setStencilTest"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilTest'", nullptr); - return 0; - } - cobj->setStencilTest(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilTest",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilTest'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getStencilFailureOperation(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilFailureOperation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilFailureOperation'", nullptr); - return 0; - } - int ret = (int)cobj->getStencilFailureOperation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilFailureOperation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilFailureOperation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getRenderTarget(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getRenderTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getRenderTarget'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderTarget(); - object_to_luaval(tolua_S, "axb.RenderTarget",(ax::backend::RenderTarget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getRenderTarget",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getRenderTarget'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Renderer_addCommand(lua_State* tolua_S) { int argc = 0; @@ -98626,7 +97744,7 @@ int lua_ax_base_Renderer_addCommand(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_setDepthTest(lua_State* tolua_S) +int lua_ax_base_Renderer_getNextGroupCommand(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -98646,166 +97764,7 @@ int lua_ax_base_Renderer_setDepthTest(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setDepthTest"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthTest'", nullptr); - return 0; - } - cobj->setDepthTest(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthTest",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthTest'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_addDrawnVertices(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_addDrawnVertices'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.Renderer:addDrawnVertices"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_addDrawnVertices'", nullptr); - return 0; - } - cobj->addDrawnVertices(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:addDrawnVertices",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_addDrawnVertices'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setScissorRect(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setScissorRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - double arg0; - double arg1; - double arg2; - double arg3; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Renderer:setScissorRect"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Renderer:setScissorRect"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Renderer:setScissorRect"); - - ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Renderer:setScissorRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setScissorRect'", nullptr); - return 0; - } - cobj->setScissorRect(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setScissorRect",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setScissorRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getDepthTest(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthTest'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getNextGroupCommand'", nullptr); return 0; } #endif @@ -98815,307 +97774,19 @@ int lua_ax_base_Renderer_getDepthTest(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthTest'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getNextGroupCommand'", nullptr); return 0; } - auto&& ret = cobj->getDepthTest(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getNextGroupCommand(); + object_to_luaval(tolua_S, "ax.GroupCommand",(ax::GroupCommand*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthTest",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getNextGroupCommand",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthTest'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_init'", nullptr); - return 0; - } - cobj->init(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setDepthWrite(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthWrite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setDepthWrite"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthWrite'", nullptr); - return 0; - } - cobj->setDepthWrite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthWrite",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthWrite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getDepthStencilDesc(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthStencilDesc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthStencilDesc'", nullptr); - return 0; - } - auto&& ret = cobj->getDepthStencilDesc(); - #pragma warning NO CONVERSION FROM NATIVE FOR DepthStencilDescriptor; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthStencilDesc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthStencilDesc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getStencilPassDepthFailureOperation(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilPassDepthFailureOperation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilPassDepthFailureOperation'", nullptr); - return 0; - } - int ret = (int)cobj->getStencilPassDepthFailureOperation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilPassDepthFailureOperation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilPassDepthFailureOperation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setCullMode(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setCullMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::CullMode arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setCullMode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setCullMode'", nullptr); - return 0; - } - cobj->setCullMode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setCullMode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setCullMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_popGroup(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_popGroup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_popGroup'", nullptr); - return 0; - } - cobj->popGroup(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:popGroup",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_popGroup'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getNextGroupCommand'.",&tolua_err); #endif return 0; @@ -99170,7 +97841,7 @@ int lua_ax_base_Renderer_pushGroup(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_getScissorRect(lua_State* tolua_S) +int lua_ax_base_Renderer_popGroup(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -99190,7 +97861,7 @@ int lua_ax_base_Renderer_getScissorRect(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getScissorRect'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_popGroup'", nullptr); return 0; } #endif @@ -99200,160 +97871,207 @@ int lua_ax_base_Renderer_getScissorRect(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getScissorRect'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_popGroup'", nullptr); return 0; } - auto&& ret = cobj->getScissorRect(); - #pragma warning NO CONVERSION FROM NATIVE FOR ScissorRect; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getScissorRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getScissorRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getScissorTest(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getScissorTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getScissorTest'", nullptr); - return 0; - } - auto&& ret = cobj->getScissorTest(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getScissorTest",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getScissorTest'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getStencilWriteMask(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilWriteMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilWriteMask'", nullptr); - return 0; - } - auto&& ret = cobj->getStencilWriteMask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilWriteMask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilWriteMask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_endRenderPass(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_endRenderPass'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_endRenderPass'", nullptr); - return 0; - } - cobj->endRenderPass(); + cobj->popGroup(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:endRenderPass",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:popGroup",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_endRenderPass'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_popGroup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_createRenderQueue(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_createRenderQueue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_createRenderQueue'", nullptr); + return 0; + } + auto&& ret = cobj->createRenderQueue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:createRenderQueue",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_createRenderQueue'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_render(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_render'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_render'", nullptr); + return 0; + } + cobj->render(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:render",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_render'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_clean(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_clean'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_clean'", nullptr); + return 0; + } + cobj->clean(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:clean",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_clean'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getDrawnBatches(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDrawnBatches'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDrawnBatches'", nullptr); + return 0; + } + auto&& ret = cobj->getDrawnBatches(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDrawnBatches",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDrawnBatches'.",&tolua_err); #endif return 0; @@ -99408,7 +98126,7 @@ int lua_ax_base_Renderer_addDrawnBatches(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_nextCallbackCommand(lua_State* tolua_S) +int lua_ax_base_Renderer_getDrawnVertices(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -99428,7 +98146,7 @@ int lua_ax_base_Renderer_nextCallbackCommand(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_nextCallbackCommand'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDrawnVertices'", nullptr); return 0; } #endif @@ -99438,218 +98156,24 @@ int lua_ax_base_Renderer_nextCallbackCommand(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_nextCallbackCommand'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDrawnVertices'", nullptr); return 0; } - auto&& ret = cobj->nextCallbackCommand(); - object_to_luaval(tolua_S, "ax.CallbackCommand",(ax::CallbackCommand*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:nextCallbackCommand",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_nextCallbackCommand'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_checkVisibility(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_checkVisibility'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Mat4 arg0; - ax::Vec2 arg1; - - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Renderer:checkVisibility"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.Renderer:checkVisibility"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_checkVisibility'", nullptr); - return 0; - } - auto&& ret = cobj->checkVisibility(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:checkVisibility",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_checkVisibility'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getNextGroupCommand(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getNextGroupCommand'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getNextGroupCommand'", nullptr); - return 0; - } - auto&& ret = cobj->getNextGroupCommand(); - object_to_luaval(tolua_S, "ax.GroupCommand",(ax::GroupCommand*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getNextGroupCommand",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getNextGroupCommand'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getDepthWrite(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthWrite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthWrite'", nullptr); - return 0; - } - auto&& ret = cobj->getDepthWrite(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthWrite",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthWrite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getCullMode(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getCullMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getCullMode'", nullptr); - return 0; - } - int ret = (int)cobj->getCullMode(); + auto&& ret = cobj->getDrawnVertices(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getCullMode",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDrawnVertices",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getCullMode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDrawnVertices'.",&tolua_err); #endif return 0; } -int lua_ax_base_Renderer_getStencilCompareFunction(lua_State* tolua_S) +int lua_ax_base_Renderer_addDrawnVertices(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -99669,101 +98193,7 @@ int lua_ax_base_Renderer_getStencilCompareFunction(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilCompareFunction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilCompareFunction'", nullptr); - return 0; - } - int ret = (int)cobj->getStencilCompareFunction(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilCompareFunction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilCompareFunction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getClearColor(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearColor'", nullptr); - return 0; - } - auto&& ret = cobj->getClearColor(); - color4f_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setDepthCompareFunction(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthCompareFunction'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_addDrawnVertices'", nullptr); return 0; } #endif @@ -99771,29 +98201,29 @@ int lua_ax_base_Renderer_setDepthCompareFunction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::backend::CompareFunction arg0; + ssize_t arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setDepthCompareFunction"); + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.Renderer:addDrawnVertices"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthCompareFunction'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_addDrawnVertices'", nullptr); return 0; } - cobj->setDepthCompareFunction(arg0); + cobj->addDrawnVertices(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthCompareFunction",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:addDrawnVertices",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthCompareFunction'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_addDrawnVertices'.",&tolua_err); #endif return 0; } -int lua_ax_base_Renderer_setStencilWriteMask(lua_State* tolua_S) +int lua_ax_base_Renderer_clearDrawStats(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -99813,57 +98243,7 @@ int lua_ax_base_Renderer_setStencilWriteMask(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilWriteMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Renderer:setStencilWriteMask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilWriteMask'", nullptr); - return 0; - } - cobj->setStencilWriteMask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilWriteMask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilWriteMask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getStencilDepthPassOperation(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilDepthPassOperation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_clearDrawStats'", nullptr); return 0; } #endif @@ -99873,19 +98253,163 @@ int lua_ax_base_Renderer_getStencilDepthPassOperation(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilDepthPassOperation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_clearDrawStats'", nullptr); return 0; } - int ret = (int)cobj->getStencilDepthPassOperation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->clearDrawStats(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilDepthPassOperation",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:clearDrawStats",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilDepthPassOperation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_clearDrawStats'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getRenderTarget'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderTarget(); + object_to_luaval(tolua_S, "axb.RenderTarget",(ax::backend::RenderTarget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getRenderTarget",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getRenderTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::RenderTarget* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axb.RenderTarget",&arg0, "ax.Renderer:setRenderTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setRenderTarget'", nullptr); + return 0; + } + cobj->setRenderTarget(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setRenderTarget",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setRenderTarget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getDefaultRenderTarget(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDefaultRenderTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDefaultRenderTarget'", nullptr); + return 0; + } + auto&& ret = cobj->getDefaultRenderTarget(); + object_to_luaval(tolua_S, "axb.RenderTarget",(ax::backend::RenderTarget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDefaultRenderTarget",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDefaultRenderTarget'.",&tolua_err); #endif return 0; @@ -99937,56 +98461,6 @@ int lua_ax_base_Renderer_getOffscreenRenderTarget(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_setWinding(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setWinding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::backend::Winding arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setWinding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setWinding'", nullptr); - return 0; - } - cobj->setWinding(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setWinding",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setWinding'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Renderer_clear(lua_State* tolua_S) { int argc = 0; @@ -100049,7 +98523,7 @@ int lua_ax_base_Renderer_clear(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_setRenderTarget(lua_State* tolua_S) +int lua_ax_base_Renderer_getClearColor(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -100069,7 +98543,242 @@ int lua_ax_base_Renderer_setRenderTarget(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setRenderTarget'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearColor'", nullptr); + return 0; + } + auto&& ret = cobj->getClearColor(); + color4f_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getClearDepth(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearDepth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearDepth'", nullptr); + return 0; + } + auto&& ret = cobj->getClearDepth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearDepth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearDepth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getClearStencil(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearStencil'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearStencil'", nullptr); + return 0; + } + auto&& ret = cobj->getClearStencil(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearStencil",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearStencil'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getClearFlag(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getClearFlag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getClearFlag'", nullptr); + return 0; + } + int ret = (int)cobj->getClearFlag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getClearFlag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getClearFlag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getRenderTargetFlag(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getRenderTargetFlag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getRenderTargetFlag'", nullptr); + return 0; + } + int ret = (int)cobj->getRenderTargetFlag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getRenderTargetFlag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getRenderTargetFlag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setDepthTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthTest'", nullptr); return 0; } #endif @@ -100077,24 +98786,1507 @@ int lua_ax_base_Renderer_setRenderTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::backend::RenderTarget* arg0; + bool arg0; - ok &= luaval_to_object(tolua_S, 2, "axb.RenderTarget",&arg0, "ax.Renderer:setRenderTarget"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setDepthTest"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setRenderTarget'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthTest'", nullptr); return 0; } - cobj->setRenderTarget(arg0); + cobj->setDepthTest(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setRenderTarget",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthTest",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setRenderTarget'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setDepthWrite(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthWrite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setDepthWrite"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthWrite'", nullptr); + return 0; + } + cobj->setDepthWrite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthWrite",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthWrite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setDepthCompareFunction(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthCompareFunction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::CompareFunction arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setDepthCompareFunction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthCompareFunction'", nullptr); + return 0; + } + cobj->setDepthCompareFunction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthCompareFunction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthCompareFunction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getDepthTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthTest'", nullptr); + return 0; + } + auto&& ret = cobj->getDepthTest(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthTest",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getDepthWrite(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthWrite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthWrite'", nullptr); + return 0; + } + auto&& ret = cobj->getDepthWrite(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthWrite",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthWrite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getDepthCompareFunction(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthCompareFunction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthCompareFunction'", nullptr); + return 0; + } + int ret = (int)cobj->getDepthCompareFunction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthCompareFunction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthCompareFunction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setStencilTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setStencilTest"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilTest'", nullptr); + return 0; + } + cobj->setStencilTest(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilTest",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setStencilCompareFunction(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilCompareFunction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::backend::CompareFunction arg0; + unsigned int arg1; + unsigned int arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setStencilCompareFunction"); + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.Renderer:setStencilCompareFunction"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Renderer:setStencilCompareFunction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilCompareFunction'", nullptr); + return 0; + } + cobj->setStencilCompareFunction(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilCompareFunction",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilCompareFunction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setStencilOperation(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilOperation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::backend::StencilOperation arg0; + ax::backend::StencilOperation arg1; + ax::backend::StencilOperation arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setStencilOperation"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Renderer:setStencilOperation"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Renderer:setStencilOperation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilOperation'", nullptr); + return 0; + } + cobj->setStencilOperation(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilOperation",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilOperation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setStencilWriteMask(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilWriteMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Renderer:setStencilWriteMask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilWriteMask'", nullptr); + return 0; + } + cobj->setStencilWriteMask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilWriteMask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilWriteMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilTest'", nullptr); + return 0; + } + auto&& ret = cobj->getStencilTest(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilTest",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilFailureOperation(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilFailureOperation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilFailureOperation'", nullptr); + return 0; + } + int ret = (int)cobj->getStencilFailureOperation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilFailureOperation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilFailureOperation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilPassDepthFailureOperation(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilPassDepthFailureOperation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilPassDepthFailureOperation'", nullptr); + return 0; + } + int ret = (int)cobj->getStencilPassDepthFailureOperation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilPassDepthFailureOperation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilPassDepthFailureOperation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilDepthPassOperation(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilDepthPassOperation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilDepthPassOperation'", nullptr); + return 0; + } + int ret = (int)cobj->getStencilDepthPassOperation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilDepthPassOperation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilDepthPassOperation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilCompareFunction(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilCompareFunction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilCompareFunction'", nullptr); + return 0; + } + int ret = (int)cobj->getStencilCompareFunction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilCompareFunction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilCompareFunction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilReadMask(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilReadMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilReadMask'", nullptr); + return 0; + } + auto&& ret = cobj->getStencilReadMask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilReadMask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilReadMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilWriteMask(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilWriteMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilWriteMask'", nullptr); + return 0; + } + auto&& ret = cobj->getStencilWriteMask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilWriteMask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilWriteMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getStencilReferenceValue(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilReferenceValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilReferenceValue'", nullptr); + return 0; + } + auto&& ret = cobj->getStencilReferenceValue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilReferenceValue",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilReferenceValue'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setDepthStencilDesc(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setDepthStencilDesc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::DepthStencilDescriptor arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR DepthStencilDescriptor + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setDepthStencilDesc'", nullptr); + return 0; + } + cobj->setDepthStencilDesc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setDepthStencilDesc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setDepthStencilDesc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getDepthStencilDesc(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthStencilDesc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthStencilDesc'", nullptr); + return 0; + } + auto&& ret = cobj->getDepthStencilDesc(); + #pragma warning NO CONVERSION FROM NATIVE FOR DepthStencilDescriptor; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthStencilDesc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthStencilDesc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setCullMode(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setCullMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::CullMode arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setCullMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setCullMode'", nullptr); + return 0; + } + cobj->setCullMode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setCullMode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setCullMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getCullMode(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getCullMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getCullMode'", nullptr); + return 0; + } + int ret = (int)cobj->getCullMode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getCullMode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getCullMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setWinding(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setWinding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::backend::Winding arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setWinding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setWinding'", nullptr); + return 0; + } + cobj->setWinding(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setWinding",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setWinding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getWinding(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getWinding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getWinding'", nullptr); + return 0; + } + int ret = (int)cobj->getWinding(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getWinding",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getWinding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setViewPort(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setViewPort'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + int arg0; + int arg1; + unsigned int arg2; + unsigned int arg3; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setViewPort"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Renderer:setViewPort"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.Renderer:setViewPort"); + + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.Renderer:setViewPort"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setViewPort'", nullptr); + return 0; + } + cobj->setViewPort(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setViewPort",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setViewPort'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getViewport(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getViewport'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getViewport'", nullptr); + return 0; + } + auto&& ret = cobj->getViewport(); + #pragma warning NO CONVERSION FROM NATIVE FOR Viewport; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getViewport",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getViewport'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setScissorTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setScissorTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setScissorTest"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setScissorTest'", nullptr); + return 0; + } + cobj->setScissorTest(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setScissorTest",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setScissorTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_setScissorRect(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setScissorRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + double arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Renderer:setScissorRect"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Renderer:setScissorRect"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Renderer:setScissorRect"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Renderer:setScissorRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setScissorRect'", nullptr); + return 0; + } + cobj->setScissorRect(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setScissorRect",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setScissorRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getScissorTest(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getScissorTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getScissorTest'", nullptr); + return 0; + } + auto&& ret = cobj->getScissorTest(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getScissorTest",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getScissorTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_getScissorRect(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getScissorRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getScissorRect'", nullptr); + return 0; + } + auto&& ret = cobj->getScissorRect(); + #pragma warning NO CONVERSION FROM NATIVE FOR ScissorRect; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getScissorRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getScissorRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_Renderer_checkVisibility(lua_State* tolua_S) +{ + int argc = 0; + ax::Renderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_checkVisibility'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Mat4 arg0; + ax::Vec2 arg1; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Renderer:checkVisibility"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.Renderer:checkVisibility"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_checkVisibility'", nullptr); + return 0; + } + auto&& ret = cobj->checkVisibility(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:checkVisibility",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_checkVisibility'.",&tolua_err); #endif return 0; @@ -100156,53 +100348,6 @@ int lua_ax_base_Renderer_readPixels(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_getStencilReferenceValue(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getStencilReferenceValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getStencilReferenceValue'", nullptr); - return 0; - } - auto&& ret = cobj->getStencilReferenceValue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getStencilReferenceValue",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getStencilReferenceValue'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_Renderer_beginRenderPass(lua_State* tolua_S) { int argc = 0; @@ -100250,7 +100395,7 @@ int lua_ax_base_Renderer_beginRenderPass(lua_State* tolua_S) return 0; } -int lua_ax_base_Renderer_setScissorTest(lua_State* tolua_S) +int lua_ax_base_Renderer_endRenderPass(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -100270,37 +100415,34 @@ int lua_ax_base_Renderer_setScissorTest(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setScissorTest'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_endRenderPass'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Renderer:setScissorTest"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setScissorTest'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_endRenderPass'", nullptr); return 0; } - cobj->setScissorTest(arg0); + cobj->endRenderPass(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setScissorTest",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:endRenderPass",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setScissorTest'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_endRenderPass'.",&tolua_err); #endif return 0; } -int lua_ax_base_Renderer_getDefaultRenderTarget(lua_State* tolua_S) +int lua_ax_base_Renderer_nextCallbackCommand(lua_State* tolua_S) { int argc = 0; ax::Renderer* cobj = nullptr; @@ -100320,7 +100462,7 @@ int lua_ax_base_Renderer_getDefaultRenderTarget(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDefaultRenderTarget'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_nextCallbackCommand'", nullptr); return 0; } #endif @@ -100330,263 +100472,19 @@ int lua_ax_base_Renderer_getDefaultRenderTarget(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDefaultRenderTarget'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_nextCallbackCommand'", nullptr); return 0; } - auto&& ret = cobj->getDefaultRenderTarget(); - object_to_luaval(tolua_S, "axb.RenderTarget",(ax::backend::RenderTarget*)ret); + auto&& ret = cobj->nextCallbackCommand(); + object_to_luaval(tolua_S, "ax.CallbackCommand",(ax::CallbackCommand*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDefaultRenderTarget",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:nextCallbackCommand",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDefaultRenderTarget'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_clean(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_clean'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_clean'", nullptr); - return 0; - } - cobj->clean(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:clean",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_clean'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_setStencilOperation(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_setStencilOperation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::backend::StencilOperation arg0; - ax::backend::StencilOperation arg1; - ax::backend::StencilOperation arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Renderer:setStencilOperation"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Renderer:setStencilOperation"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Renderer:setStencilOperation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_setStencilOperation'", nullptr); - return 0; - } - cobj->setStencilOperation(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:setStencilOperation",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_setStencilOperation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getDrawnBatches(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDrawnBatches'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDrawnBatches'", nullptr); - return 0; - } - auto&& ret = cobj->getDrawnBatches(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDrawnBatches",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDrawnBatches'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_clearDrawStats(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_clearDrawStats'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_clearDrawStats'", nullptr); - return 0; - } - cobj->clearDrawStats(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:clearDrawStats",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_clearDrawStats'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Renderer_getDepthCompareFunction(lua_State* tolua_S) -{ - int argc = 0; - ax::Renderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Renderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Renderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Renderer_getDepthCompareFunction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Renderer_getDepthCompareFunction'", nullptr); - return 0; - } - int ret = (int)cobj->getDepthCompareFunction(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Renderer:getDepthCompareFunction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_getDepthCompareFunction'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Renderer_nextCallbackCommand'.",&tolua_err); #endif return 0; @@ -100639,65 +100537,65 @@ int lua_register_ax_base_Renderer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Renderer"); tolua_function(tolua_S,"new",lua_ax_base_Renderer_constructor); - tolua_function(tolua_S,"getWinding",lua_ax_base_Renderer_getWinding); - tolua_function(tolua_S,"getDrawnVertices",lua_ax_base_Renderer_getDrawnVertices); - tolua_function(tolua_S,"render",lua_ax_base_Renderer_render); - tolua_function(tolua_S,"createRenderQueue",lua_ax_base_Renderer_createRenderQueue); - tolua_function(tolua_S,"setDepthStencilDesc",lua_ax_base_Renderer_setDepthStencilDesc); - tolua_function(tolua_S,"getStencilTest",lua_ax_base_Renderer_getStencilTest); - tolua_function(tolua_S,"getRenderTargetFlag",lua_ax_base_Renderer_getRenderTargetFlag); - tolua_function(tolua_S,"getClearFlag",lua_ax_base_Renderer_getClearFlag); - tolua_function(tolua_S,"setViewPort",lua_ax_base_Renderer_setViewPort); - tolua_function(tolua_S,"getStencilReadMask",lua_ax_base_Renderer_getStencilReadMask); - tolua_function(tolua_S,"getClearDepth",lua_ax_base_Renderer_getClearDepth); - tolua_function(tolua_S,"setStencilCompareFunction",lua_ax_base_Renderer_setStencilCompareFunction); - tolua_function(tolua_S,"getViewport",lua_ax_base_Renderer_getViewport); - tolua_function(tolua_S,"getClearStencil",lua_ax_base_Renderer_getClearStencil); - tolua_function(tolua_S,"addCallbackCommand",lua_ax_base_Renderer_addCallbackCommand); - tolua_function(tolua_S,"setStencilTest",lua_ax_base_Renderer_setStencilTest); - tolua_function(tolua_S,"getStencilFailureOperation",lua_ax_base_Renderer_getStencilFailureOperation); - tolua_function(tolua_S,"getRenderTarget",lua_ax_base_Renderer_getRenderTarget); - tolua_function(tolua_S,"addCommand",lua_ax_base_Renderer_addCommand); - tolua_function(tolua_S,"setDepthTest",lua_ax_base_Renderer_setDepthTest); - tolua_function(tolua_S,"addDrawnVertices",lua_ax_base_Renderer_addDrawnVertices); - tolua_function(tolua_S,"setScissorRect",lua_ax_base_Renderer_setScissorRect); - tolua_function(tolua_S,"getDepthTest",lua_ax_base_Renderer_getDepthTest); tolua_function(tolua_S,"init",lua_ax_base_Renderer_init); - tolua_function(tolua_S,"setDepthWrite",lua_ax_base_Renderer_setDepthWrite); - tolua_function(tolua_S,"getDepthStencilDesc",lua_ax_base_Renderer_getDepthStencilDesc); - tolua_function(tolua_S,"getStencilPassDepthFailureOperation",lua_ax_base_Renderer_getStencilPassDepthFailureOperation); - tolua_function(tolua_S,"setCullMode",lua_ax_base_Renderer_setCullMode); - tolua_function(tolua_S,"popGroup",lua_ax_base_Renderer_popGroup); - tolua_function(tolua_S,"pushGroup",lua_ax_base_Renderer_pushGroup); - tolua_function(tolua_S,"getScissorRect",lua_ax_base_Renderer_getScissorRect); - tolua_function(tolua_S,"getScissorTest",lua_ax_base_Renderer_getScissorTest); - tolua_function(tolua_S,"getStencilWriteMask",lua_ax_base_Renderer_getStencilWriteMask); - tolua_function(tolua_S,"endRenderPass",lua_ax_base_Renderer_endRenderPass); - tolua_function(tolua_S,"addDrawnBatches",lua_ax_base_Renderer_addDrawnBatches); - tolua_function(tolua_S,"nextCallbackCommand",lua_ax_base_Renderer_nextCallbackCommand); - tolua_function(tolua_S,"checkVisibility",lua_ax_base_Renderer_checkVisibility); + tolua_function(tolua_S,"addCallbackCommand",lua_ax_base_Renderer_addCallbackCommand); + tolua_function(tolua_S,"addCommand",lua_ax_base_Renderer_addCommand); tolua_function(tolua_S,"getNextGroupCommand",lua_ax_base_Renderer_getNextGroupCommand); - tolua_function(tolua_S,"getDepthWrite",lua_ax_base_Renderer_getDepthWrite); - tolua_function(tolua_S,"getCullMode",lua_ax_base_Renderer_getCullMode); - tolua_function(tolua_S,"getStencilCompareFunction",lua_ax_base_Renderer_getStencilCompareFunction); - tolua_function(tolua_S,"getClearColor",lua_ax_base_Renderer_getClearColor); - tolua_function(tolua_S,"setDepthCompareFunction",lua_ax_base_Renderer_setDepthCompareFunction); - tolua_function(tolua_S,"setStencilWriteMask",lua_ax_base_Renderer_setStencilWriteMask); - tolua_function(tolua_S,"getStencilDepthPassOperation",lua_ax_base_Renderer_getStencilDepthPassOperation); - tolua_function(tolua_S,"getOffscreenRenderTarget",lua_ax_base_Renderer_getOffscreenRenderTarget); - tolua_function(tolua_S,"setWinding",lua_ax_base_Renderer_setWinding); - tolua_function(tolua_S,"clear",lua_ax_base_Renderer_clear); - tolua_function(tolua_S,"setRenderTarget",lua_ax_base_Renderer_setRenderTarget); - tolua_function(tolua_S,"readPixels",lua_ax_base_Renderer_readPixels); - tolua_function(tolua_S,"getStencilReferenceValue",lua_ax_base_Renderer_getStencilReferenceValue); - tolua_function(tolua_S,"beginRenderPass",lua_ax_base_Renderer_beginRenderPass); - tolua_function(tolua_S,"setScissorTest",lua_ax_base_Renderer_setScissorTest); - tolua_function(tolua_S,"getDefaultRenderTarget",lua_ax_base_Renderer_getDefaultRenderTarget); + tolua_function(tolua_S,"pushGroup",lua_ax_base_Renderer_pushGroup); + tolua_function(tolua_S,"popGroup",lua_ax_base_Renderer_popGroup); + tolua_function(tolua_S,"createRenderQueue",lua_ax_base_Renderer_createRenderQueue); + tolua_function(tolua_S,"render",lua_ax_base_Renderer_render); tolua_function(tolua_S,"clean",lua_ax_base_Renderer_clean); - tolua_function(tolua_S,"setStencilOperation",lua_ax_base_Renderer_setStencilOperation); tolua_function(tolua_S,"getDrawnBatches",lua_ax_base_Renderer_getDrawnBatches); + tolua_function(tolua_S,"addDrawnBatches",lua_ax_base_Renderer_addDrawnBatches); + tolua_function(tolua_S,"getDrawnVertices",lua_ax_base_Renderer_getDrawnVertices); + tolua_function(tolua_S,"addDrawnVertices",lua_ax_base_Renderer_addDrawnVertices); tolua_function(tolua_S,"clearDrawStats",lua_ax_base_Renderer_clearDrawStats); + tolua_function(tolua_S,"getRenderTarget",lua_ax_base_Renderer_getRenderTarget); + tolua_function(tolua_S,"setRenderTarget",lua_ax_base_Renderer_setRenderTarget); + tolua_function(tolua_S,"getDefaultRenderTarget",lua_ax_base_Renderer_getDefaultRenderTarget); + tolua_function(tolua_S,"getOffscreenRenderTarget",lua_ax_base_Renderer_getOffscreenRenderTarget); + tolua_function(tolua_S,"clear",lua_ax_base_Renderer_clear); + tolua_function(tolua_S,"getClearColor",lua_ax_base_Renderer_getClearColor); + tolua_function(tolua_S,"getClearDepth",lua_ax_base_Renderer_getClearDepth); + tolua_function(tolua_S,"getClearStencil",lua_ax_base_Renderer_getClearStencil); + tolua_function(tolua_S,"getClearFlag",lua_ax_base_Renderer_getClearFlag); + tolua_function(tolua_S,"getRenderTargetFlag",lua_ax_base_Renderer_getRenderTargetFlag); + tolua_function(tolua_S,"setDepthTest",lua_ax_base_Renderer_setDepthTest); + tolua_function(tolua_S,"setDepthWrite",lua_ax_base_Renderer_setDepthWrite); + tolua_function(tolua_S,"setDepthCompareFunction",lua_ax_base_Renderer_setDepthCompareFunction); + tolua_function(tolua_S,"getDepthTest",lua_ax_base_Renderer_getDepthTest); + tolua_function(tolua_S,"getDepthWrite",lua_ax_base_Renderer_getDepthWrite); tolua_function(tolua_S,"getDepthCompareFunction",lua_ax_base_Renderer_getDepthCompareFunction); + tolua_function(tolua_S,"setStencilTest",lua_ax_base_Renderer_setStencilTest); + tolua_function(tolua_S,"setStencilCompareFunction",lua_ax_base_Renderer_setStencilCompareFunction); + tolua_function(tolua_S,"setStencilOperation",lua_ax_base_Renderer_setStencilOperation); + tolua_function(tolua_S,"setStencilWriteMask",lua_ax_base_Renderer_setStencilWriteMask); + tolua_function(tolua_S,"getStencilTest",lua_ax_base_Renderer_getStencilTest); + tolua_function(tolua_S,"getStencilFailureOperation",lua_ax_base_Renderer_getStencilFailureOperation); + tolua_function(tolua_S,"getStencilPassDepthFailureOperation",lua_ax_base_Renderer_getStencilPassDepthFailureOperation); + tolua_function(tolua_S,"getStencilDepthPassOperation",lua_ax_base_Renderer_getStencilDepthPassOperation); + tolua_function(tolua_S,"getStencilCompareFunction",lua_ax_base_Renderer_getStencilCompareFunction); + tolua_function(tolua_S,"getStencilReadMask",lua_ax_base_Renderer_getStencilReadMask); + tolua_function(tolua_S,"getStencilWriteMask",lua_ax_base_Renderer_getStencilWriteMask); + tolua_function(tolua_S,"getStencilReferenceValue",lua_ax_base_Renderer_getStencilReferenceValue); + tolua_function(tolua_S,"setDepthStencilDesc",lua_ax_base_Renderer_setDepthStencilDesc); + tolua_function(tolua_S,"getDepthStencilDesc",lua_ax_base_Renderer_getDepthStencilDesc); + tolua_function(tolua_S,"setCullMode",lua_ax_base_Renderer_setCullMode); + tolua_function(tolua_S,"getCullMode",lua_ax_base_Renderer_getCullMode); + tolua_function(tolua_S,"setWinding",lua_ax_base_Renderer_setWinding); + tolua_function(tolua_S,"getWinding",lua_ax_base_Renderer_getWinding); + tolua_function(tolua_S,"setViewPort",lua_ax_base_Renderer_setViewPort); + tolua_function(tolua_S,"getViewport",lua_ax_base_Renderer_getViewport); + tolua_function(tolua_S,"setScissorTest",lua_ax_base_Renderer_setScissorTest); + tolua_function(tolua_S,"setScissorRect",lua_ax_base_Renderer_setScissorRect); + tolua_function(tolua_S,"getScissorTest",lua_ax_base_Renderer_getScissorTest); + tolua_function(tolua_S,"getScissorRect",lua_ax_base_Renderer_getScissorRect); + tolua_function(tolua_S,"checkVisibility",lua_ax_base_Renderer_checkVisibility); + tolua_function(tolua_S,"readPixels",lua_ax_base_Renderer_readPixels); + tolua_function(tolua_S,"beginRenderPass",lua_ax_base_Renderer_beginRenderPass); + tolua_function(tolua_S,"endRenderPass",lua_ax_base_Renderer_endRenderPass); + tolua_function(tolua_S,"nextCallbackCommand",lua_ax_base_Renderer_nextCallbackCommand); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Renderer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Renderer"; @@ -100705,200 +100603,6 @@ int lua_register_ax_base_Renderer(lua_State* tolua_S) return 1; } -int lua_ax_base_TextureCache_reloadTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_reloadTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TextureCache:reloadTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_reloadTexture'", nullptr); - return 0; - } - auto&& ret = cobj->reloadTexture(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:reloadTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_reloadTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TextureCache_unbindAllImageAsync(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_unbindAllImageAsync'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_unbindAllImageAsync'", nullptr); - return 0; - } - cobj->unbindAllImageAsync(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:unbindAllImageAsync",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_unbindAllImageAsync'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TextureCache_removeTextureForKey(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeTextureForKey'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TextureCache:removeTextureForKey"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeTextureForKey'", nullptr); - return 0; - } - cobj->removeTextureForKey(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeTextureForKey",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeTextureForKey'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TextureCache_removeAllTextures(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeAllTextures'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeAllTextures'", nullptr); - return 0; - } - cobj->removeAllTextures(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeAllTextures",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeAllTextures'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TextureCache_getDescription(lua_State* tolua_S) { int argc = 0; @@ -100946,53 +100650,6 @@ int lua_ax_base_TextureCache_getDescription(lua_State* tolua_S) return 0; } -int lua_ax_base_TextureCache_getCachedTextureInfo(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_getCachedTextureInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_getCachedTextureInfo'", nullptr); - return 0; - } - auto&& ret = cobj->getCachedTextureInfo(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:getCachedTextureInfo",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_getCachedTextureInfo'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TextureCache_addImage(lua_State* tolua_S) { int argc = 0; @@ -101138,6 +100795,53 @@ int lua_ax_base_TextureCache_unbindImageAsync(lua_State* tolua_S) return 0; } +int lua_ax_base_TextureCache_unbindAllImageAsync(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_unbindAllImageAsync'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_unbindAllImageAsync'", nullptr); + return 0; + } + cobj->unbindAllImageAsync(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:unbindAllImageAsync",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_unbindAllImageAsync'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TextureCache_getTextureForKey(lua_State* tolua_S) { int argc = 0; @@ -101188,6 +100892,344 @@ int lua_ax_base_TextureCache_getTextureForKey(lua_State* tolua_S) return 0; } +int lua_ax_base_TextureCache_reloadTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_reloadTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TextureCache:reloadTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_reloadTexture'", nullptr); + return 0; + } + auto&& ret = cobj->reloadTexture(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:reloadTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_reloadTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TextureCache_removeAllTextures(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeAllTextures'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeAllTextures'", nullptr); + return 0; + } + cobj->removeAllTextures(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeAllTextures",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeAllTextures'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TextureCache_removeUnusedTextures(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeUnusedTextures'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeUnusedTextures'", nullptr); + return 0; + } + cobj->removeUnusedTextures(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeUnusedTextures",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeUnusedTextures'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TextureCache_removeTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.TextureCache:removeTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeTexture'", nullptr); + return 0; + } + cobj->removeTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TextureCache_removeTextureForKey(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeTextureForKey'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TextureCache:removeTextureForKey"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeTextureForKey'", nullptr); + return 0; + } + cobj->removeTextureForKey(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeTextureForKey",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeTextureForKey'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TextureCache_getCachedTextureInfo(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_getCachedTextureInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_getCachedTextureInfo'", nullptr); + return 0; + } + auto&& ret = cobj->getCachedTextureInfo(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:getCachedTextureInfo",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_getCachedTextureInfo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TextureCache_waitForQuit(lua_State* tolua_S) +{ + int argc = 0; + ax::TextureCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_waitForQuit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_waitForQuit'", nullptr); + return 0; + } + cobj->waitForQuit(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:waitForQuit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_waitForQuit'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TextureCache_getTextureFilePath(lua_State* tolua_S) { int argc = 0; @@ -101291,150 +101333,6 @@ int lua_ax_base_TextureCache_renameTextureWithKey(lua_State* tolua_S) return 0; } -int lua_ax_base_TextureCache_removeUnusedTextures(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeUnusedTextures'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeUnusedTextures'", nullptr); - return 0; - } - cobj->removeUnusedTextures(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeUnusedTextures",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeUnusedTextures'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TextureCache_removeTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_removeTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.TextureCache:removeTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_removeTexture'", nullptr); - return 0; - } - cobj->removeTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:removeTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_removeTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TextureCache_waitForQuit(lua_State* tolua_S) -{ - int argc = 0; - ax::TextureCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TextureCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TextureCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TextureCache_waitForQuit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TextureCache_waitForQuit'", nullptr); - return 0; - } - cobj->waitForQuit(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCache:waitForQuit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TextureCache_waitForQuit'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TextureCache_setETC1AlphaFileSuffix(lua_State* tolua_S) { int argc = 0; @@ -101555,20 +101453,20 @@ int lua_register_ax_base_TextureCache(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextureCache"); tolua_function(tolua_S,"new",lua_ax_base_TextureCache_constructor); - tolua_function(tolua_S,"reloadTexture",lua_ax_base_TextureCache_reloadTexture); - tolua_function(tolua_S,"unbindAllImageAsync",lua_ax_base_TextureCache_unbindAllImageAsync); - tolua_function(tolua_S,"removeTextureForKey",lua_ax_base_TextureCache_removeTextureForKey); - tolua_function(tolua_S,"removeAllTextures",lua_ax_base_TextureCache_removeAllTextures); tolua_function(tolua_S,"getDescription",lua_ax_base_TextureCache_getDescription); - tolua_function(tolua_S,"getCachedTextureInfo",lua_ax_base_TextureCache_getCachedTextureInfo); tolua_function(tolua_S,"addImage",lua_ax_base_TextureCache_addImage); tolua_function(tolua_S,"unbindImageAsync",lua_ax_base_TextureCache_unbindImageAsync); + tolua_function(tolua_S,"unbindAllImageAsync",lua_ax_base_TextureCache_unbindAllImageAsync); tolua_function(tolua_S,"getTextureForKey",lua_ax_base_TextureCache_getTextureForKey); - tolua_function(tolua_S,"getTextureFilePath",lua_ax_base_TextureCache_getTextureFilePath); - tolua_function(tolua_S,"renameTextureWithKey",lua_ax_base_TextureCache_renameTextureWithKey); + tolua_function(tolua_S,"reloadTexture",lua_ax_base_TextureCache_reloadTexture); + tolua_function(tolua_S,"removeAllTextures",lua_ax_base_TextureCache_removeAllTextures); tolua_function(tolua_S,"removeUnusedTextures",lua_ax_base_TextureCache_removeUnusedTextures); tolua_function(tolua_S,"removeTexture",lua_ax_base_TextureCache_removeTexture); + tolua_function(tolua_S,"removeTextureForKey",lua_ax_base_TextureCache_removeTextureForKey); + tolua_function(tolua_S,"getCachedTextureInfo",lua_ax_base_TextureCache_getCachedTextureInfo); tolua_function(tolua_S,"waitForQuit",lua_ax_base_TextureCache_waitForQuit); + tolua_function(tolua_S,"getTextureFilePath",lua_ax_base_TextureCache_getTextureFilePath); + tolua_function(tolua_S,"renameTextureWithKey",lua_ax_base_TextureCache_renameTextureWithKey); tolua_function(tolua_S,"setETC1AlphaFileSuffix", lua_ax_base_TextureCache_setETC1AlphaFileSuffix); tolua_function(tolua_S,"getETC1AlphaFileSuffix", lua_ax_base_TextureCache_getETC1AlphaFileSuffix); tolua_endmodule(tolua_S); @@ -101578,6 +101476,40 @@ int lua_register_ax_base_TextureCache(lua_State* tolua_S) return 1; } +int lua_ax_base_Device_getDPI(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_getDPI'", nullptr); + return 0; + } + auto&& ret = ax::Device::getDPI(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:getDPI",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_getDPI'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_Device_setAccelerometerEnabled(lua_State* tolua_S) { int argc = 0; @@ -101722,40 +101654,6 @@ int lua_ax_base_Device_vibrate(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_Device_getDPI(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_getDPI'", nullptr); - return 0; - } - auto&& ret = ax::Device::getDPI(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:getDPI",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_getDPI'.",&tolua_err); -#endif - return 0; -} static int lua_ax_base_Device_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Device)"); @@ -101768,11 +101666,11 @@ int lua_register_ax_base_Device(lua_State* tolua_S) tolua_cclass(tolua_S,"Device","ax.Device","",nullptr); tolua_beginmodule(tolua_S,"Device"); + tolua_function(tolua_S,"getDPI", lua_ax_base_Device_getDPI); tolua_function(tolua_S,"setAccelerometerEnabled", lua_ax_base_Device_setAccelerometerEnabled); tolua_function(tolua_S,"setAccelerometerInterval", lua_ax_base_Device_setAccelerometerInterval); tolua_function(tolua_S,"setKeepScreenOn", lua_ax_base_Device_setKeepScreenOn); tolua_function(tolua_S,"vibrate", lua_ax_base_Device_vibrate); - tolua_function(tolua_S,"getDPI", lua_ax_base_Device_getDPI); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Device).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Device"; @@ -101780,7 +101678,7 @@ int lua_register_ax_base_Device(lua_State* tolua_S) return 1; } -int lua_ax_base_Application_getTargetPlatform(lua_State* tolua_S) +int lua_ax_base_Application_setAnimationInterval(lua_State* tolua_S) { int argc = 0; ax::Application* cobj = nullptr; @@ -101800,29 +101698,32 @@ int lua_ax_base_Application_getTargetPlatform(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Application_getTargetPlatform'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Application_setAnimationInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Application:setAnimationInterval"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Application_getTargetPlatform'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Application_setAnimationInterval'", nullptr); return 0; } - int ret = (int)cobj->getTargetPlatform(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setAnimationInterval(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Application:getTargetPlatform",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Application:setAnimationInterval",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Application_getTargetPlatform'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Application_setAnimationInterval'.",&tolua_err); #endif return 0; @@ -101921,7 +101822,7 @@ int lua_ax_base_Application_getCurrentLanguageCode(lua_State* tolua_S) return 0; } -int lua_ax_base_Application_openURL(lua_State* tolua_S) +int lua_ax_base_Application_getTargetPlatform(lua_State* tolua_S) { int argc = 0; ax::Application* cobj = nullptr; @@ -101941,32 +101842,29 @@ int lua_ax_base_Application_openURL(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Application_openURL'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Application_getTargetPlatform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Application:openURL"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Application_openURL'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Application_getTargetPlatform'", nullptr); return 0; } - auto&& ret = cobj->openURL(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + int ret = (int)cobj->getTargetPlatform(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Application:openURL",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Application:getTargetPlatform",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Application_openURL'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Application_getTargetPlatform'.",&tolua_err); #endif return 0; @@ -102018,7 +101916,7 @@ int lua_ax_base_Application_getVersion(lua_State* tolua_S) return 0; } -int lua_ax_base_Application_setAnimationInterval(lua_State* tolua_S) +int lua_ax_base_Application_openURL(lua_State* tolua_S) { int argc = 0; ax::Application* cobj = nullptr; @@ -102038,7 +101936,7 @@ int lua_ax_base_Application_setAnimationInterval(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Application_setAnimationInterval'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Application_openURL'", nullptr); return 0; } #endif @@ -102046,24 +101944,24 @@ int lua_ax_base_Application_setAnimationInterval(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + std::string_view arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Application:setAnimationInterval"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Application:openURL"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Application_setAnimationInterval'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Application_openURL'", nullptr); return 0; } - cobj->setAnimationInterval(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->openURL(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Application:setAnimationInterval",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Application:openURL",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Application_setAnimationInterval'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Application_openURL'.",&tolua_err); #endif return 0; @@ -102114,12 +102012,12 @@ int lua_register_ax_base_Application(lua_State* tolua_S) tolua_cclass(tolua_S,"Application","ax.Application","",nullptr); tolua_beginmodule(tolua_S,"Application"); - tolua_function(tolua_S,"getTargetPlatform",lua_ax_base_Application_getTargetPlatform); + tolua_function(tolua_S,"setAnimationInterval",lua_ax_base_Application_setAnimationInterval); tolua_function(tolua_S,"getCurrentLanguage",lua_ax_base_Application_getCurrentLanguage); tolua_function(tolua_S,"getCurrentLanguageCode",lua_ax_base_Application_getCurrentLanguageCode); - tolua_function(tolua_S,"openURL",lua_ax_base_Application_openURL); + tolua_function(tolua_S,"getTargetPlatform",lua_ax_base_Application_getTargetPlatform); tolua_function(tolua_S,"getVersion",lua_ax_base_Application_getVersion); - tolua_function(tolua_S,"setAnimationInterval",lua_ax_base_Application_setAnimationInterval); + tolua_function(tolua_S,"openURL",lua_ax_base_Application_openURL); tolua_function(tolua_S,"getInstance", lua_ax_base_Application_getInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Application).name(); // rtti is literal storage @@ -102128,6 +102026,42 @@ int lua_register_ax_base_Application(lua_State* tolua_S) return 1; } +int lua_ax_base_GLViewImpl_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.GLViewImpl",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.GLViewImpl:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLViewImpl_create'", nullptr); + return 0; + } + auto&& ret = ax::GLViewImpl::create(arg0); + object_to_luaval(tolua_S, "ax.GLViewImpl",(ax::GLViewImpl*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.GLViewImpl:create",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLViewImpl_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_GLViewImpl_createWithRect(lua_State* tolua_S) { int argc = 0; @@ -102183,42 +102117,6 @@ int lua_ax_base_GLViewImpl_createWithRect(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_GLViewImpl_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.GLViewImpl",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.GLViewImpl:create"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLViewImpl_create'", nullptr); - return 0; - } - auto&& ret = ax::GLViewImpl::create(arg0); - object_to_luaval(tolua_S, "ax.GLViewImpl",(ax::GLViewImpl*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.GLViewImpl:create",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLViewImpl_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_GLViewImpl_createWithFullScreen(lua_State* tolua_S) { int argc = 0; @@ -102267,8 +102165,8 @@ int lua_register_ax_base_GLViewImpl(lua_State* tolua_S) tolua_cclass(tolua_S,"GLViewImpl","ax.GLViewImpl","ax.GLView",nullptr); tolua_beginmodule(tolua_S,"GLViewImpl"); - tolua_function(tolua_S,"createWithRect", lua_ax_base_GLViewImpl_createWithRect); tolua_function(tolua_S,"create", lua_ax_base_GLViewImpl_create); + tolua_function(tolua_S,"createWithRect", lua_ax_base_GLViewImpl_createWithRect); tolua_function(tolua_S,"createWithFullScreen", lua_ax_base_GLViewImpl_createWithFullScreen); tolua_endmodule(tolua_S); auto typeName = typeid(ax::GLViewImpl).name(); // rtti is literal storage @@ -102277,7 +102175,7 @@ int lua_register_ax_base_GLViewImpl(lua_State* tolua_S) return 1; } -int lua_ax_base_AnimationCache_getAnimation(lua_State* tolua_S) +int lua_ax_base_AnimationCache_init(lua_State* tolua_S) { int argc = 0; ax::AnimationCache* cobj = nullptr; @@ -102297,32 +102195,29 @@ int lua_ax_base_AnimationCache_getAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationCache_getAnimation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationCache_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AnimationCache:getAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_getAnimation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_init'", nullptr); return 0; } - auto&& ret = cobj->getAnimation(arg0); - object_to_luaval(tolua_S, "ax.Animation",(ax::Animation*)ret); + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationCache:getAnimation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationCache:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_getAnimation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_init'.",&tolua_err); #endif return 0; @@ -102380,7 +102275,7 @@ int lua_ax_base_AnimationCache_addAnimation(lua_State* tolua_S) return 0; } -int lua_ax_base_AnimationCache_init(lua_State* tolua_S) +int lua_ax_base_AnimationCache_removeAnimation(lua_State* tolua_S) { int argc = 0; ax::AnimationCache* cobj = nullptr; @@ -102400,29 +102295,82 @@ int lua_ax_base_AnimationCache_init(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationCache_init'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationCache_removeAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AnimationCache:removeAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_init'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_removeAnimation'", nullptr); return 0; } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->removeAnimation(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationCache:init",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationCache:removeAnimation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_init'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_removeAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_AnimationCache_getAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::AnimationCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AnimationCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::AnimationCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationCache_getAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AnimationCache:getAnimation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_getAnimation'", nullptr); + return 0; + } + auto&& ret = cobj->getAnimation(arg0); + object_to_luaval(tolua_S, "ax.Animation",(ax::Animation*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationCache:getAnimation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_getAnimation'.",&tolua_err); #endif return 0; @@ -102480,56 +102428,6 @@ int lua_ax_base_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) return 0; } -int lua_ax_base_AnimationCache_removeAnimation(lua_State* tolua_S) -{ - int argc = 0; - ax::AnimationCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AnimationCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::AnimationCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_AnimationCache_removeAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AnimationCache:removeAnimation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_removeAnimation'", nullptr); - return 0; - } - cobj->removeAnimation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AnimationCache:removeAnimation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_removeAnimation'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) { int argc = 0; @@ -102580,40 +102478,6 @@ int lua_ax_base_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) return 0; } -int lua_ax_base_AnimationCache_destroyInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.AnimationCache",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_destroyInstance'", nullptr); - return 0; - } - ax::AnimationCache::destroyInstance(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AnimationCache:destroyInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_destroyInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_AnimationCache_getInstance(lua_State* tolua_S) { int argc = 0; @@ -102648,6 +102512,40 @@ int lua_ax_base_AnimationCache_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_AnimationCache_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.AnimationCache",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_AnimationCache_destroyInstance'", nullptr); + return 0; + } + ax::AnimationCache::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AnimationCache:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_AnimationCache_destroyInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_base_AnimationCache_constructor(lua_State* tolua_S) { int argc = 0; @@ -102698,14 +102596,14 @@ int lua_register_ax_base_AnimationCache(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AnimationCache"); tolua_function(tolua_S,"new",lua_ax_base_AnimationCache_constructor); - tolua_function(tolua_S,"getAnimation",lua_ax_base_AnimationCache_getAnimation); - tolua_function(tolua_S,"addAnimation",lua_ax_base_AnimationCache_addAnimation); tolua_function(tolua_S,"init",lua_ax_base_AnimationCache_init); - tolua_function(tolua_S,"addAnimationsWithDictionary",lua_ax_base_AnimationCache_addAnimationsWithDictionary); + tolua_function(tolua_S,"addAnimation",lua_ax_base_AnimationCache_addAnimation); tolua_function(tolua_S,"removeAnimation",lua_ax_base_AnimationCache_removeAnimation); + tolua_function(tolua_S,"getAnimation",lua_ax_base_AnimationCache_getAnimation); + tolua_function(tolua_S,"addAnimationsWithDictionary",lua_ax_base_AnimationCache_addAnimationsWithDictionary); tolua_function(tolua_S,"addAnimations",lua_ax_base_AnimationCache_addAnimationsWithFile); - tolua_function(tolua_S,"destroyInstance", lua_ax_base_AnimationCache_destroyInstance); tolua_function(tolua_S,"getInstance", lua_ax_base_AnimationCache_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_base_AnimationCache_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::AnimationCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.AnimationCache"; @@ -102713,6 +102611,203 @@ int lua_register_ax_base_AnimationCache(lua_State* tolua_S) return 1; } +int lua_ax_base_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_getTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_getTextureAtlas'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:getTextureAtlas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_getTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_setTextureAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextureAtlas* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.SpriteBatchNode:setTextureAtlas"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_setTextureAtlas'", nullptr); + return 0; + } + cobj->setTextureAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:setTextureAtlas",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_setTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_increaseAtlasCapacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_increaseAtlasCapacity'", nullptr); + return 0; + } + cobj->increaseAtlasCapacity(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:increaseAtlasCapacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_removeChildAtIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ssize_t arg0; + bool arg1; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.SpriteBatchNode:removeChildAtIndex"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.SpriteBatchNode:removeChildAtIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_removeChildAtIndex'", nullptr); + return 0; + } + cobj->removeChildAtIndex(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:removeChildAtIndex",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_removeChildAtIndex'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpriteBatchNode_appendChild(lua_State* tolua_S) { int argc = 0; @@ -102763,6 +102858,262 @@ int lua_ax_base_SpriteBatchNode_appendChild(lua_State* tolua_S) return 0; } +int lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:removeSpriteFromAtlas"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); + return 0; + } + cobj->removeSpriteFromAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:removeSpriteFromAtlas",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_rebuildIndexInOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Sprite* arg0; + ssize_t arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:rebuildIndexInOrder"); + + ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ax.SpriteBatchNode:rebuildIndexInOrder"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_rebuildIndexInOrder'", nullptr); + return 0; + } + auto&& ret = cobj->rebuildIndexInOrder(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:rebuildIndexInOrder",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:highestAtlasIndexInChild"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); + return 0; + } + auto&& ret = cobj->highestAtlasIndexInChild(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:highestAtlasIndexInChild",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:lowestAtlasIndexInChild"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); + return 0; + } + auto&& ret = cobj->lowestAtlasIndexInChild(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:lowestAtlasIndexInChild",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_atlasIndexForChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Sprite* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:atlasIndexForChild"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.SpriteBatchNode:atlasIndexForChild"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_atlasIndexForChild'", nullptr); + return 0; + } + auto&& ret = cobj->atlasIndexForChild(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:atlasIndexForChild",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpriteBatchNode_reorderBatch(lua_State* tolua_S) { int argc = 0; @@ -102910,7 +103261,7 @@ int lua_ax_base_SpriteBatchNode_setTexture(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) +int lua_ax_base_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; ax::SpriteBatchNode* cobj = nullptr; @@ -102930,60 +103281,7 @@ int lua_ax_base_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_removeChildAtIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ssize_t arg0; - bool arg1; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.SpriteBatchNode:removeChildAtIndex"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.SpriteBatchNode:removeChildAtIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_removeChildAtIndex'", nullptr); - return 0; - } - cobj->removeChildAtIndex(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:removeChildAtIndex",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_removeChildAtIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_setBlendFunc'", nullptr); return 0; } #endif @@ -102991,230 +103289,24 @@ int lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Sprite* arg0; + ax::BlendFunc arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:removeSpriteFromAtlas"); + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.SpriteBatchNode:setBlendFunc"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_setBlendFunc'", nullptr); return 0; } - cobj->removeSpriteFromAtlas(arg0); + cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:removeSpriteFromAtlas",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:setBlendFunc",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Sprite* arg0; - int arg1; - int arg2; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:addSpriteWithoutQuad"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.SpriteBatchNode:addSpriteWithoutQuad"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.SpriteBatchNode:addSpriteWithoutQuad"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); - return 0; - } - auto&& ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:addSpriteWithoutQuad",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_atlasIndexForChild'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Sprite* arg0; - int arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:atlasIndexForChild"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.SpriteBatchNode:atlasIndexForChild"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_atlasIndexForChild'", nullptr); - return 0; - } - auto&& ret = cobj->atlasIndexForChild(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:atlasIndexForChild",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_increaseAtlasCapacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_increaseAtlasCapacity'", nullptr); - return 0; - } - cobj->increaseAtlasCapacity(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:increaseAtlasCapacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:lowestAtlasIndexInChild"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); - return 0; - } - auto&& ret = cobj->lowestAtlasIndexInChild(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:lowestAtlasIndexInChild",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_setBlendFunc'.",&tolua_err); #endif return 0; @@ -103266,173 +103358,6 @@ int lua_ax_base_SpriteBatchNode_getBlendFunc(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteBatchNode_initWithTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_initWithTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:initWithTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_initWithTexture'", nullptr); - return 0; - } - auto&& ret = cobj->initWithTexture(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 2) - { - ax::Texture2D* arg0; - ssize_t arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:initWithTexture"); - - ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ax.SpriteBatchNode:initWithTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_initWithTexture'", nullptr); - return 0; - } - auto&& ret = cobj->initWithTexture(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:initWithTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_initWithTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_setTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextureAtlas* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.TextureAtlas",&arg0, "ax.SpriteBatchNode:setTextureAtlas"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_setTextureAtlas'", nullptr); - return 0; - } - cobj->setTextureAtlas(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:setTextureAtlas",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_setTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_reserveCapacity(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_reserveCapacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.SpriteBatchNode:reserveCapacity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_reserveCapacity'", nullptr); - return 0; - } - cobj->reserveCapacity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:reserveCapacity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_reserveCapacity'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; @@ -103536,6 +103461,179 @@ int lua_ax_base_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) return 0; } +int lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Sprite* arg0; + int arg1; + int arg2; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:addSpriteWithoutQuad"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.SpriteBatchNode:addSpriteWithoutQuad"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.SpriteBatchNode:addSpriteWithoutQuad"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); + return 0; + } + auto&& ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:addSpriteWithoutQuad",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_reserveCapacity(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_reserveCapacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ssize_t arg0; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ax.SpriteBatchNode:reserveCapacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_reserveCapacity'", nullptr); + return 0; + } + cobj->reserveCapacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:reserveCapacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_reserveCapacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_SpriteBatchNode_initWithTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_initWithTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:initWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_initWithTexture'", nullptr); + return 0; + } + auto&& ret = cobj->initWithTexture(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + ax::Texture2D* arg0; + ssize_t arg1; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:initWithTexture"); + + ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ax.SpriteBatchNode:initWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_initWithTexture'", nullptr); + return 0; + } + auto&& ret = cobj->initWithTexture(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:initWithTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_initWithTexture'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_SpriteBatchNode_initWithFile(lua_State* tolua_S) { int argc = 0; @@ -103603,204 +103701,55 @@ int lua_ax_base_SpriteBatchNode_initWithFile(lua_State* tolua_S) return 0; } -int lua_ax_base_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) +int lua_ax_base_SpriteBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 1) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.SpriteBatchNode:setBlendFunc"); + ax::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:createWithTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_createWithTexture'", nullptr); return 0; } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::SpriteBatchNode::createWithTexture(arg0); + object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 2) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_rebuildIndexInOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Sprite* arg0; + ax::Texture2D* arg0; ssize_t arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:rebuildIndexInOrder"); - - ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ax.SpriteBatchNode:rebuildIndexInOrder"); + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:createWithTexture"); + ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ax.SpriteBatchNode:createWithTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_rebuildIndexInOrder'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_createWithTexture'", nullptr); return 0; } - auto&& ret = cobj->rebuildIndexInOrder(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = ax::SpriteBatchNode::createWithTexture(arg0, arg1); + object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:rebuildIndexInOrder",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.SpriteBatchNode:createWithTexture",argc, 1); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_createWithTexture'.",&tolua_err); #endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_getTextureAtlas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_getTextureAtlas'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "ax.TextureAtlas",(ax::TextureAtlas*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:getTextureAtlas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_getTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) -{ - int argc = 0; - ax::SpriteBatchNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.SpriteBatchNode:highestAtlasIndexInChild"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); - return 0; - } - auto&& ret = cobj->highestAtlasIndexInChild(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:highestAtlasIndexInChild",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); -#endif - return 0; } int lua_ax_base_SpriteBatchNode_create(lua_State* tolua_S) @@ -103854,57 +103803,6 @@ int lua_ax_base_SpriteBatchNode_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_base_SpriteBatchNode_createWithTexture(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - ax::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:createWithTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_createWithTexture'", nullptr); - return 0; - } - auto&& ret = ax::SpriteBatchNode::createWithTexture(arg0); - object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); - return 1; - } - if (argc == 2) - { - ax::Texture2D* arg0; - ssize_t arg1; - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.SpriteBatchNode:createWithTexture"); - ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ax.SpriteBatchNode:createWithTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_SpriteBatchNode_createWithTexture'", nullptr); - return 0; - } - auto&& ret = ax::SpriteBatchNode::createWithTexture(arg0, arg1); - object_to_luaval(tolua_S, "ax.SpriteBatchNode",(ax::SpriteBatchNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.SpriteBatchNode:createWithTexture",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_SpriteBatchNode_createWithTexture'.",&tolua_err); -#endif - return 0; -} int lua_ax_base_SpriteBatchNode_constructor(lua_State* tolua_S) { int argc = 0; @@ -103955,29 +103853,29 @@ int lua_register_ax_base_SpriteBatchNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SpriteBatchNode"); tolua_function(tolua_S,"new",lua_ax_base_SpriteBatchNode_constructor); + tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_SpriteBatchNode_getTextureAtlas); + tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_SpriteBatchNode_setTextureAtlas); + tolua_function(tolua_S,"increaseAtlasCapacity",lua_ax_base_SpriteBatchNode_increaseAtlasCapacity); + tolua_function(tolua_S,"removeChildAtIndex",lua_ax_base_SpriteBatchNode_removeChildAtIndex); tolua_function(tolua_S,"appendChild",lua_ax_base_SpriteBatchNode_appendChild); + tolua_function(tolua_S,"removeSpriteFromAtlas",lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas); + tolua_function(tolua_S,"rebuildIndexInOrder",lua_ax_base_SpriteBatchNode_rebuildIndexInOrder); + tolua_function(tolua_S,"highestAtlasIndexInChild",lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild); + tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild); + tolua_function(tolua_S,"atlasIndexForChild",lua_ax_base_SpriteBatchNode_atlasIndexForChild); tolua_function(tolua_S,"reorderBatch",lua_ax_base_SpriteBatchNode_reorderBatch); tolua_function(tolua_S,"getTexture",lua_ax_base_SpriteBatchNode_getTexture); tolua_function(tolua_S,"setTexture",lua_ax_base_SpriteBatchNode_setTexture); - tolua_function(tolua_S,"removeChildAtIndex",lua_ax_base_SpriteBatchNode_removeChildAtIndex); - tolua_function(tolua_S,"removeSpriteFromAtlas",lua_ax_base_SpriteBatchNode_removeSpriteFromAtlas); - tolua_function(tolua_S,"addSpriteWithoutQuad",lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad); - tolua_function(tolua_S,"atlasIndexForChild",lua_ax_base_SpriteBatchNode_atlasIndexForChild); - tolua_function(tolua_S,"increaseAtlasCapacity",lua_ax_base_SpriteBatchNode_increaseAtlasCapacity); - tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_ax_base_SpriteBatchNode_lowestAtlasIndexInChild); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_SpriteBatchNode_setBlendFunc); tolua_function(tolua_S,"getBlendFunc",lua_ax_base_SpriteBatchNode_getBlendFunc); - tolua_function(tolua_S,"initWithTexture",lua_ax_base_SpriteBatchNode_initWithTexture); - tolua_function(tolua_S,"setTextureAtlas",lua_ax_base_SpriteBatchNode_setTextureAtlas); - tolua_function(tolua_S,"reserveCapacity",lua_ax_base_SpriteBatchNode_reserveCapacity); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_ax_base_SpriteBatchNode_removeAllChildrenWithCleanup); tolua_function(tolua_S,"insertQuadFromSprite",lua_ax_base_SpriteBatchNode_insertQuadFromSprite); + tolua_function(tolua_S,"addSpriteWithoutQuad",lua_ax_base_SpriteBatchNode_addSpriteWithoutQuad); + tolua_function(tolua_S,"reserveCapacity",lua_ax_base_SpriteBatchNode_reserveCapacity); + tolua_function(tolua_S,"initWithTexture",lua_ax_base_SpriteBatchNode_initWithTexture); tolua_function(tolua_S,"initWithFile",lua_ax_base_SpriteBatchNode_initWithFile); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_SpriteBatchNode_setBlendFunc); - tolua_function(tolua_S,"rebuildIndexInOrder",lua_ax_base_SpriteBatchNode_rebuildIndexInOrder); - tolua_function(tolua_S,"getTextureAtlas",lua_ax_base_SpriteBatchNode_getTextureAtlas); - tolua_function(tolua_S,"highestAtlasIndexInChild",lua_ax_base_SpriteBatchNode_highestAtlasIndexInChild); - tolua_function(tolua_S,"create", lua_ax_base_SpriteBatchNode_create); tolua_function(tolua_S,"createWithTexture", lua_ax_base_SpriteBatchNode_createWithTexture); + tolua_function(tolua_S,"create", lua_ax_base_SpriteBatchNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::SpriteBatchNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.SpriteBatchNode"; @@ -104188,7 +104086,7 @@ int lua_register_ax_base_ParallaxNode(lua_State* tolua_S) return 1; } -int lua_ax_base_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) +int lua_ax_base_TMXObjectGroup_getGroupName(lua_State* tolua_S) { int argc = 0; ax::TMXObjectGroup* cobj = nullptr; @@ -104208,107 +104106,7 @@ int lua_ax_base_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_setPositionOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TMXObjectGroup:setPositionOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_setPositionOffset'", nullptr); - return 0; - } - cobj->setPositionOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:setPositionOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_setPositionOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXObjectGroup_getProperty(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXObjectGroup* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getProperty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXObjectGroup:getProperty"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getProperty'", nullptr); - return 0; - } - auto&& ret = cobj->getProperty(arg0); - ccvalue_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getProperty",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getProperty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXObjectGroup* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getPositionOffset'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getGroupName'", nullptr); return 0; } #endif @@ -104318,116 +104116,19 @@ int lua_ax_base_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getPositionOffset'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getGroupName'", nullptr); return 0; } - auto&& ret = cobj->getPositionOffset(); - vec2_to_luaval(tolua_S, ret); + auto&& ret = cobj->getGroupName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getPositionOffset",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getGroupName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getPositionOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXObjectGroup_getObject(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXObjectGroup* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getObject'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXObjectGroup:getObject"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getObject'", nullptr); - return 0; - } - auto&& ret = cobj->getObject(arg0); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getObject",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getObject'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXObjectGroup_getObjects(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXObjectGroup* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getObjects'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::ValueVector& ret = cobj->getObjects(); - ccvaluevector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::ValueVector& ret = cobj->getObjects(); - ccvaluevector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getObjects",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getObjects'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getGroupName'.",&tolua_err); #endif return 0; @@ -104482,6 +104183,203 @@ int lua_ax_base_TMXObjectGroup_setGroupName(lua_State* tolua_S) return 0; } +int lua_ax_base_TMXObjectGroup_getProperty(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXObjectGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getProperty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXObjectGroup:getProperty"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getProperty'", nullptr); + return 0; + } + auto&& ret = cobj->getProperty(arg0); + ccvalue_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getProperty",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getProperty'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXObjectGroup_getObject(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXObjectGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getObject'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXObjectGroup:getObject"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getObject'", nullptr); + return 0; + } + auto&& ret = cobj->getObject(arg0); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getObject",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getObject'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXObjectGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getPositionOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getPositionOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionOffset(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getPositionOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getPositionOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXObjectGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_setPositionOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TMXObjectGroup:setPositionOffset"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_setPositionOffset'", nullptr); + return 0; + } + cobj->setPositionOffset(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:setPositionOffset",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_setPositionOffset'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TMXObjectGroup_getProperties(lua_State* tolua_S) { int argc = 0; @@ -104529,53 +104427,6 @@ int lua_ax_base_TMXObjectGroup_getProperties(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXObjectGroup_getGroupName(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXObjectGroup* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getGroupName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXObjectGroup_getGroupName'", nullptr); - return 0; - } - auto&& ret = cobj->getGroupName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getGroupName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getGroupName'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TMXObjectGroup_setProperties(lua_State* tolua_S) { int argc = 0; @@ -104626,6 +104477,53 @@ int lua_ax_base_TMXObjectGroup_setProperties(lua_State* tolua_S) return 0; } +int lua_ax_base_TMXObjectGroup_getObjects(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXObjectGroup* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXObjectGroup_getObjects'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + ax::ValueVector& ret = cobj->getObjects(); + ccvaluevector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::ValueVector& ret = cobj->getObjects(); + ccvaluevector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXObjectGroup:getObjects",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXObjectGroup_getObjects'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TMXObjectGroup_setObjects(lua_State* tolua_S) { int argc = 0; @@ -104726,15 +104624,15 @@ int lua_register_ax_base_TMXObjectGroup(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TMXObjectGroup"); tolua_function(tolua_S,"new",lua_ax_base_TMXObjectGroup_constructor); - tolua_function(tolua_S,"setPositionOffset",lua_ax_base_TMXObjectGroup_setPositionOffset); - tolua_function(tolua_S,"getProperty",lua_ax_base_TMXObjectGroup_getProperty); - tolua_function(tolua_S,"getPositionOffset",lua_ax_base_TMXObjectGroup_getPositionOffset); - tolua_function(tolua_S,"getObject",lua_ax_base_TMXObjectGroup_getObject); - tolua_function(tolua_S,"getObjects",lua_ax_base_TMXObjectGroup_getObjects); - tolua_function(tolua_S,"setGroupName",lua_ax_base_TMXObjectGroup_setGroupName); - tolua_function(tolua_S,"getProperties",lua_ax_base_TMXObjectGroup_getProperties); tolua_function(tolua_S,"getGroupName",lua_ax_base_TMXObjectGroup_getGroupName); + tolua_function(tolua_S,"setGroupName",lua_ax_base_TMXObjectGroup_setGroupName); + tolua_function(tolua_S,"getProperty",lua_ax_base_TMXObjectGroup_getProperty); + tolua_function(tolua_S,"getObject",lua_ax_base_TMXObjectGroup_getObject); + tolua_function(tolua_S,"getPositionOffset",lua_ax_base_TMXObjectGroup_getPositionOffset); + tolua_function(tolua_S,"setPositionOffset",lua_ax_base_TMXObjectGroup_setPositionOffset); + tolua_function(tolua_S,"getProperties",lua_ax_base_TMXObjectGroup_getProperties); tolua_function(tolua_S,"setProperties",lua_ax_base_TMXObjectGroup_setProperties); + tolua_function(tolua_S,"getObjects",lua_ax_base_TMXObjectGroup_getObjects); tolua_function(tolua_S,"setObjects",lua_ax_base_TMXObjectGroup_setObjects); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TMXObjectGroup).name(); // rtti is literal storage @@ -105007,7 +104905,7 @@ int lua_register_ax_base_TMXTilesetInfo(lua_State* tolua_S) return 1; } -int lua_ax_base_TMXMapInfo_setCurrentString(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -105027,7 +104925,7 @@ int lua_ax_base_TMXMapInfo_setCurrentString(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setCurrentString'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_initWithTMXFile'", nullptr); return 0; } #endif @@ -105037,27 +104935,27 @@ int lua_ax_base_TMXMapInfo_setCurrentString(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:setCurrentString"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:initWithTMXFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setCurrentString'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_initWithTMXFile'", nullptr); return 0; } - cobj->setCurrentString(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->initWithTMXFile(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setCurrentString",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:initWithTMXFile",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setCurrentString'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_initWithTMXFile'.",&tolua_err); #endif return 0; } -int lua_ax_base_TMXMapInfo_getHexSideLength(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_initWithXML(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -105077,226 +104975,35 @@ int lua_ax_base_TMXMapInfo_getHexSideLength(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getHexSideLength'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_initWithXML'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:initWithXML"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.TMXMapInfo:initWithXML"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getHexSideLength'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_initWithXML'", nullptr); return 0; } - auto&& ret = cobj->getHexSideLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->initWithXML(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getHexSideLength",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:initWithXML",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getHexSideLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setTileSize(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTileSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TMXMapInfo:setTileSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTileSize'", nullptr); - return 0; - } - cobj->setTileSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTileSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTileSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getOrientation(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getOrientation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getOrientation'", nullptr); - return 0; - } - auto&& ret = cobj->getOrientation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getOrientation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getOrientation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setObjectGroups(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setObjectGroups'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.TMXMapInfo:setObjectGroups"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setObjectGroups'", nullptr); - return 0; - } - cobj->setObjectGroups(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setObjectGroups",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setObjectGroups'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setLayers(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setLayers'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.TMXMapInfo:setLayers"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setLayers'", nullptr); - return 0; - } - cobj->setLayers(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setLayers",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setLayers'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_initWithXML'.",&tolua_err); #endif return 0; @@ -105351,103 +105058,6 @@ int lua_ax_base_TMXMapInfo_parseXMLFile(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_getParentElement(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getParentElement'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getParentElement'", nullptr); - return 0; - } - auto&& ret = cobj->getParentElement(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getParentElement",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getParentElement'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setTMXFileName(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTMXFileName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:setTMXFileName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTMXFileName'", nullptr); - return 0; - } - cobj->setTMXFileName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTMXFileName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTMXFileName'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TMXMapInfo_parseXMLString(lua_State* tolua_S) { int argc = 0; @@ -105498,49 +105108,196 @@ int lua_ax_base_TMXMapInfo_parseXMLString(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_getLayers(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_getTileProperties(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getLayers'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getTileProperties'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::Vector& ret = cobj->getLayers(); - ccvector_to_luaval(tolua_S, ret); - return 1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getTileProperties'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::Vector& ret = cobj->getLayers(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getLayers",argc, 0); + auto&& ret = cobj->getTileProperties(); + ccvaluemapintkey_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getTileProperties",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getLayers'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getTileProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setTileProperties(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTileProperties'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ValueMapIntKey arg0; + + ok &= luaval_to_ccvaluemapintkey(tolua_S, 2, &arg0, "ax.TMXMapInfo:setTileProperties"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTileProperties'", nullptr); + return 0; + } + cobj->setTileProperties(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTileProperties",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTileProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getOrientation(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getOrientation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getOrientation'", nullptr); + return 0; + } + auto&& ret = cobj->getOrientation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getOrientation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getOrientation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setOrientation(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setOrientation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setOrientation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setOrientation'", nullptr); + return 0; + } + cobj->setOrientation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setOrientation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setOrientation'.",&tolua_err); #endif return 0; @@ -105592,6 +105349,200 @@ int lua_ax_base_TMXMapInfo_getStaggerAxis(lua_State* tolua_S) return 0; } +int lua_ax_base_TMXMapInfo_setStaggerAxis(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setStaggerAxis'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setStaggerAxis"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setStaggerAxis'", nullptr); + return 0; + } + cobj->setStaggerAxis(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setStaggerAxis",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setStaggerAxis'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getStaggerIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getStaggerIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getStaggerIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getStaggerIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getStaggerIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setStaggerIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setStaggerIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setStaggerIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setStaggerIndex'", nullptr); + return 0; + } + cobj->setStaggerIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setStaggerIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setStaggerIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getHexSideLength(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getHexSideLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getHexSideLength'", nullptr); + return 0; + } + auto&& ret = cobj->getHexSideLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getHexSideLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getHexSideLength'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TMXMapInfo_setHexSideLength(lua_State* tolua_S) { int argc = 0; @@ -105642,7 +105593,7 @@ int lua_ax_base_TMXMapInfo_setHexSideLength(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_getMapSize(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -105662,57 +105613,7 @@ int lua_ax_base_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_initWithTMXFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:initWithTMXFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_initWithTMXFile'", nullptr); - return 0; - } - auto&& ret = cobj->initWithTMXFile(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:initWithTMXFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_initWithTMXFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getParentGID(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getParentGID'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getMapSize'", nullptr); return 0; } #endif @@ -105722,19 +105623,263 @@ int lua_ax_base_TMXMapInfo_getParentGID(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getParentGID'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getMapSize'", nullptr); return 0; } - auto&& ret = cobj->getParentGID(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getMapSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getParentGID",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getMapSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getParentGID'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getMapSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setMapSize(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setMapSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TMXMapInfo:setMapSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setMapSize'", nullptr); + return 0; + } + cobj->setMapSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setMapSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setMapSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getTileSize(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getTileSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getTileSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTileSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getTileSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getTileSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setTileSize(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTileSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TMXMapInfo:setTileSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTileSize'", nullptr); + return 0; + } + cobj->setTileSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTileSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTileSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getLayers(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getLayers'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + ax::Vector& ret = cobj->getLayers(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::Vector& ret = cobj->getLayers(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getLayers",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getLayers'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setLayers(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setLayers'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.TMXMapInfo:setLayers"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setLayers'", nullptr); + return 0; + } + cobj->setLayers(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setLayers",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setLayers'.",&tolua_err); #endif return 0; @@ -105786,6 +105931,200 @@ int lua_ax_base_TMXMapInfo_getTilesets(lua_State* tolua_S) return 0; } +int lua_ax_base_TMXMapInfo_setTilesets(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTilesets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.TMXMapInfo:setTilesets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTilesets'", nullptr); + return 0; + } + cobj->setTilesets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTilesets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTilesets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getObjectGroups(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getObjectGroups'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + ax::Vector& ret = cobj->getObjectGroups(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::Vector& ret = cobj->getObjectGroups(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getObjectGroups",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getObjectGroups'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setObjectGroups(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setObjectGroups'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.TMXMapInfo:setObjectGroups"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setObjectGroups'", nullptr); + return 0; + } + cobj->setObjectGroups(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setObjectGroups",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setObjectGroups'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getParentElement(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getParentElement'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getParentElement'", nullptr); + return 0; + } + auto&& ret = cobj->getParentElement(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getParentElement",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getParentElement'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TMXMapInfo_setParentElement(lua_State* tolua_S) { int argc = 0; @@ -105836,7 +106175,7 @@ int lua_ax_base_TMXMapInfo_setParentElement(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_initWithXML(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_getParentGID(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -105856,35 +106195,29 @@ int lua_ax_base_TMXMapInfo_initWithXML(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_initWithXML'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getParentGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:initWithXML"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.TMXMapInfo:initWithXML"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_initWithXML'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getParentGID'", nullptr); return 0; } - auto&& ret = cobj->initWithXML(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getParentGID(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:initWithXML",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getParentGID",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_initWithXML'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getParentGID'.",&tolua_err); #endif return 0; @@ -105986,7 +106319,7 @@ int lua_ax_base_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_getTileSize(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -106006,76 +106339,32 @@ int lua_ax_base_TMXMapInfo_getTileSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getTileSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setLayerAttribs'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setLayerAttribs"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getTileSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setLayerAttribs'", nullptr); return 0; } - auto&& ret = cobj->getTileSize(); - vec2_to_luaval(tolua_S, ret); + cobj->setLayerAttribs(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getTileSize",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setLayerAttribs",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getTileSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getTileProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getTileProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getTileProperties'", nullptr); - return 0; - } - auto&& ret = cobj->getTileProperties(); - ccvaluemapintkey_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getTileProperties",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getTileProperties'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setLayerAttribs'.",&tolua_err); #endif return 0; @@ -106127,444 +106416,6 @@ int lua_ax_base_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_getExternalTilesetFileName(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getExternalTilesetFileName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getExternalTilesetFileName'", nullptr); - return 0; - } - auto&& ret = cobj->getExternalTilesetFileName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getExternalTilesetFileName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getExternalTilesetFileName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getObjectGroups(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getObjectGroups'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::Vector& ret = cobj->getObjectGroups(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::Vector& ret = cobj->getObjectGroups(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getObjectGroups",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getObjectGroups'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getTMXFileName(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getTMXFileName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getTMXFileName'", nullptr); - return 0; - } - auto&& ret = cobj->getTMXFileName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getTMXFileName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getTMXFileName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setStaggerIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setStaggerIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setStaggerIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setStaggerIndex'", nullptr); - return 0; - } - cobj->setStaggerIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setStaggerIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setStaggerIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ValueMap arg0; - - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.TMXMapInfo:setProperties"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setProperties'", nullptr); - return 0; - } - cobj->setProperties(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setProperties",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setProperties'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setOrientation(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setOrientation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setOrientation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setOrientation'", nullptr); - return 0; - } - cobj->setOrientation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setOrientation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setOrientation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setTileProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTileProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ValueMapIntKey arg0; - - ok &= luaval_to_ccvaluemapintkey(tolua_S, 2, &arg0, "ax.TMXMapInfo:setTileProperties"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTileProperties'", nullptr); - return 0; - } - cobj->setTileProperties(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTileProperties",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTileProperties'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setMapSize(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setMapSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.TMXMapInfo:setMapSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setMapSize'", nullptr); - return 0; - } - cobj->setMapSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setMapSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setMapSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getCurrentString(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getCurrentString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getCurrentString'", nullptr); - return 0; - } - auto&& ret = cobj->getCurrentString(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getCurrentString",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getCurrentString'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) { int argc = 0; @@ -106615,153 +106466,6 @@ int lua_ax_base_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_setStaggerAxis(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setStaggerAxis'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setStaggerAxis"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setStaggerAxis'", nullptr); - return 0; - } - cobj->setStaggerAxis(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setStaggerAxis",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setStaggerAxis'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_getMapSize(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getMapSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getMapSize'", nullptr); - return 0; - } - auto&& ret = cobj->getMapSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getMapSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getMapSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_TMXMapInfo_setTilesets(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXMapInfo* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTilesets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.TMXMapInfo:setTilesets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTilesets'", nullptr); - return 0; - } - cobj->setTilesets(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTilesets",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTilesets'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TMXMapInfo_getProperties(lua_State* tolua_S) { int argc = 0; @@ -106809,7 +106513,7 @@ int lua_ax_base_TMXMapInfo_getProperties(lua_State* tolua_S) return 0; } -int lua_ax_base_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_setProperties(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -106829,7 +106533,57 @@ int lua_ax_base_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getStaggerIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setProperties'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ValueMap arg0; + + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.TMXMapInfo:setProperties"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setProperties'", nullptr); + return 0; + } + cobj->setProperties(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setProperties",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getCurrentString(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getCurrentString'", nullptr); return 0; } #endif @@ -106839,24 +106593,24 @@ int lua_ax_base_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getStaggerIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getCurrentString'", nullptr); return 0; } - auto&& ret = cobj->getStaggerIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getCurrentString(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getStaggerIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getCurrentString",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getStaggerIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getCurrentString'.",&tolua_err); #endif return 0; } -int lua_ax_base_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) +int lua_ax_base_TMXMapInfo_setCurrentString(lua_State* tolua_S) { int argc = 0; ax::TMXMapInfo* cobj = nullptr; @@ -106876,7 +106630,7 @@ int lua_ax_base_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setLayerAttribs'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setCurrentString'", nullptr); return 0; } #endif @@ -106884,24 +106638,168 @@ int lua_ax_base_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + std::string_view arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.TMXMapInfo:setLayerAttribs"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:setCurrentString"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setLayerAttribs'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setCurrentString'", nullptr); return 0; } - cobj->setLayerAttribs(arg0); + cobj->setCurrentString(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setLayerAttribs",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setCurrentString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setLayerAttribs'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setCurrentString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getTMXFileName(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getTMXFileName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getTMXFileName'", nullptr); + return 0; + } + auto&& ret = cobj->getTMXFileName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getTMXFileName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getTMXFileName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_setTMXFileName(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_setTMXFileName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TMXMapInfo:setTMXFileName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_setTMXFileName'", nullptr); + return 0; + } + cobj->setTMXFileName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:setTMXFileName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_setTMXFileName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_TMXMapInfo_getExternalTilesetFileName(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXMapInfo* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXMapInfo_getExternalTilesetFileName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXMapInfo_getExternalTilesetFileName'", nullptr); + return 0; + } + auto&& ret = cobj->getExternalTilesetFileName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXMapInfo:getExternalTilesetFileName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXMapInfo_getExternalTilesetFileName'.",&tolua_err); #endif return 0; @@ -107030,45 +106928,45 @@ int lua_register_ax_base_TMXMapInfo(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TMXMapInfo"); tolua_function(tolua_S,"new",lua_ax_base_TMXMapInfo_constructor); - tolua_function(tolua_S,"setCurrentString",lua_ax_base_TMXMapInfo_setCurrentString); - tolua_function(tolua_S,"getHexSideLength",lua_ax_base_TMXMapInfo_getHexSideLength); - tolua_function(tolua_S,"setTileSize",lua_ax_base_TMXMapInfo_setTileSize); - tolua_function(tolua_S,"getOrientation",lua_ax_base_TMXMapInfo_getOrientation); - tolua_function(tolua_S,"setObjectGroups",lua_ax_base_TMXMapInfo_setObjectGroups); - tolua_function(tolua_S,"setLayers",lua_ax_base_TMXMapInfo_setLayers); - tolua_function(tolua_S,"parseXMLFile",lua_ax_base_TMXMapInfo_parseXMLFile); - tolua_function(tolua_S,"getParentElement",lua_ax_base_TMXMapInfo_getParentElement); - tolua_function(tolua_S,"setTMXFileName",lua_ax_base_TMXMapInfo_setTMXFileName); - tolua_function(tolua_S,"parseXMLString",lua_ax_base_TMXMapInfo_parseXMLString); - tolua_function(tolua_S,"getLayers",lua_ax_base_TMXMapInfo_getLayers); - tolua_function(tolua_S,"getStaggerAxis",lua_ax_base_TMXMapInfo_getStaggerAxis); - tolua_function(tolua_S,"setHexSideLength",lua_ax_base_TMXMapInfo_setHexSideLength); tolua_function(tolua_S,"initWithTMXFile",lua_ax_base_TMXMapInfo_initWithTMXFile); - tolua_function(tolua_S,"getParentGID",lua_ax_base_TMXMapInfo_getParentGID); - tolua_function(tolua_S,"getTilesets",lua_ax_base_TMXMapInfo_getTilesets); - tolua_function(tolua_S,"setParentElement",lua_ax_base_TMXMapInfo_setParentElement); tolua_function(tolua_S,"initWithXML",lua_ax_base_TMXMapInfo_initWithXML); + tolua_function(tolua_S,"parseXMLFile",lua_ax_base_TMXMapInfo_parseXMLFile); + tolua_function(tolua_S,"parseXMLString",lua_ax_base_TMXMapInfo_parseXMLString); + tolua_function(tolua_S,"getTileProperties",lua_ax_base_TMXMapInfo_getTileProperties); + tolua_function(tolua_S,"setTileProperties",lua_ax_base_TMXMapInfo_setTileProperties); + tolua_function(tolua_S,"getOrientation",lua_ax_base_TMXMapInfo_getOrientation); + tolua_function(tolua_S,"setOrientation",lua_ax_base_TMXMapInfo_setOrientation); + tolua_function(tolua_S,"getStaggerAxis",lua_ax_base_TMXMapInfo_getStaggerAxis); + tolua_function(tolua_S,"setStaggerAxis",lua_ax_base_TMXMapInfo_setStaggerAxis); + tolua_function(tolua_S,"getStaggerIndex",lua_ax_base_TMXMapInfo_getStaggerIndex); + tolua_function(tolua_S,"setStaggerIndex",lua_ax_base_TMXMapInfo_setStaggerIndex); + tolua_function(tolua_S,"getHexSideLength",lua_ax_base_TMXMapInfo_getHexSideLength); + tolua_function(tolua_S,"setHexSideLength",lua_ax_base_TMXMapInfo_setHexSideLength); + tolua_function(tolua_S,"getMapSize",lua_ax_base_TMXMapInfo_getMapSize); + tolua_function(tolua_S,"setMapSize",lua_ax_base_TMXMapInfo_setMapSize); + tolua_function(tolua_S,"getTileSize",lua_ax_base_TMXMapInfo_getTileSize); + tolua_function(tolua_S,"setTileSize",lua_ax_base_TMXMapInfo_setTileSize); + tolua_function(tolua_S,"getLayers",lua_ax_base_TMXMapInfo_getLayers); + tolua_function(tolua_S,"setLayers",lua_ax_base_TMXMapInfo_setLayers); + tolua_function(tolua_S,"getTilesets",lua_ax_base_TMXMapInfo_getTilesets); + tolua_function(tolua_S,"setTilesets",lua_ax_base_TMXMapInfo_setTilesets); + tolua_function(tolua_S,"getObjectGroups",lua_ax_base_TMXMapInfo_getObjectGroups); + tolua_function(tolua_S,"setObjectGroups",lua_ax_base_TMXMapInfo_setObjectGroups); + tolua_function(tolua_S,"getParentElement",lua_ax_base_TMXMapInfo_getParentElement); + tolua_function(tolua_S,"setParentElement",lua_ax_base_TMXMapInfo_setParentElement); + tolua_function(tolua_S,"getParentGID",lua_ax_base_TMXMapInfo_getParentGID); tolua_function(tolua_S,"setParentGID",lua_ax_base_TMXMapInfo_setParentGID); tolua_function(tolua_S,"getLayerAttribs",lua_ax_base_TMXMapInfo_getLayerAttribs); - tolua_function(tolua_S,"getTileSize",lua_ax_base_TMXMapInfo_getTileSize); - tolua_function(tolua_S,"getTileProperties",lua_ax_base_TMXMapInfo_getTileProperties); - tolua_function(tolua_S,"isStoringCharacters",lua_ax_base_TMXMapInfo_isStoringCharacters); - tolua_function(tolua_S,"getExternalTilesetFileName",lua_ax_base_TMXMapInfo_getExternalTilesetFileName); - tolua_function(tolua_S,"getObjectGroups",lua_ax_base_TMXMapInfo_getObjectGroups); - tolua_function(tolua_S,"getTMXFileName",lua_ax_base_TMXMapInfo_getTMXFileName); - tolua_function(tolua_S,"setStaggerIndex",lua_ax_base_TMXMapInfo_setStaggerIndex); - tolua_function(tolua_S,"setProperties",lua_ax_base_TMXMapInfo_setProperties); - tolua_function(tolua_S,"setOrientation",lua_ax_base_TMXMapInfo_setOrientation); - tolua_function(tolua_S,"setTileProperties",lua_ax_base_TMXMapInfo_setTileProperties); - tolua_function(tolua_S,"setMapSize",lua_ax_base_TMXMapInfo_setMapSize); - tolua_function(tolua_S,"getCurrentString",lua_ax_base_TMXMapInfo_getCurrentString); - tolua_function(tolua_S,"setStoringCharacters",lua_ax_base_TMXMapInfo_setStoringCharacters); - tolua_function(tolua_S,"setStaggerAxis",lua_ax_base_TMXMapInfo_setStaggerAxis); - tolua_function(tolua_S,"getMapSize",lua_ax_base_TMXMapInfo_getMapSize); - tolua_function(tolua_S,"setTilesets",lua_ax_base_TMXMapInfo_setTilesets); - tolua_function(tolua_S,"getProperties",lua_ax_base_TMXMapInfo_getProperties); - tolua_function(tolua_S,"getStaggerIndex",lua_ax_base_TMXMapInfo_getStaggerIndex); tolua_function(tolua_S,"setLayerAttribs",lua_ax_base_TMXMapInfo_setLayerAttribs); + tolua_function(tolua_S,"isStoringCharacters",lua_ax_base_TMXMapInfo_isStoringCharacters); + tolua_function(tolua_S,"setStoringCharacters",lua_ax_base_TMXMapInfo_setStoringCharacters); + tolua_function(tolua_S,"getProperties",lua_ax_base_TMXMapInfo_getProperties); + tolua_function(tolua_S,"setProperties",lua_ax_base_TMXMapInfo_setProperties); + tolua_function(tolua_S,"getCurrentString",lua_ax_base_TMXMapInfo_getCurrentString); + tolua_function(tolua_S,"setCurrentString",lua_ax_base_TMXMapInfo_setCurrentString); + tolua_function(tolua_S,"getTMXFileName",lua_ax_base_TMXMapInfo_getTMXFileName); + tolua_function(tolua_S,"setTMXFileName",lua_ax_base_TMXMapInfo_setTMXFileName); + tolua_function(tolua_S,"getExternalTilesetFileName",lua_ax_base_TMXMapInfo_getExternalTilesetFileName); tolua_function(tolua_S,"create", lua_ax_base_TMXMapInfo_create); tolua_function(tolua_S,"createWithXML", lua_ax_base_TMXMapInfo_createWithXML); tolua_endmodule(tolua_S); @@ -107137,53 +107035,6 @@ int lua_ax_base_TileMapAtlas_initWithTileFile(lua_State* tolua_S) return 0; } -int lua_ax_base_TileMapAtlas_releaseMap(lua_State* tolua_S) -{ - int argc = 0; - ax::TileMapAtlas* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TileMapAtlas_releaseMap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TileMapAtlas_releaseMap'", nullptr); - return 0; - } - cobj->releaseMap(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TileMapAtlas:releaseMap",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TileMapAtlas_releaseMap'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TileMapAtlas_getTileAt(lua_State* tolua_S) { int argc = 0; @@ -107287,6 +107138,53 @@ int lua_ax_base_TileMapAtlas_setTile(lua_State* tolua_S) return 0; } +int lua_ax_base_TileMapAtlas_releaseMap(lua_State* tolua_S) +{ + int argc = 0; + ax::TileMapAtlas* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TileMapAtlas_releaseMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TileMapAtlas_releaseMap'", nullptr); + return 0; + } + cobj->releaseMap(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TileMapAtlas:releaseMap",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TileMapAtlas_releaseMap'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TileMapAtlas_create(lua_State* tolua_S) { int argc = 0; @@ -107380,9 +107278,9 @@ int lua_register_ax_base_TileMapAtlas(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TileMapAtlas"); tolua_function(tolua_S,"new",lua_ax_base_TileMapAtlas_constructor); tolua_function(tolua_S,"initWithTileFile",lua_ax_base_TileMapAtlas_initWithTileFile); - tolua_function(tolua_S,"releaseMap",lua_ax_base_TileMapAtlas_releaseMap); tolua_function(tolua_S,"getTileAt",lua_ax_base_TileMapAtlas_getTileAt); tolua_function(tolua_S,"setTile",lua_ax_base_TileMapAtlas_setTile); + tolua_function(tolua_S,"releaseMap",lua_ax_base_TileMapAtlas_releaseMap); tolua_function(tolua_S,"create", lua_ax_base_TileMapAtlas_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TileMapAtlas).name(); // rtti is literal storage @@ -107391,700 +107289,6 @@ int lua_register_ax_base_TileMapAtlas(lua_State* tolua_S) return 1; } -int lua_ax_base_FastTMXLayer_getAnimTileCoord(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getAnimTileCoord'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getAnimTileCoord'", nullptr); - return 0; - } - auto&& ret = cobj->getAnimTileCoord(); - object_to_luaval>>(tolua_S, "std::unordered_map>*",(std::unordered_map>*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getAnimTileCoord",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getAnimTileCoord'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_getPositionAt(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getPositionAt'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:getPositionAt"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getPositionAt'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionAt(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getPositionAt",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getPositionAt'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_setLayerOrientation(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setLayerOrientation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.FastTMXLayer:setLayerOrientation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setLayerOrientation'", nullptr); - return 0; - } - cobj->setLayerOrientation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setLayerOrientation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setLayerOrientation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_initWithTilesetInfo(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_initWithTilesetInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::TMXTilesetInfo* arg0; - ax::TMXLayerInfo* arg1; - ax::TMXMapInfo* arg2; - - ok &= luaval_to_object(tolua_S, 2, "ax.TMXTilesetInfo",&arg0, "ax.FastTMXLayer:initWithTilesetInfo"); - - ok &= luaval_to_object(tolua_S, 3, "ax.TMXLayerInfo",&arg1, "ax.FastTMXLayer:initWithTilesetInfo"); - - ok &= luaval_to_object(tolua_S, 4, "ax.TMXMapInfo",&arg2, "ax.FastTMXLayer:initWithTilesetInfo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_initWithTilesetInfo'", nullptr); - return 0; - } - auto&& ret = cobj->initWithTilesetInfo(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:initWithTilesetInfo",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_initWithTilesetInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_hasTileAnimation(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_hasTileAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_hasTileAnimation'", nullptr); - return 0; - } - auto&& ret = cobj->hasTileAnimation(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:hasTileAnimation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_hasTileAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_getLayerSize(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getLayerSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getLayerSize'", nullptr); - return 0; - } - auto&& ret = cobj->getLayerSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getLayerSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getLayerSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_setMapTileSize(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setMapTileSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:setMapTileSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setMapTileSize'", nullptr); - return 0; - } - cobj->setMapTileSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setMapTileSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setMapTileSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_getLayerOrientation(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getLayerOrientation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getLayerOrientation'", nullptr); - return 0; - } - auto&& ret = cobj->getLayerOrientation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getLayerOrientation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getLayerOrientation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_setProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ValueMap arg0; - - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FastTMXLayer:setProperties"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setProperties'", nullptr); - return 0; - } - cobj->setProperties(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setProperties",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setProperties'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_setLayerName(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setLayerName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXLayer:setLayerName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setLayerName'", nullptr); - return 0; - } - cobj->setLayerName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setLayerName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setLayerName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_removeTileAt(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_removeTileAt'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:removeTileAt"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_removeTileAt'", nullptr); - return 0; - } - cobj->removeTileAt(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:removeTileAt",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_removeTileAt'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_getProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getProperties'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::ValueMap& ret = cobj->getProperties(); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::ValueMap& ret = cobj->getProperties(); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getProperties",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getProperties'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_setupTiles(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setupTiles'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setupTiles'", nullptr); - return 0; - } - cobj->setupTiles(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setupTiles",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setupTiles'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXLayer_setupTileSprite(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXLayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setupTileSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Sprite* arg0; - ax::Vec2 arg1; - unsigned int arg2; - - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.FastTMXLayer:setupTileSprite"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.FastTMXLayer:setupTileSprite"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.FastTMXLayer:setupTileSprite"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setupTileSprite'", nullptr); - return 0; - } - cobj->setupTileSprite(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setupTileSprite",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setupTileSprite'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FastTMXLayer_setTileGID(lua_State* tolua_S) { int argc = 0; @@ -108152,7 +107356,7 @@ int lua_ax_base_FastTMXLayer_setTileGID(lua_State* tolua_S) return 0; } -int lua_ax_base_FastTMXLayer_getMapTileSize(lua_State* tolua_S) +int lua_ax_base_FastTMXLayer_removeTileAt(lua_State* tolua_S) { int argc = 0; ax::FastTMXLayer* cobj = nullptr; @@ -108172,29 +107376,82 @@ int lua_ax_base_FastTMXLayer_getMapTileSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getMapTileSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_removeTileAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:removeTileAt"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getMapTileSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_removeTileAt'", nullptr); return 0; } - auto&& ret = cobj->getMapTileSize(); - vec2_to_luaval(tolua_S, ret); + cobj->removeTileAt(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getMapTileSize",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:removeTileAt",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getMapTileSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_removeTileAt'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getPositionAt(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getPositionAt'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:getPositionAt"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getPositionAt'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionAt(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getPositionAt",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getPositionAt'.",&tolua_err); #endif return 0; @@ -108249,6 +107506,197 @@ int lua_ax_base_FastTMXLayer_getProperty(lua_State* tolua_S) return 0; } +int lua_ax_base_FastTMXLayer_setupTiles(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setupTiles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setupTiles'", nullptr); + return 0; + } + cobj->setupTiles(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setupTiles",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setupTiles'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getLayerName(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getLayerName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getLayerName'", nullptr); + return 0; + } + auto&& ret = cobj->getLayerName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getLayerName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getLayerName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_setLayerName(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setLayerName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXLayer:setLayerName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setLayerName'", nullptr); + return 0; + } + cobj->setLayerName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setLayerName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setLayerName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getLayerSize(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getLayerSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getLayerSize'", nullptr); + return 0; + } + auto&& ret = cobj->getLayerSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getLayerSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getLayerSize'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FastTMXLayer_setLayerSize(lua_State* tolua_S) { int argc = 0; @@ -108299,7 +107747,7 @@ int lua_ax_base_FastTMXLayer_setLayerSize(lua_State* tolua_S) return 0; } -int lua_ax_base_FastTMXLayer_getLayerName(lua_State* tolua_S) +int lua_ax_base_FastTMXLayer_getMapTileSize(lua_State* tolua_S) { int argc = 0; ax::FastTMXLayer* cobj = nullptr; @@ -108319,7 +107767,7 @@ int lua_ax_base_FastTMXLayer_getLayerName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getLayerName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getMapTileSize'", nullptr); return 0; } #endif @@ -108329,19 +107777,116 @@ int lua_ax_base_FastTMXLayer_getLayerName(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getLayerName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getMapTileSize'", nullptr); return 0; } - auto&& ret = cobj->getLayerName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); + auto&& ret = cobj->getMapTileSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getLayerName",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getMapTileSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getLayerName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getMapTileSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_setMapTileSize(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setMapTileSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:setMapTileSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setMapTileSize'", nullptr); + return 0; + } + cobj->setMapTileSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setMapTileSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setMapTileSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getTileSet(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getTileSet'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getTileSet'", nullptr); + return 0; + } + auto&& ret = cobj->getTileSet(); + object_to_luaval(tolua_S, "ax.TMXTilesetInfo",(ax::TMXTilesetInfo*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getTileSet",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getTileSet'.",&tolua_err); #endif return 0; @@ -108396,7 +107941,7 @@ int lua_ax_base_FastTMXLayer_setTileSet(lua_State* tolua_S) return 0; } -int lua_ax_base_FastTMXLayer_getTileSet(lua_State* tolua_S) +int lua_ax_base_FastTMXLayer_getLayerOrientation(lua_State* tolua_S) { int argc = 0; ax::FastTMXLayer* cobj = nullptr; @@ -108416,7 +107961,7 @@ int lua_ax_base_FastTMXLayer_getTileSet(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getTileSet'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getLayerOrientation'", nullptr); return 0; } #endif @@ -108426,19 +107971,366 @@ int lua_ax_base_FastTMXLayer_getTileSet(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getTileSet'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getLayerOrientation'", nullptr); return 0; } - auto&& ret = cobj->getTileSet(); - object_to_luaval(tolua_S, "ax.TMXTilesetInfo",(ax::TMXTilesetInfo*)ret); + auto&& ret = cobj->getLayerOrientation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getTileSet",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getLayerOrientation",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getTileSet'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getLayerOrientation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_setLayerOrientation(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setLayerOrientation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.FastTMXLayer:setLayerOrientation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setLayerOrientation'", nullptr); + return 0; + } + cobj->setLayerOrientation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setLayerOrientation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setLayerOrientation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getProperties(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getProperties'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + ax::ValueMap& ret = cobj->getProperties(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::ValueMap& ret = cobj->getProperties(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getProperties",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_setProperties(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setProperties'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ValueMap arg0; + + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FastTMXLayer:setProperties"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setProperties'", nullptr); + return 0; + } + cobj->setProperties(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setProperties",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getTileAt(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getTileAt'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:getTileAt"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getTileAt'", nullptr); + return 0; + } + auto&& ret = cobj->getTileAt(arg0); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getTileAt",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getTileAt'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_setupTileSprite(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_setupTileSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Sprite* arg0; + ax::Vec2 arg1; + unsigned int arg2; + + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "ax.FastTMXLayer:setupTileSprite"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.FastTMXLayer:setupTileSprite"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "ax.FastTMXLayer:setupTileSprite"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_setupTileSprite'", nullptr); + return 0; + } + cobj->setupTileSprite(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:setupTileSprite",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_setupTileSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_getAnimTileCoord(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getAnimTileCoord'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getAnimTileCoord'", nullptr); + return 0; + } + auto&& ret = cobj->getAnimTileCoord(); + object_to_luaval>>(tolua_S, "std::unordered_map>*",(std::unordered_map>*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getAnimTileCoord",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getAnimTileCoord'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXLayer_hasTileAnimation(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXLayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_hasTileAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_hasTileAnimation'", nullptr); + return 0; + } + auto&& ret = cobj->hasTileAnimation(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:hasTileAnimation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_hasTileAnimation'.",&tolua_err); #endif return 0; @@ -108490,7 +108382,7 @@ int lua_ax_base_FastTMXLayer_getTileAnimManager(lua_State* tolua_S) return 0; } -int lua_ax_base_FastTMXLayer_getTileAt(lua_State* tolua_S) +int lua_ax_base_FastTMXLayer_initWithTilesetInfo(lua_State* tolua_S) { int argc = 0; ax::FastTMXLayer* cobj = nullptr; @@ -108510,32 +108402,38 @@ int lua_ax_base_FastTMXLayer_getTileAt(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_getTileAt'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXLayer_initWithTilesetInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 3) { - ax::Vec2 arg0; + ax::TMXTilesetInfo* arg0; + ax::TMXLayerInfo* arg1; + ax::TMXMapInfo* arg2; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXLayer:getTileAt"); + ok &= luaval_to_object(tolua_S, 2, "ax.TMXTilesetInfo",&arg0, "ax.FastTMXLayer:initWithTilesetInfo"); + + ok &= luaval_to_object(tolua_S, 3, "ax.TMXLayerInfo",&arg1, "ax.FastTMXLayer:initWithTilesetInfo"); + + ok &= luaval_to_object(tolua_S, 4, "ax.TMXMapInfo",&arg2, "ax.FastTMXLayer:initWithTilesetInfo"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_getTileAt'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXLayer_initWithTilesetInfo'", nullptr); return 0; } - auto&& ret = cobj->getTileAt(arg0); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + auto&& ret = cobj->initWithTilesetInfo(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:getTileAt",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXLayer:initWithTilesetInfo",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_getTileAt'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXLayer_initWithTilesetInfo'.",&tolua_err); #endif return 0; @@ -108630,29 +108528,29 @@ int lua_register_ax_base_FastTMXLayer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"FastTMXLayer"); tolua_function(tolua_S,"new",lua_ax_base_FastTMXLayer_constructor); - tolua_function(tolua_S,"getAnimTileCoord",lua_ax_base_FastTMXLayer_getAnimTileCoord); - tolua_function(tolua_S,"getPositionAt",lua_ax_base_FastTMXLayer_getPositionAt); - tolua_function(tolua_S,"setLayerOrientation",lua_ax_base_FastTMXLayer_setLayerOrientation); - tolua_function(tolua_S,"initWithTilesetInfo",lua_ax_base_FastTMXLayer_initWithTilesetInfo); - tolua_function(tolua_S,"hasTileAnimation",lua_ax_base_FastTMXLayer_hasTileAnimation); - tolua_function(tolua_S,"getLayerSize",lua_ax_base_FastTMXLayer_getLayerSize); - tolua_function(tolua_S,"setMapTileSize",lua_ax_base_FastTMXLayer_setMapTileSize); - tolua_function(tolua_S,"getLayerOrientation",lua_ax_base_FastTMXLayer_getLayerOrientation); - tolua_function(tolua_S,"setProperties",lua_ax_base_FastTMXLayer_setProperties); - tolua_function(tolua_S,"setLayerName",lua_ax_base_FastTMXLayer_setLayerName); - tolua_function(tolua_S,"removeTileAt",lua_ax_base_FastTMXLayer_removeTileAt); - tolua_function(tolua_S,"getProperties",lua_ax_base_FastTMXLayer_getProperties); - tolua_function(tolua_S,"setupTiles",lua_ax_base_FastTMXLayer_setupTiles); - tolua_function(tolua_S,"setupTileSprite",lua_ax_base_FastTMXLayer_setupTileSprite); tolua_function(tolua_S,"setTileGID",lua_ax_base_FastTMXLayer_setTileGID); - tolua_function(tolua_S,"getMapTileSize",lua_ax_base_FastTMXLayer_getMapTileSize); + tolua_function(tolua_S,"removeTileAt",lua_ax_base_FastTMXLayer_removeTileAt); + tolua_function(tolua_S,"getPositionAt",lua_ax_base_FastTMXLayer_getPositionAt); tolua_function(tolua_S,"getProperty",lua_ax_base_FastTMXLayer_getProperty); - tolua_function(tolua_S,"setLayerSize",lua_ax_base_FastTMXLayer_setLayerSize); + tolua_function(tolua_S,"setupTiles",lua_ax_base_FastTMXLayer_setupTiles); tolua_function(tolua_S,"getLayerName",lua_ax_base_FastTMXLayer_getLayerName); - tolua_function(tolua_S,"setTileSet",lua_ax_base_FastTMXLayer_setTileSet); + tolua_function(tolua_S,"setLayerName",lua_ax_base_FastTMXLayer_setLayerName); + tolua_function(tolua_S,"getLayerSize",lua_ax_base_FastTMXLayer_getLayerSize); + tolua_function(tolua_S,"setLayerSize",lua_ax_base_FastTMXLayer_setLayerSize); + tolua_function(tolua_S,"getMapTileSize",lua_ax_base_FastTMXLayer_getMapTileSize); + tolua_function(tolua_S,"setMapTileSize",lua_ax_base_FastTMXLayer_setMapTileSize); tolua_function(tolua_S,"getTileSet",lua_ax_base_FastTMXLayer_getTileSet); - tolua_function(tolua_S,"getTileAnimManager",lua_ax_base_FastTMXLayer_getTileAnimManager); + tolua_function(tolua_S,"setTileSet",lua_ax_base_FastTMXLayer_setTileSet); + tolua_function(tolua_S,"getLayerOrientation",lua_ax_base_FastTMXLayer_getLayerOrientation); + tolua_function(tolua_S,"setLayerOrientation",lua_ax_base_FastTMXLayer_setLayerOrientation); + tolua_function(tolua_S,"getProperties",lua_ax_base_FastTMXLayer_getProperties); + tolua_function(tolua_S,"setProperties",lua_ax_base_FastTMXLayer_setProperties); tolua_function(tolua_S,"getTileAt",lua_ax_base_FastTMXLayer_getTileAt); + tolua_function(tolua_S,"setupTileSprite",lua_ax_base_FastTMXLayer_setupTileSprite); + tolua_function(tolua_S,"getAnimTileCoord",lua_ax_base_FastTMXLayer_getAnimTileCoord); + tolua_function(tolua_S,"hasTileAnimation",lua_ax_base_FastTMXLayer_hasTileAnimation); + tolua_function(tolua_S,"getTileAnimManager",lua_ax_base_FastTMXLayer_getTileAnimManager); + tolua_function(tolua_S,"initWithTilesetInfo",lua_ax_base_FastTMXLayer_initWithTilesetInfo); tolua_function(tolua_S,"create", lua_ax_base_FastTMXLayer_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::FastTMXLayer).name(); // rtti is literal storage @@ -108914,53 +108812,6 @@ int lua_register_ax_base_TMXTileAnimTask(lua_State* tolua_S) return 1; } -int lua_ax_base_TMXTileAnimManager_getTasks(lua_State* tolua_S) -{ - int argc = 0; - ax::TMXTileAnimManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.TMXTileAnimManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXTileAnimManager_getTasks'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXTileAnimManager_getTasks'", nullptr); - return 0; - } - auto&& ret = cobj->getTasks(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXTileAnimManager:getTasks",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXTileAnimManager_getTasks'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_TMXTileAnimManager_startAll(lua_State* tolua_S) { int argc = 0; @@ -109055,6 +108906,53 @@ int lua_ax_base_TMXTileAnimManager_stopAll(lua_State* tolua_S) return 0; } +int lua_ax_base_TMXTileAnimManager_getTasks(lua_State* tolua_S) +{ + int argc = 0; + ax::TMXTileAnimManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.TMXTileAnimManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_TMXTileAnimManager_getTasks'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_TMXTileAnimManager_getTasks'", nullptr); + return 0; + } + auto&& ret = cobj->getTasks(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXTileAnimManager:getTasks",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_TMXTileAnimManager_getTasks'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_TMXTileAnimManager_create(lua_State* tolua_S) { int argc = 0; @@ -109144,9 +109042,9 @@ int lua_register_ax_base_TMXTileAnimManager(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TMXTileAnimManager"); tolua_function(tolua_S,"new",lua_ax_base_TMXTileAnimManager_constructor); - tolua_function(tolua_S,"getTasks",lua_ax_base_TMXTileAnimManager_getTasks); tolua_function(tolua_S,"startAll",lua_ax_base_TMXTileAnimManager_startAll); tolua_function(tolua_S,"stopAll",lua_ax_base_TMXTileAnimManager_stopAll); + tolua_function(tolua_S,"getTasks",lua_ax_base_TMXTileAnimManager_getTasks); tolua_function(tolua_S,"create", lua_ax_base_TMXTileAnimManager_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::TMXTileAnimManager).name(); // rtti is literal storage @@ -109155,7 +109053,7 @@ int lua_register_ax_base_TMXTileAnimManager(lua_State* tolua_S) return 1; } -int lua_ax_base_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) +int lua_ax_base_FastTMXTiledMap_getLayer(lua_State* tolua_S) { int argc = 0; ax::FastTMXTiledMap* cobj = nullptr; @@ -109175,57 +109073,7 @@ int lua_ax_base_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setObjectGroups'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vector arg0; - - ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.FastTMXTiledMap:setObjectGroups"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setObjectGroups'", nullptr); - return 0; - } - cobj->setObjectGroups(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setObjectGroups",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setObjectGroups'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getProperty(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getProperty'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getLayer'", nullptr); return 0; } #endif @@ -109235,72 +109083,22 @@ int lua_ax_base_FastTMXTiledMap_getProperty(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:getProperty"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:getLayer"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getProperty'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getLayer'", nullptr); return 0; } - auto&& ret = cobj->getProperty(arg0); - ccvalue_to_luaval(tolua_S, ret); + auto&& ret = cobj->getLayer(arg0); + object_to_luaval(tolua_S, "ax.FastTMXLayer",(ax::FastTMXLayer*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getProperty",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getLayer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getProperty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_setMapSize(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setMapSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXTiledMap:setMapSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setMapSize'", nullptr); - return 0; - } - cobj->setMapSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setMapSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setMapSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getLayer'.",&tolua_err); #endif return 0; @@ -109355,7 +109153,7 @@ int lua_ax_base_FastTMXTiledMap_getObjectGroup(lua_State* tolua_S) return 0; } -int lua_ax_base_FastTMXTiledMap_getResourceFile(lua_State* tolua_S) +int lua_ax_base_FastTMXTiledMap_getProperty(lua_State* tolua_S) { int argc = 0; ax::FastTMXTiledMap* cobj = nullptr; @@ -109375,148 +109173,7 @@ int lua_ax_base_FastTMXTiledMap_getResourceFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getResourceFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getResourceFile'", nullptr); - return 0; - } - auto&& ret = cobj->getResourceFile(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getResourceFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getResourceFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getObjectGroups'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::Vector& ret = cobj->getObjectGroups(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::Vector& ret = cobj->getObjectGroups(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getObjectGroups",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getObjectGroups'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getLayerCount(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getLayerCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getLayerCount'", nullptr); - return 0; - } - auto&& ret = cobj->getLayerCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getLayerCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getLayerCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_initWithTMXFile(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_initWithTMXFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getProperty'", nullptr); return 0; } #endif @@ -109526,266 +109183,22 @@ int lua_ax_base_FastTMXTiledMap_initWithTMXFile(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:initWithTMXFile"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:getProperty"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_initWithTMXFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getProperty'", nullptr); return 0; } - auto&& ret = cobj->initWithTMXFile(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getProperty(arg0); + ccvalue_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:initWithTMXFile",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getProperty",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_initWithTMXFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getTileSize(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getTileSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getTileSize'", nullptr); - return 0; - } - auto&& ret = cobj->getTileSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getTileSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getTileSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getMapSize(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getMapSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getMapSize'", nullptr); - return 0; - } - auto&& ret = cobj->getMapSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getMapSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getMapSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_setTileAnimEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setTileAnimEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:setTileAnimEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setTileAnimEnabled'", nullptr); - return 0; - } - cobj->setTileAnimEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setTileAnimEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setTileAnimEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_initWithXML(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_initWithXML'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:initWithXML"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FastTMXTiledMap:initWithXML"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_initWithXML'", nullptr); - return 0; - } - auto&& ret = cobj->initWithXML(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:initWithXML",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_initWithXML'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getProperties'", nullptr); - return 0; - } - auto&& ret = cobj->getProperties(); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getProperties",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getProperties'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getProperty'.",&tolua_err); #endif return 0; @@ -109840,6 +109253,150 @@ int lua_ax_base_FastTMXTiledMap_getPropertiesForGID(lua_State* tolua_S) return 0; } +int lua_ax_base_FastTMXTiledMap_getMapSize(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getMapSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getMapSize'", nullptr); + return 0; + } + auto&& ret = cobj->getMapSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getMapSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getMapSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_setMapSize(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setMapSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.FastTMXTiledMap:setMapSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setMapSize'", nullptr); + return 0; + } + cobj->setMapSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setMapSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setMapSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_getTileSize(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getTileSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getTileSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTileSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getTileSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getTileSize'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FastTMXTiledMap_setTileSize(lua_State* tolua_S) { int argc = 0; @@ -109890,106 +109447,6 @@ int lua_ax_base_FastTMXTiledMap_setTileSize(lua_State* tolua_S) return 0; } -int lua_ax_base_FastTMXTiledMap_setProperties(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setProperties'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ValueMap arg0; - - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FastTMXTiledMap:setProperties"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setProperties'", nullptr); - return 0; - } - cobj->setProperties(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setProperties",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setProperties'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_FastTMXTiledMap_getLayer(lua_State* tolua_S) -{ - int argc = 0; - ax::FastTMXTiledMap* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getLayer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:getLayer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getLayer'", nullptr); - return 0; - } - auto&& ret = cobj->getLayer(arg0); - object_to_luaval(tolua_S, "ax.FastTMXLayer",(ax::FastTMXLayer*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getLayer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getLayer'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_FastTMXTiledMap_getMapOrientation(lua_State* tolua_S) { int argc = 0; @@ -110087,6 +109544,447 @@ int lua_ax_base_FastTMXTiledMap_setMapOrientation(lua_State* tolua_S) return 0; } +int lua_ax_base_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getObjectGroups'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + ax::Vector& ret = cobj->getObjectGroups(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::Vector& ret = cobj->getObjectGroups(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getObjectGroups",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getObjectGroups'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setObjectGroups'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ax.FastTMXTiledMap:setObjectGroups"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setObjectGroups'", nullptr); + return 0; + } + cobj->setObjectGroups(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setObjectGroups",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setObjectGroups'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_getProperties(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getProperties'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getProperties'", nullptr); + return 0; + } + auto&& ret = cobj->getProperties(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getProperties",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_setProperties(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setProperties'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ValueMap arg0; + + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ax.FastTMXTiledMap:setProperties"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setProperties'", nullptr); + return 0; + } + cobj->setProperties(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setProperties",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setProperties'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_setTileAnimEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_setTileAnimEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:setTileAnimEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_setTileAnimEnabled'", nullptr); + return 0; + } + cobj->setTileAnimEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:setTileAnimEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_setTileAnimEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_getLayerCount(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getLayerCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getLayerCount'", nullptr); + return 0; + } + auto&& ret = cobj->getLayerCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getLayerCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getLayerCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_getResourceFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_getResourceFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_getResourceFile'", nullptr); + return 0; + } + auto&& ret = cobj->getResourceFile(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:getResourceFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_getResourceFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_initWithTMXFile(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_initWithTMXFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:initWithTMXFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_initWithTMXFile'", nullptr); + return 0; + } + auto&& ret = cobj->initWithTMXFile(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:initWithTMXFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_initWithTMXFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_FastTMXTiledMap_initWithXML(lua_State* tolua_S) +{ + int argc = 0; + ax::FastTMXTiledMap* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_FastTMXTiledMap_initWithXML'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.FastTMXTiledMap:initWithXML"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.FastTMXTiledMap:initWithXML"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_FastTMXTiledMap_initWithXML'", nullptr); + return 0; + } + auto&& ret = cobj->initWithXML(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.FastTMXTiledMap:initWithXML",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_FastTMXTiledMap_initWithXML'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_FastTMXTiledMap_create(lua_State* tolua_S) { int argc = 0; @@ -110211,25 +110109,25 @@ int lua_register_ax_base_FastTMXTiledMap(lua_State* tolua_S) tolua_beginmodule(tolua_S,"FastTMXTiledMap"); tolua_function(tolua_S,"new",lua_ax_base_FastTMXTiledMap_constructor); - tolua_function(tolua_S,"setObjectGroups",lua_ax_base_FastTMXTiledMap_setObjectGroups); - tolua_function(tolua_S,"getProperty",lua_ax_base_FastTMXTiledMap_getProperty); - tolua_function(tolua_S,"setMapSize",lua_ax_base_FastTMXTiledMap_setMapSize); - tolua_function(tolua_S,"getObjectGroup",lua_ax_base_FastTMXTiledMap_getObjectGroup); - tolua_function(tolua_S,"getResourceFile",lua_ax_base_FastTMXTiledMap_getResourceFile); - tolua_function(tolua_S,"getObjectGroups",lua_ax_base_FastTMXTiledMap_getObjectGroups); - tolua_function(tolua_S,"getLayerCount",lua_ax_base_FastTMXTiledMap_getLayerCount); - tolua_function(tolua_S,"initWithTMXFile",lua_ax_base_FastTMXTiledMap_initWithTMXFile); - tolua_function(tolua_S,"getTileSize",lua_ax_base_FastTMXTiledMap_getTileSize); - tolua_function(tolua_S,"getMapSize",lua_ax_base_FastTMXTiledMap_getMapSize); - tolua_function(tolua_S,"setTileAnimEnabled",lua_ax_base_FastTMXTiledMap_setTileAnimEnabled); - tolua_function(tolua_S,"initWithXML",lua_ax_base_FastTMXTiledMap_initWithXML); - tolua_function(tolua_S,"getProperties",lua_ax_base_FastTMXTiledMap_getProperties); - tolua_function(tolua_S,"getPropertiesForGID",lua_ax_base_FastTMXTiledMap_getPropertiesForGID); - tolua_function(tolua_S,"setTileSize",lua_ax_base_FastTMXTiledMap_setTileSize); - tolua_function(tolua_S,"setProperties",lua_ax_base_FastTMXTiledMap_setProperties); tolua_function(tolua_S,"getLayer",lua_ax_base_FastTMXTiledMap_getLayer); + tolua_function(tolua_S,"getObjectGroup",lua_ax_base_FastTMXTiledMap_getObjectGroup); + tolua_function(tolua_S,"getProperty",lua_ax_base_FastTMXTiledMap_getProperty); + tolua_function(tolua_S,"getPropertiesForGID",lua_ax_base_FastTMXTiledMap_getPropertiesForGID); + tolua_function(tolua_S,"getMapSize",lua_ax_base_FastTMXTiledMap_getMapSize); + tolua_function(tolua_S,"setMapSize",lua_ax_base_FastTMXTiledMap_setMapSize); + tolua_function(tolua_S,"getTileSize",lua_ax_base_FastTMXTiledMap_getTileSize); + tolua_function(tolua_S,"setTileSize",lua_ax_base_FastTMXTiledMap_setTileSize); tolua_function(tolua_S,"getMapOrientation",lua_ax_base_FastTMXTiledMap_getMapOrientation); tolua_function(tolua_S,"setMapOrientation",lua_ax_base_FastTMXTiledMap_setMapOrientation); + tolua_function(tolua_S,"getObjectGroups",lua_ax_base_FastTMXTiledMap_getObjectGroups); + tolua_function(tolua_S,"setObjectGroups",lua_ax_base_FastTMXTiledMap_setObjectGroups); + tolua_function(tolua_S,"getProperties",lua_ax_base_FastTMXTiledMap_getProperties); + tolua_function(tolua_S,"setProperties",lua_ax_base_FastTMXTiledMap_setProperties); + tolua_function(tolua_S,"setTileAnimEnabled",lua_ax_base_FastTMXTiledMap_setTileAnimEnabled); + tolua_function(tolua_S,"getLayerCount",lua_ax_base_FastTMXTiledMap_getLayerCount); + tolua_function(tolua_S,"getResourceFile",lua_ax_base_FastTMXTiledMap_getResourceFile); + tolua_function(tolua_S,"initWithTMXFile",lua_ax_base_FastTMXTiledMap_initWithTMXFile); + tolua_function(tolua_S,"initWithXML",lua_ax_base_FastTMXTiledMap_initWithXML); tolua_function(tolua_S,"create", lua_ax_base_FastTMXTiledMap_create); tolua_function(tolua_S,"createWithXML", lua_ax_base_FastTMXTiledMap_createWithXML); tolua_endmodule(tolua_S); @@ -110239,150 +110137,6 @@ int lua_register_ax_base_FastTMXTiledMap(lua_State* tolua_S) return 1; } -int lua_ax_base_MotionStreak3D_reset(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_reset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_reset'", nullptr); - return 0; - } - cobj->reset(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:reset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_reset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak3D_setTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Texture2D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.MotionStreak3D:setTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setTexture'", nullptr); - return 0; - } - cobj->setTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak3D_getTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_getTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_getTexture'", nullptr); - return 0; - } - auto&& ret = cobj->getTexture(); - object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:getTexture",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_getTexture'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MotionStreak3D_tintWithColor(lua_State* tolua_S) { int argc = 0; @@ -110433,7 +110187,7 @@ int lua_ax_base_MotionStreak3D_tintWithColor(lua_State* tolua_S) return 0; } -int lua_ax_base_MotionStreak3D_getSweepAxis(lua_State* tolua_S) +int lua_ax_base_MotionStreak3D_reset(lua_State* tolua_S) { int argc = 0; ax::MotionStreak3D* cobj = nullptr; @@ -110453,7 +110207,7 @@ int lua_ax_base_MotionStreak3D_getSweepAxis(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_getSweepAxis'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_reset'", nullptr); return 0; } #endif @@ -110463,24 +110217,24 @@ int lua_ax_base_MotionStreak3D_getSweepAxis(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_getSweepAxis'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_reset'", nullptr); return 0; } - auto&& ret = cobj->getSweepAxis(); - vec3_to_luaval(tolua_S, ret); + cobj->reset(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:getSweepAxis",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:reset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_getSweepAxis'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_reset'.",&tolua_err); #endif return 0; } -int lua_ax_base_MotionStreak3D_setBlendFunc(lua_State* tolua_S) +int lua_ax_base_MotionStreak3D_getStroke(lua_State* tolua_S) { int argc = 0; ax::MotionStreak3D* cobj = nullptr; @@ -110500,7 +110254,54 @@ int lua_ax_base_MotionStreak3D_setBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_getStroke'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_getStroke'", nullptr); + return 0; + } + auto&& ret = cobj->getStroke(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:getStroke",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_getStroke'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak3D_setStroke(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setStroke'", nullptr); return 0; } #endif @@ -110508,24 +110309,71 @@ int lua_ax_base_MotionStreak3D_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::BlendFunc arg0; + double arg0; - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MotionStreak3D:setBlendFunc"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.MotionStreak3D:setStroke"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setStroke'", nullptr); return 0; } - cobj->setBlendFunc(arg0); + cobj->setStroke(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setBlendFunc",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setStroke",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setStroke'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_isStartingPositionInitialized'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_isStartingPositionInitialized'", nullptr); + return 0; + } + auto&& ret = cobj->isStartingPositionInitialized(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:isStartingPositionInitialized",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_isStartingPositionInitialized'.",&tolua_err); #endif return 0; @@ -110580,6 +110428,153 @@ int lua_ax_base_MotionStreak3D_setStartingPositionInitialized(lua_State* tolua_S return 0; } +int lua_ax_base_MotionStreak3D_getTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_getTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_getTexture'", nullptr); + return 0; + } + auto&& ret = cobj->getTexture(); + object_to_luaval(tolua_S, "ax.Texture2D",(ax::Texture2D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:getTexture",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_getTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak3D_setTexture(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Texture2D",&arg0, "ax.MotionStreak3D:setTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setTexture'", nullptr); + return 0; + } + cobj->setTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_base_MotionStreak3D_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::MotionStreak3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MotionStreak3D:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} int lua_ax_base_MotionStreak3D_getBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -110627,7 +110622,7 @@ int lua_ax_base_MotionStreak3D_getBlendFunc(lua_State* tolua_S) return 0; } -int lua_ax_base_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S) +int lua_ax_base_MotionStreak3D_setSweepAxis(lua_State* tolua_S) { int argc = 0; ax::MotionStreak3D* cobj = nullptr; @@ -110647,34 +110642,37 @@ int lua_ax_base_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_isStartingPositionInitialized'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setSweepAxis'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.MotionStreak3D:setSweepAxis"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_isStartingPositionInitialized'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setSweepAxis'", nullptr); return 0; } - auto&& ret = cobj->isStartingPositionInitialized(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setSweepAxis(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:isStartingPositionInitialized",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setSweepAxis",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_isStartingPositionInitialized'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setSweepAxis'.",&tolua_err); #endif return 0; } -int lua_ax_base_MotionStreak3D_getStroke(lua_State* tolua_S) +int lua_ax_base_MotionStreak3D_getSweepAxis(lua_State* tolua_S) { int argc = 0; ax::MotionStreak3D* cobj = nullptr; @@ -110694,7 +110692,7 @@ int lua_ax_base_MotionStreak3D_getStroke(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_getStroke'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_getSweepAxis'", nullptr); return 0; } #endif @@ -110704,19 +110702,19 @@ int lua_ax_base_MotionStreak3D_getStroke(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_getStroke'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_getSweepAxis'", nullptr); return 0; } - auto&& ret = cobj->getStroke(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getSweepAxis(); + vec3_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:getStroke",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:getSweepAxis",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_getStroke'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_getSweepAxis'.",&tolua_err); #endif return 0; @@ -110808,106 +110806,6 @@ int lua_ax_base_MotionStreak3D_initWithFade(lua_State* tolua_S) return 0; } -int lua_ax_base_MotionStreak3D_setSweepAxis(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setSweepAxis'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.MotionStreak3D:setSweepAxis"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setSweepAxis'", nullptr); - return 0; - } - cobj->setSweepAxis(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setSweepAxis",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setSweepAxis'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_MotionStreak3D_setStroke(lua_State* tolua_S) -{ - int argc = 0; - ax::MotionStreak3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_MotionStreak3D_setStroke'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.MotionStreak3D:setStroke"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_MotionStreak3D_setStroke'", nullptr); - return 0; - } - cobj->setStroke(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MotionStreak3D:setStroke",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_MotionStreak3D_setStroke'.",&tolua_err); -#endif - - return 0; -} int lua_ax_base_MotionStreak3D_create(lua_State* tolua_S) { int argc = 0; @@ -111030,19 +110928,19 @@ int lua_register_ax_base_MotionStreak3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MotionStreak3D"); tolua_function(tolua_S,"new",lua_ax_base_MotionStreak3D_constructor); - tolua_function(tolua_S,"reset",lua_ax_base_MotionStreak3D_reset); - tolua_function(tolua_S,"setTexture",lua_ax_base_MotionStreak3D_setTexture); - tolua_function(tolua_S,"getTexture",lua_ax_base_MotionStreak3D_getTexture); tolua_function(tolua_S,"tintWithColor",lua_ax_base_MotionStreak3D_tintWithColor); - tolua_function(tolua_S,"getSweepAxis",lua_ax_base_MotionStreak3D_getSweepAxis); - tolua_function(tolua_S,"setBlendFunc",lua_ax_base_MotionStreak3D_setBlendFunc); - tolua_function(tolua_S,"setStartingPositionInitialized",lua_ax_base_MotionStreak3D_setStartingPositionInitialized); - tolua_function(tolua_S,"getBlendFunc",lua_ax_base_MotionStreak3D_getBlendFunc); - tolua_function(tolua_S,"isStartingPositionInitialized",lua_ax_base_MotionStreak3D_isStartingPositionInitialized); + tolua_function(tolua_S,"reset",lua_ax_base_MotionStreak3D_reset); tolua_function(tolua_S,"getStroke",lua_ax_base_MotionStreak3D_getStroke); - tolua_function(tolua_S,"initWithFade",lua_ax_base_MotionStreak3D_initWithFade); - tolua_function(tolua_S,"setSweepAxis",lua_ax_base_MotionStreak3D_setSweepAxis); tolua_function(tolua_S,"setStroke",lua_ax_base_MotionStreak3D_setStroke); + tolua_function(tolua_S,"isStartingPositionInitialized",lua_ax_base_MotionStreak3D_isStartingPositionInitialized); + tolua_function(tolua_S,"setStartingPositionInitialized",lua_ax_base_MotionStreak3D_setStartingPositionInitialized); + tolua_function(tolua_S,"getTexture",lua_ax_base_MotionStreak3D_getTexture); + tolua_function(tolua_S,"setTexture",lua_ax_base_MotionStreak3D_setTexture); + tolua_function(tolua_S,"setBlendFunc",lua_ax_base_MotionStreak3D_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_base_MotionStreak3D_getBlendFunc); + tolua_function(tolua_S,"setSweepAxis",lua_ax_base_MotionStreak3D_setSweepAxis); + tolua_function(tolua_S,"getSweepAxis",lua_ax_base_MotionStreak3D_getSweepAxis); + tolua_function(tolua_S,"initWithFade",lua_ax_base_MotionStreak3D_initWithFade); tolua_function(tolua_S,"create", lua_ax_base_MotionStreak3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::MotionStreak3D).name(); // rtti is literal storage @@ -111254,276 +111152,276 @@ TOLUA_API int register_all_ax_base(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ax"); lua_register_ax_base_Ref(tolua_S); - lua_register_ax_base_Material(tolua_S); lua_register_ax_base_Console(tolua_S); + lua_register_ax_base_EventListener(tolua_S); + lua_register_ax_base_EventListenerCustom(tolua_S); + lua_register_ax_base_ShaderCache(tolua_S); + lua_register_ax_base_Texture2D(tolua_S); + lua_register_ax_base_Touch(tolua_S); + lua_register_ax_base_Event(tolua_S); + lua_register_ax_base_EventTouch(tolua_S); + lua_register_ax_base_EventKeyboard(tolua_S); + lua_register_ax_base_Component(tolua_S); lua_register_ax_base_Node(tolua_S); lua_register_ax_base_Scene(tolua_S); - lua_register_ax_base_TransitionScene(tolua_S); - lua_register_ax_base_TransitionEaseScene(tolua_S); - lua_register_ax_base_TransitionMoveInL(tolua_S); - lua_register_ax_base_TransitionMoveInB(tolua_S); - lua_register_ax_base_AtlasNode(tolua_S); - lua_register_ax_base_TileMapAtlas(tolua_S); - lua_register_ax_base_TransitionMoveInT(tolua_S); - lua_register_ax_base_TMXTilesetInfo(tolua_S); - lua_register_ax_base_TransitionMoveInR(tolua_S); + lua_register_ax_base_GLView(tolua_S); + lua_register_ax_base_Director(tolua_S); + lua_register_ax_base_Timer(tolua_S); + lua_register_ax_base_Scheduler(tolua_S); + lua_register_ax_base_AsyncTaskPool(tolua_S); lua_register_ax_base_Action(tolua_S); lua_register_ax_base_FiniteTimeAction(tolua_S); - lua_register_ax_base_ActionInstant(tolua_S); - lua_register_ax_base_Hide(tolua_S); - lua_register_ax_base_ParticleSystem(tolua_S); - lua_register_ax_base_ParticleSystemQuad(tolua_S); - lua_register_ax_base_ParticleSpiral(tolua_S); - lua_register_ax_base_GridBase(tolua_S); - lua_register_ax_base_AnimationCache(tolua_S); + lua_register_ax_base_Speed(tolua_S); + lua_register_ax_base_Follow(tolua_S); + lua_register_ax_base_Image(tolua_S); + lua_register_ax_base_PolygonInfo(tolua_S); + lua_register_ax_base_AutoPolygon(tolua_S); + lua_register_ax_base_SpriteFrame(tolua_S); + lua_register_ax_base_AnimationFrame(tolua_S); + lua_register_ax_base_Animation(tolua_S); lua_register_ax_base_ActionInterval(tolua_S); - lua_register_ax_base_ActionCamera(tolua_S); - lua_register_ax_base_ProgressFromTo(tolua_S); + lua_register_ax_base_Sequence(tolua_S); + lua_register_ax_base_Repeat(tolua_S); + lua_register_ax_base_RepeatForever(tolua_S); + lua_register_ax_base_Spawn(tolua_S); + lua_register_ax_base_RotateTo(tolua_S); + lua_register_ax_base_RotateBy(tolua_S); lua_register_ax_base_MoveBy(tolua_S); lua_register_ax_base_MoveTo(tolua_S); + lua_register_ax_base_SkewTo(tolua_S); + lua_register_ax_base_SkewBy(tolua_S); lua_register_ax_base_JumpBy(tolua_S); - lua_register_ax_base_EventListener(tolua_S); + lua_register_ax_base_JumpTo(tolua_S); + lua_register_ax_base_BezierBy(tolua_S); + lua_register_ax_base_BezierTo(tolua_S); + lua_register_ax_base_ScaleTo(tolua_S); + lua_register_ax_base_ScaleBy(tolua_S); + lua_register_ax_base_Blink(tolua_S); + lua_register_ax_base_FadeTo(tolua_S); + lua_register_ax_base_FadeIn(tolua_S); + lua_register_ax_base_FadeOut(tolua_S); + lua_register_ax_base_TintTo(tolua_S); + lua_register_ax_base_TintBy(tolua_S); + lua_register_ax_base_DelayTime(tolua_S); + lua_register_ax_base_Animate(tolua_S); + lua_register_ax_base_TargetedAction(tolua_S); + lua_register_ax_base_ActionFloat(tolua_S); + lua_register_ax_base_Properties(tolua_S); + lua_register_ax_base_UserDefault(tolua_S); + lua_register_ax_base_FileUtils(tolua_S); + lua_register_ax_base_EventAcceleration(tolua_S); + lua_register_ax_base_EventCustom(tolua_S); + lua_register_ax_base_EventDispatcher(tolua_S); + lua_register_ax_base_EventFocus(tolua_S); + lua_register_ax_base_EventListenerAcceleration(tolua_S); + lua_register_ax_base_EventListenerFocus(tolua_S); lua_register_ax_base_EventListenerKeyboard(tolua_S); + lua_register_ax_base_EventMouse(tolua_S); lua_register_ax_base_EventListenerMouse(tolua_S); - lua_register_ax_base_TransitionRotoZoom(tolua_S); - lua_register_ax_base_Event(tolua_S); + lua_register_ax_base_EventListenerController(tolua_S); + lua_register_ax_base_EventListenerTouchOneByOne(tolua_S); + lua_register_ax_base_EventListenerTouchAllAtOnce(tolua_S); lua_register_ax_base_EventController(tolua_S); - lua_register_ax_base_Director(tolua_S); - lua_register_ax_base_Scheduler(tolua_S); + lua_register_ax_base_ActionCamera(tolua_S); + lua_register_ax_base_OrbitCamera(tolua_S); + lua_register_ax_base_CardinalSplineTo(tolua_S); + lua_register_ax_base_CardinalSplineBy(tolua_S); + lua_register_ax_base_CatmullRomTo(tolua_S); + lua_register_ax_base_CatmullRomBy(tolua_S); lua_register_ax_base_ActionEase(tolua_S); - lua_register_ax_base_EaseElastic(tolua_S); - lua_register_ax_base_EaseElasticOut(tolua_S); - lua_register_ax_base_EaseQuadraticActionInOut(tolua_S); + lua_register_ax_base_EaseRateAction(tolua_S); + lua_register_ax_base_EaseExponentialIn(tolua_S); + lua_register_ax_base_EaseExponentialOut(tolua_S); + lua_register_ax_base_EaseExponentialInOut(tolua_S); + lua_register_ax_base_EaseSineIn(tolua_S); + lua_register_ax_base_EaseSineOut(tolua_S); + lua_register_ax_base_EaseSineInOut(tolua_S); + lua_register_ax_base_EaseBounce(tolua_S); + lua_register_ax_base_EaseBounceIn(tolua_S); + lua_register_ax_base_EaseBounceOut(tolua_S); + lua_register_ax_base_EaseBounceInOut(tolua_S); + lua_register_ax_base_EaseBackIn(tolua_S); lua_register_ax_base_EaseBackOut(tolua_S); - lua_register_ax_base_Texture2D(tolua_S); + lua_register_ax_base_EaseBackInOut(tolua_S); + lua_register_ax_base_EaseQuadraticActionIn(tolua_S); + lua_register_ax_base_EaseQuadraticActionOut(tolua_S); + lua_register_ax_base_EaseQuadraticActionInOut(tolua_S); + lua_register_ax_base_EaseQuarticActionIn(tolua_S); + lua_register_ax_base_EaseQuarticActionOut(tolua_S); + lua_register_ax_base_EaseQuarticActionInOut(tolua_S); + lua_register_ax_base_EaseQuinticActionIn(tolua_S); + lua_register_ax_base_EaseQuinticActionOut(tolua_S); + lua_register_ax_base_EaseQuinticActionInOut(tolua_S); + lua_register_ax_base_EaseCircleActionIn(tolua_S); + lua_register_ax_base_EaseCircleActionOut(tolua_S); + lua_register_ax_base_EaseCircleActionInOut(tolua_S); + lua_register_ax_base_EaseCubicActionIn(tolua_S); + lua_register_ax_base_EaseCubicActionOut(tolua_S); + lua_register_ax_base_EaseCubicActionInOut(tolua_S); + lua_register_ax_base_EaseIn(tolua_S); + lua_register_ax_base_EaseOut(tolua_S); + lua_register_ax_base_EaseInOut(tolua_S); + lua_register_ax_base_EaseElastic(tolua_S); + lua_register_ax_base_EaseElasticIn(tolua_S); + lua_register_ax_base_EaseElasticOut(tolua_S); + lua_register_ax_base_EaseElasticInOut(tolua_S); + lua_register_ax_base_EaseBezierAction(tolua_S); + lua_register_ax_base_ActionInstant(tolua_S); + lua_register_ax_base_Show(tolua_S); + lua_register_ax_base_Hide(tolua_S); + lua_register_ax_base_ToggleVisibility(tolua_S); + lua_register_ax_base_RemoveSelf(tolua_S); + lua_register_ax_base_FlipX(tolua_S); + lua_register_ax_base_FlipY(tolua_S); + lua_register_ax_base_Place(tolua_S); + lua_register_ax_base_CallFunc(tolua_S); + lua_register_ax_base_GridAction(tolua_S); + lua_register_ax_base_Grid3DAction(tolua_S); + lua_register_ax_base_TiledGrid3DAction(tolua_S); + lua_register_ax_base_StopGrid(tolua_S); + lua_register_ax_base_ReuseGrid(tolua_S); + lua_register_ax_base_Waves3D(tolua_S); + lua_register_ax_base_FlipX3D(tolua_S); + lua_register_ax_base_FlipY3D(tolua_S); + lua_register_ax_base_Lens3D(tolua_S); + lua_register_ax_base_Ripple3D(tolua_S); + lua_register_ax_base_Shaky3D(tolua_S); + lua_register_ax_base_Liquid(tolua_S); + lua_register_ax_base_Waves(tolua_S); + lua_register_ax_base_Twirl(tolua_S); + lua_register_ax_base_ActionManager(tolua_S); + lua_register_ax_base_PageTurn3D(tolua_S); + lua_register_ax_base_ProgressTo(tolua_S); + lua_register_ax_base_ProgressFromTo(tolua_S); + lua_register_ax_base_ShakyTiles3D(tolua_S); + lua_register_ax_base_ShatteredTiles3D(tolua_S); + lua_register_ax_base_ShuffleTiles(tolua_S); + lua_register_ax_base_FadeOutTRTiles(tolua_S); + lua_register_ax_base_FadeOutBLTiles(tolua_S); + lua_register_ax_base_FadeOutUpTiles(tolua_S); + lua_register_ax_base_FadeOutDownTiles(tolua_S); + lua_register_ax_base_TurnOffTiles(tolua_S); + lua_register_ax_base_WavesTiles3D(tolua_S); + lua_register_ax_base_JumpTiles3D(tolua_S); + lua_register_ax_base_SplitRows(tolua_S); + lua_register_ax_base_SplitCols(tolua_S); + lua_register_ax_base_ActionTween(tolua_S); + lua_register_ax_base_AtlasNode(tolua_S); + lua_register_ax_base_ClippingNode(tolua_S); + lua_register_ax_base_ClippingRectangleNode(tolua_S); + lua_register_ax_base_DrawNode(tolua_S); + lua_register_ax_base_Label(tolua_S); + lua_register_ax_base_LabelAtlas(tolua_S); + lua_register_ax_base_Sprite(tolua_S); + lua_register_ax_base_Layer(tolua_S); + lua_register_ax_base_LayerColor(tolua_S); + lua_register_ax_base_LayerGradient(tolua_S); + lua_register_ax_base_LayerRadialGradient(tolua_S); + lua_register_ax_base_LayerMultiplex(tolua_S); + lua_register_ax_base_MenuItem(tolua_S); + lua_register_ax_base_MenuItemLabel(tolua_S); + lua_register_ax_base_MenuItemAtlasFont(tolua_S); + lua_register_ax_base_MenuItemFont(tolua_S); + lua_register_ax_base_MenuItemSprite(tolua_S); + lua_register_ax_base_MenuItemImage(tolua_S); + lua_register_ax_base_MenuItemToggle(tolua_S); + lua_register_ax_base_Menu(tolua_S); + lua_register_ax_base_MotionStreak(tolua_S); + lua_register_ax_base_NodeGrid(tolua_S); + lua_register_ax_base_ParticleBatchNode(tolua_S); + lua_register_ax_base_SpriteSheet(tolua_S); + lua_register_ax_base_SpriteFrameCache(tolua_S); + lua_register_ax_base_ParticleData(tolua_S); + lua_register_ax_base_ParticleEmissionMaskCache(tolua_S); + lua_register_ax_base_ParticleSystem(tolua_S); + lua_register_ax_base_ParticleSystemQuad(tolua_S); + lua_register_ax_base_ParticleFire(tolua_S); + lua_register_ax_base_ParticleFireworks(tolua_S); + lua_register_ax_base_ParticleSun(tolua_S); + lua_register_ax_base_ParticleGalaxy(tolua_S); + lua_register_ax_base_ParticleFlower(tolua_S); + lua_register_ax_base_ParticleMeteor(tolua_S); + lua_register_ax_base_ParticleSpiral(tolua_S); + lua_register_ax_base_ParticleExplosion(tolua_S); + lua_register_ax_base_ParticleSmoke(tolua_S); + lua_register_ax_base_ParticleSnow(tolua_S); + lua_register_ax_base_ParticleRain(tolua_S); + lua_register_ax_base_ProgressTimer(tolua_S); + lua_register_ax_base_ProtectedNode(tolua_S); + lua_register_ax_base_RenderTexture(tolua_S); + lua_register_ax_base_TransitionEaseScene(tolua_S); + lua_register_ax_base_TransitionScene(tolua_S); lua_register_ax_base_TransitionSceneOriented(tolua_S); + lua_register_ax_base_TransitionRotoZoom(tolua_S); + lua_register_ax_base_TransitionJumpZoom(tolua_S); + lua_register_ax_base_TransitionMoveInL(tolua_S); + lua_register_ax_base_TransitionMoveInR(tolua_S); + lua_register_ax_base_TransitionMoveInT(tolua_S); + lua_register_ax_base_TransitionMoveInB(tolua_S); + lua_register_ax_base_TransitionSlideInL(tolua_S); + lua_register_ax_base_TransitionSlideInR(tolua_S); + lua_register_ax_base_TransitionSlideInB(tolua_S); + lua_register_ax_base_TransitionSlideInT(tolua_S); + lua_register_ax_base_TransitionShrinkGrow(tolua_S); lua_register_ax_base_TransitionFlipX(tolua_S); + lua_register_ax_base_TransitionFlipY(tolua_S); + lua_register_ax_base_TransitionFlipAngular(tolua_S); + lua_register_ax_base_TransitionZoomFlipX(tolua_S); + lua_register_ax_base_TransitionZoomFlipY(tolua_S); + lua_register_ax_base_TransitionZoomFlipAngular(tolua_S); + lua_register_ax_base_TransitionFade(tolua_S); + lua_register_ax_base_TransitionCrossFade(tolua_S); + lua_register_ax_base_TransitionTurnOffTiles(tolua_S); + lua_register_ax_base_TransitionSplitCols(tolua_S); + lua_register_ax_base_TransitionSplitRows(tolua_S); + lua_register_ax_base_TransitionFadeTR(tolua_S); + lua_register_ax_base_TransitionFadeBL(tolua_S); + lua_register_ax_base_TransitionFadeUp(tolua_S); + lua_register_ax_base_TransitionFadeDown(tolua_S); + lua_register_ax_base_TransitionPageTurn(tolua_S); + lua_register_ax_base_TransitionProgress(tolua_S); + lua_register_ax_base_TransitionProgressRadialCCW(tolua_S); + lua_register_ax_base_TransitionProgressRadialCW(tolua_S); + lua_register_ax_base_TransitionProgressHorizontal(tolua_S); + lua_register_ax_base_TransitionProgressVertical(tolua_S); + lua_register_ax_base_TransitionProgressInOut(tolua_S); + lua_register_ax_base_TransitionProgressOutIn(tolua_S); + lua_register_ax_base_Camera(tolua_S); lua_register_ax_base_CameraBackgroundBrush(tolua_S); lua_register_ax_base_CameraBackgroundDepthBrush(tolua_S); lua_register_ax_base_CameraBackgroundColorBrush(tolua_S); - lua_register_ax_base_GridAction(tolua_S); - lua_register_ax_base_TiledGrid3DAction(tolua_S); - lua_register_ax_base_FadeOutTRTiles(tolua_S); - lua_register_ax_base_FadeOutUpTiles(tolua_S); - lua_register_ax_base_FadeOutDownTiles(tolua_S); - lua_register_ax_base_StopGrid(tolua_S); - lua_register_ax_base_Technique(tolua_S); - lua_register_ax_base_ParticleEmissionMaskCache(tolua_S); - lua_register_ax_base_SkewTo(tolua_S); - lua_register_ax_base_SkewBy(tolua_S); - lua_register_ax_base_EaseQuadraticActionOut(tolua_S); - lua_register_ax_base_TransitionProgress(tolua_S); - lua_register_ax_base_TransitionProgressVertical(tolua_S); - lua_register_ax_base_Layer(tolua_S); - lua_register_ax_base_Grid3DAction(tolua_S); - lua_register_ax_base_BaseLight(tolua_S); - lua_register_ax_base_SpotLight(tolua_S); - lua_register_ax_base_FadeTo(tolua_S); - lua_register_ax_base_FadeIn(tolua_S); - lua_register_ax_base_DirectionLight(tolua_S); - lua_register_ax_base_EventListenerCustom(tolua_S); - lua_register_ax_base_FlipX3D(tolua_S); - lua_register_ax_base_FlipY3D(tolua_S); - lua_register_ax_base_EaseSineInOut(tolua_S); - lua_register_ax_base_TransitionFlipAngular(tolua_S); - lua_register_ax_base_EaseElasticInOut(tolua_S); - lua_register_ax_base_EaseBounce(tolua_S); - lua_register_ax_base_Show(tolua_S); - lua_register_ax_base_FadeOut(tolua_S); - lua_register_ax_base_CallFunc(tolua_S); - lua_register_ax_base_EventMouse(tolua_S); - lua_register_ax_base_GLView(tolua_S); - lua_register_ax_base_EaseBezierAction(tolua_S); - lua_register_ax_base_ParticleFireworks(tolua_S); - lua_register_ax_base_MenuItem(tolua_S); - lua_register_ax_base_MenuItemSprite(tolua_S); - lua_register_ax_base_MenuItemImage(tolua_S); - lua_register_ax_base_AutoPolygon(tolua_S); - lua_register_ax_base_ParticleSmoke(tolua_S); - lua_register_ax_base_TransitionZoomFlipAngular(tolua_S); - lua_register_ax_base_EaseRateAction(tolua_S); - lua_register_ax_base_EaseIn(tolua_S); - lua_register_ax_base_EaseExponentialInOut(tolua_S); - lua_register_ax_base_CardinalSplineTo(tolua_S); - lua_register_ax_base_CatmullRomTo(tolua_S); - lua_register_ax_base_Waves3D(tolua_S); - lua_register_ax_base_EaseExponentialOut(tolua_S); - lua_register_ax_base_Label(tolua_S); - lua_register_ax_base_Application(tolua_S); - lua_register_ax_base_DelayTime(tolua_S); - lua_register_ax_base_LabelAtlas(tolua_S); - lua_register_ax_base_EaseCircleActionOut(tolua_S); - lua_register_ax_base_AsyncTaskPool(tolua_S); - lua_register_ax_base_ParticleSnow(tolua_S); - lua_register_ax_base_EaseElasticIn(tolua_S); - lua_register_ax_base_EaseCircleActionInOut(tolua_S); - lua_register_ax_base_TransitionFadeTR(tolua_S); - lua_register_ax_base_EaseQuarticActionOut(tolua_S); - lua_register_ax_base_EventAcceleration(tolua_S); - lua_register_ax_base_EaseCubicActionIn(tolua_S); - lua_register_ax_base_TextureCache(tolua_S); - lua_register_ax_base_TMXTileAnimManager(tolua_S); - lua_register_ax_base_SpriteBatchNode(tolua_S); - lua_register_ax_base_ActionTween(tolua_S); - lua_register_ax_base_TransitionFadeDown(tolua_S); - lua_register_ax_base_TransitionPageTurn(tolua_S); - lua_register_ax_base_ParticleSun(tolua_S); - lua_register_ax_base_TransitionProgressHorizontal(tolua_S); - lua_register_ax_base_ParticleFire(tolua_S); - lua_register_ax_base_FlipX(tolua_S); - lua_register_ax_base_FlipY(tolua_S); - lua_register_ax_base_EventKeyboard(tolua_S); - lua_register_ax_base_TransitionSplitCols(tolua_S); - lua_register_ax_base_Timer(tolua_S); - lua_register_ax_base_RepeatForever(tolua_S); - lua_register_ax_base_Place(tolua_S); - lua_register_ax_base_EventListenerAcceleration(tolua_S); - lua_register_ax_base_TiledGrid3D(tolua_S); - lua_register_ax_base_EaseBounceOut(tolua_S); - lua_register_ax_base_RenderTexture(tolua_S); - lua_register_ax_base_TintBy(tolua_S); - lua_register_ax_base_TransitionShrinkGrow(tolua_S); - lua_register_ax_base_ClippingNode(tolua_S); - lua_register_ax_base_ActionFloat(tolua_S); - lua_register_ax_base_ParticleFlower(tolua_S); - lua_register_ax_base_EaseCircleActionIn(tolua_S); - lua_register_ax_base_Image(tolua_S); - lua_register_ax_base_LayerMultiplex(tolua_S); - lua_register_ax_base_Blink(tolua_S); - lua_register_ax_base_ShaderCache(tolua_S); - lua_register_ax_base_JumpTo(tolua_S); - lua_register_ax_base_ParticleExplosion(tolua_S); - lua_register_ax_base_TransitionJumpZoom(tolua_S); - lua_register_ax_base_Pass(tolua_S); - lua_register_ax_base_Touch(tolua_S); - lua_register_ax_base_CardinalSplineBy(tolua_S); - lua_register_ax_base_CatmullRomBy(tolua_S); - lua_register_ax_base_NodeGrid(tolua_S); - lua_register_ax_base_TMXLayerInfo(tolua_S); - lua_register_ax_base_EaseSineIn(tolua_S); - lua_register_ax_base_EaseBounceIn(tolua_S); - lua_register_ax_base_Camera(tolua_S); - lua_register_ax_base_TMXObjectGroup(tolua_S); - lua_register_ax_base_FastTMXTiledMap(tolua_S); - lua_register_ax_base_ParticleGalaxy(tolua_S); - lua_register_ax_base_Twirl(tolua_S); - lua_register_ax_base_MenuItemLabel(tolua_S); - lua_register_ax_base_EaseQuinticActionIn(tolua_S); - lua_register_ax_base_Sprite(tolua_S); - lua_register_ax_base_LayerColor(tolua_S); - lua_register_ax_base_FadeOutBLTiles(tolua_S); - lua_register_ax_base_LayerGradient(tolua_S); - lua_register_ax_base_EventListenerTouchAllAtOnce(tolua_S); - lua_register_ax_base_GLViewImpl(tolua_S); - lua_register_ax_base_ToggleVisibility(tolua_S); - lua_register_ax_base_Repeat(tolua_S); - lua_register_ax_base_TransitionFlipY(tolua_S); - lua_register_ax_base_TurnOffTiles(tolua_S); - lua_register_ax_base_TintTo(tolua_S); - lua_register_ax_base_EaseBackInOut(tolua_S); - lua_register_ax_base_TransitionFadeBL(tolua_S); - lua_register_ax_base_TargetedAction(tolua_S); - lua_register_ax_base_DrawNode(tolua_S); - lua_register_ax_base_TransitionTurnOffTiles(tolua_S); - lua_register_ax_base_RotateTo(tolua_S); - lua_register_ax_base_TransitionSplitRows(tolua_S); - lua_register_ax_base_Device(tolua_S); - lua_register_ax_base_TransitionProgressRadialCCW(tolua_S); - lua_register_ax_base_ScaleTo(tolua_S); - lua_register_ax_base_RenderState(tolua_S); - lua_register_ax_base_Properties(tolua_S); - lua_register_ax_base_BezierBy(tolua_S); - lua_register_ax_base_BezierTo(tolua_S); - lua_register_ax_base_SpriteSheet(tolua_S); - lua_register_ax_base_ParticleMeteor(tolua_S); - lua_register_ax_base_SpriteFrame(tolua_S); - lua_register_ax_base_Liquid(tolua_S); - lua_register_ax_base_UserDefault(tolua_S); - lua_register_ax_base_FastTMXLayer(tolua_S); - lua_register_ax_base_TransitionZoomFlipX(tolua_S); - lua_register_ax_base_EventFocus(tolua_S); - lua_register_ax_base_TransitionFade(tolua_S); - lua_register_ax_base_EaseQuinticActionInOut(tolua_S); - lua_register_ax_base_SpriteFrameCache(tolua_S); - lua_register_ax_base_PointLight(tolua_S); - lua_register_ax_base_TransitionCrossFade(tolua_S); - lua_register_ax_base_Ripple3D(tolua_S); - lua_register_ax_base_Lens3D(tolua_S); - lua_register_ax_base_EventListenerFocus(tolua_S); - lua_register_ax_base_Spawn(tolua_S); - lua_register_ax_base_EaseQuarticActionInOut(tolua_S); - lua_register_ax_base_ShakyTiles3D(tolua_S); - lua_register_ax_base_PageTurn3D(tolua_S); - lua_register_ax_base_PolygonInfo(tolua_S); - lua_register_ax_base_Grid3D(tolua_S); - lua_register_ax_base_EventListenerController(tolua_S); - lua_register_ax_base_TransitionProgressInOut(tolua_S); - lua_register_ax_base_EaseCubicActionInOut(tolua_S); - lua_register_ax_base_ParticleData(tolua_S); - lua_register_ax_base_EaseBackIn(tolua_S); - lua_register_ax_base_SplitRows(tolua_S); - lua_register_ax_base_Follow(tolua_S); - lua_register_ax_base_Animate(tolua_S); - lua_register_ax_base_ShuffleTiles(tolua_S); lua_register_ax_base_CameraBackgroundSkyBoxBrush(tolua_S); - lua_register_ax_base_ProgressTimer(tolua_S); - lua_register_ax_base_EaseQuarticActionIn(tolua_S); - lua_register_ax_base_Menu(tolua_S); - lua_register_ax_base_EaseInOut(tolua_S); - lua_register_ax_base_TransitionZoomFlipY(tolua_S); - lua_register_ax_base_ScaleBy(tolua_S); - lua_register_ax_base_EventTouch(tolua_S); - lua_register_ax_base_Animation(tolua_S); - lua_register_ax_base_TMXMapInfo(tolua_S); - lua_register_ax_base_EaseExponentialIn(tolua_S); - lua_register_ax_base_ReuseGrid(tolua_S); - lua_register_ax_base_EaseQuinticActionOut(tolua_S); - lua_register_ax_base_EventDispatcher(tolua_S); - lua_register_ax_base_MenuItemAtlasFont(tolua_S); - lua_register_ax_base_ActionManager(tolua_S); - lua_register_ax_base_OrbitCamera(tolua_S); - lua_register_ax_base_ClippingRectangleNode(tolua_S); - lua_register_ax_base_EventCustom(tolua_S); - lua_register_ax_base_ParticleBatchNode(tolua_S); - lua_register_ax_base_Component(tolua_S); - lua_register_ax_base_TMXTileAnimTask(tolua_S); - lua_register_ax_base_EaseCubicActionOut(tolua_S); - lua_register_ax_base_EventListenerTouchOneByOne(tolua_S); - lua_register_ax_base_Renderer(tolua_S); - lua_register_ax_base_ParticleRain(tolua_S); - lua_register_ax_base_Waves(tolua_S); - lua_register_ax_base_ComponentLua(tolua_S); - lua_register_ax_base_MotionStreak3D(tolua_S); - lua_register_ax_base_EaseOut(tolua_S); - lua_register_ax_base_TransitionSlideInL(tolua_S); - lua_register_ax_base_MenuItemFont(tolua_S); - lua_register_ax_base_TransitionFadeUp(tolua_S); - lua_register_ax_base_LayerRadialGradient(tolua_S); - lua_register_ax_base_EaseSineOut(tolua_S); - lua_register_ax_base_JumpTiles3D(tolua_S); - lua_register_ax_base_MenuItemToggle(tolua_S); - lua_register_ax_base_RemoveSelf(tolua_S); - lua_register_ax_base_SplitCols(tolua_S); - lua_register_ax_base_ProtectedNode(tolua_S); - lua_register_ax_base_MotionStreak(tolua_S); - lua_register_ax_base_RotateBy(tolua_S); - lua_register_ax_base_FileUtils(tolua_S); - lua_register_ax_base_TransitionSlideInT(tolua_S); - lua_register_ax_base_ProgressTo(tolua_S); - lua_register_ax_base_TransitionProgressOutIn(tolua_S); - lua_register_ax_base_AnimationFrame(tolua_S); - lua_register_ax_base_Sequence(tolua_S); - lua_register_ax_base_Shaky3D(tolua_S); - lua_register_ax_base_TransitionProgressRadialCW(tolua_S); - lua_register_ax_base_EaseBounceInOut(tolua_S); - lua_register_ax_base_TransitionSlideInR(tolua_S); + lua_register_ax_base_GridBase(tolua_S); + lua_register_ax_base_Grid3D(tolua_S); + lua_register_ax_base_TiledGrid3D(tolua_S); + lua_register_ax_base_BaseLight(tolua_S); + lua_register_ax_base_DirectionLight(tolua_S); + lua_register_ax_base_PointLight(tolua_S); + lua_register_ax_base_SpotLight(tolua_S); lua_register_ax_base_AmbientLight(tolua_S); + lua_register_ax_base_RenderState(tolua_S); + lua_register_ax_base_Technique(tolua_S); + lua_register_ax_base_Material(tolua_S); + lua_register_ax_base_Pass(tolua_S); + lua_register_ax_base_Renderer(tolua_S); + lua_register_ax_base_TextureCache(tolua_S); + lua_register_ax_base_Device(tolua_S); + lua_register_ax_base_Application(tolua_S); + lua_register_ax_base_GLViewImpl(tolua_S); + lua_register_ax_base_AnimationCache(tolua_S); + lua_register_ax_base_SpriteBatchNode(tolua_S); lua_register_ax_base_ParallaxNode(tolua_S); - lua_register_ax_base_EaseQuadraticActionIn(tolua_S); - lua_register_ax_base_WavesTiles3D(tolua_S); - lua_register_ax_base_TransitionSlideInB(tolua_S); - lua_register_ax_base_Speed(tolua_S); - lua_register_ax_base_ShatteredTiles3D(tolua_S); + lua_register_ax_base_TMXObjectGroup(tolua_S); + lua_register_ax_base_TMXLayerInfo(tolua_S); + lua_register_ax_base_TMXTilesetInfo(tolua_S); + lua_register_ax_base_TMXMapInfo(tolua_S); + lua_register_ax_base_TileMapAtlas(tolua_S); + lua_register_ax_base_FastTMXLayer(tolua_S); + lua_register_ax_base_TMXTileAnimTask(tolua_S); + lua_register_ax_base_TMXTileAnimManager(tolua_S); + lua_register_ax_base_FastTMXTiledMap(tolua_S); + lua_register_ax_base_MotionStreak3D(tolua_S); + lua_register_ax_base_ComponentLua(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp b/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp index 804aa7ac67..d3a3a255dd 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp +++ b/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp @@ -2407,8 +2407,6 @@ int register_all_ax_base(lua_State* tolua_S); - - diff --git a/extensions/scripting/lua-bindings/auto/axlua_controller_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_controller_auto.cpp index a9fff7fc0a..f6080ad5ff 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_controller_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_controller_auto.cpp @@ -4,59 +4,6 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_S) -{ - int argc = 0; - ax::Controller* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Controller*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - bool arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:receiveExternalKeyEvent"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Controller:receiveExternalKeyEvent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr); - return 0; - } - cobj->receiveExternalKeyEvent(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:receiveExternalKeyEvent",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'.",&tolua_err); -#endif - - return 0; -} int lua_ax_controller_Controller_getDeviceName(lua_State* tolua_S) { int argc = 0; @@ -104,6 +51,53 @@ int lua_ax_controller_Controller_getDeviceName(lua_State* tolua_S) return 0; } +int lua_ax_controller_Controller_getDeviceId(lua_State* tolua_S) +{ + int argc = 0; + ax::Controller* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Controller*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_getDeviceId'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getDeviceId'", nullptr); + return 0; + } + auto&& ret = cobj->getDeviceId(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:getDeviceId",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getDeviceId'.",&tolua_err); +#endif + + return 0; +} int lua_ax_controller_Controller_isConnected(lua_State* tolua_S) { int argc = 0; @@ -151,7 +145,7 @@ int lua_ax_controller_Controller_isConnected(lua_State* tolua_S) return 0; } -int lua_ax_controller_Controller_getDeviceId(lua_State* tolua_S) +int lua_ax_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_S) { int argc = 0; ax::Controller* cobj = nullptr; @@ -171,29 +165,35 @@ int lua_ax_controller_Controller_getDeviceId(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_getDeviceId'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + int arg0; + bool arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:receiveExternalKeyEvent"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Controller:receiveExternalKeyEvent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getDeviceId'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr); return 0; } - auto&& ret = cobj->getDeviceId(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->receiveExternalKeyEvent(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:getDeviceId",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:receiveExternalKeyEvent",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getDeviceId'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'.",&tolua_err); #endif return 0; @@ -295,6 +295,78 @@ int lua_ax_controller_Controller_getTag(lua_State* tolua_S) return 0; } +int lua_ax_controller_Controller_getControllerByTag(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByTag'", nullptr); + return 0; + } + auto&& ret = ax::Controller::getControllerByTag(arg0); + object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByTag",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByTag'.",&tolua_err); +#endif + return 0; +} +int lua_ax_controller_Controller_getControllerByDeviceId(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByDeviceId"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByDeviceId'", nullptr); + return 0; + } + auto&& ret = ax::Controller::getControllerByDeviceId(arg0); + object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByDeviceId",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByDeviceId'.",&tolua_err); +#endif + return 0; +} int lua_ax_controller_Controller_startDiscoveryController(lua_State* tolua_S) { int argc = 0; @@ -363,78 +435,6 @@ int lua_ax_controller_Controller_stopDiscoveryController(lua_State* tolua_S) #endif return 0; } -int lua_ax_controller_Controller_getControllerByDeviceId(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByDeviceId"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByDeviceId'", nullptr); - return 0; - } - auto&& ret = ax::Controller::getControllerByDeviceId(arg0); - object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByDeviceId",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByDeviceId'.",&tolua_err); -#endif - return 0; -} -int lua_ax_controller_Controller_getControllerByTag(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByTag'", nullptr); - return 0; - } - auto&& ret = ax::Controller::getControllerByTag(arg0); - object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByTag",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByTag'.",&tolua_err); -#endif - return 0; -} static int lua_ax_controller_Controller_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Controller)"); @@ -447,16 +447,16 @@ int lua_register_ax_controller_Controller(lua_State* tolua_S) tolua_cclass(tolua_S,"Controller","ax.Controller","",nullptr); tolua_beginmodule(tolua_S,"Controller"); - tolua_function(tolua_S,"receiveExternalKeyEvent",lua_ax_controller_Controller_receiveExternalKeyEvent); tolua_function(tolua_S,"getDeviceName",lua_ax_controller_Controller_getDeviceName); - tolua_function(tolua_S,"isConnected",lua_ax_controller_Controller_isConnected); tolua_function(tolua_S,"getDeviceId",lua_ax_controller_Controller_getDeviceId); + tolua_function(tolua_S,"isConnected",lua_ax_controller_Controller_isConnected); + tolua_function(tolua_S,"receiveExternalKeyEvent",lua_ax_controller_Controller_receiveExternalKeyEvent); tolua_function(tolua_S,"setTag",lua_ax_controller_Controller_setTag); tolua_function(tolua_S,"getTag",lua_ax_controller_Controller_getTag); + tolua_function(tolua_S,"getControllerByTag", lua_ax_controller_Controller_getControllerByTag); + tolua_function(tolua_S,"getControllerByDeviceId", lua_ax_controller_Controller_getControllerByDeviceId); tolua_function(tolua_S,"startDiscoveryController", lua_ax_controller_Controller_startDiscoveryController); tolua_function(tolua_S,"stopDiscoveryController", lua_ax_controller_Controller_stopDiscoveryController); - tolua_function(tolua_S,"getControllerByDeviceId", lua_ax_controller_Controller_getControllerByDeviceId); - tolua_function(tolua_S,"getControllerByTag", lua_ax_controller_Controller_getControllerByTag); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Controller).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Controller"; @@ -511,6 +511,150 @@ int lua_ax_controller_EventController_getControllerEventType(lua_State* tolua_S) return 0; } +int lua_ax_controller_EventController_getController(lua_State* tolua_S) +{ + int argc = 0; + ax::EventController* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getController'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getController'", nullptr); + return 0; + } + auto&& ret = cobj->getController(); + object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getController",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getController'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_controller_EventController_getKeyCode(lua_State* tolua_S) +{ + int argc = 0; + ax::EventController* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getKeyCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getKeyCode'", nullptr); + return 0; + } + auto&& ret = cobj->getKeyCode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getKeyCode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getKeyCode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_controller_EventController_setKeyCode(lua_State* tolua_S) +{ + int argc = 0; + ax::EventController* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_setKeyCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventController:setKeyCode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_setKeyCode'", nullptr); + return 0; + } + cobj->setKeyCode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:setKeyCode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_setKeyCode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_controller_EventController_setConnectStatus(lua_State* tolua_S) { int argc = 0; @@ -608,150 +752,6 @@ int lua_ax_controller_EventController_isConnected(lua_State* tolua_S) return 0; } -int lua_ax_controller_EventController_setKeyCode(lua_State* tolua_S) -{ - int argc = 0; - ax::EventController* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_setKeyCode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventController:setKeyCode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_setKeyCode'", nullptr); - return 0; - } - cobj->setKeyCode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:setKeyCode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_setKeyCode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_controller_EventController_getController(lua_State* tolua_S) -{ - int argc = 0; - ax::EventController* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getController'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getController'", nullptr); - return 0; - } - auto&& ret = cobj->getController(); - object_to_luaval(tolua_S, "ax.Controller",(ax::Controller*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getController",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getController'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_controller_EventController_getKeyCode(lua_State* tolua_S) -{ - int argc = 0; - ax::EventController* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getKeyCode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getKeyCode'", nullptr); - return 0; - } - auto&& ret = cobj->getKeyCode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getKeyCode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getKeyCode'.",&tolua_err); -#endif - - return 0; -} int lua_ax_controller_EventController_constructor(lua_State* tolua_S) { int argc = 0; @@ -832,11 +832,11 @@ int lua_register_ax_controller_EventController(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventController"); tolua_function(tolua_S,"new",lua_ax_controller_EventController_constructor); tolua_function(tolua_S,"getControllerEventType",lua_ax_controller_EventController_getControllerEventType); - tolua_function(tolua_S,"setConnectStatus",lua_ax_controller_EventController_setConnectStatus); - tolua_function(tolua_S,"isConnected",lua_ax_controller_EventController_isConnected); - tolua_function(tolua_S,"setKeyCode",lua_ax_controller_EventController_setKeyCode); tolua_function(tolua_S,"getController",lua_ax_controller_EventController_getController); tolua_function(tolua_S,"getKeyCode",lua_ax_controller_EventController_getKeyCode); + tolua_function(tolua_S,"setKeyCode",lua_ax_controller_EventController_setKeyCode); + tolua_function(tolua_S,"setConnectStatus",lua_ax_controller_EventController_setConnectStatus); + tolua_function(tolua_S,"isConnected",lua_ax_controller_EventController_isConnected); tolua_endmodule(tolua_S); auto typeName = typeid(ax::EventController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EventController"; @@ -904,9 +904,9 @@ TOLUA_API int register_all_ax_controller(lua_State* tolua_S) tolua_module(tolua_S,"ax",0); tolua_beginmodule(tolua_S,"ax"); - lua_register_ax_controller_EventListenerController(tolua_S); lua_register_ax_controller_Controller(tolua_S); lua_register_ax_controller_EventController(tolua_S); + lua_register_ax_controller_EventListenerController(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_csloader_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_csloader_auto.cpp index 8ac34e57c4..86c162d6fb 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_csloader_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_csloader_auto.cpp @@ -3,6 +3,53 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" +int lua_ax_csloader_CSLoader_init(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_init'", nullptr); + return 0; + } + cobj->init(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:init",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S) { int argc = 0; @@ -53,56 +100,6 @@ int lua_ax_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S) return 0; } -int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.CSLoader:createNodeWithFlatBuffersFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr); - return 0; - } - auto&& ret = cobj->createNodeWithFlatBuffersFile(arg0); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:createNodeWithFlatBuffersFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'.",&tolua_err); -#endif - - return 0; -} int lua_ax_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S) { int argc = 0; @@ -153,6 +150,300 @@ int lua_ax_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S) return 0; } +int lua_ax_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.CSLoader:loadNodeWithContent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", nullptr); + return 0; + } + auto&& ret = cobj->loadNodeWithContent(arg0); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:loadNodeWithContent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.CSLoader:setRecordJsonPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr); + return 0; + } + cobj->setRecordJsonPath(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setRecordJsonPath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr); + return 0; + } + auto&& ret = cobj->isRecordJsonPath(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:isRecordJsonPath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_csloader_CSLoader_setJsonPath(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ax.CSLoader:setJsonPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr); + return 0; + } + cobj->setJsonPath(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setJsonPath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_csloader_CSLoader_getJsonPath(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr); + return 0; + } + auto&& ret = cobj->getJsonPath(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:getJsonPath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolua_S) +{ + int argc = 0; + ax::CSLoader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.CSLoader:createNodeWithFlatBuffersFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr); + return 0; + } + auto&& ret = cobj->createNodeWithFlatBuffersFile(arg0); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:createNodeWithFlatBuffersFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'.",&tolua_err); +#endif + + return 0; +} int lua_ax_csloader_CSLoader_bindCallback(lua_State* tolua_S) { int argc = 0; @@ -212,297 +503,6 @@ int lua_ax_csloader_CSLoader_bindCallback(lua_State* tolua_S) return 0; } -int lua_ax_csloader_CSLoader_setJsonPath(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ax.CSLoader:setJsonPath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr); - return 0; - } - cobj->setJsonPath(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setJsonPath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setJsonPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_csloader_CSLoader_init(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_init'", nullptr); - return 0; - } - cobj->init(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.CSLoader:loadNodeWithContent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", nullptr); - return 0; - } - auto&& ret = cobj->loadNodeWithContent(arg0); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:loadNodeWithContent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr); - return 0; - } - auto&& ret = cobj->isRecordJsonPath(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:isRecordJsonPath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_csloader_CSLoader_getJsonPath(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr); - return 0; - } - auto&& ret = cobj->getJsonPath(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:getJsonPath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getJsonPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S) -{ - int argc = 0; - ax::CSLoader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.CSLoader:setRecordJsonPath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr); - return 0; - } - cobj->setRecordJsonPath(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setRecordJsonPath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'.",&tolua_err); -#endif - - return 0; -} int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_State* tolua_S) { int argc = 0; @@ -553,6 +553,40 @@ int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_State* to return 0; } +int lua_ax_csloader_CSLoader_getInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_getInstance'", nullptr); + return 0; + } + auto&& ret = ax::CSLoader::getInstance(); + object_to_luaval(tolua_S, "ax.CSLoader",(ax::CSLoader*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CSLoader:getInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_csloader_CSLoader_destroyInstance(lua_State* tolua_S) { int argc = 0; @@ -642,40 +676,6 @@ int lua_ax_csloader_CSLoader_createNodeWithVisibleSize(lua_State* tolua_S) #endif return 0; } -int lua_ax_csloader_CSLoader_getInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_getInstance'", nullptr); - return 0; - } - auto&& ret = ax::CSLoader::getInstance(); - object_to_luaval(tolua_S, "ax.CSLoader",(ax::CSLoader*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CSLoader:getInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_csloader_CSLoader_constructor(lua_State* tolua_S) { int argc = 0; @@ -724,20 +724,20 @@ int lua_register_ax_csloader_CSLoader(lua_State* tolua_S) tolua_beginmodule(tolua_S,"CSLoader"); tolua_function(tolua_S,"new",lua_ax_csloader_CSLoader_constructor); - tolua_function(tolua_S,"createNodeFromJson",lua_ax_csloader_CSLoader_createNodeFromJson); - tolua_function(tolua_S,"createNodeWithFlatBuffersFile",lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile); - tolua_function(tolua_S,"loadNodeWithFile",lua_ax_csloader_CSLoader_loadNodeWithFile); - tolua_function(tolua_S,"bindCallback",lua_ax_csloader_CSLoader_bindCallback); - tolua_function(tolua_S,"setJsonPath",lua_ax_csloader_CSLoader_setJsonPath); tolua_function(tolua_S,"init",lua_ax_csloader_CSLoader_init); + tolua_function(tolua_S,"createNodeFromJson",lua_ax_csloader_CSLoader_createNodeFromJson); + tolua_function(tolua_S,"loadNodeWithFile",lua_ax_csloader_CSLoader_loadNodeWithFile); tolua_function(tolua_S,"loadNodeWithContent",lua_ax_csloader_CSLoader_loadNodeWithContent); - tolua_function(tolua_S,"isRecordJsonPath",lua_ax_csloader_CSLoader_isRecordJsonPath); - tolua_function(tolua_S,"getJsonPath",lua_ax_csloader_CSLoader_getJsonPath); tolua_function(tolua_S,"setRecordJsonPath",lua_ax_csloader_CSLoader_setRecordJsonPath); + tolua_function(tolua_S,"isRecordJsonPath",lua_ax_csloader_CSLoader_isRecordJsonPath); + tolua_function(tolua_S,"setJsonPath",lua_ax_csloader_CSLoader_setJsonPath); + tolua_function(tolua_S,"getJsonPath",lua_ax_csloader_CSLoader_getJsonPath); + tolua_function(tolua_S,"createNodeWithFlatBuffersFile",lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile); + tolua_function(tolua_S,"bindCallback",lua_ax_csloader_CSLoader_bindCallback); tolua_function(tolua_S,"createNodeWithFlatBuffersForSimulator",lua_ax_csloader_CSLoader_createNodeWithFlatBuffersForSimulator); + tolua_function(tolua_S,"getInstance", lua_ax_csloader_CSLoader_getInstance); tolua_function(tolua_S,"destroyInstance", lua_ax_csloader_CSLoader_destroyInstance); tolua_function(tolua_S,"createNodeWithVisibleSize", lua_ax_csloader_CSLoader_createNodeWithVisibleSize); - tolua_function(tolua_S,"getInstance", lua_ax_csloader_CSLoader_getInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::CSLoader).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.CSLoader"; diff --git a/extensions/scripting/lua-bindings/auto/axlua_extension_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_extension_auto.cpp index c1d68177a8..e6654d5f28 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_extension_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_extension_auto.cpp @@ -3,7 +3,7 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_extension_AssetsManager_setStoragePath(lua_State* tolua_S) +int lua_ax_extension_AssetsManager_checkUpdate(lua_State* tolua_S) { int argc = 0; ax::extension::AssetsManager* cobj = nullptr; @@ -23,32 +23,123 @@ int lua_ax_extension_AssetsManager_setStoragePath(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_setStoragePath'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_checkUpdate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:setStoragePath"); arg0 = arg0_tmp.c_str(); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_setStoragePath'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_checkUpdate'", nullptr); return 0; } - cobj->setStoragePath(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->checkUpdate(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setStoragePath",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:checkUpdate",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_setStoragePath'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_checkUpdate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManager_update(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_update'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_update'", nullptr); + return 0; + } + cobj->update(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:update",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_update'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManager_getPackageUrl(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getPackageUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getPackageUrl'", nullptr); + return 0; + } + auto&& ret = cobj->getPackageUrl(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getPackageUrl",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getPackageUrl'.",&tolua_err); #endif return 0; @@ -103,7 +194,7 @@ int lua_ax_extension_AssetsManager_setPackageUrl(lua_State* tolua_S) return 0; } -int lua_ax_extension_AssetsManager_checkUpdate(lua_State* tolua_S) +int lua_ax_extension_AssetsManager_getVersionFileUrl(lua_State* tolua_S) { int argc = 0; ax::extension::AssetsManager* cobj = nullptr; @@ -123,7 +214,7 @@ int lua_ax_extension_AssetsManager_checkUpdate(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_checkUpdate'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getVersionFileUrl'", nullptr); return 0; } #endif @@ -133,163 +224,19 @@ int lua_ax_extension_AssetsManager_checkUpdate(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_checkUpdate'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getVersionFileUrl'", nullptr); return 0; } - auto&& ret = cobj->checkUpdate(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:checkUpdate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_checkUpdate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_AssetsManager_getStoragePath(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getStoragePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getStoragePath'", nullptr); - return 0; - } - auto&& ret = cobj->getStoragePath(); + auto&& ret = cobj->getVersionFileUrl(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getStoragePath",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getVersionFileUrl",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getStoragePath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_AssetsManager_update(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_update'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_update'", nullptr); - return 0; - } - cobj->update(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:update",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_update'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_AssetsManager_setConnectionTimeout(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_setConnectionTimeout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.AssetsManager:setConnectionTimeout"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_setConnectionTimeout'", nullptr); - return 0; - } - cobj->setConnectionTimeout(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setConnectionTimeout",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_setConnectionTimeout'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getVersionFileUrl'.",&tolua_err); #endif return 0; @@ -344,100 +291,6 @@ int lua_ax_extension_AssetsManager_setVersionFileUrl(lua_State* tolua_S) return 0; } -int lua_ax_extension_AssetsManager_getPackageUrl(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getPackageUrl'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getPackageUrl'", nullptr); - return 0; - } - auto&& ret = cobj->getPackageUrl(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getPackageUrl",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getPackageUrl'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_AssetsManager_getConnectionTimeout(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getConnectionTimeout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getConnectionTimeout'", nullptr); - return 0; - } - auto&& ret = cobj->getConnectionTimeout(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getConnectionTimeout",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getConnectionTimeout'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_AssetsManager_getVersion(lua_State* tolua_S) { int argc = 0; @@ -485,53 +338,6 @@ int lua_ax_extension_AssetsManager_getVersion(lua_State* tolua_S) return 0; } -int lua_ax_extension_AssetsManager_getVersionFileUrl(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getVersionFileUrl'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getVersionFileUrl'", nullptr); - return 0; - } - auto&& ret = cobj->getVersionFileUrl(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getVersionFileUrl",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getVersionFileUrl'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_AssetsManager_deleteVersion(lua_State* tolua_S) { int argc = 0; @@ -579,6 +385,200 @@ int lua_ax_extension_AssetsManager_deleteVersion(lua_State* tolua_S) return 0; } +int lua_ax_extension_AssetsManager_getStoragePath(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getStoragePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getStoragePath'", nullptr); + return 0; + } + auto&& ret = cobj->getStoragePath(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getStoragePath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getStoragePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManager_setStoragePath(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_setStoragePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:setStoragePath"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_setStoragePath'", nullptr); + return 0; + } + cobj->setStoragePath(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setStoragePath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_setStoragePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManager_setConnectionTimeout(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_setConnectionTimeout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.AssetsManager:setConnectionTimeout"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_setConnectionTimeout'", nullptr); + return 0; + } + cobj->setConnectionTimeout(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setConnectionTimeout",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_setConnectionTimeout'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManager_getConnectionTimeout(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManager_getConnectionTimeout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManager_getConnectionTimeout'", nullptr); + return 0; + } + auto&& ret = cobj->getConnectionTimeout(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getConnectionTimeout",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManager_getConnectionTimeout'.",&tolua_err); +#endif + + return 0; +} int lua_ax_extension_AssetsManager_create(lua_State* tolua_S) { int argc = 0; @@ -747,18 +747,18 @@ int lua_register_ax_extension_AssetsManager(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AssetsManager"); tolua_function(tolua_S,"new",lua_ax_extension_AssetsManager_constructor); - tolua_function(tolua_S,"setStoragePath",lua_ax_extension_AssetsManager_setStoragePath); - tolua_function(tolua_S,"setPackageUrl",lua_ax_extension_AssetsManager_setPackageUrl); tolua_function(tolua_S,"checkUpdate",lua_ax_extension_AssetsManager_checkUpdate); - tolua_function(tolua_S,"getStoragePath",lua_ax_extension_AssetsManager_getStoragePath); tolua_function(tolua_S,"update",lua_ax_extension_AssetsManager_update); - tolua_function(tolua_S,"setConnectionTimeout",lua_ax_extension_AssetsManager_setConnectionTimeout); - tolua_function(tolua_S,"setVersionFileUrl",lua_ax_extension_AssetsManager_setVersionFileUrl); tolua_function(tolua_S,"getPackageUrl",lua_ax_extension_AssetsManager_getPackageUrl); - tolua_function(tolua_S,"getConnectionTimeout",lua_ax_extension_AssetsManager_getConnectionTimeout); - tolua_function(tolua_S,"getVersion",lua_ax_extension_AssetsManager_getVersion); + tolua_function(tolua_S,"setPackageUrl",lua_ax_extension_AssetsManager_setPackageUrl); tolua_function(tolua_S,"getVersionFileUrl",lua_ax_extension_AssetsManager_getVersionFileUrl); + tolua_function(tolua_S,"setVersionFileUrl",lua_ax_extension_AssetsManager_setVersionFileUrl); + tolua_function(tolua_S,"getVersion",lua_ax_extension_AssetsManager_getVersion); tolua_function(tolua_S,"deleteVersion",lua_ax_extension_AssetsManager_deleteVersion); + tolua_function(tolua_S,"getStoragePath",lua_ax_extension_AssetsManager_getStoragePath); + tolua_function(tolua_S,"setStoragePath",lua_ax_extension_AssetsManager_setStoragePath); + tolua_function(tolua_S,"setConnectionTimeout",lua_ax_extension_AssetsManager_setConnectionTimeout); + tolua_function(tolua_S,"getConnectionTimeout",lua_ax_extension_AssetsManager_getConnectionTimeout); tolua_function(tolua_S,"create", lua_ax_extension_AssetsManager_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::extension::AssetsManager).name(); // rtti is literal storage @@ -767,7 +767,7 @@ int lua_register_ax_extension_AssetsManager(lua_State* tolua_S) return 1; } -int lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S) +int lua_ax_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) { int argc = 0; ax::extension::EventAssetsManagerEx* cobj = nullptr; @@ -787,7 +787,7 @@ int lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getEventCode'", nullptr); return 0; } #endif @@ -797,66 +797,19 @@ int lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getEventCode'", nullptr); return 0; } - auto&& ret = cobj->getAssetsManagerEx(); - object_to_luaval(tolua_S, "ax.AssetsManagerEx",(ax::extension::AssetsManagerEx*)ret); + int ret = (int)cobj->getEventCode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getAssetsManagerEx",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getEventCode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::EventAssetsManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getAssetId'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getAssetId'", nullptr); - return 0; - } - auto&& ret = cobj->getAssetId(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getAssetId",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getAssetId'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getEventCode'.",&tolua_err); #endif return 0; @@ -908,53 +861,6 @@ int lua_ax_extension_EventAssetsManagerEx_getCURLECode(lua_State* tolua_S) return 0; } -int lua_ax_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::EventAssetsManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getMessage'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getMessage'", nullptr); - return 0; - } - auto&& ret = cobj->getMessage(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getMessage",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getMessage'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S) { int argc = 0; @@ -1002,7 +908,7 @@ int lua_ax_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S) return 0; } -int lua_ax_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S) +int lua_ax_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S) { int argc = 0; ax::extension::EventAssetsManagerEx* cobj = nullptr; @@ -1022,7 +928,7 @@ int lua_ax_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getPercentByFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getMessage'", nullptr); return 0; } #endif @@ -1032,24 +938,24 @@ int lua_ax_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getPercentByFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getMessage'", nullptr); return 0; } - auto&& ret = cobj->getPercentByFile(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getMessage(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getPercentByFile",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getMessage",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getPercentByFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getMessage'.",&tolua_err); #endif return 0; } -int lua_ax_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) +int lua_ax_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S) { int argc = 0; ax::extension::EventAssetsManagerEx* cobj = nullptr; @@ -1069,7 +975,7 @@ int lua_ax_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getEventCode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getAssetId'", nullptr); return 0; } #endif @@ -1079,19 +985,66 @@ int lua_ax_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getEventCode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getAssetId'", nullptr); return 0; } - int ret = (int)cobj->getEventCode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getAssetId(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getEventCode",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getAssetId",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getEventCode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getAssetId'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr); + return 0; + } + auto&& ret = cobj->getAssetsManagerEx(); + object_to_luaval(tolua_S, "ax.AssetsManagerEx",(ax::extension::AssetsManagerEx*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getAssetsManagerEx",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx'.",&tolua_err); #endif return 0; @@ -1143,6 +1096,53 @@ int lua_ax_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S) return 0; } +int lua_ax_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_EventAssetsManagerEx_getPercentByFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_EventAssetsManagerEx_getPercentByFile'", nullptr); + return 0; + } + auto&& ret = cobj->getPercentByFile(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getPercentByFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_EventAssetsManagerEx_getPercentByFile'.",&tolua_err); +#endif + + return 0; +} int lua_ax_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) { int argc = 0; @@ -1403,14 +1403,14 @@ int lua_register_ax_extension_EventAssetsManagerEx(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventAssetsManagerEx"); tolua_function(tolua_S,"new",lua_ax_extension_EventAssetsManagerEx_constructor); - tolua_function(tolua_S,"getAssetsManagerEx",lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx); - tolua_function(tolua_S,"getAssetId",lua_ax_extension_EventAssetsManagerEx_getAssetId); - tolua_function(tolua_S,"getCURLECode",lua_ax_extension_EventAssetsManagerEx_getCURLECode); - tolua_function(tolua_S,"getMessage",lua_ax_extension_EventAssetsManagerEx_getMessage); - tolua_function(tolua_S,"getCURLMCode",lua_ax_extension_EventAssetsManagerEx_getCURLMCode); - tolua_function(tolua_S,"getPercentByFile",lua_ax_extension_EventAssetsManagerEx_getPercentByFile); tolua_function(tolua_S,"getEventCode",lua_ax_extension_EventAssetsManagerEx_getEventCode); + tolua_function(tolua_S,"getCURLECode",lua_ax_extension_EventAssetsManagerEx_getCURLECode); + tolua_function(tolua_S,"getCURLMCode",lua_ax_extension_EventAssetsManagerEx_getCURLMCode); + tolua_function(tolua_S,"getMessage",lua_ax_extension_EventAssetsManagerEx_getMessage); + tolua_function(tolua_S,"getAssetId",lua_ax_extension_EventAssetsManagerEx_getAssetId); + tolua_function(tolua_S,"getAssetsManagerEx",lua_ax_extension_EventAssetsManagerEx_getAssetsManagerEx); tolua_function(tolua_S,"getPercent",lua_ax_extension_EventAssetsManagerEx_getPercent); + tolua_function(tolua_S,"getPercentByFile",lua_ax_extension_EventAssetsManagerEx_getPercentByFile); tolua_endmodule(tolua_S); auto typeName = typeid(ax::extension::EventAssetsManagerEx).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.EventAssetsManagerEx"; @@ -1418,53 +1418,6 @@ int lua_register_ax_extension_EventAssetsManagerEx(lua_State* tolua_S) return 1; } -int lua_ax_extension_Manifest_getManifestFileUrl(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::Manifest* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::Manifest*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_Manifest_getManifestFileUrl'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_Manifest_getManifestFileUrl'", nullptr); - return 0; - } - auto&& ret = cobj->getManifestFileUrl(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getManifestFileUrl",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_Manifest_getManifestFileUrl'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_Manifest_isVersionLoaded(lua_State* tolua_S) { int argc = 0; @@ -1606,7 +1559,7 @@ int lua_ax_extension_Manifest_getPackageUrl(lua_State* tolua_S) return 0; } -int lua_ax_extension_Manifest_getVersion(lua_State* tolua_S) +int lua_ax_extension_Manifest_getManifestFileUrl(lua_State* tolua_S) { int argc = 0; ax::extension::Manifest* cobj = nullptr; @@ -1626,7 +1579,7 @@ int lua_ax_extension_Manifest_getVersion(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_Manifest_getVersion'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_Manifest_getManifestFileUrl'", nullptr); return 0; } #endif @@ -1636,19 +1589,19 @@ int lua_ax_extension_Manifest_getVersion(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_Manifest_getVersion'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_Manifest_getManifestFileUrl'", nullptr); return 0; } - auto&& ret = cobj->getVersion(); + auto&& ret = cobj->getManifestFileUrl(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getVersion",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getManifestFileUrl",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_Manifest_getVersion'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_Manifest_getManifestFileUrl'.",&tolua_err); #endif return 0; @@ -1700,6 +1653,53 @@ int lua_ax_extension_Manifest_getVersionFileUrl(lua_State* tolua_S) return 0; } +int lua_ax_extension_Manifest_getVersion(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::Manifest* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_Manifest_getVersion'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_Manifest_getVersion'", nullptr); + return 0; + } + auto&& ret = cobj->getVersion(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getVersion",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_Manifest_getVersion'.",&tolua_err); +#endif + + return 0; +} int lua_ax_extension_Manifest_getSearchPaths(lua_State* tolua_S) { int argc = 0; @@ -1759,12 +1759,12 @@ int lua_register_ax_extension_Manifest(lua_State* tolua_S) tolua_cclass(tolua_S,"Manifest","ax.Manifest","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Manifest"); - tolua_function(tolua_S,"getManifestFileUrl",lua_ax_extension_Manifest_getManifestFileUrl); tolua_function(tolua_S,"isVersionLoaded",lua_ax_extension_Manifest_isVersionLoaded); tolua_function(tolua_S,"isLoaded",lua_ax_extension_Manifest_isLoaded); tolua_function(tolua_S,"getPackageUrl",lua_ax_extension_Manifest_getPackageUrl); - tolua_function(tolua_S,"getVersion",lua_ax_extension_Manifest_getVersion); + tolua_function(tolua_S,"getManifestFileUrl",lua_ax_extension_Manifest_getManifestFileUrl); tolua_function(tolua_S,"getVersionFileUrl",lua_ax_extension_Manifest_getVersionFileUrl); + tolua_function(tolua_S,"getVersion",lua_ax_extension_Manifest_getVersion); tolua_function(tolua_S,"getSearchPaths",lua_ax_extension_Manifest_getSearchPaths); tolua_endmodule(tolua_S); auto typeName = typeid(ax::extension::Manifest).name(); // rtti is literal storage @@ -1773,100 +1773,6 @@ int lua_register_ax_extension_Manifest(lua_State* tolua_S) return 1; } -int lua_ax_extension_AssetsManagerEx_getState(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_getState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_getState'", nullptr); - return 0; - } - int ret = (int)cobj->getState(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getState",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_getState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxConcurrentTask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getMaxConcurrentTask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S) { int argc = 0; @@ -1914,107 +1820,6 @@ int lua_ax_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S) return 0; } -int lua_ax_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_setVerifyCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_setVerifyCallback'", nullptr); - return 0; - } - cobj->setVerifyCallback(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setVerifyCallback",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_setVerifyCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S) -{ - int argc = 0; - ax::extension::AssetsManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_getStoragePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_getStoragePath'", nullptr); - return 0; - } - auto&& ret = cobj->getStoragePath(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getStoragePath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_getStoragePath'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_AssetsManagerEx_update(lua_State* tolua_S) { int argc = 0; @@ -2062,7 +1867,7 @@ int lua_ax_extension_AssetsManagerEx_update(lua_State* tolua_S) return 0; } -int lua_ax_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* tolua_S) +int lua_ax_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S) { int argc = 0; ax::extension::AssetsManagerEx* cobj = nullptr; @@ -2082,41 +1887,34 @@ int lua_ax_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_setVersionCompareHandle'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_downloadFailedAssets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_setVersionCompareHandle'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_downloadFailedAssets'", nullptr); return 0; } - cobj->setVersionCompareHandle(arg0); + cobj->downloadFailedAssets(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setVersionCompareHandle",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:downloadFailedAssets",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_setVersionCompareHandle'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_downloadFailedAssets'.",&tolua_err); #endif return 0; } -int lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua_S) +int lua_ax_extension_AssetsManagerEx_getState(lua_State* tolua_S) { int argc = 0; ax::extension::AssetsManagerEx* cobj = nullptr; @@ -2136,32 +1934,76 @@ int lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_getState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AssetsManagerEx:setMaxConcurrentTask"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_getState'", nullptr); return 0; } - cobj->setMaxConcurrentTask(arg0); - lua_settop(tolua_S, 1); + int ret = (int)cobj->getState(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setMaxConcurrentTask",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getState",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_getState'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_getStoragePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_getStoragePath'", nullptr); + return 0; + } + auto&& ret = cobj->getStoragePath(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getStoragePath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_getStoragePath'.",&tolua_err); #endif return 0; @@ -2260,7 +2102,7 @@ int lua_ax_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S) return 0; } -int lua_ax_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S) +int lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask(lua_State* tolua_S) { int argc = 0; ax::extension::AssetsManagerEx* cobj = nullptr; @@ -2280,7 +2122,7 @@ int lua_ax_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_downloadFailedAssets'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask'", nullptr); return 0; } #endif @@ -2290,19 +2132,177 @@ int lua_ax_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_downloadFailedAssets'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask'", nullptr); return 0; } - cobj->downloadFailedAssets(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getMaxConcurrentTask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:downloadFailedAssets",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getMaxConcurrentTask",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_downloadFailedAssets'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AssetsManagerEx:setMaxConcurrentTask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask'", nullptr); + return 0; + } + cobj->setMaxConcurrentTask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setMaxConcurrentTask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_setVersionCompareHandle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_setVersionCompareHandle'", nullptr); + return 0; + } + cobj->setVersionCompareHandle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setVersionCompareHandle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_setVersionCompareHandle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_AssetsManagerEx_setVerifyCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_AssetsManagerEx_setVerifyCallback'", nullptr); + return 0; + } + cobj->setVerifyCallback(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setVerifyCallback",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_AssetsManagerEx_setVerifyCallback'.",&tolua_err); #endif return 0; @@ -2401,17 +2401,17 @@ int lua_register_ax_extension_AssetsManagerEx(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AssetsManagerEx"); tolua_function(tolua_S,"new",lua_ax_extension_AssetsManagerEx_constructor); - tolua_function(tolua_S,"getState",lua_ax_extension_AssetsManagerEx_getState); - tolua_function(tolua_S,"getMaxConcurrentTask",lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask); tolua_function(tolua_S,"checkUpdate",lua_ax_extension_AssetsManagerEx_checkUpdate); - tolua_function(tolua_S,"setVerifyCallback",lua_ax_extension_AssetsManagerEx_setVerifyCallback); - tolua_function(tolua_S,"getStoragePath",lua_ax_extension_AssetsManagerEx_getStoragePath); tolua_function(tolua_S,"update",lua_ax_extension_AssetsManagerEx_update); - tolua_function(tolua_S,"setVersionCompareHandle",lua_ax_extension_AssetsManagerEx_setVersionCompareHandle); - tolua_function(tolua_S,"setMaxConcurrentTask",lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask); + tolua_function(tolua_S,"downloadFailedAssets",lua_ax_extension_AssetsManagerEx_downloadFailedAssets); + tolua_function(tolua_S,"getState",lua_ax_extension_AssetsManagerEx_getState); + tolua_function(tolua_S,"getStoragePath",lua_ax_extension_AssetsManagerEx_getStoragePath); tolua_function(tolua_S,"getLocalManifest",lua_ax_extension_AssetsManagerEx_getLocalManifest); tolua_function(tolua_S,"getRemoteManifest",lua_ax_extension_AssetsManagerEx_getRemoteManifest); - tolua_function(tolua_S,"downloadFailedAssets",lua_ax_extension_AssetsManagerEx_downloadFailedAssets); + tolua_function(tolua_S,"getMaxConcurrentTask",lua_ax_extension_AssetsManagerEx_getMaxConcurrentTask); + tolua_function(tolua_S,"setMaxConcurrentTask",lua_ax_extension_AssetsManagerEx_setMaxConcurrentTask); + tolua_function(tolua_S,"setVersionCompareHandle",lua_ax_extension_AssetsManagerEx_setVersionCompareHandle); + tolua_function(tolua_S,"setVerifyCallback",lua_ax_extension_AssetsManagerEx_setVerifyCallback); tolua_function(tolua_S,"create", lua_ax_extension_AssetsManagerEx_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::extension::AssetsManagerEx).name(); // rtti is literal storage @@ -2535,7 +2535,7 @@ int lua_register_ax_extension_EventListenerAssetsManagerEx(lua_State* tolua_S) return 1; } -int lua_ax_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -2555,7 +2555,7 @@ int lua_ax_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_removeAffector'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_setBlendFunc'", nullptr); return 0; } #endif @@ -2563,29 +2563,29 @@ int lua_ax_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + ax::BlendFunc arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem3D:removeAffector"); + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleSystem3D:setBlendFunc"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_removeAffector'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_setBlendFunc'", nullptr); return 0; } - cobj->removeAffector(arg0); + cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:removeAffector",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setBlendFunc",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_removeAffector'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_setBlendFunc'.",&tolua_err); #endif return 0; } -int lua_ax_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -2605,7 +2605,7 @@ int lua_ax_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getBlendFunc'", nullptr); return 0; } #endif @@ -2615,116 +2615,19 @@ int lua_ax_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getBlendFunc'", nullptr); return 0; } - cobj->resumeParticleSystem(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:resumeParticleSystem",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getBlendFunc",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_resumeParticleSystem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_removeAllAffector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_removeAllAffector'", nullptr); - return 0; - } - cobj->removeAllAffector(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:removeAllAffector",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_removeAllAffector'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_addAffector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Particle3DAffector* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Particle3DAffector",&arg0, "ax.ParticleSystem3D:addAffector"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_addAffector'", nullptr); - return 0; - } - cobj->addAffector(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:addAffector",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_addAffector'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getBlendFunc'.",&tolua_err); #endif return 0; @@ -2776,7 +2679,7 @@ int lua_ax_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua_S) return 0; } -int lua_ax_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -2796,7 +2699,7 @@ int lua_ax_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_isEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_stopParticleSystem'", nullptr); return 0; } #endif @@ -2806,24 +2709,24 @@ int lua_ax_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_isEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_stopParticleSystem'", nullptr); return 0; } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->stopParticleSystem(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:isEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:stopParticleSystem",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_isEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_stopParticleSystem'.",&tolua_err); #endif return 0; } -int lua_ax_extension_ParticleSystem3D_getRender(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -2843,7 +2746,7 @@ int lua_ax_extension_ParticleSystem3D_getRender(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getRender'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); return 0; } #endif @@ -2853,19 +2756,66 @@ int lua_ax_extension_ParticleSystem3D_getRender(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getRender'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); return 0; } - auto&& ret = cobj->getRender(); - object_to_luaval(tolua_S, "ax.Particle3DRender",(ax::Particle3DRender*)ret); + cobj->pauseParticleSystem(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getRender",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:pauseParticleSystem",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getRender'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_pauseParticleSystem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); + return 0; + } + cobj->resumeParticleSystem(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:resumeParticleSystem",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_resumeParticleSystem'.",&tolua_err); #endif return 0; @@ -2920,7 +2870,7 @@ int lua_ax_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) return 0; } -int lua_ax_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_setRender(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -2940,7 +2890,57 @@ int lua_ax_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_isKeepLocal'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_setRender'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Particle3DRender* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Particle3DRender",&arg0, "ax.ParticleSystem3D:setRender"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_setRender'", nullptr); + return 0; + } + cobj->setRender(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setRender",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_setRender'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_getRender(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getRender'", nullptr); return 0; } #endif @@ -2950,24 +2950,24 @@ int lua_ax_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_isKeepLocal'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getRender'", nullptr); return 0; } - auto&& ret = cobj->isKeepLocal(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getRender(); + object_to_luaval(tolua_S, "ax.Particle3DRender",(ax::Particle3DRender*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:isKeepLocal",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_isKeepLocal'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getRender'.",&tolua_err); #endif return 0; } -int lua_ax_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -2987,7 +2987,7 @@ int lua_ax_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_addAffector'", nullptr); return 0; } #endif @@ -2995,24 +2995,121 @@ int lua_ax_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + ax::Particle3DAffector* arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem3D:setEnabled"); + ok &= luaval_to_object(tolua_S, 2, "ax.Particle3DAffector",&arg0, "ax.ParticleSystem3D:addAffector"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_addAffector'", nullptr); return 0; } - cobj->setEnabled(arg0); + cobj->addAffector(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:addAffector",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_setEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_addAffector'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_removeAffector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem3D:removeAffector"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_removeAffector'", nullptr); + return 0; + } + cobj->removeAffector(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:removeAffector",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_removeAffector'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_removeAllAffector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_removeAllAffector'", nullptr); + return 0; + } + cobj->removeAllAffector(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:removeAllAffector",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_removeAllAffector'.",&tolua_err); #endif return 0; @@ -3064,194 +3161,6 @@ int lua_ax_extension_ParticleSystem3D_getParticleQuota(lua_State* tolua_S) return 0; } -int lua_ax_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); - return 0; - } - cobj->pauseParticleSystem(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:pauseParticleSystem",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_pauseParticleSystem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_getState(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getState'", nullptr); - return 0; - } - int ret = (int)cobj->getState(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getState",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); - return 0; - } - auto&& ret = cobj->getAliveParticleCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getAliveParticleCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getAliveParticleCount'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) { int argc = 0; @@ -3302,7 +3211,7 @@ int lua_ax_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) return 0; } -int lua_ax_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) +int lua_ax_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tolua_S) { int argc = 0; ax::ParticleSystem3D* cobj = nullptr; @@ -3322,107 +3231,7 @@ int lua_ax_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleSystem3D:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_setRender(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_setRender'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Particle3DRender* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Particle3DRender",&arg0, "ax.ParticleSystem3D:setRender"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_setRender'", nullptr); - return 0; - } - cobj->setRender(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setRender",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_setRender'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_S) -{ - int argc = 0; - ax::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_stopParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); return 0; } #endif @@ -3432,19 +3241,113 @@ int lua_ax_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_stopParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); return 0; } - cobj->stopParticleSystem(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAliveParticleCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:stopParticleSystem",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getAliveParticleCount",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_stopParticleSystem'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getAliveParticleCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_getState(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_getState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_getState'", nullptr); + return 0; + } + int ret = (int)cobj->getState(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getState",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_getState'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_isKeepLocal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_isKeepLocal'", nullptr); + return 0; + } + auto&& ret = cobj->isKeepLocal(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:isKeepLocal",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_isKeepLocal'.",&tolua_err); #endif return 0; @@ -3499,6 +3402,103 @@ int lua_ax_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) return 0; } +int lua_ax_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_setEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem3D:setEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_setEnabled'", nullptr); + return 0; + } + cobj->setEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_setEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_ParticleSystem3D_isEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_ParticleSystem3D_isEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:isEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_ParticleSystem3D_isEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_extension_ParticleSystem3D_constructor(lua_State* tolua_S) { int argc = 0; @@ -3549,26 +3549,26 @@ int lua_register_ax_extension_ParticleSystem3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ParticleSystem3D"); tolua_function(tolua_S,"new",lua_ax_extension_ParticleSystem3D_constructor); - tolua_function(tolua_S,"removeAffector",lua_ax_extension_ParticleSystem3D_removeAffector); - tolua_function(tolua_S,"resumeParticleSystem",lua_ax_extension_ParticleSystem3D_resumeParticleSystem); - tolua_function(tolua_S,"removeAllAffector",lua_ax_extension_ParticleSystem3D_removeAllAffector); - tolua_function(tolua_S,"addAffector",lua_ax_extension_ParticleSystem3D_addAffector); - tolua_function(tolua_S,"startParticleSystem",lua_ax_extension_ParticleSystem3D_startParticleSystem); - tolua_function(tolua_S,"isEnabled",lua_ax_extension_ParticleSystem3D_isEnabled); - tolua_function(tolua_S,"getRender",lua_ax_extension_ParticleSystem3D_getRender); - tolua_function(tolua_S,"setEmitter",lua_ax_extension_ParticleSystem3D_setEmitter); - tolua_function(tolua_S,"isKeepLocal",lua_ax_extension_ParticleSystem3D_isKeepLocal); - tolua_function(tolua_S,"setEnabled",lua_ax_extension_ParticleSystem3D_setEnabled); - tolua_function(tolua_S,"getParticleQuota",lua_ax_extension_ParticleSystem3D_getParticleQuota); - tolua_function(tolua_S,"getBlendFunc",lua_ax_extension_ParticleSystem3D_getBlendFunc); - tolua_function(tolua_S,"pauseParticleSystem",lua_ax_extension_ParticleSystem3D_pauseParticleSystem); - tolua_function(tolua_S,"getState",lua_ax_extension_ParticleSystem3D_getState); - tolua_function(tolua_S,"getAliveParticleCount",lua_ax_extension_ParticleSystem3D_getAliveParticleCount); - tolua_function(tolua_S,"setParticleQuota",lua_ax_extension_ParticleSystem3D_setParticleQuota); tolua_function(tolua_S,"setBlendFunc",lua_ax_extension_ParticleSystem3D_setBlendFunc); - tolua_function(tolua_S,"setRender",lua_ax_extension_ParticleSystem3D_setRender); + tolua_function(tolua_S,"getBlendFunc",lua_ax_extension_ParticleSystem3D_getBlendFunc); + tolua_function(tolua_S,"startParticleSystem",lua_ax_extension_ParticleSystem3D_startParticleSystem); tolua_function(tolua_S,"stopParticleSystem",lua_ax_extension_ParticleSystem3D_stopParticleSystem); + tolua_function(tolua_S,"pauseParticleSystem",lua_ax_extension_ParticleSystem3D_pauseParticleSystem); + tolua_function(tolua_S,"resumeParticleSystem",lua_ax_extension_ParticleSystem3D_resumeParticleSystem); + tolua_function(tolua_S,"setEmitter",lua_ax_extension_ParticleSystem3D_setEmitter); + tolua_function(tolua_S,"setRender",lua_ax_extension_ParticleSystem3D_setRender); + tolua_function(tolua_S,"getRender",lua_ax_extension_ParticleSystem3D_getRender); + tolua_function(tolua_S,"addAffector",lua_ax_extension_ParticleSystem3D_addAffector); + tolua_function(tolua_S,"removeAffector",lua_ax_extension_ParticleSystem3D_removeAffector); + tolua_function(tolua_S,"removeAllAffector",lua_ax_extension_ParticleSystem3D_removeAllAffector); + tolua_function(tolua_S,"getParticleQuota",lua_ax_extension_ParticleSystem3D_getParticleQuota); + tolua_function(tolua_S,"setParticleQuota",lua_ax_extension_ParticleSystem3D_setParticleQuota); + tolua_function(tolua_S,"getAliveParticleCount",lua_ax_extension_ParticleSystem3D_getAliveParticleCount); + tolua_function(tolua_S,"getState",lua_ax_extension_ParticleSystem3D_getState); + tolua_function(tolua_S,"isKeepLocal",lua_ax_extension_ParticleSystem3D_isKeepLocal); tolua_function(tolua_S,"setKeepLocal",lua_ax_extension_ParticleSystem3D_setKeepLocal); + tolua_function(tolua_S,"setEnabled",lua_ax_extension_ParticleSystem3D_setEnabled); + tolua_function(tolua_S,"isEnabled",lua_ax_extension_ParticleSystem3D_isEnabled); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ParticleSystem3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.ParticleSystem3D"; @@ -3576,7 +3576,7 @@ int lua_register_ax_extension_ParticleSystem3D(lua_State* tolua_S) return 1; } -int lua_ax_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -3596,7 +3596,7 @@ int lua_ax_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePath'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_forceUpdate'", nullptr); return 0; } #endif @@ -3604,24 +3604,24 @@ int lua_ax_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + double arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initWithFilePath"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:forceUpdate"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePath'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_forceUpdate'", nullptr); return 0; } - auto&& ret = cobj->initWithFilePath(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->forceUpdate(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initWithFilePath",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:forceUpdate",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePath'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_forceUpdate'.",&tolua_err); #endif return 0; @@ -3673,7 +3673,7 @@ int lua_ax_extension_PUParticleSystem3D_getParticleSystemScaleVelocity(lua_State return 0; } -int lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -3693,392 +3693,7 @@ int lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* tolua_S #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setEmittedSystemQuota"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota'", nullptr); - return 0; - } - cobj->setEmittedSystemQuota(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setEmittedSystemQuota",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getDefaultDepth(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDefaultDepth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDefaultDepth'", nullptr); - return 0; - } - auto&& ret = cobj->getDefaultDepth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultDepth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDefaultDepth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota'", nullptr); - return 0; - } - auto&& ret = cobj->getEmittedSystemQuota(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getEmittedSystemQuota",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr); - return 0; - } - auto&& ret = cobj->initWithFilePathAndMaterialPath(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_clearAllParticles'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_clearAllParticles'", nullptr); - return 0; - } - cobj->clearAllParticles(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:clearAllParticles",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_clearAllParticles'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getMaterialName(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getMaterialName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getMaterialName'", nullptr); - return 0; - } - auto&& ret = cobj->getMaterialName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getMaterialName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getMaterialName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_calulateRotationOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_calulateRotationOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_calulateRotationOffset'", nullptr); - return 0; - } - cobj->calulateRotationOffset(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:calulateRotationOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_calulateRotationOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getMaxVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getMaxVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getMaxVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxVelocity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getMaxVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getMaxVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_forceUpdate'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'", nullptr); return 0; } #endif @@ -4088,22 +3703,72 @@ int lua_ax_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:forceUpdate"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setParticleSystemScaleVelocity"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_forceUpdate'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'", nullptr); return 0; } - cobj->forceUpdate(arg0); + cobj->setParticleSystemScaleVelocity(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:forceUpdate",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setParticleSystemScaleVelocity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_forceUpdate'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_rotationOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.PUParticleSystem3D:rotationOffset"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_rotationOffset'", nullptr); + return 0; + } + cobj->rotationOffset(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:rotationOffset",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_rotationOffset'.",&tolua_err); #endif return 0; @@ -4155,7 +3820,7 @@ int lua_ax_extension_PUParticleSystem3D_getTimeElapsedSinceStart(lua_State* tolu return 0; } -int lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_getDefaultWidth(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -4175,7 +3840,7 @@ int lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_State* to #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDefaultWidth'", nullptr); return 0; } #endif @@ -4185,24 +3850,24 @@ int lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_State* to { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDefaultWidth'", nullptr); return 0; } - cobj->removeAllBehaviourTemplate(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getDefaultWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllBehaviourTemplate",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDefaultWidth'.",&tolua_err); #endif return 0; } -int lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_setDefaultWidth(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -4222,7 +3887,57 @@ int lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* tolua_ #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setDefaultWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setDefaultWidth'", nullptr); + return 0; + } + cobj->setDefaultWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setDefaultWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getDefaultHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDefaultHeight'", nullptr); return 0; } #endif @@ -4232,19 +3947,454 @@ int lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* tolua_ { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDefaultHeight'", nullptr); return 0; } - auto&& ret = cobj->getEmittedEmitterQuota(); + auto&& ret = cobj->getDefaultHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getEmittedEmitterQuota",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultHeight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDefaultHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setDefaultHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setDefaultHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setDefaultHeight'", nullptr); + return 0; + } + cobj->setDefaultHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setDefaultHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getDefaultDepth(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDefaultDepth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDefaultDepth'", nullptr); + return 0; + } + auto&& ret = cobj->getDefaultDepth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultDepth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDefaultDepth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setDefaultDepth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultDepth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setDefaultDepth'", nullptr); + return 0; + } + cobj->setDefaultDepth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultDepth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setDefaultDepth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDerivedPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDerivedPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getDerivedPosition(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDerivedPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDerivedPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDerivedScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDerivedScale'", nullptr); + return 0; + } + auto&& ret = cobj->getDerivedScale(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDerivedScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDerivedScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getMaxVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getMaxVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getMaxVelocity'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxVelocity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getMaxVelocity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getMaxVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setMaxVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setMaxVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMaxVelocity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setMaxVelocity'", nullptr); + return 0; + } + cobj->setMaxVelocity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMaxVelocity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setMaxVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setMaterialName(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setMaterialName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMaterialName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setMaterialName'", nullptr); + return 0; + } + cobj->setMaterialName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMaterialName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setMaterialName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getMaterialName(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getMaterialName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getMaterialName'", nullptr); + return 0; + } + auto&& ret = cobj->getMaterialName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getMaterialName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getMaterialName'.",&tolua_err); #endif return 0; @@ -4302,297 +4452,6 @@ int lua_ax_extension_PUParticleSystem3D_forceEmission(lua_State* tolua_S) return 0; } -int lua_ax_extension_PUParticleSystem3D_addListener(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_addListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::PUListener* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.PUListener",&arg0, "ax.PUParticleSystem3D:addListener"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_addListener'", nullptr); - return 0; - } - cobj->addListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_addListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_isMarkedForEmission(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_isMarkedForEmission'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_isMarkedForEmission'", nullptr); - return 0; - } - auto&& ret = cobj->isMarkedForEmission(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:isMarkedForEmission",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_isMarkedForEmission'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getDefaultWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDefaultWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDefaultWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getDefaultWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDefaultWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setEmittedEmitterQuota"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota'", nullptr); - return 0; - } - cobj->setEmittedEmitterQuota(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setEmittedEmitterQuota",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_setMarkedForEmission(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setMarkedForEmission'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMarkedForEmission"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setMarkedForEmission'", nullptr); - return 0; - } - cobj->setMarkedForEmission(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMarkedForEmission",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setMarkedForEmission'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ax.PUParticleSystem3D",(ax::PUParticleSystem3D*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_clone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S) { int argc = 0; @@ -4643,7 +4502,7 @@ int lua_ax_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S) return 0; } -int lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_removeAllEmitter(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -4663,207 +4522,7 @@ int lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::PUBehaviour* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.PUBehaviour",&arg0, "ax.PUParticleSystem3D:addBehaviourTemplate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr); - return 0; - } - cobj->addBehaviourTemplate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addBehaviourTemplate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_setDefaultWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setDefaultWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setDefaultWidth'", nullptr); - return 0; - } - cobj->setDefaultWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setDefaultWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_copyAttributesTo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::PUParticleSystem3D* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.PUParticleSystem3D",&arg0, "ax.PUParticleSystem3D:copyAttributesTo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_copyAttributesTo'", nullptr); - return 0; - } - cobj->copyAttributesTo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:copyAttributesTo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_copyAttributesTo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_setMaterialName(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setMaterialName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMaterialName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setMaterialName'", nullptr); - return 0; - } - cobj->setMaterialName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMaterialName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setMaterialName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_removeAllEmitter'", nullptr); return 0; } #endif @@ -4873,19 +4532,69 @@ int lua_ax_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* tolua { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_removeAllEmitter'", nullptr); return 0; } - auto&& ret = cobj->getParentParticleSystem(); - object_to_luaval(tolua_S, "ax.PUParticleSystem3D",(ax::PUParticleSystem3D*)ret); + cobj->removeAllEmitter(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getParentParticleSystem",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllEmitter",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getParentParticleSystem'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_removeAllEmitter'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_addListener(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_addListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::PUListener* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.PUListener",&arg0, "ax.PUParticleSystem3D:addListener"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_addListener'", nullptr); + return 0; + } + cobj->addListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_addListener'.",&tolua_err); #endif return 0; @@ -4940,394 +4649,6 @@ int lua_ax_extension_PUParticleSystem3D_removeListener(lua_State* tolua_S) return 0; } -int lua_ax_extension_PUParticleSystem3D_setMaxVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setMaxVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMaxVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setMaxVelocity'", nullptr); - return 0; - } - cobj->setMaxVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMaxVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setMaxVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getDefaultHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDefaultHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDefaultHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getDefaultHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDefaultHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDerivedPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDerivedPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getDerivedPosition(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDerivedPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDerivedPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_rotationOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.PUParticleSystem3D:rotationOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_rotationOffset'", nullptr); - return 0; - } - cobj->rotationOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:rotationOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_rotationOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_removeAllEmitter(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_removeAllEmitter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_removeAllEmitter'", nullptr); - return 0; - } - cobj->removeAllEmitter(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllEmitter",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_removeAllEmitter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setParticleSystemScaleVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'", nullptr); - return 0; - } - cobj->setParticleSystemScaleVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setParticleSystemScaleVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getDerivedScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getDerivedScale'", nullptr); - return 0; - } - auto&& ret = cobj->getDerivedScale(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDerivedScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getDerivedScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_extension_PUParticleSystem3D_setDefaultHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::PUParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setDefaultHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setDefaultHeight'", nullptr); - return 0; - } - cobj->setDefaultHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setDefaultHeight'.",&tolua_err); -#endif - - return 0; -} int lua_ax_extension_PUParticleSystem3D_removeAllListener(lua_State* tolua_S) { int argc = 0; @@ -5375,7 +4696,7 @@ int lua_ax_extension_PUParticleSystem3D_removeAllListener(lua_State* tolua_S) return 0; } -int lua_ax_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -5395,7 +4716,7 @@ int lua_ax_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_initSystem'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_addObserver'", nullptr); return 0; } #endif @@ -5403,24 +4724,553 @@ int lua_ax_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + ax::PUObserver* arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initSystem"); + ok &= luaval_to_object(tolua_S, 2, "ax.PUObserver",&arg0, "ax.PUParticleSystem3D:addObserver"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_initSystem'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_addObserver'", nullptr); return 0; } - auto&& ret = cobj->initSystem(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->addObserver(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initSystem",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addObserver",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_initSystem'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_addObserver'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_removerAllObserver'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_removerAllObserver'", nullptr); + return 0; + } + cobj->removerAllObserver(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removerAllObserver",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_removerAllObserver'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::PUBehaviour* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.PUBehaviour",&arg0, "ax.PUParticleSystem3D:addBehaviourTemplate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr); + return 0; + } + cobj->addBehaviourTemplate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addBehaviourTemplate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate'", nullptr); + return 0; + } + cobj->removeAllBehaviourTemplate(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllBehaviourTemplate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_isMarkedForEmission(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_isMarkedForEmission'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_isMarkedForEmission'", nullptr); + return 0; + } + auto&& ret = cobj->isMarkedForEmission(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:isMarkedForEmission",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_isMarkedForEmission'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setMarkedForEmission(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setMarkedForEmission'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMarkedForEmission"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setMarkedForEmission'", nullptr); + return 0; + } + cobj->setMarkedForEmission(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMarkedForEmission",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setMarkedForEmission'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_clearAllParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_clearAllParticles'", nullptr); + return 0; + } + cobj->clearAllParticles(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:clearAllParticles",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_clearAllParticles'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota'", nullptr); + return 0; + } + auto&& ret = cobj->getEmittedEmitterQuota(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getEmittedEmitterQuota",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setEmittedEmitterQuota"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota'", nullptr); + return 0; + } + cobj->setEmittedEmitterQuota(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setEmittedEmitterQuota",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota'", nullptr); + return 0; + } + auto&& ret = cobj->getEmittedSystemQuota(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getEmittedSystemQuota",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setEmittedSystemQuota"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota'", nullptr); + return 0; + } + cobj->setEmittedSystemQuota(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setEmittedSystemQuota",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr); + return 0; + } + auto&& ret = cobj->getParentParticleSystem(); + object_to_luaval(tolua_S, "ax.PUParticleSystem3D",(ax::PUParticleSystem3D*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getParentParticleSystem",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_getParentParticleSystem'.",&tolua_err); #endif return 0; @@ -5476,7 +5326,7 @@ int lua_ax_extension_PUParticleSystem3D_makeParticleLocal(lua_State* tolua_S) return 0; } -int lua_ax_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_calulateRotationOffset(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -5496,7 +5346,7 @@ int lua_ax_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_removerAllObserver'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_calulateRotationOffset'", nullptr); return 0; } #endif @@ -5506,24 +5356,24 @@ int lua_ax_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_removerAllObserver'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_calulateRotationOffset'", nullptr); return 0; } - cobj->removerAllObserver(); + cobj->calulateRotationOffset(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removerAllObserver",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:calulateRotationOffset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_removerAllObserver'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_calulateRotationOffset'.",&tolua_err); #endif return 0; } -int lua_ax_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_clone(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -5543,37 +5393,34 @@ int lua_ax_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_setDefaultDepth'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultDepth"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_setDefaultDepth'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_clone'", nullptr); return 0; } - cobj->setDefaultDepth(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ax.PUParticleSystem3D",(ax::PUParticleSystem3D*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultDepth",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:clone",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_setDefaultDepth'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_clone'.",&tolua_err); #endif return 0; } -int lua_ax_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) +int lua_ax_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_S) { int argc = 0; ax::PUParticleSystem3D* cobj = nullptr; @@ -5593,7 +5440,7 @@ int lua_ax_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_addObserver'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_copyAttributesTo'", nullptr); return 0; } #endif @@ -5601,24 +5448,177 @@ int lua_ax_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::PUObserver* arg0; + ax::PUParticleSystem3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.PUObserver",&arg0, "ax.PUParticleSystem3D:addObserver"); + ok &= luaval_to_object(tolua_S, 2, "ax.PUParticleSystem3D",&arg0, "ax.PUParticleSystem3D:copyAttributesTo"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_addObserver'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_copyAttributesTo'", nullptr); return 0; } - cobj->addObserver(arg0); + cobj->copyAttributesTo(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addObserver",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:copyAttributesTo",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_addObserver'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_copyAttributesTo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_initSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initSystem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_initSystem'", nullptr); + return 0; + } + auto&& ret = cobj->initSystem(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initSystem",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_initSystem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initWithFilePath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePath'", nullptr); + return 0; + } + auto&& ret = cobj->initWithFilePath(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initWithFilePath",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePath'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lua_State* tolua_S) +{ + int argc = 0; + ax::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr); + return 0; + } + auto&& ret = cobj->initWithFilePathAndMaterialPath(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'.",&tolua_err); #endif return 0; @@ -5734,48 +5734,48 @@ int lua_register_ax_extension_PUParticleSystem3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PUParticleSystem3D"); tolua_function(tolua_S,"new",lua_ax_extension_PUParticleSystem3D_constructor); - tolua_function(tolua_S,"initWithFilePath",lua_ax_extension_PUParticleSystem3D_initWithFilePath); - tolua_function(tolua_S,"getParticleSystemScaleVelocity",lua_ax_extension_PUParticleSystem3D_getParticleSystemScaleVelocity); - tolua_function(tolua_S,"setEmittedSystemQuota",lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota); - tolua_function(tolua_S,"getDefaultDepth",lua_ax_extension_PUParticleSystem3D_getDefaultDepth); - tolua_function(tolua_S,"getEmittedSystemQuota",lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota); - tolua_function(tolua_S,"initWithFilePathAndMaterialPath",lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath); - tolua_function(tolua_S,"clearAllParticles",lua_ax_extension_PUParticleSystem3D_clearAllParticles); - tolua_function(tolua_S,"getMaterialName",lua_ax_extension_PUParticleSystem3D_getMaterialName); - tolua_function(tolua_S,"calulateRotationOffset",lua_ax_extension_PUParticleSystem3D_calulateRotationOffset); - tolua_function(tolua_S,"getMaxVelocity",lua_ax_extension_PUParticleSystem3D_getMaxVelocity); tolua_function(tolua_S,"forceUpdate",lua_ax_extension_PUParticleSystem3D_forceUpdate); - tolua_function(tolua_S,"getTimeElapsedSinceStart",lua_ax_extension_PUParticleSystem3D_getTimeElapsedSinceStart); - tolua_function(tolua_S,"removeAllBehaviourTemplate",lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate); - tolua_function(tolua_S,"getEmittedEmitterQuota",lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota); - tolua_function(tolua_S,"forceEmission",lua_ax_extension_PUParticleSystem3D_forceEmission); - tolua_function(tolua_S,"addListener",lua_ax_extension_PUParticleSystem3D_addListener); - tolua_function(tolua_S,"isMarkedForEmission",lua_ax_extension_PUParticleSystem3D_isMarkedForEmission); - tolua_function(tolua_S,"getDefaultWidth",lua_ax_extension_PUParticleSystem3D_getDefaultWidth); - tolua_function(tolua_S,"setEmittedEmitterQuota",lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota); - tolua_function(tolua_S,"setMarkedForEmission",lua_ax_extension_PUParticleSystem3D_setMarkedForEmission); - tolua_function(tolua_S,"clone",lua_ax_extension_PUParticleSystem3D_clone); - tolua_function(tolua_S,"addEmitter",lua_ax_extension_PUParticleSystem3D_addEmitter); - tolua_function(tolua_S,"addBehaviourTemplate",lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate); - tolua_function(tolua_S,"setDefaultWidth",lua_ax_extension_PUParticleSystem3D_setDefaultWidth); - tolua_function(tolua_S,"copyAttributesTo",lua_ax_extension_PUParticleSystem3D_copyAttributesTo); - tolua_function(tolua_S,"setMaterialName",lua_ax_extension_PUParticleSystem3D_setMaterialName); - tolua_function(tolua_S,"getParentParticleSystem",lua_ax_extension_PUParticleSystem3D_getParentParticleSystem); - tolua_function(tolua_S,"removeListener",lua_ax_extension_PUParticleSystem3D_removeListener); - tolua_function(tolua_S,"setMaxVelocity",lua_ax_extension_PUParticleSystem3D_setMaxVelocity); - tolua_function(tolua_S,"getDefaultHeight",lua_ax_extension_PUParticleSystem3D_getDefaultHeight); - tolua_function(tolua_S,"getDerivedPosition",lua_ax_extension_PUParticleSystem3D_getDerivedPosition); - tolua_function(tolua_S,"rotationOffset",lua_ax_extension_PUParticleSystem3D_rotationOffset); - tolua_function(tolua_S,"removeAllEmitter",lua_ax_extension_PUParticleSystem3D_removeAllEmitter); + tolua_function(tolua_S,"getParticleSystemScaleVelocity",lua_ax_extension_PUParticleSystem3D_getParticleSystemScaleVelocity); tolua_function(tolua_S,"setParticleSystemScaleVelocity",lua_ax_extension_PUParticleSystem3D_setParticleSystemScaleVelocity); - tolua_function(tolua_S,"getDerivedScale",lua_ax_extension_PUParticleSystem3D_getDerivedScale); + tolua_function(tolua_S,"rotationOffset",lua_ax_extension_PUParticleSystem3D_rotationOffset); + tolua_function(tolua_S,"getTimeElapsedSinceStart",lua_ax_extension_PUParticleSystem3D_getTimeElapsedSinceStart); + tolua_function(tolua_S,"getDefaultWidth",lua_ax_extension_PUParticleSystem3D_getDefaultWidth); + tolua_function(tolua_S,"setDefaultWidth",lua_ax_extension_PUParticleSystem3D_setDefaultWidth); + tolua_function(tolua_S,"getDefaultHeight",lua_ax_extension_PUParticleSystem3D_getDefaultHeight); tolua_function(tolua_S,"setDefaultHeight",lua_ax_extension_PUParticleSystem3D_setDefaultHeight); - tolua_function(tolua_S,"removeAllListener",lua_ax_extension_PUParticleSystem3D_removeAllListener); - tolua_function(tolua_S,"initSystem",lua_ax_extension_PUParticleSystem3D_initSystem); - tolua_function(tolua_S,"makeParticleLocal",lua_ax_extension_PUParticleSystem3D_makeParticleLocal); - tolua_function(tolua_S,"removerAllObserver",lua_ax_extension_PUParticleSystem3D_removerAllObserver); + tolua_function(tolua_S,"getDefaultDepth",lua_ax_extension_PUParticleSystem3D_getDefaultDepth); tolua_function(tolua_S,"setDefaultDepth",lua_ax_extension_PUParticleSystem3D_setDefaultDepth); + tolua_function(tolua_S,"getDerivedPosition",lua_ax_extension_PUParticleSystem3D_getDerivedPosition); + tolua_function(tolua_S,"getDerivedScale",lua_ax_extension_PUParticleSystem3D_getDerivedScale); + tolua_function(tolua_S,"getMaxVelocity",lua_ax_extension_PUParticleSystem3D_getMaxVelocity); + tolua_function(tolua_S,"setMaxVelocity",lua_ax_extension_PUParticleSystem3D_setMaxVelocity); + tolua_function(tolua_S,"setMaterialName",lua_ax_extension_PUParticleSystem3D_setMaterialName); + tolua_function(tolua_S,"getMaterialName",lua_ax_extension_PUParticleSystem3D_getMaterialName); + tolua_function(tolua_S,"forceEmission",lua_ax_extension_PUParticleSystem3D_forceEmission); + tolua_function(tolua_S,"addEmitter",lua_ax_extension_PUParticleSystem3D_addEmitter); + tolua_function(tolua_S,"removeAllEmitter",lua_ax_extension_PUParticleSystem3D_removeAllEmitter); + tolua_function(tolua_S,"addListener",lua_ax_extension_PUParticleSystem3D_addListener); + tolua_function(tolua_S,"removeListener",lua_ax_extension_PUParticleSystem3D_removeListener); + tolua_function(tolua_S,"removeAllListener",lua_ax_extension_PUParticleSystem3D_removeAllListener); tolua_function(tolua_S,"addObserver",lua_ax_extension_PUParticleSystem3D_addObserver); + tolua_function(tolua_S,"removerAllObserver",lua_ax_extension_PUParticleSystem3D_removerAllObserver); + tolua_function(tolua_S,"addBehaviourTemplate",lua_ax_extension_PUParticleSystem3D_addBehaviourTemplate); + tolua_function(tolua_S,"removeAllBehaviourTemplate",lua_ax_extension_PUParticleSystem3D_removeAllBehaviourTemplate); + tolua_function(tolua_S,"isMarkedForEmission",lua_ax_extension_PUParticleSystem3D_isMarkedForEmission); + tolua_function(tolua_S,"setMarkedForEmission",lua_ax_extension_PUParticleSystem3D_setMarkedForEmission); + tolua_function(tolua_S,"clearAllParticles",lua_ax_extension_PUParticleSystem3D_clearAllParticles); + tolua_function(tolua_S,"getEmittedEmitterQuota",lua_ax_extension_PUParticleSystem3D_getEmittedEmitterQuota); + tolua_function(tolua_S,"setEmittedEmitterQuota",lua_ax_extension_PUParticleSystem3D_setEmittedEmitterQuota); + tolua_function(tolua_S,"getEmittedSystemQuota",lua_ax_extension_PUParticleSystem3D_getEmittedSystemQuota); + tolua_function(tolua_S,"setEmittedSystemQuota",lua_ax_extension_PUParticleSystem3D_setEmittedSystemQuota); + tolua_function(tolua_S,"getParentParticleSystem",lua_ax_extension_PUParticleSystem3D_getParentParticleSystem); + tolua_function(tolua_S,"makeParticleLocal",lua_ax_extension_PUParticleSystem3D_makeParticleLocal); + tolua_function(tolua_S,"calulateRotationOffset",lua_ax_extension_PUParticleSystem3D_calulateRotationOffset); + tolua_function(tolua_S,"clone",lua_ax_extension_PUParticleSystem3D_clone); + tolua_function(tolua_S,"copyAttributesTo",lua_ax_extension_PUParticleSystem3D_copyAttributesTo); + tolua_function(tolua_S,"initSystem",lua_ax_extension_PUParticleSystem3D_initSystem); + tolua_function(tolua_S,"initWithFilePath",lua_ax_extension_PUParticleSystem3D_initWithFilePath); + tolua_function(tolua_S,"initWithFilePathAndMaterialPath",lua_ax_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath); tolua_function(tolua_S,"create", lua_ax_extension_PUParticleSystem3D_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PUParticleSystem3D).name(); // rtti is literal storage @@ -5790,11 +5790,11 @@ TOLUA_API int register_all_ax_extension(lua_State* tolua_S) tolua_module(tolua_S,"ax",0); tolua_beginmodule(tolua_S,"ax"); + lua_register_ax_extension_AssetsManager(tolua_S); + lua_register_ax_extension_EventAssetsManagerEx(tolua_S); + lua_register_ax_extension_Manifest(tolua_S); lua_register_ax_extension_AssetsManagerEx(tolua_S); lua_register_ax_extension_EventListenerAssetsManagerEx(tolua_S); - lua_register_ax_extension_AssetsManager(tolua_S); - lua_register_ax_extension_Manifest(tolua_S); - lua_register_ax_extension_EventAssetsManagerEx(tolua_S); lua_register_ax_extension_ParticleSystem3D(tolua_S); lua_register_ax_extension_PUParticleSystem3D(tolua_S); diff --git a/extensions/scripting/lua-bindings/auto/axlua_navmesh_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_navmesh_auto.cpp index 8465cd02e8..82fed01f09 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_navmesh_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_navmesh_auto.cpp @@ -5,6 +5,297 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" +int lua_ax_navmesh_NavMeshAgent_setRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshAgent:setRadius"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setRadius'", nullptr); + return 0; + } + cobj->setRadius(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setRadius",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_setHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshAgent:setHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setHeight'", nullptr); + return 0; + } + cobj->setHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_getHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_setMaxAcceleration(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setMaxAcceleration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshAgent:setMaxAcceleration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setMaxAcceleration'", nullptr); + return 0; + } + cobj->setMaxAcceleration(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setMaxAcceleration",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setMaxAcceleration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_getMaxAcceleration(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getMaxAcceleration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getMaxAcceleration'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxAcceleration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getMaxAcceleration",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getMaxAcceleration'.",&tolua_err); +#endif + + return 0; +} int lua_ax_navmesh_NavMeshAgent_setMaxSpeed(lua_State* tolua_S) { int argc = 0; @@ -55,7 +346,7 @@ int lua_ax_navmesh_NavMeshAgent_setMaxSpeed(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -75,7 +366,7 @@ int lua_ax_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_syncToNode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getMaxSpeed'", nullptr); return 0; } #endif @@ -85,304 +376,19 @@ int lua_ax_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_syncToNode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getMaxSpeed'", nullptr); return 0; } - cobj->syncToNode(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:syncToNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_syncToNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_completeOffMeshLink(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_completeOffMeshLink'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_completeOffMeshLink'", nullptr); - return 0; - } - cobj->completeOffMeshLink(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:completeOffMeshLink",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_completeOffMeshLink'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_getSeparationWeight(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getSeparationWeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getSeparationWeight'", nullptr); - return 0; - } - auto&& ret = cobj->getSeparationWeight(); + auto&& ret = cobj->getMaxSpeed(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getSeparationWeight",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getMaxSpeed",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getSeparationWeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.NavMeshAgent:setAutoTraverseOffMeshLink"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink'", nullptr); - return 0; - } - cobj->setAutoTraverseOffMeshLink(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setAutoTraverseOffMeshLink",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_getCurrentVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getCurrentVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getCurrentVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getCurrentVelocity(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getCurrentVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getCurrentVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_syncToAgent(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_syncToAgent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_syncToAgent'", nullptr); - return 0; - } - cobj->syncToAgent(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:syncToAgent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_syncToAgent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink'", nullptr); - return 0; - } - auto&& ret = cobj->isOnOffMeshLink(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:isOnOffMeshLink",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getMaxSpeed'.",&tolua_err); #endif return 0; @@ -437,6 +443,197 @@ int lua_ax_navmesh_NavMeshAgent_setSeparationWeight(lua_State* tolua_S) return 0; } +int lua_ax_navmesh_NavMeshAgent_getSeparationWeight(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getSeparationWeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getSeparationWeight'", nullptr); + return 0; + } + auto&& ret = cobj->getSeparationWeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getSeparationWeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getSeparationWeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "ax.NavMeshAgent:setObstacleAvoidanceType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType'", nullptr); + return 0; + } + cobj->setObstacleAvoidanceType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setObstacleAvoidanceType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType'", nullptr); + return 0; + } + auto&& ret = cobj->getObstacleAvoidanceType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getObstacleAvoidanceType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_getCurrentVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getCurrentVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getCurrentVelocity'", nullptr); + return 0; + } + auto&& ret = cobj->getCurrentVelocity(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getCurrentVelocity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getCurrentVelocity'.",&tolua_err); +#endif + + return 0; +} int lua_ax_navmesh_NavMeshAgent_pause(lua_State* tolua_S) { int argc = 0; @@ -484,7 +681,7 @@ int lua_ax_navmesh_NavMeshAgent_pause(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_resume(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -504,7 +701,7 @@ int lua_ax_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getUserData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_resume'", nullptr); return 0; } #endif @@ -514,19 +711,116 @@ int lua_ax_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getUserData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_resume'", nullptr); return 0; } - auto&& ret = cobj->getUserData(); - #pragma warning NO CONVERSION FROM NATIVE FOR void*; + cobj->resume(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getUserData",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:resume",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getUserData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_resume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_stop(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_stop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_stop'", nullptr); + return 0; + } + cobj->stop(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:stop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_stop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.NavMeshAgent:setOrientationRefAxes"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes'", nullptr); + return 0; + } + cobj->setOrientationRefAxes(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setOrientationRefAxes",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes'.",&tolua_err); #endif return 0; @@ -581,7 +875,7 @@ int lua_ax_navmesh_NavMeshAgent_setAutoOrientation(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshAgent_getHeight(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -601,34 +895,37 @@ int lua_ax_navmesh_NavMeshAgent_getHeight(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getHeight'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.NavMeshAgent:setAutoTraverseOffMeshLink"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getHeight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink'", nullptr); return 0; } - auto&& ret = cobj->getHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setAutoTraverseOffMeshLink(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getHeight",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setAutoTraverseOffMeshLink",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getHeight'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink'.",&tolua_err); #endif return 0; } -int lua_ax_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -648,7 +945,7 @@ int lua_ax_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getMaxSpeed'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink'", nullptr); return 0; } #endif @@ -658,19 +955,66 @@ int lua_ax_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getMaxSpeed'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink'", nullptr); return 0; } - auto&& ret = cobj->getMaxSpeed(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->isOnOffMeshLink(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getMaxSpeed",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:isOnOffMeshLink",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getMaxSpeed'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_completeOffMeshLink(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_completeOffMeshLink'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_completeOffMeshLink'", nullptr); + return 0; + } + cobj->completeOffMeshLink(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:completeOffMeshLink",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_completeOffMeshLink'.",&tolua_err); #endif return 0; @@ -722,7 +1066,7 @@ int lua_ax_navmesh_NavMeshAgent_getCurrentOffMeshLinkData(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_setUserData(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -742,7 +1086,58 @@ int lua_ax_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getRadius'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setUserData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + void* arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR void* + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setUserData'", nullptr); + return 0; + } + cobj->setUserData(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setUserData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setUserData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshAgent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getUserData'", nullptr); return 0; } #endif @@ -752,19 +1147,19 @@ int lua_ax_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getRadius'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getUserData'", nullptr); return 0; } - auto&& ret = cobj->getRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getUserData(); + #pragma warning NO CONVERSION FROM NATIVE FOR void*; return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getRadius",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getUserData",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getRadius'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getUserData'.",&tolua_err); #endif return 0; @@ -866,7 +1261,7 @@ int lua_ax_navmesh_NavMeshAgent_getSyncFlag(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshAgent_resume(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_syncToAgent(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -886,7 +1281,7 @@ int lua_ax_navmesh_NavMeshAgent_resume(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_resume'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_syncToAgent'", nullptr); return 0; } #endif @@ -896,24 +1291,24 @@ int lua_ax_navmesh_NavMeshAgent_resume(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_resume'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_syncToAgent'", nullptr); return 0; } - cobj->resume(); + cobj->syncToAgent(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:resume",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:syncToAgent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_resume'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_syncToAgent'.",&tolua_err); #endif return 0; } -int lua_ax_navmesh_NavMeshAgent_stop(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) { int argc = 0; ax::NavMeshAgent* cobj = nullptr; @@ -933,7 +1328,7 @@ int lua_ax_navmesh_NavMeshAgent_stop(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_stop'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_syncToNode'", nullptr); return 0; } #endif @@ -943,314 +1338,19 @@ int lua_ax_navmesh_NavMeshAgent_stop(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_stop'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_syncToNode'", nullptr); return 0; } - cobj->stop(); + cobj->syncToNode(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:stop",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:syncToNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_stop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_setMaxAcceleration(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setMaxAcceleration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshAgent:setMaxAcceleration"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setMaxAcceleration'", nullptr); - return 0; - } - cobj->setMaxAcceleration(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setMaxAcceleration",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setMaxAcceleration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.NavMeshAgent:setOrientationRefAxes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes'", nullptr); - return 0; - } - cobj->setOrientationRefAxes(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setOrientationRefAxes",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_getMaxAcceleration(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getMaxAcceleration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getMaxAcceleration'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxAcceleration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getMaxAcceleration",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getMaxAcceleration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_setHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshAgent:setHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setHeight'", nullptr); - return 0; - } - cobj->setHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_setUserData(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setUserData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - void* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR void* - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setUserData'", nullptr); - return 0; - } - cobj->setUserData(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setUserData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setUserData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType'", nullptr); - return 0; - } - auto&& ret = cobj->getObstacleAvoidanceType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:getObstacleAvoidanceType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_syncToNode'.",&tolua_err); #endif return 0; @@ -1302,140 +1402,6 @@ int lua_ax_navmesh_NavMeshAgent_getVelocity(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshAgent_setRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshAgent:setRadius"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setRadius'", nullptr); - return 0; - } - cobj->setRadius(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setRadius",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshAgent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - uint16_t arg0; - - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "ax.NavMeshAgent:setObstacleAvoidanceType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType'", nullptr); - return 0; - } - cobj->setObstacleAvoidanceType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:setObstacleAvoidanceType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName'", nullptr); - return 0; - } - auto&& ret = ax::NavMeshAgent::getNavMeshAgentComponentName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.NavMeshAgent:getNavMeshAgentComponentName",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName'.",&tolua_err); -#endif - return 0; -} int lua_ax_navmesh_NavMeshAgent_create(lua_State* tolua_S) { int argc = 0; @@ -1472,6 +1438,40 @@ int lua_ax_navmesh_NavMeshAgent_create(lua_State* tolua_S) #endif return 0; } +int lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName'", nullptr); + return 0; + } + auto&& ret = ax::NavMeshAgent::getNavMeshAgentComponentName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.NavMeshAgent:getNavMeshAgentComponentName",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName'.",&tolua_err); +#endif + return 0; +} int lua_ax_navmesh_NavMeshAgent_constructor(lua_State* tolua_S) { int argc = 0; @@ -1522,37 +1522,37 @@ int lua_register_ax_navmesh_NavMeshAgent(lua_State* tolua_S) tolua_beginmodule(tolua_S,"NavMeshAgent"); tolua_function(tolua_S,"new",lua_ax_navmesh_NavMeshAgent_constructor); - tolua_function(tolua_S,"setMaxSpeed",lua_ax_navmesh_NavMeshAgent_setMaxSpeed); - tolua_function(tolua_S,"syncToNode",lua_ax_navmesh_NavMeshAgent_syncToNode); - tolua_function(tolua_S,"completeOffMeshLink",lua_ax_navmesh_NavMeshAgent_completeOffMeshLink); - tolua_function(tolua_S,"getSeparationWeight",lua_ax_navmesh_NavMeshAgent_getSeparationWeight); - tolua_function(tolua_S,"setAutoTraverseOffMeshLink",lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink); - tolua_function(tolua_S,"getCurrentVelocity",lua_ax_navmesh_NavMeshAgent_getCurrentVelocity); - tolua_function(tolua_S,"syncToAgent",lua_ax_navmesh_NavMeshAgent_syncToAgent); - tolua_function(tolua_S,"isOnOffMeshLink",lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink); - tolua_function(tolua_S,"setSeparationWeight",lua_ax_navmesh_NavMeshAgent_setSeparationWeight); - tolua_function(tolua_S,"pause",lua_ax_navmesh_NavMeshAgent_pause); - tolua_function(tolua_S,"getUserData",lua_ax_navmesh_NavMeshAgent_getUserData); - tolua_function(tolua_S,"setAutoOrientation",lua_ax_navmesh_NavMeshAgent_setAutoOrientation); - tolua_function(tolua_S,"getHeight",lua_ax_navmesh_NavMeshAgent_getHeight); - tolua_function(tolua_S,"getMaxSpeed",lua_ax_navmesh_NavMeshAgent_getMaxSpeed); - tolua_function(tolua_S,"getCurrentOffMeshLinkData",lua_ax_navmesh_NavMeshAgent_getCurrentOffMeshLinkData); + tolua_function(tolua_S,"setRadius",lua_ax_navmesh_NavMeshAgent_setRadius); tolua_function(tolua_S,"getRadius",lua_ax_navmesh_NavMeshAgent_getRadius); - tolua_function(tolua_S,"setSyncFlag",lua_ax_navmesh_NavMeshAgent_setSyncFlag); - tolua_function(tolua_S,"getSyncFlag",lua_ax_navmesh_NavMeshAgent_getSyncFlag); + tolua_function(tolua_S,"setHeight",lua_ax_navmesh_NavMeshAgent_setHeight); + tolua_function(tolua_S,"getHeight",lua_ax_navmesh_NavMeshAgent_getHeight); + tolua_function(tolua_S,"setMaxAcceleration",lua_ax_navmesh_NavMeshAgent_setMaxAcceleration); + tolua_function(tolua_S,"getMaxAcceleration",lua_ax_navmesh_NavMeshAgent_getMaxAcceleration); + tolua_function(tolua_S,"setMaxSpeed",lua_ax_navmesh_NavMeshAgent_setMaxSpeed); + tolua_function(tolua_S,"getMaxSpeed",lua_ax_navmesh_NavMeshAgent_getMaxSpeed); + tolua_function(tolua_S,"setSeparationWeight",lua_ax_navmesh_NavMeshAgent_setSeparationWeight); + tolua_function(tolua_S,"getSeparationWeight",lua_ax_navmesh_NavMeshAgent_getSeparationWeight); + tolua_function(tolua_S,"setObstacleAvoidanceType",lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType); + tolua_function(tolua_S,"getObstacleAvoidanceType",lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType); + tolua_function(tolua_S,"getCurrentVelocity",lua_ax_navmesh_NavMeshAgent_getCurrentVelocity); + tolua_function(tolua_S,"pause",lua_ax_navmesh_NavMeshAgent_pause); tolua_function(tolua_S,"resume",lua_ax_navmesh_NavMeshAgent_resume); tolua_function(tolua_S,"stop",lua_ax_navmesh_NavMeshAgent_stop); - tolua_function(tolua_S,"setMaxAcceleration",lua_ax_navmesh_NavMeshAgent_setMaxAcceleration); tolua_function(tolua_S,"setOrientationRefAxes",lua_ax_navmesh_NavMeshAgent_setOrientationRefAxes); - tolua_function(tolua_S,"getMaxAcceleration",lua_ax_navmesh_NavMeshAgent_getMaxAcceleration); - tolua_function(tolua_S,"setHeight",lua_ax_navmesh_NavMeshAgent_setHeight); + tolua_function(tolua_S,"setAutoOrientation",lua_ax_navmesh_NavMeshAgent_setAutoOrientation); + tolua_function(tolua_S,"setAutoTraverseOffMeshLink",lua_ax_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink); + tolua_function(tolua_S,"isOnOffMeshLink",lua_ax_navmesh_NavMeshAgent_isOnOffMeshLink); + tolua_function(tolua_S,"completeOffMeshLink",lua_ax_navmesh_NavMeshAgent_completeOffMeshLink); + tolua_function(tolua_S,"getCurrentOffMeshLinkData",lua_ax_navmesh_NavMeshAgent_getCurrentOffMeshLinkData); tolua_function(tolua_S,"setUserData",lua_ax_navmesh_NavMeshAgent_setUserData); - tolua_function(tolua_S,"getObstacleAvoidanceType",lua_ax_navmesh_NavMeshAgent_getObstacleAvoidanceType); + tolua_function(tolua_S,"getUserData",lua_ax_navmesh_NavMeshAgent_getUserData); + tolua_function(tolua_S,"setSyncFlag",lua_ax_navmesh_NavMeshAgent_setSyncFlag); + tolua_function(tolua_S,"getSyncFlag",lua_ax_navmesh_NavMeshAgent_getSyncFlag); + tolua_function(tolua_S,"syncToAgent",lua_ax_navmesh_NavMeshAgent_syncToAgent); + tolua_function(tolua_S,"syncToNode",lua_ax_navmesh_NavMeshAgent_syncToNode); tolua_function(tolua_S,"getVelocity",lua_ax_navmesh_NavMeshAgent_getVelocity); - tolua_function(tolua_S,"setRadius",lua_ax_navmesh_NavMeshAgent_setRadius); - tolua_function(tolua_S,"setObstacleAvoidanceType",lua_ax_navmesh_NavMeshAgent_setObstacleAvoidanceType); - tolua_function(tolua_S,"getNavMeshAgentComponentName", lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName); tolua_function(tolua_S,"create", lua_ax_navmesh_NavMeshAgent_create); + tolua_function(tolua_S,"getNavMeshAgentComponentName", lua_ax_navmesh_NavMeshAgent_getNavMeshAgentComponentName); tolua_endmodule(tolua_S); auto typeName = typeid(ax::NavMeshAgent).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.NavMeshAgent"; @@ -1560,7 +1560,7 @@ int lua_register_ax_navmesh_NavMeshAgent(lua_State* tolua_S) return 1; } -int lua_ax_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshObstacle_getRadius(lua_State* tolua_S) { int argc = 0; ax::NavMeshObstacle* cobj = nullptr; @@ -1580,7 +1580,7 @@ int lua_ax_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_getSyncFlag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_getRadius'", nullptr); return 0; } #endif @@ -1590,166 +1590,19 @@ int lua_ax_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_getSyncFlag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_getRadius'", nullptr); return 0; } - int ret = (int)cobj->getSyncFlag(); + auto&& ret = cobj->getRadius(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:getSyncFlag",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:getRadius",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_getSyncFlag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshObstacle_initWith(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshObstacle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_initWith'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - double arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshObstacle:initWith"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.NavMeshObstacle:initWith"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_initWith'", nullptr); - return 0; - } - auto&& ret = cobj->initWith(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:initWith",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_initWith'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshObstacle_syncToObstacle(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshObstacle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_syncToObstacle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_syncToObstacle'", nullptr); - return 0; - } - cobj->syncToObstacle(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:syncToObstacle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_syncToObstacle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMeshObstacle_syncToNode(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMeshObstacle* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_syncToNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_syncToNode'", nullptr); - return 0; - } - cobj->syncToNode(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:syncToNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_syncToNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_getRadius'.",&tolua_err); #endif return 0; @@ -1851,7 +1704,7 @@ int lua_ax_navmesh_NavMeshObstacle_setSyncFlag(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMeshObstacle_getRadius(lua_State* tolua_S) +int lua_ax_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) { int argc = 0; ax::NavMeshObstacle* cobj = nullptr; @@ -1871,7 +1724,7 @@ int lua_ax_navmesh_NavMeshObstacle_getRadius(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_getRadius'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_getSyncFlag'", nullptr); return 0; } #endif @@ -1881,19 +1734,166 @@ int lua_ax_navmesh_NavMeshObstacle_getRadius(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_getRadius'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_getSyncFlag'", nullptr); return 0; } - auto&& ret = cobj->getRadius(); + int ret = (int)cobj->getSyncFlag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:getRadius",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:getSyncFlag",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_getRadius'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_getSyncFlag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshObstacle_syncToObstacle(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshObstacle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_syncToObstacle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_syncToObstacle'", nullptr); + return 0; + } + cobj->syncToObstacle(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:syncToObstacle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_syncToObstacle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshObstacle_syncToNode(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshObstacle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_syncToNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_syncToNode'", nullptr); + return 0; + } + cobj->syncToNode(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:syncToNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_syncToNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMeshObstacle_initWith(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMeshObstacle* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMeshObstacle_initWith'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.NavMeshObstacle:initWith"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.NavMeshObstacle:initWith"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMeshObstacle_initWith'", nullptr); + return 0; + } + auto&& ret = cobj->initWith(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshObstacle:initWith",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMeshObstacle_initWith'.",&tolua_err); #endif return 0; @@ -2020,13 +2020,13 @@ int lua_register_ax_navmesh_NavMeshObstacle(lua_State* tolua_S) tolua_beginmodule(tolua_S,"NavMeshObstacle"); tolua_function(tolua_S,"new",lua_ax_navmesh_NavMeshObstacle_constructor); - tolua_function(tolua_S,"getSyncFlag",lua_ax_navmesh_NavMeshObstacle_getSyncFlag); - tolua_function(tolua_S,"initWith",lua_ax_navmesh_NavMeshObstacle_initWith); - tolua_function(tolua_S,"syncToObstacle",lua_ax_navmesh_NavMeshObstacle_syncToObstacle); - tolua_function(tolua_S,"syncToNode",lua_ax_navmesh_NavMeshObstacle_syncToNode); + tolua_function(tolua_S,"getRadius",lua_ax_navmesh_NavMeshObstacle_getRadius); tolua_function(tolua_S,"getHeight",lua_ax_navmesh_NavMeshObstacle_getHeight); tolua_function(tolua_S,"setSyncFlag",lua_ax_navmesh_NavMeshObstacle_setSyncFlag); - tolua_function(tolua_S,"getRadius",lua_ax_navmesh_NavMeshObstacle_getRadius); + tolua_function(tolua_S,"getSyncFlag",lua_ax_navmesh_NavMeshObstacle_getSyncFlag); + tolua_function(tolua_S,"syncToObstacle",lua_ax_navmesh_NavMeshObstacle_syncToObstacle); + tolua_function(tolua_S,"syncToNode",lua_ax_navmesh_NavMeshObstacle_syncToNode); + tolua_function(tolua_S,"initWith",lua_ax_navmesh_NavMeshObstacle_initWith); tolua_function(tolua_S,"create", lua_ax_navmesh_NavMeshObstacle_create); tolua_function(tolua_S,"getNavMeshObstacleComponentName", lua_ax_navmesh_NavMeshObstacle_getNavMeshObstacleComponentName); tolua_endmodule(tolua_S); @@ -2036,106 +2036,6 @@ int lua_register_ax_navmesh_NavMeshObstacle(lua_State* tolua_S) return 1; } -int lua_ax_navmesh_NavMesh_removeNavMeshObstacle(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_removeNavMeshObstacle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::NavMeshObstacle* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.NavMeshObstacle",&arg0, "ax.NavMesh:removeNavMeshObstacle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_removeNavMeshObstacle'", nullptr); - return 0; - } - cobj->removeNavMeshObstacle(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:removeNavMeshObstacle",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_removeNavMeshObstacle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMesh_removeNavMeshAgent(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_removeNavMeshAgent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::NavMeshAgent* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.NavMeshAgent",&arg0, "ax.NavMesh:removeNavMeshAgent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_removeNavMeshAgent'", nullptr); - return 0; - } - cobj->removeNavMeshAgent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:removeNavMeshAgent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_removeNavMeshAgent'.",&tolua_err); -#endif - - return 0; -} int lua_ax_navmesh_NavMesh_update(lua_State* tolua_S) { int argc = 0; @@ -2186,6 +2086,106 @@ int lua_ax_navmesh_NavMesh_update(lua_State* tolua_S) return 0; } +int lua_ax_navmesh_NavMesh_debugDraw(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_debugDraw'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Renderer* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Renderer",&arg0, "ax.NavMesh:debugDraw"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_debugDraw'", nullptr); + return 0; + } + cobj->debugDraw(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:debugDraw",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_debugDraw'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_setDebugDrawEnable'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.NavMesh:setDebugDrawEnable"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_setDebugDrawEnable'", nullptr); + return 0; + } + cobj->setDebugDrawEnable(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:setDebugDrawEnable",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_setDebugDrawEnable'.",&tolua_err); +#endif + + return 0; +} int lua_ax_navmesh_NavMesh_isDebugDrawEnabled(lua_State* tolua_S) { int argc = 0; @@ -2283,6 +2283,56 @@ int lua_ax_navmesh_NavMesh_addNavMeshAgent(lua_State* tolua_S) return 0; } +int lua_ax_navmesh_NavMesh_removeNavMeshAgent(lua_State* tolua_S) +{ + int argc = 0; + ax::NavMesh* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.NavMesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::NavMesh*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_removeNavMeshAgent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::NavMeshAgent* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.NavMeshAgent",&arg0, "ax.NavMesh:removeNavMeshAgent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_removeNavMeshAgent'", nullptr); + return 0; + } + cobj->removeNavMeshAgent(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:removeNavMeshAgent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_removeNavMeshAgent'.",&tolua_err); +#endif + + return 0; +} int lua_ax_navmesh_NavMesh_addNavMeshObstacle(lua_State* tolua_S) { int argc = 0; @@ -2333,7 +2383,7 @@ int lua_ax_navmesh_NavMesh_addNavMeshObstacle(lua_State* tolua_S) return 0; } -int lua_ax_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) +int lua_ax_navmesh_NavMesh_removeNavMeshObstacle(lua_State* tolua_S) { int argc = 0; ax::NavMesh* cobj = nullptr; @@ -2353,7 +2403,7 @@ int lua_ax_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_setDebugDrawEnable'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_removeNavMeshObstacle'", nullptr); return 0; } #endif @@ -2361,74 +2411,24 @@ int lua_ax_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + ax::NavMeshObstacle* arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.NavMesh:setDebugDrawEnable"); + ok &= luaval_to_object(tolua_S, 2, "ax.NavMeshObstacle",&arg0, "ax.NavMesh:removeNavMeshObstacle"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_setDebugDrawEnable'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_removeNavMeshObstacle'", nullptr); return 0; } - cobj->setDebugDrawEnable(arg0); + cobj->removeNavMeshObstacle(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:setDebugDrawEnable",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:removeNavMeshObstacle",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_setDebugDrawEnable'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_navmesh_NavMesh_debugDraw(lua_State* tolua_S) -{ - int argc = 0; - ax::NavMesh* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.NavMesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::NavMesh*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_navmesh_NavMesh_debugDraw'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Renderer* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Renderer",&arg0, "ax.NavMesh:debugDraw"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_navmesh_NavMesh_debugDraw'", nullptr); - return 0; - } - cobj->debugDraw(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMesh:debugDraw",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_debugDraw'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_navmesh_NavMesh_removeNavMeshObstacle'.",&tolua_err); #endif return 0; @@ -2521,14 +2521,14 @@ int lua_register_ax_navmesh_NavMesh(lua_State* tolua_S) tolua_beginmodule(tolua_S,"NavMesh"); tolua_function(tolua_S,"new",lua_ax_navmesh_NavMesh_constructor); - tolua_function(tolua_S,"removeNavMeshObstacle",lua_ax_navmesh_NavMesh_removeNavMeshObstacle); - tolua_function(tolua_S,"removeNavMeshAgent",lua_ax_navmesh_NavMesh_removeNavMeshAgent); tolua_function(tolua_S,"update",lua_ax_navmesh_NavMesh_update); + tolua_function(tolua_S,"debugDraw",lua_ax_navmesh_NavMesh_debugDraw); + tolua_function(tolua_S,"setDebugDrawEnable",lua_ax_navmesh_NavMesh_setDebugDrawEnable); tolua_function(tolua_S,"isDebugDrawEnabled",lua_ax_navmesh_NavMesh_isDebugDrawEnabled); tolua_function(tolua_S,"addNavMeshAgent",lua_ax_navmesh_NavMesh_addNavMeshAgent); + tolua_function(tolua_S,"removeNavMeshAgent",lua_ax_navmesh_NavMesh_removeNavMeshAgent); tolua_function(tolua_S,"addNavMeshObstacle",lua_ax_navmesh_NavMesh_addNavMeshObstacle); - tolua_function(tolua_S,"setDebugDrawEnable",lua_ax_navmesh_NavMesh_setDebugDrawEnable); - tolua_function(tolua_S,"debugDraw",lua_ax_navmesh_NavMesh_debugDraw); + tolua_function(tolua_S,"removeNavMeshObstacle",lua_ax_navmesh_NavMesh_removeNavMeshObstacle); tolua_function(tolua_S,"create", lua_ax_navmesh_NavMesh_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::NavMesh).name(); // rtti is literal storage @@ -2543,8 +2543,8 @@ TOLUA_API int register_all_ax_navmesh(lua_State* tolua_S) tolua_module(tolua_S,"ax",0); tolua_beginmodule(tolua_S,"ax"); - lua_register_ax_navmesh_NavMeshObstacle(tolua_S); lua_register_ax_navmesh_NavMeshAgent(tolua_S); + lua_register_ax_navmesh_NavMeshObstacle(tolua_S); lua_register_ax_navmesh_NavMesh(tolua_S); tolua_endmodule(tolua_S); diff --git a/extensions/scripting/lua-bindings/auto/axlua_physics3d_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_physics3d_auto.cpp index a75af38905..7dab6afc37 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_physics3d_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_physics3d_auto.cpp @@ -4,6 +4,53 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" +int lua_ax_physics3d_Physics3DShape_getShapeType(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DShape_getShapeType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_getShapeType'", nullptr); + return 0; + } + int ret = (int)cobj->getShapeType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DShape:getShapeType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_getShapeType'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DShape_getbtShape(lua_State* tolua_S) { int argc = 0; @@ -51,56 +98,6 @@ int lua_ax_physics3d_Physics3DShape_getbtShape(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DShape_initSphere(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DShape_initSphere'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DShape:initSphere"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_initSphere'", nullptr); - return 0; - } - auto&& ret = cobj->initSphere(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DShape:initSphere",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_initSphere'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DShape_initBox(lua_State* tolua_S) { int argc = 0; @@ -151,7 +148,7 @@ int lua_ax_physics3d_Physics3DShape_initBox(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DShape_initCapsule(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DShape_initSphere(lua_State* tolua_S) { int argc = 0; ax::Physics3DShape* cobj = nullptr; @@ -171,35 +168,32 @@ int lua_ax_physics3d_Physics3DShape_initCapsule(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DShape_initCapsule'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DShape_initSphere'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 1) { double arg0; - double arg1; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DShape:initCapsule"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Physics3DShape:initCapsule"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DShape:initSphere"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_initCapsule'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_initSphere'", nullptr); return 0; } - auto&& ret = cobj->initCapsule(arg0, arg1); + auto&& ret = cobj->initSphere(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DShape:initCapsule",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DShape:initSphere",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_initCapsule'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_initSphere'.",&tolua_err); #endif return 0; @@ -257,7 +251,7 @@ int lua_ax_physics3d_Physics3DShape_initCylinder(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DShape_getShapeType(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DShape_initCapsule(lua_State* tolua_S) { int argc = 0; ax::Physics3DShape* cobj = nullptr; @@ -277,29 +271,35 @@ int lua_ax_physics3d_Physics3DShape_getShapeType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DShape_getShapeType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DShape_initCapsule'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DShape:initCapsule"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Physics3DShape:initCapsule"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_getShapeType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_initCapsule'", nullptr); return 0; } - int ret = (int)cobj->getShapeType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->initCapsule(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DShape:getShapeType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DShape:initCapsule",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_getShapeType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_initCapsule'.",&tolua_err); #endif return 0; @@ -340,6 +340,42 @@ int lua_ax_physics3d_Physics3DShape_createBox(lua_State* tolua_S) #endif return 0; } +int lua_ax_physics3d_Physics3DShape_createSphere(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Physics3DShape",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DShape:createSphere"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_createSphere'", nullptr); + return 0; + } + auto&& ret = ax::Physics3DShape::createSphere(arg0); + object_to_luaval(tolua_S, "ax.Physics3DShape",(ax::Physics3DShape*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createSphere",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_createSphere'.",&tolua_err); +#endif + return 0; +} int lua_ax_physics3d_Physics3DShape_createCylinder(lua_State* tolua_S) { int argc = 0; @@ -378,44 +414,6 @@ int lua_ax_physics3d_Physics3DShape_createCylinder(lua_State* tolua_S) #endif return 0; } -int lua_ax_physics3d_Physics3DShape_createConvexHull(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.Physics3DShape",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - const ax::Vec3* arg0; - int arg1; - ok &= luaval_to_object(tolua_S, 2, "ax.Vec3",&arg0, "ax.Physics3DShape:createConvexHull"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Physics3DShape:createConvexHull"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_createConvexHull'", nullptr); - return 0; - } - auto&& ret = ax::Physics3DShape::createConvexHull(arg0, arg1); - object_to_luaval(tolua_S, "ax.Physics3DShape",(ax::Physics3DShape*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createConvexHull",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_createConvexHull'.",&tolua_err); -#endif - return 0; -} int lua_ax_physics3d_Physics3DShape_createCapsule(lua_State* tolua_S) { int argc = 0; @@ -454,7 +452,7 @@ int lua_ax_physics3d_Physics3DShape_createCapsule(lua_State* tolua_S) #endif return 0; } -int lua_ax_physics3d_Physics3DShape_createSphere(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DShape_createConvexHull(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -469,24 +467,26 @@ int lua_ax_physics3d_Physics3DShape_createSphere(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 1) + if (argc == 2) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DShape:createSphere"); + const ax::Vec3* arg0; + int arg1; + ok &= luaval_to_object(tolua_S, 2, "ax.Vec3",&arg0, "ax.Physics3DShape:createConvexHull"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Physics3DShape:createConvexHull"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_createSphere'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DShape_createConvexHull'", nullptr); return 0; } - auto&& ret = ax::Physics3DShape::createSphere(arg0); + auto&& ret = ax::Physics3DShape::createConvexHull(arg0, arg1); object_to_luaval(tolua_S, "ax.Physics3DShape",(ax::Physics3DShape*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createSphere",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createConvexHull",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_createSphere'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DShape_createConvexHull'.",&tolua_err); #endif return 0; } @@ -540,17 +540,17 @@ int lua_register_ax_physics3d_Physics3DShape(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DShape"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DShape_constructor); - tolua_function(tolua_S,"getbtShape",lua_ax_physics3d_Physics3DShape_getbtShape); - tolua_function(tolua_S,"initSphere",lua_ax_physics3d_Physics3DShape_initSphere); - tolua_function(tolua_S,"initBox",lua_ax_physics3d_Physics3DShape_initBox); - tolua_function(tolua_S,"initCapsule",lua_ax_physics3d_Physics3DShape_initCapsule); - tolua_function(tolua_S,"initCylinder",lua_ax_physics3d_Physics3DShape_initCylinder); tolua_function(tolua_S,"getShapeType",lua_ax_physics3d_Physics3DShape_getShapeType); + tolua_function(tolua_S,"getbtShape",lua_ax_physics3d_Physics3DShape_getbtShape); + tolua_function(tolua_S,"initBox",lua_ax_physics3d_Physics3DShape_initBox); + tolua_function(tolua_S,"initSphere",lua_ax_physics3d_Physics3DShape_initSphere); + tolua_function(tolua_S,"initCylinder",lua_ax_physics3d_Physics3DShape_initCylinder); + tolua_function(tolua_S,"initCapsule",lua_ax_physics3d_Physics3DShape_initCapsule); tolua_function(tolua_S,"createBox", lua_ax_physics3d_Physics3DShape_createBox); - tolua_function(tolua_S,"createCylinder", lua_ax_physics3d_Physics3DShape_createCylinder); - tolua_function(tolua_S,"createConvexHull", lua_ax_physics3d_Physics3DShape_createConvexHull); - tolua_function(tolua_S,"createCapsule", lua_ax_physics3d_Physics3DShape_createCapsule); tolua_function(tolua_S,"createSphere", lua_ax_physics3d_Physics3DShape_createSphere); + tolua_function(tolua_S,"createCylinder", lua_ax_physics3d_Physics3DShape_createCylinder); + tolua_function(tolua_S,"createCapsule", lua_ax_physics3d_Physics3DShape_createCapsule); + tolua_function(tolua_S,"createConvexHull", lua_ax_physics3d_Physics3DShape_createConvexHull); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DShape).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Physics3DShape"; @@ -558,6 +558,53 @@ int lua_register_ax_physics3d_Physics3DShape(lua_State* tolua_S) return 1; } +int lua_ax_physics3d_Physics3DObject_getObjType(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_getObjType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_getObjType'", nullptr); + return 0; + } + int ret = (int)cobj->getObjType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:getObjType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_getObjType'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DObject_setUserData(lua_State* tolua_S) { int argc = 0; @@ -656,53 +703,6 @@ int lua_ax_physics3d_Physics3DObject_getUserData(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DObject_getObjType(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_getObjType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_getObjType'", nullptr); - return 0; - } - int ret = (int)cobj->getObjType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:getObjType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_getObjType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DObject_setPhysicsWorld(lua_State* tolua_S) { int argc = 0; @@ -753,6 +753,53 @@ int lua_ax_physics3d_Physics3DObject_setPhysicsWorld(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_getPhysicsWorld'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_getPhysicsWorld'", nullptr); + return 0; + } + auto&& ret = cobj->getPhysicsWorld(); + object_to_luaval(tolua_S, "ax.Physics3DWorld",(ax::Physics3DWorld*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:getPhysicsWorld",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_getPhysicsWorld'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DObject_getWorldTransform(lua_State* tolua_S) { int argc = 0; @@ -800,7 +847,7 @@ int lua_ax_physics3d_Physics3DObject_getWorldTransform(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DObject_getCollisionCallback(lua_State* tolua_S) { int argc = 0; ax::Physics3DObject* cobj = nullptr; @@ -820,7 +867,7 @@ int lua_ax_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_getPhysicsWorld'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_getCollisionCallback'", nullptr); return 0; } #endif @@ -830,19 +877,66 @@ int lua_ax_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_getPhysicsWorld'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_getCollisionCallback'", nullptr); return 0; } - auto&& ret = cobj->getPhysicsWorld(); - object_to_luaval(tolua_S, "ax.Physics3DWorld",(ax::Physics3DWorld*)ret); + auto&& ret = cobj->getCollisionCallback(); + #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:getPhysicsWorld",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:getCollisionCallback",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_getPhysicsWorld'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_getCollisionCallback'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DObject_needCollisionCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_needCollisionCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_needCollisionCallback'", nullptr); + return 0; + } + auto&& ret = cobj->needCollisionCallback(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:needCollisionCallback",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_needCollisionCallback'.",&tolua_err); #endif return 0; @@ -897,53 +991,6 @@ int lua_ax_physics3d_Physics3DObject_setMask(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DObject_getCollisionCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_getCollisionCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_getCollisionCallback'", nullptr); - return 0; - } - auto&& ret = cobj->getCollisionCallback(); - #pragma warning NO CONVERSION FROM NATIVE FOR std::function; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:getCollisionCallback",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_getCollisionCallback'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DObject_getMask(lua_State* tolua_S) { int argc = 0; @@ -991,53 +1038,6 @@ int lua_ax_physics3d_Physics3DObject_getMask(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DObject_needCollisionCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DObject_needCollisionCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DObject_needCollisionCallback'", nullptr); - return 0; - } - auto&& ret = cobj->needCollisionCallback(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DObject:needCollisionCallback",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DObject_needCollisionCallback'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_physics3d_Physics3DObject_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Physics3DObject)"); @@ -1050,16 +1050,16 @@ int lua_register_ax_physics3d_Physics3DObject(lua_State* tolua_S) tolua_cclass(tolua_S,"Physics3DObject","ax.Physics3DObject","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Physics3DObject"); + tolua_function(tolua_S,"getObjType",lua_ax_physics3d_Physics3DObject_getObjType); tolua_function(tolua_S,"setUserData",lua_ax_physics3d_Physics3DObject_setUserData); tolua_function(tolua_S,"getUserData",lua_ax_physics3d_Physics3DObject_getUserData); - tolua_function(tolua_S,"getObjType",lua_ax_physics3d_Physics3DObject_getObjType); tolua_function(tolua_S,"setPhysicsWorld",lua_ax_physics3d_Physics3DObject_setPhysicsWorld); - tolua_function(tolua_S,"getWorldTransform",lua_ax_physics3d_Physics3DObject_getWorldTransform); tolua_function(tolua_S,"getPhysicsWorld",lua_ax_physics3d_Physics3DObject_getPhysicsWorld); - tolua_function(tolua_S,"setMask",lua_ax_physics3d_Physics3DObject_setMask); + tolua_function(tolua_S,"getWorldTransform",lua_ax_physics3d_Physics3DObject_getWorldTransform); tolua_function(tolua_S,"getCollisionCallback",lua_ax_physics3d_Physics3DObject_getCollisionCallback); - tolua_function(tolua_S,"getMask",lua_ax_physics3d_Physics3DObject_getMask); tolua_function(tolua_S,"needCollisionCallback",lua_ax_physics3d_Physics3DObject_needCollisionCallback); + tolua_function(tolua_S,"setMask",lua_ax_physics3d_Physics3DObject_setMask); + tolua_function(tolua_S,"getMask",lua_ax_physics3d_Physics3DObject_getMask); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DObject).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Physics3DObject"; @@ -1067,208 +1067,6 @@ int lua_register_ax_physics3d_Physics3DObject(lua_State* tolua_S) return 1; } -int lua_ax_physics3d_Physics3DRigidBody_setGravity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setGravity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:setGravity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setGravity'", nullptr); - return 0; - } - cobj->setGravity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setGravity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setGravity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getFriction(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getFriction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getFriction'", nullptr); - return 0; - } - auto&& ret = cobj->getFriction(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getFriction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getFriction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setAngularFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setAngularFactor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setAngularFactor"); - - if (!ok) { break; } - cobj->setAngularFactor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Vec3 arg0; - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:setAngularFactor"); - - if (!ok) { break; } - cobj->setAngularFactor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setAngularFactor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setAngularFactor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_addConstraint(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_addConstraint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Physics3DConstraint* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Physics3DConstraint",&arg0, "ax.Physics3DRigidBody:addConstraint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_addConstraint'", nullptr); - return 0; - } - cobj->addConstraint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:addConstraint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_addConstraint'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DRigidBody_getRigidBody(lua_State* tolua_S) { int argc = 0; @@ -1316,7 +1114,7 @@ int lua_ax_physics3d_Physics3DRigidBody_getRigidBody(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -1336,76 +1134,35 @@ int lua_ax_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalForce'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyForce'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + ax::Vec3 arg0; + ax::Vec3 arg1; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyForce"); + + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "ax.Physics3DRigidBody:applyForce"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalForce'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyForce'", nullptr); return 0; } - auto&& ret = cobj->getTotalForce(); - vec3_to_luaval(tolua_S, ret); + cobj->applyForce(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getTotalForce",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyForce",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalForce'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getConstraintCount(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraintCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraintCount'", nullptr); - return 0; - } - auto&& ret = cobj->getConstraintCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getConstraintCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraintCount'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyForce'.",&tolua_err); #endif return 0; @@ -1460,7 +1217,7 @@ int lua_ax_physics3d_Physics3DRigidBody_applyCentralForce(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -1480,60 +1237,7 @@ int lua_ax_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setMassProps'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - ax::Vec3 arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setMassProps"); - - ok &= luaval_to_vec3(tolua_S, 3, &arg1, "ax.Physics3DRigidBody:setMassProps"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setMassProps'", nullptr); - return 0; - } - cobj->setMassProps(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setMassProps",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setMassProps'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setFriction(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setFriction'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse'", nullptr); return 0; } #endif @@ -1541,29 +1245,29 @@ int lua_ax_physics3d_Physics3DRigidBody_setFriction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Vec3 arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setFriction"); + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyCentralImpulse"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setFriction'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse'", nullptr); return 0; } - cobj->setFriction(arg0); + cobj->applyCentralImpulse(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setFriction",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyCentralImpulse",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setFriction'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_applyTorque(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -1583,7 +1287,7 @@ int lua_ax_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setKinematic'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorque'", nullptr); return 0; } #endif @@ -1591,29 +1295,29 @@ int lua_ax_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + ax::Vec3 arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setKinematic"); + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyTorque"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setKinematic'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorque'", nullptr); return 0; } - cobj->setKinematic(arg0); + cobj->applyTorque(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setKinematic",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyTorque",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setKinematic'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorque'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DRigidBody_setDamping(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -1633,35 +1337,32 @@ int lua_ax_physics3d_Physics3DRigidBody_setDamping(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setDamping'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 1) { - double arg0; - double arg1; + ax::Vec3 arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setDamping"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Physics3DRigidBody:setDamping"); + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyTorqueImpulse"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setDamping'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse'", nullptr); return 0; } - cobj->setDamping(arg0, arg1); + cobj->applyTorqueImpulse(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setDamping",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyTorqueImpulse",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setDamping'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse'.",&tolua_err); #endif return 0; @@ -1719,297 +1420,6 @@ int lua_ax_physics3d_Physics3DRigidBody_applyImpulse(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_isKinematic(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_isKinematic'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_isKinematic'", nullptr); - return 0; - } - auto&& ret = cobj->isKinematic(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:isKinematic",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_isKinematic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_applyTorque(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorque'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyTorque"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorque'", nullptr); - return 0; - } - cobj->applyTorque(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyTorque",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorque'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setCcdMotionThreshold"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold'", nullptr); - return 0; - } - cobj->setCcdMotionThreshold(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setCcdMotionThreshold",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setRollingFriction(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setRollingFriction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setRollingFriction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setRollingFriction'", nullptr); - return 0; - } - cobj->setRollingFriction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setRollingFriction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setRollingFriction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold'", nullptr); - return 0; - } - auto&& ret = cobj->getCcdMotionThreshold(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getCcdMotionThreshold",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getLinearFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearFactor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearFactor'", nullptr); - return 0; - } - auto&& ret = cobj->getLinearFactor(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getLinearFactor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearFactor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DRigidBody_applyDamping(lua_State* tolua_S) { int argc = 0; @@ -2060,254 +1470,6 @@ int lua_ax_physics3d_Physics3DRigidBody_applyDamping(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularVelocity(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getAngularVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_init(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Physics3DRigidBodyDes* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR Physics3DRigidBodyDes* - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyTorqueImpulse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse'", nullptr); - return 0; - } - cobj->applyTorqueImpulse(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyTorqueImpulse",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setActive(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setActive'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setActive"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setActive'", nullptr); - return 0; - } - cobj->setActive(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setActive",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setActive'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setLinearFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setLinearFactor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:setLinearFactor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setLinearFactor'", nullptr); - return 0; - } - cobj->setLinearFactor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setLinearFactor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setLinearFactor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DRigidBody_setLinearVelocity(lua_State* tolua_S) { int argc = 0; @@ -2405,7 +1567,7 @@ int lua_ax_physics3d_Physics3DRigidBody_getLinearVelocity(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_setLinearFactor(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -2425,7 +1587,7 @@ int lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* tolua #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setLinearFactor'", nullptr); return 0; } #endif @@ -2433,29 +1595,29 @@ int lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Vec3 arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setCcdSweptSphereRadius"); + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:setLinearFactor"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setLinearFactor'", nullptr); return 0; } - cobj->setCcdSweptSphereRadius(arg0); + cobj->setLinearFactor(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setCcdSweptSphereRadius",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setLinearFactor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setLinearFactor'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_getLinearFactor(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -2475,35 +1637,131 @@ int lua_ax_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyForce'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - ax::Vec3 arg0; - ax::Vec3 arg1; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyForce"); - - ok &= luaval_to_vec3(tolua_S, 3, &arg1, "ax.Physics3DRigidBody:applyForce"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyForce'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearFactor'", nullptr); return 0; } - cobj->applyForce(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getLinearFactor(); + vec3_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyForce",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getLinearFactor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyForce'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setAngularFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setAngularFactor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setAngularFactor"); + + if (!ok) { break; } + cobj->setAngularFactor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Vec3 arg0; + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:setAngularFactor"); + + if (!ok) { break; } + cobj->setAngularFactor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setAngularFactor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setAngularFactor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getAngularFactor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularFactor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularFactor'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularFactor(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getAngularFactor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularFactor'.",&tolua_err); #endif return 0; @@ -2558,7 +1816,7 @@ int lua_ax_physics3d_Physics3DRigidBody_setAngularVelocity(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity(lua_State* tolua_S) { int argc = 0; ax::Physics3DRigidBody* cobj = nullptr; @@ -2578,57 +1836,7 @@ int lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:applyCentralImpulse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse'", nullptr); - return 0; - } - cobj->applyCentralImpulse(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:applyCentralImpulse",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getGravity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity'", nullptr); return 0; } #endif @@ -2638,66 +1846,19 @@ int lua_ax_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getGravity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity'", nullptr); return 0; } - auto&& ret = cobj->getGravity(); + auto&& ret = cobj->getAngularVelocity(); vec3_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getGravity",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getAngularVelocity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getGravity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getRollingFriction(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getRollingFriction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getRollingFriction'", nullptr); - return 0; - } - auto&& ret = cobj->getRollingFriction(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getRollingFriction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getRollingFriction'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity'.",&tolua_err); #endif return 0; @@ -2752,6 +1913,297 @@ int lua_ax_physics3d_Physics3DRigidBody_setCenterOfMassTransform(lua_State* tolu return 0; } +int lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform'", nullptr); + return 0; + } + auto&& ret = cobj->getCenterOfMassTransform(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getCenterOfMassTransform",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setDamping"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Physics3DRigidBody:setDamping"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setDamping'", nullptr); + return 0; + } + cobj->setDamping(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setDamping",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getLinearDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearDamping'", nullptr); + return 0; + } + auto&& ret = cobj->getLinearDamping(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getLinearDamping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getAngularDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularDamping'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularDamping(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getAngularDamping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setGravity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setGravity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DRigidBody:setGravity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setGravity'", nullptr); + return 0; + } + cobj->setGravity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setGravity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setGravity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getGravity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getGravity'", nullptr); + return 0; + } + auto&& ret = cobj->getGravity(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getGravity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getGravity'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal(lua_State* tolua_S) { int argc = 0; @@ -2802,6 +2254,1174 @@ int lua_ax_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal(lua_State* tolua_ return 0; } +int lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'", nullptr); + return 0; + } + auto&& ret = cobj->getInvInertiaDiagLocal(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getInvInertiaDiagLocal",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setMassProps'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + ax::Vec3 arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setMassProps"); + + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "ax.Physics3DRigidBody:setMassProps"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setMassProps'", nullptr); + return 0; + } + cobj->setMassProps(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setMassProps",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setMassProps'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getInvMass(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getInvMass'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getInvMass'", nullptr); + return 0; + } + auto&& ret = cobj->getInvMass(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getInvMass",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getInvMass'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalForce'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalForce'", nullptr); + return 0; + } + auto&& ret = cobj->getTotalForce(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getTotalForce",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalForce'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getTotalTorque(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalTorque'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalTorque'", nullptr); + return 0; + } + auto&& ret = cobj->getTotalTorque(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getTotalTorque",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalTorque'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setRestitution(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setRestitution'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setRestitution"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setRestitution'", nullptr); + return 0; + } + cobj->setRestitution(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setRestitution",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setRestitution'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getRestitution(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getRestitution'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getRestitution'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitution(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getRestitution",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getRestitution'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setFriction(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setFriction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setFriction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setFriction'", nullptr); + return 0; + } + cobj->setFriction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setFriction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getFriction(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getFriction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getFriction'", nullptr); + return 0; + } + auto&& ret = cobj->getFriction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getFriction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setRollingFriction(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setRollingFriction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setRollingFriction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setRollingFriction'", nullptr); + return 0; + } + cobj->setRollingFriction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setRollingFriction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setRollingFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getRollingFriction(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getRollingFriction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getRollingFriction'", nullptr); + return 0; + } + auto&& ret = cobj->getRollingFriction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getRollingFriction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getRollingFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setHitFraction(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setHitFraction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setHitFraction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setHitFraction'", nullptr); + return 0; + } + cobj->setHitFraction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setHitFraction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setHitFraction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getHitFraction(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getHitFraction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getHitFraction'", nullptr); + return 0; + } + auto&& ret = cobj->getHitFraction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getHitFraction",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getHitFraction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setCcdMotionThreshold"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold'", nullptr); + return 0; + } + cobj->setCcdMotionThreshold(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setCcdMotionThreshold",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold'", nullptr); + return 0; + } + auto&& ret = cobj->getCcdMotionThreshold(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getCcdMotionThreshold",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setCcdSweptSphereRadius"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius'", nullptr); + return 0; + } + cobj->setCcdSweptSphereRadius(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setCcdSweptSphereRadius",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getCcdSweptSphereRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getCcdSweptSphereRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setKinematic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setKinematic"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setKinematic'", nullptr); + return 0; + } + cobj->setKinematic(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setKinematic",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setKinematic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_isKinematic(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_isKinematic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_isKinematic'", nullptr); + return 0; + } + auto&& ret = cobj->isKinematic(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:isKinematic",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_isKinematic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getConstraint(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:getConstraint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraint'", nullptr); + return 0; + } + auto&& ret = cobj->getConstraint(arg0); + object_to_luaval(tolua_S, "ax.Physics3DConstraint",(ax::Physics3DConstraint*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getConstraint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_getConstraintCount(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraintCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraintCount'", nullptr); + return 0; + } + auto&& ret = cobj->getConstraintCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getConstraintCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraintCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_setActive(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setActive'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setActive"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setActive'", nullptr); + return 0; + } + cobj->setActive(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setActive",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setActive'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_init(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Physics3DRigidBodyDes* arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR Physics3DRigidBodyDes* + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_init'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DRigidBody_addConstraint(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DRigidBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_addConstraint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Physics3DConstraint* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Physics3DConstraint",&arg0, "ax.Physics3DRigidBody:addConstraint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_addConstraint'", nullptr); + return 0; + } + cobj->addConstraint(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:addConstraint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_addConstraint'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DRigidBody_removeConstraint(lua_State* tolua_S) { int argc = 0; @@ -2857,626 +3477,6 @@ int lua_ax_physics3d_Physics3DRigidBody_removeConstraint(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DRigidBody_getTotalTorque(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalTorque'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalTorque'", nullptr); - return 0; - } - auto&& ret = cobj->getTotalTorque(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getTotalTorque",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getTotalTorque'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getInvMass(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getInvMass'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getInvMass'", nullptr); - return 0; - } - auto&& ret = cobj->getInvMass(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getInvMass",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getInvMass'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getConstraint(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:getConstraint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraint'", nullptr); - return 0; - } - auto&& ret = cobj->getConstraint(arg0); - object_to_luaval(tolua_S, "ax.Physics3DConstraint",(ax::Physics3DConstraint*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getConstraint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getConstraint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getRestitution(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getRestitution'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getRestitution'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitution(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getRestitution",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getRestitution'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius'", nullptr); - return 0; - } - auto&& ret = cobj->getCcdSweptSphereRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getCcdSweptSphereRadius",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getHitFraction(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getHitFraction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getHitFraction'", nullptr); - return 0; - } - auto&& ret = cobj->getHitFraction(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getHitFraction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getHitFraction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getAngularDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularDamping'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularDamping(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getAngularDamping",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularDamping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'", nullptr); - return 0; - } - auto&& ret = cobj->getInvInertiaDiagLocal(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getInvInertiaDiagLocal",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform'", nullptr); - return 0; - } - auto&& ret = cobj->getCenterOfMassTransform(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getCenterOfMassTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getAngularFactor(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularFactor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularFactor'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularFactor(); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getAngularFactor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getAngularFactor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setRestitution(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setRestitution'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setRestitution"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setRestitution'", nullptr); - return 0; - } - cobj->setRestitution(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setRestitution",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setRestitution'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_setHitFraction(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_setHitFraction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DRigidBody:setHitFraction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_setHitFraction'", nullptr); - return 0; - } - cobj->setHitFraction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:setHitFraction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_setHitFraction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DRigidBody_getLinearDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DRigidBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearDamping'", nullptr); - return 0; - } - auto&& ret = cobj->getLinearDamping(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DRigidBody:getLinearDamping",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DRigidBody_getLinearDamping'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DRigidBody_constructor(lua_State* tolua_S) { int argc = 0; @@ -3527,55 +3527,55 @@ int lua_register_ax_physics3d_Physics3DRigidBody(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DRigidBody"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DRigidBody_constructor); - tolua_function(tolua_S,"setGravity",lua_ax_physics3d_Physics3DRigidBody_setGravity); - tolua_function(tolua_S,"getFriction",lua_ax_physics3d_Physics3DRigidBody_getFriction); - tolua_function(tolua_S,"setAngularFactor",lua_ax_physics3d_Physics3DRigidBody_setAngularFactor); - tolua_function(tolua_S,"addConstraint",lua_ax_physics3d_Physics3DRigidBody_addConstraint); tolua_function(tolua_S,"getRigidBody",lua_ax_physics3d_Physics3DRigidBody_getRigidBody); - tolua_function(tolua_S,"getTotalForce",lua_ax_physics3d_Physics3DRigidBody_getTotalForce); - tolua_function(tolua_S,"getConstraintCount",lua_ax_physics3d_Physics3DRigidBody_getConstraintCount); + tolua_function(tolua_S,"applyForce",lua_ax_physics3d_Physics3DRigidBody_applyForce); tolua_function(tolua_S,"applyCentralForce",lua_ax_physics3d_Physics3DRigidBody_applyCentralForce); - tolua_function(tolua_S,"setMassProps",lua_ax_physics3d_Physics3DRigidBody_setMassProps); - tolua_function(tolua_S,"setFriction",lua_ax_physics3d_Physics3DRigidBody_setFriction); - tolua_function(tolua_S,"setKinematic",lua_ax_physics3d_Physics3DRigidBody_setKinematic); - tolua_function(tolua_S,"setDamping",lua_ax_physics3d_Physics3DRigidBody_setDamping); - tolua_function(tolua_S,"applyImpulse",lua_ax_physics3d_Physics3DRigidBody_applyImpulse); - tolua_function(tolua_S,"isKinematic",lua_ax_physics3d_Physics3DRigidBody_isKinematic); + tolua_function(tolua_S,"applyCentralImpulse",lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse); tolua_function(tolua_S,"applyTorque",lua_ax_physics3d_Physics3DRigidBody_applyTorque); - tolua_function(tolua_S,"setCcdMotionThreshold",lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold); - tolua_function(tolua_S,"setRollingFriction",lua_ax_physics3d_Physics3DRigidBody_setRollingFriction); - tolua_function(tolua_S,"getCcdMotionThreshold",lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold); - tolua_function(tolua_S,"getLinearFactor",lua_ax_physics3d_Physics3DRigidBody_getLinearFactor); - tolua_function(tolua_S,"applyDamping",lua_ax_physics3d_Physics3DRigidBody_applyDamping); - tolua_function(tolua_S,"getAngularVelocity",lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity); - tolua_function(tolua_S,"init",lua_ax_physics3d_Physics3DRigidBody_init); tolua_function(tolua_S,"applyTorqueImpulse",lua_ax_physics3d_Physics3DRigidBody_applyTorqueImpulse); - tolua_function(tolua_S,"setActive",lua_ax_physics3d_Physics3DRigidBody_setActive); - tolua_function(tolua_S,"setLinearFactor",lua_ax_physics3d_Physics3DRigidBody_setLinearFactor); + tolua_function(tolua_S,"applyImpulse",lua_ax_physics3d_Physics3DRigidBody_applyImpulse); + tolua_function(tolua_S,"applyDamping",lua_ax_physics3d_Physics3DRigidBody_applyDamping); tolua_function(tolua_S,"setLinearVelocity",lua_ax_physics3d_Physics3DRigidBody_setLinearVelocity); tolua_function(tolua_S,"getLinearVelocity",lua_ax_physics3d_Physics3DRigidBody_getLinearVelocity); - tolua_function(tolua_S,"setCcdSweptSphereRadius",lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius); - tolua_function(tolua_S,"applyForce",lua_ax_physics3d_Physics3DRigidBody_applyForce); - tolua_function(tolua_S,"setAngularVelocity",lua_ax_physics3d_Physics3DRigidBody_setAngularVelocity); - tolua_function(tolua_S,"applyCentralImpulse",lua_ax_physics3d_Physics3DRigidBody_applyCentralImpulse); - tolua_function(tolua_S,"getGravity",lua_ax_physics3d_Physics3DRigidBody_getGravity); - tolua_function(tolua_S,"getRollingFriction",lua_ax_physics3d_Physics3DRigidBody_getRollingFriction); - tolua_function(tolua_S,"setCenterOfMassTransform",lua_ax_physics3d_Physics3DRigidBody_setCenterOfMassTransform); - tolua_function(tolua_S,"setInvInertiaDiagLocal",lua_ax_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal); - tolua_function(tolua_S,"removeConstraint",lua_ax_physics3d_Physics3DRigidBody_removeConstraint); - tolua_function(tolua_S,"getTotalTorque",lua_ax_physics3d_Physics3DRigidBody_getTotalTorque); - tolua_function(tolua_S,"getInvMass",lua_ax_physics3d_Physics3DRigidBody_getInvMass); - tolua_function(tolua_S,"getConstraint",lua_ax_physics3d_Physics3DRigidBody_getConstraint); - tolua_function(tolua_S,"getRestitution",lua_ax_physics3d_Physics3DRigidBody_getRestitution); - tolua_function(tolua_S,"getCcdSweptSphereRadius",lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius); - tolua_function(tolua_S,"getHitFraction",lua_ax_physics3d_Physics3DRigidBody_getHitFraction); - tolua_function(tolua_S,"getAngularDamping",lua_ax_physics3d_Physics3DRigidBody_getAngularDamping); - tolua_function(tolua_S,"getInvInertiaDiagLocal",lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal); - tolua_function(tolua_S,"getCenterOfMassTransform",lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform); + tolua_function(tolua_S,"setLinearFactor",lua_ax_physics3d_Physics3DRigidBody_setLinearFactor); + tolua_function(tolua_S,"getLinearFactor",lua_ax_physics3d_Physics3DRigidBody_getLinearFactor); + tolua_function(tolua_S,"setAngularFactor",lua_ax_physics3d_Physics3DRigidBody_setAngularFactor); tolua_function(tolua_S,"getAngularFactor",lua_ax_physics3d_Physics3DRigidBody_getAngularFactor); - tolua_function(tolua_S,"setRestitution",lua_ax_physics3d_Physics3DRigidBody_setRestitution); - tolua_function(tolua_S,"setHitFraction",lua_ax_physics3d_Physics3DRigidBody_setHitFraction); + tolua_function(tolua_S,"setAngularVelocity",lua_ax_physics3d_Physics3DRigidBody_setAngularVelocity); + tolua_function(tolua_S,"getAngularVelocity",lua_ax_physics3d_Physics3DRigidBody_getAngularVelocity); + tolua_function(tolua_S,"setCenterOfMassTransform",lua_ax_physics3d_Physics3DRigidBody_setCenterOfMassTransform); + tolua_function(tolua_S,"getCenterOfMassTransform",lua_ax_physics3d_Physics3DRigidBody_getCenterOfMassTransform); + tolua_function(tolua_S,"setDamping",lua_ax_physics3d_Physics3DRigidBody_setDamping); tolua_function(tolua_S,"getLinearDamping",lua_ax_physics3d_Physics3DRigidBody_getLinearDamping); + tolua_function(tolua_S,"getAngularDamping",lua_ax_physics3d_Physics3DRigidBody_getAngularDamping); + tolua_function(tolua_S,"setGravity",lua_ax_physics3d_Physics3DRigidBody_setGravity); + tolua_function(tolua_S,"getGravity",lua_ax_physics3d_Physics3DRigidBody_getGravity); + tolua_function(tolua_S,"setInvInertiaDiagLocal",lua_ax_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal); + tolua_function(tolua_S,"getInvInertiaDiagLocal",lua_ax_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal); + tolua_function(tolua_S,"setMassProps",lua_ax_physics3d_Physics3DRigidBody_setMassProps); + tolua_function(tolua_S,"getInvMass",lua_ax_physics3d_Physics3DRigidBody_getInvMass); + tolua_function(tolua_S,"getTotalForce",lua_ax_physics3d_Physics3DRigidBody_getTotalForce); + tolua_function(tolua_S,"getTotalTorque",lua_ax_physics3d_Physics3DRigidBody_getTotalTorque); + tolua_function(tolua_S,"setRestitution",lua_ax_physics3d_Physics3DRigidBody_setRestitution); + tolua_function(tolua_S,"getRestitution",lua_ax_physics3d_Physics3DRigidBody_getRestitution); + tolua_function(tolua_S,"setFriction",lua_ax_physics3d_Physics3DRigidBody_setFriction); + tolua_function(tolua_S,"getFriction",lua_ax_physics3d_Physics3DRigidBody_getFriction); + tolua_function(tolua_S,"setRollingFriction",lua_ax_physics3d_Physics3DRigidBody_setRollingFriction); + tolua_function(tolua_S,"getRollingFriction",lua_ax_physics3d_Physics3DRigidBody_getRollingFriction); + tolua_function(tolua_S,"setHitFraction",lua_ax_physics3d_Physics3DRigidBody_setHitFraction); + tolua_function(tolua_S,"getHitFraction",lua_ax_physics3d_Physics3DRigidBody_getHitFraction); + tolua_function(tolua_S,"setCcdMotionThreshold",lua_ax_physics3d_Physics3DRigidBody_setCcdMotionThreshold); + tolua_function(tolua_S,"getCcdMotionThreshold",lua_ax_physics3d_Physics3DRigidBody_getCcdMotionThreshold); + tolua_function(tolua_S,"setCcdSweptSphereRadius",lua_ax_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius); + tolua_function(tolua_S,"getCcdSweptSphereRadius",lua_ax_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius); + tolua_function(tolua_S,"setKinematic",lua_ax_physics3d_Physics3DRigidBody_setKinematic); + tolua_function(tolua_S,"isKinematic",lua_ax_physics3d_Physics3DRigidBody_isKinematic); + tolua_function(tolua_S,"getConstraint",lua_ax_physics3d_Physics3DRigidBody_getConstraint); + tolua_function(tolua_S,"getConstraintCount",lua_ax_physics3d_Physics3DRigidBody_getConstraintCount); + tolua_function(tolua_S,"setActive",lua_ax_physics3d_Physics3DRigidBody_setActive); + tolua_function(tolua_S,"init",lua_ax_physics3d_Physics3DRigidBody_init); + tolua_function(tolua_S,"addConstraint",lua_ax_physics3d_Physics3DRigidBody_addConstraint); + tolua_function(tolua_S,"removeConstraint",lua_ax_physics3d_Physics3DRigidBody_removeConstraint); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DRigidBody).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Physics3DRigidBody"; @@ -3583,7 +3583,7 @@ int lua_register_ax_physics3d_Physics3DRigidBody(lua_State* tolua_S) return 1; } -int lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DComponent_setPhysics3DObject(lua_State* tolua_S) { int argc = 0; ax::Physics3DComponent* cobj = nullptr; @@ -3603,7 +3603,57 @@ int lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_setPhysics3DObject'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Physics3DObject* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Physics3DObject",&arg0, "ax.Physics3DComponent:setPhysics3DObject"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_setPhysics3DObject'", nullptr); + return 0; + } + cobj->setPhysics3DObject(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:setPhysics3DObject",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_setPhysics3DObject'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DComponent_getPhysics3DObject(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_getPhysics3DObject'", nullptr); return 0; } #endif @@ -3613,19 +3663,19 @@ int lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_getPhysics3DObject'", nullptr); return 0; } - cobj->syncNodeToPhysics(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getPhysics3DObject(); + object_to_luaval(tolua_S, "ax.Physics3DObject",(ax::Physics3DObject*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:syncNodeToPhysics",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:getPhysics3DObject",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_getPhysics3DObject'.",&tolua_err); #endif return 0; @@ -3680,150 +3730,6 @@ int lua_ax_physics3d_Physics3DComponent_addToPhysicsWorld(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode'", nullptr); - return 0; - } - cobj->syncPhysicsToNode(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:syncPhysicsToNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DComponent_getPhysics3DObject(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_getPhysics3DObject'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_getPhysics3DObject'", nullptr); - return 0; - } - auto&& ret = cobj->getPhysics3DObject(); - object_to_luaval(tolua_S, "ax.Physics3DObject",(ax::Physics3DObject*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:getPhysics3DObject",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_getPhysics3DObject'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DComponent_setPhysics3DObject(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_setPhysics3DObject'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Physics3DObject* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Physics3DObject",&arg0, "ax.Physics3DComponent:setPhysics3DObject"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_setPhysics3DObject'", nullptr); - return 0; - } - cobj->setPhysics3DObject(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:setPhysics3DObject",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_setPhysics3DObject'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DComponent_setSyncFlag(lua_State* tolua_S) { int argc = 0; @@ -3874,6 +3780,100 @@ int lua_ax_physics3d_Physics3DComponent_setSyncFlag(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics'", nullptr); + return 0; + } + cobj->syncNodeToPhysics(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:syncNodeToPhysics",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode'", nullptr); + return 0; + } + cobj->syncPhysicsToNode(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DComponent:syncPhysicsToNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DComponent_getPhysics3DComponentName(lua_State* tolua_S) { int argc = 0; @@ -3958,12 +3958,12 @@ int lua_register_ax_physics3d_Physics3DComponent(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DComponent"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DComponent_constructor); - tolua_function(tolua_S,"syncNodeToPhysics",lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics); - tolua_function(tolua_S,"addToPhysicsWorld",lua_ax_physics3d_Physics3DComponent_addToPhysicsWorld); - tolua_function(tolua_S,"syncPhysicsToNode",lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode); - tolua_function(tolua_S,"getPhysics3DObject",lua_ax_physics3d_Physics3DComponent_getPhysics3DObject); tolua_function(tolua_S,"setPhysics3DObject",lua_ax_physics3d_Physics3DComponent_setPhysics3DObject); + tolua_function(tolua_S,"getPhysics3DObject",lua_ax_physics3d_Physics3DComponent_getPhysics3DObject); + tolua_function(tolua_S,"addToPhysicsWorld",lua_ax_physics3d_Physics3DComponent_addToPhysicsWorld); tolua_function(tolua_S,"setSyncFlag",lua_ax_physics3d_Physics3DComponent_setSyncFlag); + tolua_function(tolua_S,"syncNodeToPhysics",lua_ax_physics3d_Physics3DComponent_syncNodeToPhysics); + tolua_function(tolua_S,"syncPhysicsToNode",lua_ax_physics3d_Physics3DComponent_syncPhysicsToNode); tolua_function(tolua_S,"getPhysics3DComponentName", lua_ax_physics3d_Physics3DComponent_getPhysics3DComponentName); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DComponent).name(); // rtti is literal storage @@ -3972,100 +3972,6 @@ int lua_register_ax_physics3d_Physics3DComponent(lua_State* tolua_S) return 1; } -int lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsMeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsMeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsMeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics'", nullptr); - return 0; - } - cobj->syncNodeToPhysics(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsMeshRenderer:syncNodeToPhysics",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsMeshRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsMeshRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsMeshRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode'", nullptr); - return 0; - } - cobj->syncPhysicsToNode(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsMeshRenderer:syncPhysicsToNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_PhysicsMeshRenderer_getPhysicsObj(lua_State* tolua_S) { int argc = 0; @@ -4163,6 +4069,100 @@ int lua_ax_physics3d_PhysicsMeshRenderer_setSyncFlag(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsMeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsMeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsMeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics'", nullptr); + return 0; + } + cobj->syncNodeToPhysics(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsMeshRenderer:syncNodeToPhysics",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsMeshRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsMeshRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsMeshRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode'", nullptr); + return 0; + } + cobj->syncPhysicsToNode(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsMeshRenderer:syncPhysicsToNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_PhysicsMeshRenderer_constructor(lua_State* tolua_S) { int argc = 0; @@ -4213,10 +4213,10 @@ int lua_register_ax_physics3d_PhysicsMeshRenderer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PhysicsMeshRenderer"); tolua_function(tolua_S,"new",lua_ax_physics3d_PhysicsMeshRenderer_constructor); - tolua_function(tolua_S,"syncNodeToPhysics",lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics); - tolua_function(tolua_S,"syncPhysicsToNode",lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode); tolua_function(tolua_S,"getPhysicsObj",lua_ax_physics3d_PhysicsMeshRenderer_getPhysicsObj); tolua_function(tolua_S,"setSyncFlag",lua_ax_physics3d_PhysicsMeshRenderer_setSyncFlag); + tolua_function(tolua_S,"syncNodeToPhysics",lua_ax_physics3d_PhysicsMeshRenderer_syncNodeToPhysics); + tolua_function(tolua_S,"syncPhysicsToNode",lua_ax_physics3d_PhysicsMeshRenderer_syncPhysicsToNode); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsMeshRenderer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsMeshRenderer"; @@ -4274,338 +4274,6 @@ int lua_ax_physics3d_Physics3DWorld_setGravity(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DWorld_stepSimulate(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_stepSimulate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DWorld:stepSimulate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_stepSimulate'", nullptr); - return 0; - } - cobj->stepSimulate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:stepSimulate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_stepSimulate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DWorld_needCollisionChecking(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_needCollisionChecking'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_needCollisionChecking'", nullptr); - return 0; - } - auto&& ret = cobj->needCollisionChecking(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:needCollisionChecking",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_needCollisionChecking'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DWorld_collisionChecking(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_collisionChecking'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_collisionChecking'", nullptr); - return 0; - } - cobj->collisionChecking(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:collisionChecking",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_collisionChecking'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DWorld_setGhostPairCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_setGhostPairCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_setGhostPairCallback'", nullptr); - return 0; - } - cobj->setGhostPairCallback(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:setGhostPairCallback",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_setGhostPairCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects'", nullptr); - return 0; - } - cobj->removeAllPhysics3DObjects(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:removeAllPhysics3DObjects",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isDebugDrawEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:isDebugDrawEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints'", nullptr); - return 0; - } - cobj->removeAllPhysics3DConstraints(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:removeAllPhysics3DConstraints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DWorld_getGravity(lua_State* tolua_S) { int argc = 0; @@ -4653,56 +4321,6 @@ int lua_ax_physics3d_Physics3DWorld_getGravity(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Physics3DConstraint* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Physics3DConstraint",&arg0, "ax.Physics3DWorld:removePhysics3DConstraint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint'", nullptr); - return 0; - } - cobj->removePhysics3DConstraint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:removePhysics3DConstraint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DWorld_addPhysics3DObject(lua_State* tolua_S) { int argc = 0; @@ -4753,56 +4371,6 @@ int lua_ax_physics3d_Physics3DWorld_addPhysics3DObject(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DWorld:setDebugDrawEnable"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable'", nullptr); - return 0; - } - cobj->setDebugDrawEnable(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:setDebugDrawEnable",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DWorld_removePhysics3DObject(lua_State* tolua_S) { int argc = 0; @@ -4853,6 +4421,53 @@ int lua_ax_physics3d_Physics3DWorld_removePhysics3DObject(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects'", nullptr); + return 0; + } + cobj->removeAllPhysics3DObjects(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:removeAllPhysics3DObjects",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolua_S) { int argc = 0; @@ -4920,6 +4535,250 @@ int lua_ax_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Physics3DConstraint* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Physics3DConstraint",&arg0, "ax.Physics3DWorld:removePhysics3DConstraint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint'", nullptr); + return 0; + } + cobj->removePhysics3DConstraint(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:removePhysics3DConstraint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints'", nullptr); + return 0; + } + cobj->removeAllPhysics3DConstraints(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:removeAllPhysics3DConstraints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DWorld_stepSimulate(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_stepSimulate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DWorld:stepSimulate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_stepSimulate'", nullptr); + return 0; + } + cobj->stepSimulate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:stepSimulate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_stepSimulate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DWorld:setDebugDrawEnable"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable'", nullptr); + return 0; + } + cobj->setDebugDrawEnable(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:setDebugDrawEnable",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isDebugDrawEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:isDebugDrawEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DWorld_debugDraw(lua_State* tolua_S) { int argc = 0; @@ -4970,6 +4829,147 @@ int lua_ax_physics3d_Physics3DWorld_debugDraw(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DWorld_collisionChecking(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_collisionChecking'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_collisionChecking'", nullptr); + return 0; + } + cobj->collisionChecking(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:collisionChecking",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_collisionChecking'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DWorld_needCollisionChecking(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_needCollisionChecking'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_needCollisionChecking'", nullptr); + return 0; + } + auto&& ret = cobj->needCollisionChecking(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:needCollisionChecking",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_needCollisionChecking'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DWorld_setGhostPairCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DWorld_setGhostPairCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DWorld_setGhostPairCallback'", nullptr); + return 0; + } + cobj->setGhostPairCallback(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:setGhostPairCallback",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DWorld_setGhostPairCallback'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DWorld_constructor(lua_State* tolua_S) { int argc = 0; @@ -5021,20 +5021,20 @@ int lua_register_ax_physics3d_Physics3DWorld(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DWorld"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DWorld_constructor); tolua_function(tolua_S,"setGravity",lua_ax_physics3d_Physics3DWorld_setGravity); - tolua_function(tolua_S,"stepSimulate",lua_ax_physics3d_Physics3DWorld_stepSimulate); - tolua_function(tolua_S,"needCollisionChecking",lua_ax_physics3d_Physics3DWorld_needCollisionChecking); - tolua_function(tolua_S,"collisionChecking",lua_ax_physics3d_Physics3DWorld_collisionChecking); - tolua_function(tolua_S,"setGhostPairCallback",lua_ax_physics3d_Physics3DWorld_setGhostPairCallback); - tolua_function(tolua_S,"removeAllPhysics3DObjects",lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects); - tolua_function(tolua_S,"isDebugDrawEnabled",lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled); - tolua_function(tolua_S,"removeAllPhysics3DConstraints",lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints); tolua_function(tolua_S,"getGravity",lua_ax_physics3d_Physics3DWorld_getGravity); - tolua_function(tolua_S,"removePhysics3DConstraint",lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint); tolua_function(tolua_S,"addPhysics3DObject",lua_ax_physics3d_Physics3DWorld_addPhysics3DObject); - tolua_function(tolua_S,"setDebugDrawEnable",lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable); tolua_function(tolua_S,"removePhysics3DObject",lua_ax_physics3d_Physics3DWorld_removePhysics3DObject); + tolua_function(tolua_S,"removeAllPhysics3DObjects",lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DObjects); tolua_function(tolua_S,"addPhysics3DConstraint",lua_ax_physics3d_Physics3DWorld_addPhysics3DConstraint); + tolua_function(tolua_S,"removePhysics3DConstraint",lua_ax_physics3d_Physics3DWorld_removePhysics3DConstraint); + tolua_function(tolua_S,"removeAllPhysics3DConstraints",lua_ax_physics3d_Physics3DWorld_removeAllPhysics3DConstraints); + tolua_function(tolua_S,"stepSimulate",lua_ax_physics3d_Physics3DWorld_stepSimulate); + tolua_function(tolua_S,"setDebugDrawEnable",lua_ax_physics3d_Physics3DWorld_setDebugDrawEnable); + tolua_function(tolua_S,"isDebugDrawEnabled",lua_ax_physics3d_Physics3DWorld_isDebugDrawEnabled); tolua_function(tolua_S,"debugDraw",lua_ax_physics3d_Physics3DWorld_debugDraw); + tolua_function(tolua_S,"collisionChecking",lua_ax_physics3d_Physics3DWorld_collisionChecking); + tolua_function(tolua_S,"needCollisionChecking",lua_ax_physics3d_Physics3DWorld_needCollisionChecking); + tolua_function(tolua_S,"setGhostPairCallback",lua_ax_physics3d_Physics3DWorld_setGhostPairCallback); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DWorld).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Physics3DWorld"; @@ -5042,7 +5042,7 @@ int lua_register_ax_physics3d_Physics3DWorld(lua_State* tolua_S) return 1; } -int lua_ax_physics3d_Physics3DConstraint_setEnabled(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse(lua_State* tolua_S) { int argc = 0; ax::Physics3DConstraint* cobj = nullptr; @@ -5062,32 +5062,29 @@ int lua_ax_physics3d_Physics3DConstraint_setEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DConstraint:setEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse'", nullptr); return 0; } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getBreakingImpulse(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:setEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:getBreakingImpulse",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_setEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse'.",&tolua_err); #endif return 0; @@ -5142,7 +5139,7 @@ int lua_ax_physics3d_Physics3DConstraint_setBreakingImpulse(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DConstraint_isEnabled(lua_State* tolua_S) { int argc = 0; ax::Physics3DConstraint* cobj = nullptr; @@ -5162,7 +5159,7 @@ int lua_ax_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_getUserData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_isEnabled'", nullptr); return 0; } #endif @@ -5172,24 +5169,24 @@ int lua_ax_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_getUserData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_isEnabled'", nullptr); return 0; } - auto&& ret = cobj->getUserData(); - #pragma warning NO CONVERSION FROM NATIVE FOR void*; + auto&& ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:getUserData",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:isEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_getUserData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_isEnabled'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DConstraint_setEnabled(lua_State* tolua_S) { int argc = 0; ax::Physics3DConstraint* cobj = nullptr; @@ -5209,29 +5206,32 @@ int lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DConstraint:setEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_setEnabled'", nullptr); return 0; } - auto&& ret = cobj->getBreakingImpulse(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setEnabled(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:getBreakingImpulse",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:setEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_setEnabled'.",&tolua_err); #endif return 0; @@ -5283,100 +5283,6 @@ int lua_ax_physics3d_Physics3DConstraint_getBodyA(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DConstraint_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_isEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_isEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:isEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_isEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations'", nullptr); - return 0; - } - auto&& ret = cobj->getOverrideNumSolverIterations(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:getOverrideNumSolverIterations",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DConstraint_getBodyB(lua_State* tolua_S) { int argc = 0; @@ -5424,56 +5330,6 @@ int lua_ax_physics3d_Physics3DConstraint_getBodyB(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Physics3DConstraint:setOverrideNumSolverIterations"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations'", nullptr); - return 0; - } - cobj->setOverrideNumSolverIterations(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:setOverrideNumSolverIterations",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DConstraint_getConstraintType(lua_State* tolua_S) { int argc = 0; @@ -5572,6 +5428,150 @@ int lua_ax_physics3d_Physics3DConstraint_setUserData(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_getUserData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_getUserData'", nullptr); + return 0; + } + auto&& ret = cobj->getUserData(); + #pragma warning NO CONVERSION FROM NATIVE FOR void*; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:getUserData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_getUserData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations'", nullptr); + return 0; + } + auto&& ret = cobj->getOverrideNumSolverIterations(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:getOverrideNumSolverIterations",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Physics3DConstraint:setOverrideNumSolverIterations"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations'", nullptr); + return 0; + } + cobj->setOverrideNumSolverIterations(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConstraint:setOverrideNumSolverIterations",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DConstraint_getbtContraint(lua_State* tolua_S) { int argc = 0; @@ -5631,17 +5631,17 @@ int lua_register_ax_physics3d_Physics3DConstraint(lua_State* tolua_S) tolua_cclass(tolua_S,"Physics3DConstraint","ax.Physics3DConstraint","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Physics3DConstraint"); - tolua_function(tolua_S,"setEnabled",lua_ax_physics3d_Physics3DConstraint_setEnabled); - tolua_function(tolua_S,"setBreakingImpulse",lua_ax_physics3d_Physics3DConstraint_setBreakingImpulse); - tolua_function(tolua_S,"getUserData",lua_ax_physics3d_Physics3DConstraint_getUserData); tolua_function(tolua_S,"getBreakingImpulse",lua_ax_physics3d_Physics3DConstraint_getBreakingImpulse); - tolua_function(tolua_S,"getBodyA",lua_ax_physics3d_Physics3DConstraint_getBodyA); + tolua_function(tolua_S,"setBreakingImpulse",lua_ax_physics3d_Physics3DConstraint_setBreakingImpulse); tolua_function(tolua_S,"isEnabled",lua_ax_physics3d_Physics3DConstraint_isEnabled); - tolua_function(tolua_S,"getOverrideNumSolverIterations",lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations); + tolua_function(tolua_S,"setEnabled",lua_ax_physics3d_Physics3DConstraint_setEnabled); + tolua_function(tolua_S,"getBodyA",lua_ax_physics3d_Physics3DConstraint_getBodyA); tolua_function(tolua_S,"getBodyB",lua_ax_physics3d_Physics3DConstraint_getBodyB); - tolua_function(tolua_S,"setOverrideNumSolverIterations",lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations); tolua_function(tolua_S,"getConstraintType",lua_ax_physics3d_Physics3DConstraint_getConstraintType); tolua_function(tolua_S,"setUserData",lua_ax_physics3d_Physics3DConstraint_setUserData); + tolua_function(tolua_S,"getUserData",lua_ax_physics3d_Physics3DConstraint_getUserData); + tolua_function(tolua_S,"getOverrideNumSolverIterations",lua_ax_physics3d_Physics3DConstraint_getOverrideNumSolverIterations); + tolua_function(tolua_S,"setOverrideNumSolverIterations",lua_ax_physics3d_Physics3DConstraint_setOverrideNumSolverIterations); tolua_function(tolua_S,"getbtContraint",lua_ax_physics3d_Physics3DConstraint_getbtContraint); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DConstraint).name(); // rtti is literal storage @@ -5650,6 +5650,106 @@ int lua_register_ax_physics3d_Physics3DConstraint(lua_State* tolua_S) return 1; } +int lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DPointToPointConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DPointToPointConstraint:setPivotPointInA"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA'", nullptr); + return 0; + } + cobj->setPivotPointInA(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DPointToPointConstraint:setPivotPointInA",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DPointToPointConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DPointToPointConstraint:setPivotPointInB"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB'", nullptr); + return 0; + } + cobj->setPivotPointInB(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DPointToPointConstraint:setPivotPointInB",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DPointToPointConstraint_getPivotPointInA(lua_State* tolua_S) { int argc = 0; @@ -5815,106 +5915,6 @@ int lua_ax_physics3d_Physics3DPointToPointConstraint_init(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DPointToPointConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DPointToPointConstraint:setPivotPointInA"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA'", nullptr); - return 0; - } - cobj->setPivotPointInA(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DPointToPointConstraint:setPivotPointInA",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DPointToPointConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3DPointToPointConstraint:setPivotPointInB"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB'", nullptr); - return 0; - } - cobj->setPivotPointInB(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DPointToPointConstraint:setPivotPointInB",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DPointToPointConstraint_create(lua_State* tolua_S) { int argc = 0; @@ -6025,11 +6025,11 @@ int lua_register_ax_physics3d_Physics3DPointToPointConstraint(lua_State* tolua_S tolua_beginmodule(tolua_S,"Physics3DPointToPointConstraint"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DPointToPointConstraint_constructor); + tolua_function(tolua_S,"setPivotPointInA",lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA); + tolua_function(tolua_S,"setPivotPointInB",lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB); tolua_function(tolua_S,"getPivotPointInA",lua_ax_physics3d_Physics3DPointToPointConstraint_getPivotPointInA); tolua_function(tolua_S,"getPivotPointInB",lua_ax_physics3d_Physics3DPointToPointConstraint_getPivotPointInB); tolua_function(tolua_S,"init",lua_ax_physics3d_Physics3DPointToPointConstraint_init); - tolua_function(tolua_S,"setPivotPointInA",lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInA); - tolua_function(tolua_S,"setPivotPointInB",lua_ax_physics3d_Physics3DPointToPointConstraint_setPivotPointInB); tolua_function(tolua_S,"create", lua_ax_physics3d_Physics3DPointToPointConstraint_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DPointToPointConstraint).name(); // rtti is literal storage @@ -6038,108 +6038,6 @@ int lua_register_ax_physics3d_Physics3DPointToPointConstraint(lua_State* tolua_S return 1; } -int lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - ax::Mat4 arg0; - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DHingeConstraint:getHingeAngle"); - - if (!ok) { break; } - ax::Mat4 arg1; - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DHingeConstraint:getHingeAngle"); - - if (!ok) { break; } - double ret = cobj->getHingeAngle(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - double ret = cobj->getHingeAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getHingeAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity'", nullptr); - return 0; - } - auto&& ret = cobj->getMotorTargetVelosity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getMotorTargetVelosity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DHingeConstraint_getFrameOffsetA(lua_State* tolua_S) { int argc = 0; @@ -6234,7 +6132,7 @@ int lua_ax_physics3d_Physics3DHingeConstraint_getFrameOffsetB(lua_State* tolua_S return 0; } -int lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DHingeConstraint_setFrames(lua_State* tolua_S) { int argc = 0; ax::Physics3DHingeConstraint* cobj = nullptr; @@ -6254,7 +6152,60 @@ int lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State* tolu #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Mat4 arg0; + ax::Mat4 arg1; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DHingeConstraint:setFrames"); + + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DHingeConstraint:setFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setFrames'", nullptr); + return 0; + } + cobj->setFrames(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setFrames",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly'", nullptr); return 0; } #endif @@ -6262,24 +6213,24 @@ int lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + bool arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DHingeConstraint:setMaxMotorImpulse"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DHingeConstraint:setAngularOnly"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly'", nullptr); return 0; } - cobj->setMaxMotorImpulse(arg0); + cobj->setAngularOnly(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setMaxMotorImpulse",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setAngularOnly",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly'.",&tolua_err); #endif return 0; @@ -6340,244 +6291,6 @@ int lua_ax_physics3d_Physics3DHingeConstraint_enableAngularMotor(lua_State* tolu return 0; } -int lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getUpperLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getUpperLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxMotorImpulse(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getMaxMotorImpulse",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getLowerLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getLowerLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DHingeConstraint:setUseFrameOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset'", nullptr); - return 0; - } - cobj->setUseFrameOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setUseFrameOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor'", nullptr); - return 0; - } - auto&& ret = cobj->getEnableAngularMotor(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getEnableAngularMotor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DHingeConstraint_enableMotor(lua_State* tolua_S) { int argc = 0; @@ -6628,7 +6341,7 @@ int lua_ax_physics3d_Physics3DHingeConstraint_enableMotor(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State* tolua_S) { int argc = 0; ax::Physics3DHingeConstraint* cobj = nullptr; @@ -6648,154 +6361,7 @@ int lua_ax_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getBFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getBFrame'", nullptr); - return 0; - } - auto&& ret = cobj->getBFrame(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getBFrame",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getBFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_setFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Mat4 arg0; - ax::Mat4 arg1; - - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DHingeConstraint:setFrames"); - - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DHingeConstraint:setFrames"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setFrames'", nullptr); - return 0; - } - cobj->setFrames(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setFrames",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getUseFrameOffset(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getUseFrameOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse'", nullptr); return 0; } #endif @@ -6803,24 +6369,24 @@ int lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + double arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DHingeConstraint:setAngularOnly"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DHingeConstraint:setMaxMotorImpulse"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse'", nullptr); return 0; } - cobj->setAngularOnly(arg0); + cobj->setMaxMotorImpulse(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setAngularOnly",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setMaxMotorImpulse",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse'.",&tolua_err); #endif return 0; @@ -6947,53 +6513,6 @@ int lua_ax_physics3d_Physics3DHingeConstraint_setLimit(lua_State* tolua_S) return 0; } -int lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DHingeConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularOnly(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getAngularOnly",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DHingeConstraint_setAxis(lua_State* tolua_S) { int argc = 0; @@ -7044,6 +6563,155 @@ int lua_ax_physics3d_Physics3DHingeConstraint_setAxis(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit'", nullptr); + return 0; + } + auto&& ret = cobj->getLowerLimit(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getLowerLimit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit'", nullptr); + return 0; + } + auto&& ret = cobj->getUpperLimit(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getUpperLimit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + ax::Mat4 arg0; + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DHingeConstraint:getHingeAngle"); + + if (!ok) { break; } + ax::Mat4 arg1; + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DHingeConstraint:getHingeAngle"); + + if (!ok) { break; } + double ret = cobj->getHingeAngle(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + double ret = cobj->getHingeAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getHingeAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DHingeConstraint_getAFrame(lua_State* tolua_S) { int argc = 0; @@ -7091,6 +6759,338 @@ int lua_ax_physics3d_Physics3DHingeConstraint_getAFrame(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getBFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getBFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getBFrame(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getBFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getBFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularOnly(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getAngularOnly",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor'", nullptr); + return 0; + } + auto&& ret = cobj->getEnableAngularMotor(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getEnableAngularMotor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity'", nullptr); + return 0; + } + auto&& ret = cobj->getMotorTargetVelosity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getMotorTargetVelosity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxMotorImpulse(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getMaxMotorImpulse",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getUseFrameOffset(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:getUseFrameOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DHingeConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DHingeConstraint:setUseFrameOffset"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset'", nullptr); + return 0; + } + cobj->setUseFrameOffset(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DHingeConstraint:setUseFrameOffset",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { int argc = 0; @@ -7345,26 +7345,26 @@ int lua_register_ax_physics3d_Physics3DHingeConstraint(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DHingeConstraint"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DHingeConstraint_constructor); - tolua_function(tolua_S,"getHingeAngle",lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle); - tolua_function(tolua_S,"getMotorTargetVelosity",lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity); tolua_function(tolua_S,"getFrameOffsetA",lua_ax_physics3d_Physics3DHingeConstraint_getFrameOffsetA); tolua_function(tolua_S,"getFrameOffsetB",lua_ax_physics3d_Physics3DHingeConstraint_getFrameOffsetB); - tolua_function(tolua_S,"setMaxMotorImpulse",lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse); - tolua_function(tolua_S,"enableAngularMotor",lua_ax_physics3d_Physics3DHingeConstraint_enableAngularMotor); - tolua_function(tolua_S,"getUpperLimit",lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit); - tolua_function(tolua_S,"getMaxMotorImpulse",lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse); - tolua_function(tolua_S,"getLowerLimit",lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit); - tolua_function(tolua_S,"setUseFrameOffset",lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset); - tolua_function(tolua_S,"getEnableAngularMotor",lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor); - tolua_function(tolua_S,"enableMotor",lua_ax_physics3d_Physics3DHingeConstraint_enableMotor); - tolua_function(tolua_S,"getBFrame",lua_ax_physics3d_Physics3DHingeConstraint_getBFrame); tolua_function(tolua_S,"setFrames",lua_ax_physics3d_Physics3DHingeConstraint_setFrames); - tolua_function(tolua_S,"getUseFrameOffset",lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset); tolua_function(tolua_S,"setAngularOnly",lua_ax_physics3d_Physics3DHingeConstraint_setAngularOnly); + tolua_function(tolua_S,"enableAngularMotor",lua_ax_physics3d_Physics3DHingeConstraint_enableAngularMotor); + tolua_function(tolua_S,"enableMotor",lua_ax_physics3d_Physics3DHingeConstraint_enableMotor); + tolua_function(tolua_S,"setMaxMotorImpulse",lua_ax_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse); tolua_function(tolua_S,"setLimit",lua_ax_physics3d_Physics3DHingeConstraint_setLimit); - tolua_function(tolua_S,"getAngularOnly",lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly); tolua_function(tolua_S,"setAxis",lua_ax_physics3d_Physics3DHingeConstraint_setAxis); + tolua_function(tolua_S,"getLowerLimit",lua_ax_physics3d_Physics3DHingeConstraint_getLowerLimit); + tolua_function(tolua_S,"getUpperLimit",lua_ax_physics3d_Physics3DHingeConstraint_getUpperLimit); + tolua_function(tolua_S,"getHingeAngle",lua_ax_physics3d_Physics3DHingeConstraint_getHingeAngle); tolua_function(tolua_S,"getAFrame",lua_ax_physics3d_Physics3DHingeConstraint_getAFrame); + tolua_function(tolua_S,"getBFrame",lua_ax_physics3d_Physics3DHingeConstraint_getBFrame); + tolua_function(tolua_S,"getAngularOnly",lua_ax_physics3d_Physics3DHingeConstraint_getAngularOnly); + tolua_function(tolua_S,"getEnableAngularMotor",lua_ax_physics3d_Physics3DHingeConstraint_getEnableAngularMotor); + tolua_function(tolua_S,"getMotorTargetVelosity",lua_ax_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity); + tolua_function(tolua_S,"getMaxMotorImpulse",lua_ax_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse); + tolua_function(tolua_S,"getUseFrameOffset",lua_ax_physics3d_Physics3DHingeConstraint_getUseFrameOffset); + tolua_function(tolua_S,"setUseFrameOffset",lua_ax_physics3d_Physics3DHingeConstraint_setUseFrameOffset); tolua_function(tolua_S,"create", lua_ax_physics3d_Physics3DHingeConstraint_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DHingeConstraint).name(); // rtti is literal storage @@ -7373,250 +7373,6 @@ int lua_register_ax_physics3d_Physics3DHingeConstraint(lua_State* tolua_S) return 1; } -int lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setPoweredAngMotor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor'", nullptr); - return 0; - } - cobj->setPoweredAngMotor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setPoweredAngMotor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng'", nullptr); - return 0; - } - auto&& ret = cobj->getDampingLimAng(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingLimAng",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionOrthoLin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin'", nullptr); - return 0; - } - cobj->setRestitutionOrthoLin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionOrthoLin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionDirLin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin'", nullptr); - return 0; - } - cobj->setRestitutionDirLin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionDirLin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos'", nullptr); - return 0; - } - auto&& ret = cobj->getLinearPos(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getLinearPos",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DSliderConstraint_getFrameOffsetA(lua_State* tolua_S) { int argc = 0; @@ -7711,7 +7467,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getFrameOffsetB(lua_State* tolua_ return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -7731,57 +7487,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor(lua_State* tol #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setPoweredLinMotor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor'", nullptr); - return 0; - } - cobj->setPoweredLinMotor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setPoweredLinMotor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit'", nullptr); return 0; } #endif @@ -7791,24 +7497,24 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng(lua_State* tolua { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit'", nullptr); return 0; } - auto&& ret = cobj->getDampingDirAng(); + auto&& ret = cobj->getLowerLinLimit(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingDirAng",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getLowerLinLimit",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -7828,101 +7534,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin(lua_State* t #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitutionLimLin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionLimLin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng'", nullptr); - return 0; - } - auto&& ret = cobj->getSoftnessOrthoAng(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessOrthoAng",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit'", nullptr); return 0; } #endif @@ -7932,27 +7544,27 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(lua_State* to { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessOrthoLin"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setLowerLinLimit"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit'", nullptr); return 0; } - cobj->setSoftnessOrthoLin(arg0); + cobj->setLowerLinLimit(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessOrthoLin",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setLowerLinLimit",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -7972,57 +7584,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(lua_State* tolu #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessLimLin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin'", nullptr); - return 0; - } - cobj->setSoftnessLimLin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessLimLin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit'", nullptr); return 0; } #endif @@ -8032,69 +7594,19 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit'", nullptr); return 0; } - auto&& ret = cobj->getAngularPos(); + auto&& ret = cobj->getUpperLinLimit(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getAngularPos",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getUpperLinLimit",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionLimAng"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng'", nullptr); - return 0; - } - cobj->setRestitutionLimAng(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionLimAng",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit'.",&tolua_err); #endif return 0; @@ -8149,7 +7661,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setUpperLinLimit(lua_State* tolua return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -8169,7 +7681,54 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* tolua #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit'", nullptr); + return 0; + } + auto&& ret = cobj->getLowerAngLimit(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getLowerAngLimit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit'", nullptr); return 0; } #endif @@ -8179,22 +7738,22 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* tolua { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingDirLin"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setLowerAngLimit"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit'", nullptr); return 0; } - cobj->setDampingDirLin(arg0); + cobj->setLowerAngLimit(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingDirLin",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setLowerAngLimit",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit'.",&tolua_err); #endif return 0; @@ -8246,6 +7805,197 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getUpperAngLimit(lua_State* tolua return 0; } +int lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setUpperAngLimit"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit'", nullptr); + return 0; + } + cobj->setUpperAngLimit(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setUpperAngLimit",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA'", nullptr); + return 0; + } + auto&& ret = cobj->getUseLinearReferenceFrameA(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getUseLinearReferenceFrameA",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin'", nullptr); + return 0; + } + auto&& ret = cobj->getSoftnessDirLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessDirLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitutionDirLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionDirLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirLin(lua_State* tolua_S) { int argc = 0; @@ -8340,7 +8090,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirAng(lua_State* tolu return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -8360,7 +8110,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_State* tol #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng'", nullptr); return 0; } #endif @@ -8370,271 +8120,24 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_State* tol { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng'", nullptr); return 0; } - auto&& ret = cobj->getPoweredAngMotor(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getPoweredAngMotor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setLowerAngLimit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit'", nullptr); - return 0; - } - cobj->setLowerAngLimit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setLowerAngLimit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setUpperAngLimit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit'", nullptr); - return 0; - } - cobj->setUpperAngLimit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setUpperAngLimit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setTargetLinMotorVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity'", nullptr); - return 0; - } - cobj->setTargetLinMotorVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setTargetLinMotorVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingLimAng"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng'", nullptr); - return 0; - } - cobj->setDampingLimAng(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingLimAng",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitutionLimAng(); + auto&& ret = cobj->getRestitutionDirAng(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionLimAng",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionDirAng",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -8654,7 +8157,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State* tolu #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng'", nullptr); return 0; } #endif @@ -8664,354 +8167,19 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State* tolu { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng'", nullptr); return 0; } - auto&& ret = cobj->getUseFrameOffset(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getUseFrameOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin'", nullptr); - return 0; - } - auto&& ret = cobj->getSoftnessOrthoLin(); + auto&& ret = cobj->getDampingDirAng(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessOrthoLin",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingDirAng",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng'", nullptr); - return 0; - } - auto&& ret = cobj->getDampingOrthoAng(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingOrthoAng",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setUseFrameOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset'", nullptr); - return 0; - } - cobj->setUseFrameOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setUseFrameOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setLowerLinLimit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit'", nullptr); - return 0; - } - cobj->setLowerLinLimit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setLowerLinLimit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitutionDirLin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionDirLin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getTargetLinMotorVelocity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getTargetLinMotorVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getLowerLinLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getLowerLinLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng'.",&tolua_err); #endif return 0; @@ -9063,7 +8231,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimLin(lua_State* tolu return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -9083,7 +8251,524 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_State* tol #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitutionLimLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionLimLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin'", nullptr); + return 0; + } + auto&& ret = cobj->getDampingLimLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingLimLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng'", nullptr); + return 0; + } + auto&& ret = cobj->getSoftnessLimAng(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessLimAng",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitutionLimAng(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionLimAng",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng'", nullptr); + return 0; + } + auto&& ret = cobj->getDampingLimAng(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingLimAng",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin'", nullptr); + return 0; + } + auto&& ret = cobj->getSoftnessOrthoLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessOrthoLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitutionOrthoLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionOrthoLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin'", nullptr); + return 0; + } + auto&& ret = cobj->getDampingOrthoLin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingOrthoLin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng'", nullptr); + return 0; + } + auto&& ret = cobj->getSoftnessOrthoAng(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessOrthoAng",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitutionOrthoAng(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionOrthoAng",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng'", nullptr); + return 0; + } + auto&& ret = cobj->getDampingOrthoAng(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingOrthoAng",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin'", nullptr); return 0; } #endif @@ -9093,22 +8778,122 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_State* tol { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingOrthoAng"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessDirLin"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin'", nullptr); return 0; } - cobj->setDampingOrthoAng(arg0); + cobj->setSoftnessDirLin(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingOrthoAng",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessDirLin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionDirLin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin'", nullptr); + return 0; + } + cobj->setRestitutionDirLin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionDirLin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingDirLin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin'", nullptr); + return 0; + } + cobj->setDampingDirLin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingDirLin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin'.",&tolua_err); #endif return 0; @@ -9163,7 +8948,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirAng(lua_State* tolu return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -9183,54 +8968,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor(lua_State* tol #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor'", nullptr); - return 0; - } - auto&& ret = cobj->getPoweredLinMotor(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getPoweredLinMotor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng'", nullptr); return 0; } #endif @@ -9240,22 +8978,22 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(lua_State* { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionOrthoAng"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionDirAng"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng'", nullptr); return 0; } - cobj->setRestitutionOrthoAng(arg0); + cobj->setRestitutionDirAng(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionOrthoAng",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionDirAng",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng'.",&tolua_err); #endif return 0; @@ -9310,7 +9048,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirAng(lua_State* tolua return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -9330,248 +9068,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Mat4 arg0; - ax::Mat4 arg1; - - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DSliderConstraint:setFrames"); - - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DSliderConstraint:setFrames"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setFrames'", nullptr); - return 0; - } - cobj->setFrames(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setFrames",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitutionOrthoAng(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionOrthoAng",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxAngMotorForce(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getMaxAngMotorForce",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin'", nullptr); - return 0; - } - auto&& ret = cobj->getDampingOrthoLin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingOrthoLin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getUpperLinLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getUpperLinLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin'", nullptr); return 0; } #endif @@ -9581,404 +9078,22 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(lua_State* to { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setMaxLinMotorForce"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessLimLin"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin'", nullptr); return 0; } - cobj->setMaxLinMotorForce(arg0); + cobj->setSoftnessLimLin(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setMaxLinMotorForce",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessLimLin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitutionOrthoLin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionOrthoLin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setTargetAngMotorVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity'", nullptr); - return 0; - } - cobj->setTargetAngMotorVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setTargetAngMotorVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng'", nullptr); - return 0; - } - auto&& ret = cobj->getSoftnessLimAng(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessLimAng",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionDirAng"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng'", nullptr); - return 0; - } - cobj->setRestitutionDirAng(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionDirAng",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin'", nullptr); - return 0; - } - auto&& ret = cobj->getDampingLimLin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getDampingLimLin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getLowerAngLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getLowerAngLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitutionDirAng(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getRestitutionDirAng",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DSliderConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getTargetAngMotorVelocity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getTargetAngMotorVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin'.",&tolua_err); #endif return 0; @@ -10033,7 +9148,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimLin(lua_State* t return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -10053,29 +9168,282 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce(lua_State* to #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingLimLin"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin'", nullptr); return 0; } - auto&& ret = cobj->getMaxLinMotorForce(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setDampingLimLin(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getMaxLinMotorForce",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingLimLin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessLimAng"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng'", nullptr); + return 0; + } + cobj->setSoftnessLimAng(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessLimAng",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionLimAng"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng'", nullptr); + return 0; + } + cobj->setRestitutionLimAng(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionLimAng",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingLimAng"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng'", nullptr); + return 0; + } + cobj->setDampingLimAng(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingLimAng",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessOrthoLin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin'", nullptr); + return 0; + } + cobj->setSoftnessOrthoLin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessOrthoLin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionOrthoLin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin'", nullptr); + return 0; + } + cobj->setRestitutionOrthoLin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionOrthoLin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin'.",&tolua_err); #endif return 0; @@ -10180,7 +9548,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng(lua_State* to return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -10200,7 +9568,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* tolua #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng'", nullptr); return 0; } #endif @@ -10210,27 +9578,27 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* tolua { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingLimLin"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setRestitutionOrthoAng"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng'", nullptr); return 0; } - cobj->setDampingLimLin(arg0); + cobj->setRestitutionOrthoAng(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingLimLin",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setRestitutionOrthoAng",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -10250,7 +9618,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State* tolu #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng'", nullptr); return 0; } #endif @@ -10260,22 +9628,507 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State* tolu { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessDirLin"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setDampingOrthoAng"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng'", nullptr); return 0; } - cobj->setSoftnessDirLin(arg0); + cobj->setDampingOrthoAng(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessDirLin",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setDampingOrthoAng",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setPoweredLinMotor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor'", nullptr); + return 0; + } + cobj->setPoweredLinMotor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setPoweredLinMotor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor'", nullptr); + return 0; + } + auto&& ret = cobj->getPoweredLinMotor(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getPoweredLinMotor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setTargetLinMotorVelocity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity'", nullptr); + return 0; + } + cobj->setTargetLinMotorVelocity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setTargetLinMotorVelocity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity'", nullptr); + return 0; + } + auto&& ret = cobj->getTargetLinMotorVelocity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getTargetLinMotorVelocity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setMaxLinMotorForce"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce'", nullptr); + return 0; + } + cobj->setMaxLinMotorForce(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setMaxLinMotorForce",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxLinMotorForce(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getMaxLinMotorForce",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setPoweredAngMotor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor'", nullptr); + return 0; + } + cobj->setPoweredAngMotor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setPoweredAngMotor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor'", nullptr); + return 0; + } + auto&& ret = cobj->getPoweredAngMotor(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getPoweredAngMotor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setTargetAngMotorVelocity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity'", nullptr); + return 0; + } + cobj->setTargetAngMotorVelocity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setTargetAngMotorVelocity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity'", nullptr); + return 0; + } + auto&& ret = cobj->getTargetAngMotorVelocity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getTargetAngMotorVelocity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity'.",&tolua_err); #endif return 0; @@ -10330,7 +10183,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce(lua_State* to return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -10350,7 +10203,7 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State* tolu #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce'", nullptr); return 0; } #endif @@ -10360,24 +10213,24 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State* tolu { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce'", nullptr); return 0; } - auto&& ret = cobj->getSoftnessDirLin(); + auto&& ret = cobj->getMaxAngMotorForce(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getSoftnessDirLin",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getMaxAngMotorForce",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -10397,7 +10250,148 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State* tolu #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos'", nullptr); + return 0; + } + auto&& ret = cobj->getLinearPos(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getLinearPos",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularPos(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getAngularPos",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getUseFrameOffset(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getUseFrameOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DSliderConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset'", nullptr); return 0; } #endif @@ -10405,29 +10399,29 @@ int lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + bool arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setSoftnessLimAng"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3DSliderConstraint:setUseFrameOffset"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset'", nullptr); return 0; } - cobj->setSoftnessLimAng(arg0); + cobj->setUseFrameOffset(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setSoftnessLimAng",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setUseFrameOffset",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset'.",&tolua_err); #endif return 0; } -int lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA(lua_State* tolua_S) +int lua_ax_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_S) { int argc = 0; ax::Physics3DSliderConstraint* cobj = nullptr; @@ -10447,29 +10441,35 @@ int lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA(lua_S #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DSliderConstraint_setFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + ax::Mat4 arg0; + ax::Mat4 arg1; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DSliderConstraint:setFrames"); + + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DSliderConstraint:setFrames"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DSliderConstraint_setFrames'", nullptr); return 0; } - auto&& ret = cobj->getUseLinearReferenceFrameA(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setFrames(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:getUseLinearReferenceFrameA",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DSliderConstraint:setFrames",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DSliderConstraint_setFrames'.",&tolua_err); #endif return 0; @@ -10568,70 +10568,70 @@ int lua_register_ax_physics3d_Physics3DSliderConstraint(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DSliderConstraint"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DSliderConstraint_constructor); - tolua_function(tolua_S,"setPoweredAngMotor",lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor); - tolua_function(tolua_S,"getDampingLimAng",lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng); - tolua_function(tolua_S,"setRestitutionOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin); - tolua_function(tolua_S,"setRestitutionDirLin",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin); - tolua_function(tolua_S,"getLinearPos",lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos); tolua_function(tolua_S,"getFrameOffsetA",lua_ax_physics3d_Physics3DSliderConstraint_getFrameOffsetA); tolua_function(tolua_S,"getFrameOffsetB",lua_ax_physics3d_Physics3DSliderConstraint_getFrameOffsetB); - tolua_function(tolua_S,"setPoweredLinMotor",lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor); - tolua_function(tolua_S,"getDampingDirAng",lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng); - tolua_function(tolua_S,"getRestitutionLimLin",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin); - tolua_function(tolua_S,"getSoftnessOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng); - tolua_function(tolua_S,"setSoftnessOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin); - tolua_function(tolua_S,"setSoftnessLimLin",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin); - tolua_function(tolua_S,"getAngularPos",lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos); - tolua_function(tolua_S,"setRestitutionLimAng",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng); + tolua_function(tolua_S,"getLowerLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit); + tolua_function(tolua_S,"setLowerLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit); + tolua_function(tolua_S,"getUpperLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit); tolua_function(tolua_S,"setUpperLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_setUpperLinLimit); - tolua_function(tolua_S,"setDampingDirLin",lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin); + tolua_function(tolua_S,"getLowerAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit); + tolua_function(tolua_S,"setLowerAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit); tolua_function(tolua_S,"getUpperAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_getUpperAngLimit); + tolua_function(tolua_S,"setUpperAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit); + tolua_function(tolua_S,"getUseLinearReferenceFrameA",lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA); + tolua_function(tolua_S,"getSoftnessDirLin",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin); + tolua_function(tolua_S,"getRestitutionDirLin",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin); tolua_function(tolua_S,"getDampingDirLin",lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirLin); tolua_function(tolua_S,"getSoftnessDirAng",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirAng); - tolua_function(tolua_S,"getPoweredAngMotor",lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor); - tolua_function(tolua_S,"setLowerAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_setLowerAngLimit); - tolua_function(tolua_S,"setUpperAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_setUpperAngLimit); - tolua_function(tolua_S,"setTargetLinMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity); - tolua_function(tolua_S,"setDampingLimAng",lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng); - tolua_function(tolua_S,"getRestitutionLimAng",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng); - tolua_function(tolua_S,"getUseFrameOffset",lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset); - tolua_function(tolua_S,"getSoftnessOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin); - tolua_function(tolua_S,"getDampingOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng); - tolua_function(tolua_S,"setUseFrameOffset",lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset); - tolua_function(tolua_S,"setLowerLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_setLowerLinLimit); - tolua_function(tolua_S,"getRestitutionDirLin",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirLin); - tolua_function(tolua_S,"getTargetLinMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity); - tolua_function(tolua_S,"getLowerLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_getLowerLinLimit); - tolua_function(tolua_S,"getSoftnessLimLin",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimLin); - tolua_function(tolua_S,"setDampingOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng); - tolua_function(tolua_S,"setSoftnessDirAng",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirAng); - tolua_function(tolua_S,"getPoweredLinMotor",lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor); - tolua_function(tolua_S,"setRestitutionOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng); - tolua_function(tolua_S,"setDampingDirAng",lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirAng); - tolua_function(tolua_S,"setFrames",lua_ax_physics3d_Physics3DSliderConstraint_setFrames); - tolua_function(tolua_S,"getRestitutionOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng); - tolua_function(tolua_S,"getMaxAngMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce); - tolua_function(tolua_S,"getDampingOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin); - tolua_function(tolua_S,"getUpperLinLimit",lua_ax_physics3d_Physics3DSliderConstraint_getUpperLinLimit); - tolua_function(tolua_S,"setMaxLinMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce); - tolua_function(tolua_S,"getRestitutionOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin); - tolua_function(tolua_S,"setTargetAngMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity); - tolua_function(tolua_S,"getSoftnessLimAng",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng); - tolua_function(tolua_S,"setRestitutionDirAng",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng); - tolua_function(tolua_S,"getDampingLimLin",lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin); - tolua_function(tolua_S,"getLowerAngLimit",lua_ax_physics3d_Physics3DSliderConstraint_getLowerAngLimit); tolua_function(tolua_S,"getRestitutionDirAng",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionDirAng); - tolua_function(tolua_S,"getTargetAngMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity); + tolua_function(tolua_S,"getDampingDirAng",lua_ax_physics3d_Physics3DSliderConstraint_getDampingDirAng); + tolua_function(tolua_S,"getSoftnessLimLin",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimLin); + tolua_function(tolua_S,"getRestitutionLimLin",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimLin); + tolua_function(tolua_S,"getDampingLimLin",lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimLin); + tolua_function(tolua_S,"getSoftnessLimAng",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessLimAng); + tolua_function(tolua_S,"getRestitutionLimAng",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionLimAng); + tolua_function(tolua_S,"getDampingLimAng",lua_ax_physics3d_Physics3DSliderConstraint_getDampingLimAng); + tolua_function(tolua_S,"getSoftnessOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin); + tolua_function(tolua_S,"getRestitutionOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin); + tolua_function(tolua_S,"getDampingOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoLin); + tolua_function(tolua_S,"getSoftnessOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng); + tolua_function(tolua_S,"getRestitutionOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng); + tolua_function(tolua_S,"getDampingOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_getDampingOrthoAng); + tolua_function(tolua_S,"setSoftnessDirLin",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin); + tolua_function(tolua_S,"setRestitutionDirLin",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirLin); + tolua_function(tolua_S,"setDampingDirLin",lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirLin); + tolua_function(tolua_S,"setSoftnessDirAng",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirAng); + tolua_function(tolua_S,"setRestitutionDirAng",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionDirAng); + tolua_function(tolua_S,"setDampingDirAng",lua_ax_physics3d_Physics3DSliderConstraint_setDampingDirAng); + tolua_function(tolua_S,"setSoftnessLimLin",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimLin); tolua_function(tolua_S,"setRestitutionLimLin",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimLin); - tolua_function(tolua_S,"getMaxLinMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce); + tolua_function(tolua_S,"setDampingLimLin",lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin); + tolua_function(tolua_S,"setSoftnessLimAng",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng); + tolua_function(tolua_S,"setRestitutionLimAng",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionLimAng); + tolua_function(tolua_S,"setDampingLimAng",lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimAng); + tolua_function(tolua_S,"setSoftnessOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin); + tolua_function(tolua_S,"setRestitutionOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin); tolua_function(tolua_S,"setDampingOrthoLin",lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoLin); tolua_function(tolua_S,"setSoftnessOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng); - tolua_function(tolua_S,"setDampingLimLin",lua_ax_physics3d_Physics3DSliderConstraint_setDampingLimLin); - tolua_function(tolua_S,"setSoftnessDirLin",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessDirLin); + tolua_function(tolua_S,"setRestitutionOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng); + tolua_function(tolua_S,"setDampingOrthoAng",lua_ax_physics3d_Physics3DSliderConstraint_setDampingOrthoAng); + tolua_function(tolua_S,"setPoweredLinMotor",lua_ax_physics3d_Physics3DSliderConstraint_setPoweredLinMotor); + tolua_function(tolua_S,"getPoweredLinMotor",lua_ax_physics3d_Physics3DSliderConstraint_getPoweredLinMotor); + tolua_function(tolua_S,"setTargetLinMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity); + tolua_function(tolua_S,"getTargetLinMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity); + tolua_function(tolua_S,"setMaxLinMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce); + tolua_function(tolua_S,"getMaxLinMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce); + tolua_function(tolua_S,"setPoweredAngMotor",lua_ax_physics3d_Physics3DSliderConstraint_setPoweredAngMotor); + tolua_function(tolua_S,"getPoweredAngMotor",lua_ax_physics3d_Physics3DSliderConstraint_getPoweredAngMotor); + tolua_function(tolua_S,"setTargetAngMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity); + tolua_function(tolua_S,"getTargetAngMotorVelocity",lua_ax_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity); tolua_function(tolua_S,"setMaxAngMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce); - tolua_function(tolua_S,"getSoftnessDirLin",lua_ax_physics3d_Physics3DSliderConstraint_getSoftnessDirLin); - tolua_function(tolua_S,"setSoftnessLimAng",lua_ax_physics3d_Physics3DSliderConstraint_setSoftnessLimAng); - tolua_function(tolua_S,"getUseLinearReferenceFrameA",lua_ax_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA); + tolua_function(tolua_S,"getMaxAngMotorForce",lua_ax_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce); + tolua_function(tolua_S,"getLinearPos",lua_ax_physics3d_Physics3DSliderConstraint_getLinearPos); + tolua_function(tolua_S,"getAngularPos",lua_ax_physics3d_Physics3DSliderConstraint_getAngularPos); + tolua_function(tolua_S,"getUseFrameOffset",lua_ax_physics3d_Physics3DSliderConstraint_getUseFrameOffset); + tolua_function(tolua_S,"setUseFrameOffset",lua_ax_physics3d_Physics3DSliderConstraint_setUseFrameOffset); + tolua_function(tolua_S,"setFrames",lua_ax_physics3d_Physics3DSliderConstraint_setFrames); tolua_function(tolua_S,"create", lua_ax_physics3d_Physics3DSliderConstraint_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DSliderConstraint).name(); // rtti is literal storage @@ -10640,688 +10640,6 @@ int lua_register_ax_physics3d_Physics3DSliderConstraint(lua_State* tolua_S) return 1; } -int lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame'", nullptr); - return 0; - } - auto&& ret = cobj->getBFrame(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getBFrame",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setFixThresh"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh'", nullptr); - return 0; - } - cobj->setFixThresh(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setFixThresh",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameOffsetB(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getFrameOffsetB",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameOffsetA(); - mat4_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getFrameOffsetA",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh'", nullptr); - return 0; - } - auto&& ret = cobj->getFixThresh(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getFixThresh",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2'", nullptr); - return 0; - } - auto&& ret = cobj->getSwingSpan2(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getSwingSpan2",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1'", nullptr); - return 0; - } - auto&& ret = cobj->getSwingSpan1(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getSwingSpan1",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setMaxMotorImpulse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse'", nullptr); - return 0; - } - cobj->setMaxMotorImpulse(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setMaxMotorImpulse",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Mat4 arg0; - ax::Mat4 arg1; - - ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DConeTwistConstraint:setFrames"); - - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DConeTwistConstraint:setFrames"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames'", nullptr); - return 0; - } - cobj->setFrames(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setFrames",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle'", nullptr); - return 0; - } - auto&& ret = cobj->getTwistAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getTwistAngle",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - double arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:GetPointForAngle"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Physics3DConeTwistConstraint:GetPointForAngle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'", nullptr); - return 0; - } - auto&& ret = cobj->GetPointForAngle(arg0, arg1); - vec3_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:GetPointForAngle",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setMaxMotorImpulseNormalized"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized'", nullptr); - return 0; - } - cobj->setMaxMotorImpulseNormalized(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setMaxMotorImpulseNormalized",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan'", nullptr); - return 0; - } - auto&& ret = cobj->getTwistSpan(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getTwistSpan",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3DConeTwistConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setDamping"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping'", nullptr); - return 0; - } - cobj->setDamping(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setDamping",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3DConeTwistConstraint_setLimit(lua_State* tolua_S) { int argc = 0; @@ -11503,6 +10821,291 @@ int lua_ax_physics3d_Physics3DConeTwistConstraint_getAFrame(lua_State* tolua_S) return 0; } +int lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getBFrame(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getBFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1'", nullptr); + return 0; + } + auto&& ret = cobj->getSwingSpan1(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getSwingSpan1",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2'", nullptr); + return 0; + } + auto&& ret = cobj->getSwingSpan2(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getSwingSpan2",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan'", nullptr); + return 0; + } + auto&& ret = cobj->getTwistSpan(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getTwistSpan",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle'", nullptr); + return 0; + } + auto&& ret = cobj->getTwistAngle(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getTwistAngle",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setDamping"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping'", nullptr); + return 0; + } + cobj->setDamping(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setDamping",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DConeTwistConstraint_enableMotor(lua_State* tolua_S) { int argc = 0; @@ -11553,6 +11156,403 @@ int lua_ax_physics3d_Physics3DConeTwistConstraint_enableMotor(lua_State* tolua_S return 0; } +int lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setMaxMotorImpulse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse'", nullptr); + return 0; + } + cobj->setMaxMotorImpulse(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setMaxMotorImpulse",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setMaxMotorImpulseNormalized"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized'", nullptr); + return 0; + } + cobj->setMaxMotorImpulseNormalized(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setMaxMotorImpulseNormalized",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh'", nullptr); + return 0; + } + auto&& ret = cobj->getFixThresh(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getFixThresh",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:setFixThresh"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh'", nullptr); + return 0; + } + cobj->setFixThresh(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setFixThresh",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Physics3DConeTwistConstraint:GetPointForAngle"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Physics3DConeTwistConstraint:GetPointForAngle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'", nullptr); + return 0; + } + auto&& ret = cobj->GetPointForAngle(arg0, arg1); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:GetPointForAngle",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Mat4 arg0; + ax::Mat4 arg1; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Physics3DConeTwistConstraint:setFrames"); + + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "ax.Physics3DConeTwistConstraint:setFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames'", nullptr); + return 0; + } + cobj->setFrames(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:setFrames",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameOffsetA(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getFrameOffsetA",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3DConeTwistConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameOffsetB(); + mat4_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DConeTwistConstraint:getFrameOffsetB",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3DConeTwistConstraint_create(lua_State* tolua_S) { int argc = 0; @@ -11663,23 +11663,23 @@ int lua_register_ax_physics3d_Physics3DConeTwistConstraint(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Physics3DConeTwistConstraint"); tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3DConeTwistConstraint_constructor); - tolua_function(tolua_S,"getBFrame",lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame); - tolua_function(tolua_S,"setFixThresh",lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh); - tolua_function(tolua_S,"getFrameOffsetB",lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB); - tolua_function(tolua_S,"getFrameOffsetA",lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA); - tolua_function(tolua_S,"getFixThresh",lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh); - tolua_function(tolua_S,"getSwingSpan2",lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2); - tolua_function(tolua_S,"getSwingSpan1",lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1); - tolua_function(tolua_S,"setMaxMotorImpulse",lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse); - tolua_function(tolua_S,"setFrames",lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames); - tolua_function(tolua_S,"getTwistAngle",lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle); - tolua_function(tolua_S,"GetPointForAngle",lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle); - tolua_function(tolua_S,"setMaxMotorImpulseNormalized",lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized); - tolua_function(tolua_S,"getTwistSpan",lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan); - tolua_function(tolua_S,"setDamping",lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping); tolua_function(tolua_S,"setLimit",lua_ax_physics3d_Physics3DConeTwistConstraint_setLimit); tolua_function(tolua_S,"getAFrame",lua_ax_physics3d_Physics3DConeTwistConstraint_getAFrame); + tolua_function(tolua_S,"getBFrame",lua_ax_physics3d_Physics3DConeTwistConstraint_getBFrame); + tolua_function(tolua_S,"getSwingSpan1",lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan1); + tolua_function(tolua_S,"getSwingSpan2",lua_ax_physics3d_Physics3DConeTwistConstraint_getSwingSpan2); + tolua_function(tolua_S,"getTwistSpan",lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistSpan); + tolua_function(tolua_S,"getTwistAngle",lua_ax_physics3d_Physics3DConeTwistConstraint_getTwistAngle); + tolua_function(tolua_S,"setDamping",lua_ax_physics3d_Physics3DConeTwistConstraint_setDamping); tolua_function(tolua_S,"enableMotor",lua_ax_physics3d_Physics3DConeTwistConstraint_enableMotor); + tolua_function(tolua_S,"setMaxMotorImpulse",lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse); + tolua_function(tolua_S,"setMaxMotorImpulseNormalized",lua_ax_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized); + tolua_function(tolua_S,"getFixThresh",lua_ax_physics3d_Physics3DConeTwistConstraint_getFixThresh); + tolua_function(tolua_S,"setFixThresh",lua_ax_physics3d_Physics3DConeTwistConstraint_setFixThresh); + tolua_function(tolua_S,"GetPointForAngle",lua_ax_physics3d_Physics3DConeTwistConstraint_GetPointForAngle); + tolua_function(tolua_S,"setFrames",lua_ax_physics3d_Physics3DConeTwistConstraint_setFrames); + tolua_function(tolua_S,"getFrameOffsetA",lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA); + tolua_function(tolua_S,"getFrameOffsetB",lua_ax_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB); tolua_function(tolua_S,"create", lua_ax_physics3d_Physics3DConeTwistConstraint_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3DConeTwistConstraint).name(); // rtti is literal storage @@ -11785,7 +11785,7 @@ int lua_ax_physics3d_Physics3D6DofConstraint_getLinearLowerLimit(lua_State* tolu return 0; } -int lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_State* tolua_S) +int lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit(lua_State* tolua_S) { int argc = 0; ax::Physics3D6DofConstraint* cobj = nullptr; @@ -11805,76 +11805,32 @@ int lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_State* tol #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Vec3 arg0; + + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3D6DofConstraint:setLinearUpperLimit"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit'", nullptr); return 0; } - auto&& ret = cobj->getAngularUpperLimit(); - vec3_to_luaval(tolua_S, ret); + cobj->setLinearUpperLimit(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:getAngularUpperLimit",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:setLinearUpperLimit",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3D6DofConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getUseFrameOffset(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:getUseFrameOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit'.",&tolua_err); #endif return 0; @@ -11976,156 +11932,6 @@ int lua_ax_physics3d_Physics3D6DofConstraint_setAngularLowerLimit(lua_State* tol return 0; } -int lua_ax_physics3d_Physics3D6DofConstraint_isLimited(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3D6DofConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_isLimited'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Physics3D6DofConstraint:isLimited"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_isLimited'", nullptr); - return 0; - } - auto&& ret = cobj->isLimited(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:isLimited",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_isLimited'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3D6DofConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3D6DofConstraint:setUseFrameOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset'", nullptr); - return 0; - } - cobj->setUseFrameOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:setUseFrameOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::Physics3D6DofConstraint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec3 arg0; - - ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Physics3D6DofConstraint:setLinearUpperLimit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit'", nullptr); - return 0; - } - cobj->setLinearUpperLimit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:setLinearUpperLimit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics3d_Physics3D6DofConstraint_getAngularLowerLimit(lua_State* tolua_S) { int argc = 0; @@ -12223,6 +12029,200 @@ int lua_ax_physics3d_Physics3D6DofConstraint_setAngularUpperLimit(lua_State* tol return 0; } +int lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3D6DofConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularUpperLimit(); + vec3_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:getAngularUpperLimit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3D6DofConstraint_isLimited(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3D6DofConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_isLimited'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Physics3D6DofConstraint:isLimited"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_isLimited'", nullptr); + return 0; + } + auto&& ret = cobj->isLimited(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:isLimited",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_isLimited'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3D6DofConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getUseFrameOffset(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:getUseFrameOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::Physics3D6DofConstraint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Physics3D6DofConstraint:setUseFrameOffset"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset'", nullptr); + return 0; + } + cobj->setUseFrameOffset(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3D6DofConstraint:setUseFrameOffset",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics3d_Physics3D6DofConstraint_create(lua_State* tolua_S) { int argc = 0; @@ -12341,15 +12341,15 @@ int lua_register_ax_physics3d_Physics3D6DofConstraint(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_ax_physics3d_Physics3D6DofConstraint_constructor); tolua_function(tolua_S,"setLinearLowerLimit",lua_ax_physics3d_Physics3D6DofConstraint_setLinearLowerLimit); tolua_function(tolua_S,"getLinearLowerLimit",lua_ax_physics3d_Physics3D6DofConstraint_getLinearLowerLimit); - tolua_function(tolua_S,"getAngularUpperLimit",lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit); - tolua_function(tolua_S,"getUseFrameOffset",lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset); + tolua_function(tolua_S,"setLinearUpperLimit",lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit); tolua_function(tolua_S,"getLinearUpperLimit",lua_ax_physics3d_Physics3D6DofConstraint_getLinearUpperLimit); tolua_function(tolua_S,"setAngularLowerLimit",lua_ax_physics3d_Physics3D6DofConstraint_setAngularLowerLimit); - tolua_function(tolua_S,"isLimited",lua_ax_physics3d_Physics3D6DofConstraint_isLimited); - tolua_function(tolua_S,"setUseFrameOffset",lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset); - tolua_function(tolua_S,"setLinearUpperLimit",lua_ax_physics3d_Physics3D6DofConstraint_setLinearUpperLimit); tolua_function(tolua_S,"getAngularLowerLimit",lua_ax_physics3d_Physics3D6DofConstraint_getAngularLowerLimit); tolua_function(tolua_S,"setAngularUpperLimit",lua_ax_physics3d_Physics3D6DofConstraint_setAngularUpperLimit); + tolua_function(tolua_S,"getAngularUpperLimit",lua_ax_physics3d_Physics3D6DofConstraint_getAngularUpperLimit); + tolua_function(tolua_S,"isLimited",lua_ax_physics3d_Physics3D6DofConstraint_isLimited); + tolua_function(tolua_S,"getUseFrameOffset",lua_ax_physics3d_Physics3D6DofConstraint_getUseFrameOffset); + tolua_function(tolua_S,"setUseFrameOffset",lua_ax_physics3d_Physics3D6DofConstraint_setUseFrameOffset); tolua_function(tolua_S,"create", lua_ax_physics3d_Physics3D6DofConstraint_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Physics3D6DofConstraint).name(); // rtti is literal storage @@ -12364,18 +12364,18 @@ TOLUA_API int register_all_ax_physics3d(lua_State* tolua_S) tolua_module(tolua_S,"ax",0); tolua_beginmodule(tolua_S,"ax"); - lua_register_ax_physics3d_Physics3DConstraint(tolua_S); - lua_register_ax_physics3d_Physics3D6DofConstraint(tolua_S); + lua_register_ax_physics3d_Physics3DShape(tolua_S); lua_register_ax_physics3d_Physics3DObject(tolua_S); lua_register_ax_physics3d_Physics3DRigidBody(tolua_S); + lua_register_ax_physics3d_Physics3DComponent(tolua_S); lua_register_ax_physics3d_PhysicsMeshRenderer(tolua_S); lua_register_ax_physics3d_Physics3DWorld(tolua_S); - lua_register_ax_physics3d_Physics3DSliderConstraint(tolua_S); - lua_register_ax_physics3d_Physics3DComponent(tolua_S); - lua_register_ax_physics3d_Physics3DConeTwistConstraint(tolua_S); + lua_register_ax_physics3d_Physics3DConstraint(tolua_S); lua_register_ax_physics3d_Physics3DPointToPointConstraint(tolua_S); lua_register_ax_physics3d_Physics3DHingeConstraint(tolua_S); - lua_register_ax_physics3d_Physics3DShape(tolua_S); + lua_register_ax_physics3d_Physics3DSliderConstraint(tolua_S); + lua_register_ax_physics3d_Physics3DConeTwistConstraint(tolua_S); + lua_register_ax_physics3d_Physics3D6DofConstraint(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_physics_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_physics_auto.cpp index 1673d50a1e..ff310a19c4 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_physics_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_physics_auto.cpp @@ -4,7 +4,7 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_physics_PhysicsShape_getFriction(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_getBody(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -24,7 +24,7 @@ int lua_ax_physics_PhysicsShape_getFriction(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getFriction'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getBody'", nullptr); return 0; } #endif @@ -34,310 +34,66 @@ int lua_ax_physics_PhysicsShape_getFriction(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getFriction'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getBody'", nullptr); return 0; } - auto&& ret = cobj->getFriction(); + auto&& ret = cobj->getBody(); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getBody",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getBody'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getType(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getType'", nullptr); + return 0; + } + int ret = (int)cobj->getType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getFriction",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getFriction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setGroup(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setGroup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setGroup"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setGroup'", nullptr); - return 0; - } - cobj->setGroup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setGroup",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setGroup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setDensity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setDensity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsShape:setDensity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setDensity'", nullptr); - return 0; - } - cobj->setDensity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setDensity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setDensity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getMass(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getMass'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getMass'", nullptr); - return 0; - } - auto&& ret = cobj->getMass(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getMass",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getMass'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getMaterial(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getMaterial'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getMaterial'", nullptr); - return 0; - } - auto&& ret = cobj->getMaterial(); - physics_material_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getMaterial",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getMaterial'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setSensor(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setSensor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsShape:setSensor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setSensor'", nullptr); - return 0; - } - cobj->setSensor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setSensor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setSensor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getCollisionBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getCollisionBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getCollisionBitmask'", nullptr); - return 0; - } - auto&& ret = cobj->getCollisionBitmask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getCollisionBitmask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getCollisionBitmask'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getType'.",&tolua_err); #endif return 0; @@ -389,7 +145,7 @@ int lua_ax_physics_PhysicsShape_getArea(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsShape_setCategoryBitmask(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_getMoment(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -409,57 +165,7 @@ int lua_ax_physics_PhysicsShape_setCategoryBitmask(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setCategoryBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setCategoryBitmask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setCategoryBitmask'", nullptr); - return 0; - } - cobj->setCategoryBitmask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setCategoryBitmask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setCategoryBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getGroup(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getGroup'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getMoment'", nullptr); return 0; } #endif @@ -469,19 +175,19 @@ int lua_ax_physics_PhysicsShape_getGroup(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getGroup'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getMoment'", nullptr); return 0; } - auto&& ret = cobj->getGroup(); + auto&& ret = cobj->getMoment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getGroup",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getMoment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getGroup'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getMoment'.",&tolua_err); #endif return 0; @@ -536,7 +242,7 @@ int lua_ax_physics_PhysicsShape_setMoment(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsShape_containsPoint(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_setTag(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -556,7 +262,7 @@ int lua_ax_physics_PhysicsShape_containsPoint(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_containsPoint'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setTag'", nullptr); return 0; } #endif @@ -564,29 +270,29 @@ int lua_ax_physics_PhysicsShape_containsPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Vec2 arg0; + int arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsShape:containsPoint"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_containsPoint'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setTag'", nullptr); return 0; } - auto&& ret = cobj->containsPoint(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setTag(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:containsPoint",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setTag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_containsPoint'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setTag'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_getTag(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -606,7 +312,7 @@ int lua_ax_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getCategoryBitmask'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getTag'", nullptr); return 0; } #endif @@ -616,24 +322,24 @@ int lua_ax_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getCategoryBitmask'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getTag'", nullptr); return 0; } - auto&& ret = cobj->getCategoryBitmask(); + auto&& ret = cobj->getTag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getCategoryBitmask",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getTag",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getCategoryBitmask'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getTag'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsShape_isSensor(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_getMass(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -653,7 +359,7 @@ int lua_ax_physics_PhysicsShape_isSensor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_isSensor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getMass'", nullptr); return 0; } #endif @@ -663,207 +369,19 @@ int lua_ax_physics_PhysicsShape_isSensor(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_isSensor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getMass'", nullptr); return 0; } - auto&& ret = cobj->isSensor(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:isSensor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_isSensor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getType(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getType'", nullptr); - return 0; - } - int ret = (int)cobj->getType(); + auto&& ret = cobj->getMass(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getMass",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getContactTestBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getContactTestBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getContactTestBitmask'", nullptr); - return 0; - } - auto&& ret = cobj->getContactTestBitmask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getContactTestBitmask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getContactTestBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getCenter(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getCenter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getCenter'", nullptr); - return 0; - } - auto&& ret = cobj->getCenter(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getCenter",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getCenter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getDensity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getDensity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getDensity'", nullptr); - return 0; - } - auto&& ret = cobj->getDensity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getDensity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getDensity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getMass'.",&tolua_err); #endif return 0; @@ -918,7 +436,7 @@ int lua_ax_physics_PhysicsShape_setMass(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsShape_getTag(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_getDensity(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -938,7 +456,7 @@ int lua_ax_physics_PhysicsShape_getTag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getTag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getDensity'", nullptr); return 0; } #endif @@ -948,24 +466,24 @@ int lua_ax_physics_PhysicsShape_getTag(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getDensity'", nullptr); return 0; } - auto&& ret = cobj->getTag(); + auto&& ret = cobj->getDensity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getTag",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getDensity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getDensity'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsShape_calculateDefaultMoment(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_setDensity(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -985,54 +503,7 @@ int lua_ax_physics_PhysicsShape_calculateDefaultMoment(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_calculateDefaultMoment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_calculateDefaultMoment'", nullptr); - return 0; - } - auto&& ret = cobj->calculateDefaultMoment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:calculateDefaultMoment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_calculateDefaultMoment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setCollisionBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setCollisionBitmask'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setDensity'", nullptr); return 0; } #endif @@ -1040,118 +511,24 @@ int lua_ax_physics_PhysicsShape_setCollisionBitmask(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + double arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setCollisionBitmask"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsShape:setDensity"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setCollisionBitmask'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setDensity'", nullptr); return 0; } - cobj->setCollisionBitmask(arg0); + cobj->setDensity(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setCollisionBitmask",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setDensity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setCollisionBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getMoment(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getMoment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getMoment'", nullptr); - return 0; - } - auto&& ret = cobj->getMoment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getMoment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getMoment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_getOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getOffset(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getOffset'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setDensity'.",&tolua_err); #endif return 0; @@ -1203,206 +580,6 @@ int lua_ax_physics_PhysicsShape_getRestitution(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsShape_setFriction(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setFriction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsShape:setFriction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setFriction'", nullptr); - return 0; - } - cobj->setFriction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setFriction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setFriction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setMaterial(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setMaterial'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::PhysicsMaterial arg0; - - ok &= luaval_to_physics_material(tolua_S, 2, &arg0, "ax.PhysicsShape:setMaterial"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setMaterial'", nullptr); - return 0; - } - cobj->setMaterial(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setMaterial",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setMaterial'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setTag(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setTag'", nullptr); - return 0; - } - cobj->setTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsShape_setContactTestBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShape* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setContactTestBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setContactTestBitmask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setContactTestBitmask'", nullptr); - return 0; - } - cobj->setContactTestBitmask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setContactTestBitmask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setContactTestBitmask'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsShape_setRestitution(lua_State* tolua_S) { int argc = 0; @@ -1453,7 +630,7 @@ int lua_ax_physics_PhysicsShape_setRestitution(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsShape_getBody(lua_State* tolua_S) +int lua_ax_physics_PhysicsShape_getFriction(lua_State* tolua_S) { int argc = 0; ax::PhysicsShape* cobj = nullptr; @@ -1473,7 +650,7 @@ int lua_ax_physics_PhysicsShape_getBody(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getBody'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getFriction'", nullptr); return 0; } #endif @@ -1483,19 +660,842 @@ int lua_ax_physics_PhysicsShape_getBody(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getBody'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getFriction'", nullptr); return 0; } - auto&& ret = cobj->getBody(); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + auto&& ret = cobj->getFriction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getBody",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getFriction",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getBody'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setFriction(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setFriction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsShape:setFriction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setFriction'", nullptr); + return 0; + } + cobj->setFriction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setFriction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getMaterial(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getMaterial'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getMaterial'", nullptr); + return 0; + } + auto&& ret = cobj->getMaterial(); + physics_material_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getMaterial",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getMaterial'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setMaterial(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setMaterial'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::PhysicsMaterial arg0; + + ok &= luaval_to_physics_material(tolua_S, 2, &arg0, "ax.PhysicsShape:setMaterial"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setMaterial'", nullptr); + return 0; + } + cobj->setMaterial(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setMaterial",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setMaterial'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_isSensor(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_isSensor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_isSensor'", nullptr); + return 0; + } + auto&& ret = cobj->isSensor(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:isSensor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_isSensor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setSensor(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setSensor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsShape:setSensor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setSensor'", nullptr); + return 0; + } + cobj->setSensor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setSensor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setSensor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_calculateDefaultMoment(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_calculateDefaultMoment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_calculateDefaultMoment'", nullptr); + return 0; + } + auto&& ret = cobj->calculateDefaultMoment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:calculateDefaultMoment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_calculateDefaultMoment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getOffset(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getCenter(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getCenter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getCenter'", nullptr); + return 0; + } + auto&& ret = cobj->getCenter(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getCenter",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getCenter'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_containsPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_containsPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsShape:containsPoint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_containsPoint'", nullptr); + return 0; + } + auto&& ret = cobj->containsPoint(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:containsPoint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_containsPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setCategoryBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setCategoryBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setCategoryBitmask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setCategoryBitmask'", nullptr); + return 0; + } + cobj->setCategoryBitmask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setCategoryBitmask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setCategoryBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getCategoryBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getCategoryBitmask'", nullptr); + return 0; + } + auto&& ret = cobj->getCategoryBitmask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getCategoryBitmask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getCategoryBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setContactTestBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setContactTestBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setContactTestBitmask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setContactTestBitmask'", nullptr); + return 0; + } + cobj->setContactTestBitmask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setContactTestBitmask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setContactTestBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getContactTestBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getContactTestBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getContactTestBitmask'", nullptr); + return 0; + } + auto&& ret = cobj->getContactTestBitmask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getContactTestBitmask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getContactTestBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setCollisionBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setCollisionBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setCollisionBitmask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setCollisionBitmask'", nullptr); + return 0; + } + cobj->setCollisionBitmask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setCollisionBitmask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setCollisionBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getCollisionBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getCollisionBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getCollisionBitmask'", nullptr); + return 0; + } + auto&& ret = cobj->getCollisionBitmask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getCollisionBitmask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getCollisionBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_setGroup(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_setGroup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsShape:setGroup"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_setGroup'", nullptr); + return 0; + } + cobj->setGroup(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:setGroup",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_setGroup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsShape_getGroup(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShape* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShape",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShape_getGroup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShape_getGroup'", nullptr); + return 0; + } + auto&& ret = cobj->getGroup(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShape:getGroup",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShape_getGroup'.",&tolua_err); #endif return 0; @@ -1512,37 +1512,37 @@ int lua_register_ax_physics_PhysicsShape(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsShape","ax.PhysicsShape","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"PhysicsShape"); - tolua_function(tolua_S,"getFriction",lua_ax_physics_PhysicsShape_getFriction); - tolua_function(tolua_S,"setGroup",lua_ax_physics_PhysicsShape_setGroup); - tolua_function(tolua_S,"setDensity",lua_ax_physics_PhysicsShape_setDensity); - tolua_function(tolua_S,"getMass",lua_ax_physics_PhysicsShape_getMass); - tolua_function(tolua_S,"getMaterial",lua_ax_physics_PhysicsShape_getMaterial); - tolua_function(tolua_S,"setSensor",lua_ax_physics_PhysicsShape_setSensor); - tolua_function(tolua_S,"getCollisionBitmask",lua_ax_physics_PhysicsShape_getCollisionBitmask); - tolua_function(tolua_S,"getArea",lua_ax_physics_PhysicsShape_getArea); - tolua_function(tolua_S,"setCategoryBitmask",lua_ax_physics_PhysicsShape_setCategoryBitmask); - tolua_function(tolua_S,"getGroup",lua_ax_physics_PhysicsShape_getGroup); - tolua_function(tolua_S,"setMoment",lua_ax_physics_PhysicsShape_setMoment); - tolua_function(tolua_S,"containsPoint",lua_ax_physics_PhysicsShape_containsPoint); - tolua_function(tolua_S,"getCategoryBitmask",lua_ax_physics_PhysicsShape_getCategoryBitmask); - tolua_function(tolua_S,"isSensor",lua_ax_physics_PhysicsShape_isSensor); - tolua_function(tolua_S,"getType",lua_ax_physics_PhysicsShape_getType); - tolua_function(tolua_S,"getContactTestBitmask",lua_ax_physics_PhysicsShape_getContactTestBitmask); - tolua_function(tolua_S,"getCenter",lua_ax_physics_PhysicsShape_getCenter); - tolua_function(tolua_S,"getDensity",lua_ax_physics_PhysicsShape_getDensity); - tolua_function(tolua_S,"setMass",lua_ax_physics_PhysicsShape_setMass); - tolua_function(tolua_S,"getTag",lua_ax_physics_PhysicsShape_getTag); - tolua_function(tolua_S,"calculateDefaultMoment",lua_ax_physics_PhysicsShape_calculateDefaultMoment); - tolua_function(tolua_S,"setCollisionBitmask",lua_ax_physics_PhysicsShape_setCollisionBitmask); - tolua_function(tolua_S,"getMoment",lua_ax_physics_PhysicsShape_getMoment); - tolua_function(tolua_S,"getOffset",lua_ax_physics_PhysicsShape_getOffset); - tolua_function(tolua_S,"getRestitution",lua_ax_physics_PhysicsShape_getRestitution); - tolua_function(tolua_S,"setFriction",lua_ax_physics_PhysicsShape_setFriction); - tolua_function(tolua_S,"setMaterial",lua_ax_physics_PhysicsShape_setMaterial); - tolua_function(tolua_S,"setTag",lua_ax_physics_PhysicsShape_setTag); - tolua_function(tolua_S,"setContactTestBitmask",lua_ax_physics_PhysicsShape_setContactTestBitmask); - tolua_function(tolua_S,"setRestitution",lua_ax_physics_PhysicsShape_setRestitution); tolua_function(tolua_S,"getBody",lua_ax_physics_PhysicsShape_getBody); + tolua_function(tolua_S,"getType",lua_ax_physics_PhysicsShape_getType); + tolua_function(tolua_S,"getArea",lua_ax_physics_PhysicsShape_getArea); + tolua_function(tolua_S,"getMoment",lua_ax_physics_PhysicsShape_getMoment); + tolua_function(tolua_S,"setMoment",lua_ax_physics_PhysicsShape_setMoment); + tolua_function(tolua_S,"setTag",lua_ax_physics_PhysicsShape_setTag); + tolua_function(tolua_S,"getTag",lua_ax_physics_PhysicsShape_getTag); + tolua_function(tolua_S,"getMass",lua_ax_physics_PhysicsShape_getMass); + tolua_function(tolua_S,"setMass",lua_ax_physics_PhysicsShape_setMass); + tolua_function(tolua_S,"getDensity",lua_ax_physics_PhysicsShape_getDensity); + tolua_function(tolua_S,"setDensity",lua_ax_physics_PhysicsShape_setDensity); + tolua_function(tolua_S,"getRestitution",lua_ax_physics_PhysicsShape_getRestitution); + tolua_function(tolua_S,"setRestitution",lua_ax_physics_PhysicsShape_setRestitution); + tolua_function(tolua_S,"getFriction",lua_ax_physics_PhysicsShape_getFriction); + tolua_function(tolua_S,"setFriction",lua_ax_physics_PhysicsShape_setFriction); + tolua_function(tolua_S,"getMaterial",lua_ax_physics_PhysicsShape_getMaterial); + tolua_function(tolua_S,"setMaterial",lua_ax_physics_PhysicsShape_setMaterial); + tolua_function(tolua_S,"isSensor",lua_ax_physics_PhysicsShape_isSensor); + tolua_function(tolua_S,"setSensor",lua_ax_physics_PhysicsShape_setSensor); + tolua_function(tolua_S,"calculateDefaultMoment",lua_ax_physics_PhysicsShape_calculateDefaultMoment); + tolua_function(tolua_S,"getOffset",lua_ax_physics_PhysicsShape_getOffset); + tolua_function(tolua_S,"getCenter",lua_ax_physics_PhysicsShape_getCenter); + tolua_function(tolua_S,"containsPoint",lua_ax_physics_PhysicsShape_containsPoint); + tolua_function(tolua_S,"setCategoryBitmask",lua_ax_physics_PhysicsShape_setCategoryBitmask); + tolua_function(tolua_S,"getCategoryBitmask",lua_ax_physics_PhysicsShape_getCategoryBitmask); + tolua_function(tolua_S,"setContactTestBitmask",lua_ax_physics_PhysicsShape_setContactTestBitmask); + tolua_function(tolua_S,"getContactTestBitmask",lua_ax_physics_PhysicsShape_getContactTestBitmask); + tolua_function(tolua_S,"setCollisionBitmask",lua_ax_physics_PhysicsShape_setCollisionBitmask); + tolua_function(tolua_S,"getCollisionBitmask",lua_ax_physics_PhysicsShape_getCollisionBitmask); + tolua_function(tolua_S,"setGroup",lua_ax_physics_PhysicsShape_setGroup); + tolua_function(tolua_S,"getGroup",lua_ax_physics_PhysicsShape_getGroup); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsShape).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsShape"; @@ -1779,53 +1779,6 @@ int lua_register_ax_physics_PhysicsShapeCircle(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsShapePolygon_getPointsCount(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShapePolygon* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShapePolygon",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShapePolygon*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShapePolygon_getPointsCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShapePolygon_getPointsCount'", nullptr); - return 0; - } - auto&& ret = cobj->getPointsCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShapePolygon:getPointsCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShapePolygon_getPointsCount'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsShapePolygon_getPoint(lua_State* tolua_S) { int argc = 0; @@ -1876,6 +1829,53 @@ int lua_ax_physics_PhysicsShapePolygon_getPoint(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsShapePolygon_getPointsCount(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShapePolygon* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShapePolygon",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShapePolygon*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShapePolygon_getPointsCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShapePolygon_getPointsCount'", nullptr); + return 0; + } + auto&& ret = cobj->getPointsCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShapePolygon:getPointsCount",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShapePolygon_getPointsCount'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_physics_PhysicsShapePolygon_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PhysicsShapePolygon)"); @@ -1888,8 +1888,8 @@ int lua_register_ax_physics_PhysicsShapePolygon(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsShapePolygon","ax.PhysicsShapePolygon","ax.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapePolygon"); - tolua_function(tolua_S,"getPointsCount",lua_ax_physics_PhysicsShapePolygon_getPointsCount); tolua_function(tolua_S,"getPoint",lua_ax_physics_PhysicsShapePolygon_getPoint); + tolua_function(tolua_S,"getPointsCount",lua_ax_physics_PhysicsShapePolygon_getPointsCount); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsShapePolygon).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsShapePolygon"; @@ -2052,53 +2052,6 @@ int lua_register_ax_physics_PhysicsShapeBox(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsShapeEdgeSegment_getPointB(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsShapeEdgeSegment* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShapeEdgeSegment",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsShapeEdgeSegment*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShapeEdgeSegment_getPointB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShapeEdgeSegment_getPointB'", nullptr); - return 0; - } - auto&& ret = cobj->getPointB(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShapeEdgeSegment:getPointB",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShapeEdgeSegment_getPointB'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsShapeEdgeSegment_getPointA(lua_State* tolua_S) { int argc = 0; @@ -2146,6 +2099,53 @@ int lua_ax_physics_PhysicsShapeEdgeSegment_getPointA(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsShapeEdgeSegment_getPointB(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsShapeEdgeSegment* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsShapeEdgeSegment",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsShapeEdgeSegment*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsShapeEdgeSegment_getPointB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsShapeEdgeSegment_getPointB'", nullptr); + return 0; + } + auto&& ret = cobj->getPointB(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsShapeEdgeSegment:getPointB",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsShapeEdgeSegment_getPointB'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsShapeEdgeSegment_create(lua_State* tolua_S) { int argc = 0; @@ -2232,8 +2232,8 @@ int lua_register_ax_physics_PhysicsShapeEdgeSegment(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsShapeEdgeSegment","ax.PhysicsShapeEdgeSegment","ax.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeEdgeSegment"); - tolua_function(tolua_S,"getPointB",lua_ax_physics_PhysicsShapeEdgeSegment_getPointB); tolua_function(tolua_S,"getPointA",lua_ax_physics_PhysicsShapeEdgeSegment_getPointA); + tolua_function(tolua_S,"getPointB",lua_ax_physics_PhysicsShapeEdgeSegment_getPointB); tolua_function(tolua_S,"create", lua_ax_physics_PhysicsShapeEdgeSegment_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsShapeEdgeSegment).name(); // rtti is literal storage @@ -2483,616 +2483,6 @@ int lua_register_ax_physics_PhysicsShapeEdgeChain(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsBody_isGravityEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isGravityEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isGravityEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isGravityEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isGravityEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isGravityEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_resetForces(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_resetForces'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_resetForces'", nullptr); - return 0; - } - cobj->resetForces(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:resetForces",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_resetForces'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getVelocityLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getVelocityLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getVelocityLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getVelocityLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getVelocityLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getVelocityLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setGroup(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setGroup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setGroup"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setGroup'", nullptr); - return 0; - } - cobj->setGroup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setGroup",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setGroup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getMass(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getMass'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getMass'", nullptr); - return 0; - } - auto&& ret = cobj->getMass(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getMass",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getMass'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getCollisionBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getCollisionBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getCollisionBitmask'", nullptr); - return 0; - } - auto&& ret = cobj->getCollisionBitmask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getCollisionBitmask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getCollisionBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getRotationOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getRotationOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getRotationOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getRotationOffset(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getRotationOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getRotationOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getRotation(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getRotation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getRotation'", nullptr); - return 0; - } - auto&& ret = cobj->getRotation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getRotation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getRotation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getMoment(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getMoment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getMoment'", nullptr); - return 0; - } - auto&& ret = cobj->getMoment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getMoment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getMoment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_applyImpulse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyImpulse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyImpulse'", nullptr); - return 0; - } - cobj->applyImpulse(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyImpulse"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.PhysicsBody:applyImpulse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyImpulse'", nullptr); - return 0; - } - cobj->applyImpulse(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:applyImpulse",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_applyImpulse'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setRotationOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setRotationOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setRotationOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setRotationOffset'", nullptr); - return 0; - } - cobj->setRotationOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setRotationOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setRotationOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_applyForce(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_applyForce'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyForce"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyForce'", nullptr); - return 0; - } - cobj->applyForce(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyForce"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.PhysicsBody:applyForce"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyForce'", nullptr); - return 0; - } - cobj->applyForce(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:applyForce",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_applyForce'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsBody_addShape(lua_State* tolua_S) { int argc = 0; @@ -3160,1278 +2550,6 @@ int lua_ax_physics_PhysicsBody_addShape(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsBody_applyTorque(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_applyTorque'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:applyTorque"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyTorque'", nullptr); - return 0; - } - cobj->applyTorque(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:applyTorque",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_applyTorque'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getAngularVelocityLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getAngularVelocityLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getAngularVelocityLimit'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularVelocityLimit(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getAngularVelocityLimit",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getAngularVelocityLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setAngularVelocityLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setAngularVelocityLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setAngularVelocityLimit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setAngularVelocityLimit'", nullptr); - return 0; - } - cobj->setAngularVelocityLimit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setAngularVelocityLimit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setAngularVelocityLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getVelocity(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getLinearDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getLinearDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getLinearDamping'", nullptr); - return 0; - } - auto&& ret = cobj->getLinearDamping(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getLinearDamping",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getLinearDamping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_removeAllShapes(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_removeAllShapes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_removeAllShapes'", nullptr); - return 0; - } - cobj->removeAllShapes(); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:removeAllShapes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_removeAllShapes'", nullptr); - return 0; - } - cobj->removeAllShapes(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:removeAllShapes",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_removeAllShapes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setAngularDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setAngularDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setAngularDamping"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setAngularDamping'", nullptr); - return 0; - } - cobj->setAngularDamping(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setAngularDamping",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setAngularDamping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setVelocityLimit(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setVelocityLimit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setVelocityLimit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setVelocityLimit'", nullptr); - return 0; - } - cobj->setVelocityLimit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setVelocityLimit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setVelocityLimit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setResting(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setResting'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setResting"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setResting'", nullptr); - return 0; - } - cobj->setResting(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setResting",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setResting'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getPositionOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getPositionOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getPositionOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionOffset(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getPositionOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getPositionOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setCategoryBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setCategoryBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setCategoryBitmask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setCategoryBitmask'", nullptr); - return 0; - } - cobj->setCategoryBitmask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setCategoryBitmask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setCategoryBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getWorld(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getWorld'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getWorld'", nullptr); - return 0; - } - auto&& ret = cobj->getWorld(); - object_to_luaval(tolua_S, "ax.PhysicsWorld",(ax::PhysicsWorld*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getWorld",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getWorld'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getAngularVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getAngularVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getAngularVelocity'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularVelocity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getAngularVelocity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getAngularVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setGravityEnable(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setGravityEnable'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setGravityEnable"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setGravityEnable'", nullptr); - return 0; - } - cobj->setGravityEnable(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setGravityEnable",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setGravityEnable'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getGroup(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getGroup'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getGroup'", nullptr); - return 0; - } - auto&& ret = cobj->getGroup(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getGroup",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getGroup'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setMoment(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setMoment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setMoment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setMoment'", nullptr); - return 0; - } - cobj->setMoment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setMoment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setMoment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getTag(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getTag'", nullptr); - return 0; - } - auto&& ret = cobj->getTag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getTag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_local2World(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_local2World'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:local2World"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_local2World'", nullptr); - return 0; - } - auto&& ret = cobj->local2World(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:local2World",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_local2World'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getCategoryBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getCategoryBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getCategoryBitmask'", nullptr); - return 0; - } - auto&& ret = cobj->getCategoryBitmask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getCategoryBitmask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getCategoryBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setDynamic(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setDynamic'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setDynamic"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setDynamic'", nullptr); - return 0; - } - cobj->setDynamic(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setDynamic",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setDynamic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getFirstShape(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getFirstShape'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getFirstShape'", nullptr); - return 0; - } - auto&& ret = cobj->getFirstShape(); - object_to_luaval(tolua_S, "ax.PhysicsShape",(ax::PhysicsShape*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getFirstShape",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getFirstShape'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getShapes(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getShapes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getShapes'", nullptr); - return 0; - } - auto&& ret = cobj->getShapes(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getShapes",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getShapes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getContactTestBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getContactTestBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getContactTestBitmask'", nullptr); - return 0; - } - auto&& ret = cobj->getContactTestBitmask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getContactTestBitmask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getContactTestBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setAngularVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setAngularVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setAngularVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setAngularVelocity'", nullptr); - return 0; - } - cobj->setAngularVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setAngularVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setAngularVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_world2Local(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_world2Local'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:world2Local"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_world2Local'", nullptr); - return 0; - } - auto&& ret = cobj->world2Local(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:world2Local",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_world2Local'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsBody_removeShape(lua_State* tolua_S) { int argc = 0; @@ -4519,7 +2637,7 @@ int lua_ax_physics_PhysicsBody_removeShape(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsBody_setMass(lua_State* tolua_S) +int lua_ax_physics_PhysicsBody_removeAllShapes(lua_State* tolua_S) { int argc = 0; ax::PhysicsBody* cobj = nullptr; @@ -4539,337 +2657,48 @@ int lua_ax_physics_PhysicsBody_setMass(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setMass'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_removeAllShapes'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setMass"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setMass'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_removeAllShapes'", nullptr); return 0; } - cobj->setMass(arg0); + cobj->removeAllShapes(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setMass",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setMass'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_addMoment(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_addMoment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:addMoment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_addMoment'", nullptr); - return 0; - } - cobj->addMoment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:addMoment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_addMoment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:setVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setVelocity'", nullptr); - return 0; - } - cobj->setVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setVelocity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setLinearDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setLinearDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setLinearDamping"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setLinearDamping'", nullptr); - return 0; - } - cobj->setLinearDamping(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setLinearDamping",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setLinearDamping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setCollisionBitmask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setCollisionBitmask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setCollisionBitmask"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setCollisionBitmask'", nullptr); - return 0; - } - cobj->setCollisionBitmask(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setCollisionBitmask",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setCollisionBitmask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setPositionOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setPositionOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:setPositionOffset"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setPositionOffset'", nullptr); - return 0; - } - cobj->setPositionOffset(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setPositionOffset",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setPositionOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_setRotationEnable(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setRotationEnable'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setRotationEnable"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:removeAllShapes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setRotationEnable'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_removeAllShapes'", nullptr); return 0; } - cobj->setRotationEnable(arg0); + cobj->removeAllShapes(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setRotationEnable",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:removeAllShapes",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setRotationEnable'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_removeAllShapes'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) +int lua_ax_physics_PhysicsBody_getShapes(lua_State* tolua_S) { int argc = 0; ax::PhysicsBody* cobj = nullptr; @@ -4889,7 +2718,7 @@ int lua_ax_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isRotationEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getShapes'", nullptr); return 0; } #endif @@ -4899,24 +2728,24 @@ int lua_ax_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isRotationEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getShapes'", nullptr); return 0; } - auto&& ret = cobj->isRotationEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getShapes(); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isRotationEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getShapes",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isRotationEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getShapes'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsBody_getCPBody(lua_State* tolua_S) +int lua_ax_physics_PhysicsBody_getFirstShape(lua_State* tolua_S) { int argc = 0; ax::PhysicsBody* cobj = nullptr; @@ -4936,7 +2765,7 @@ int lua_ax_physics_PhysicsBody_getCPBody(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getCPBody'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getFirstShape'", nullptr); return 0; } #endif @@ -4946,213 +2775,19 @@ int lua_ax_physics_PhysicsBody_getCPBody(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getCPBody'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getFirstShape'", nullptr); return 0; } - auto&& ret = cobj->getCPBody(); - #pragma warning NO CONVERSION FROM NATIVE FOR cpBody*; + auto&& ret = cobj->getFirstShape(); + object_to_luaval(tolua_S, "ax.PhysicsShape",(ax::PhysicsShape*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getCPBody",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getFirstShape",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getCPBody'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getAngularDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getAngularDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getAngularDamping'", nullptr); - return 0; - } - auto&& ret = cobj->getAngularDamping(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getAngularDamping",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getAngularDamping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:getVelocityAtLocalPoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint'", nullptr); - return 0; - } - auto&& ret = cobj->getVelocityAtLocalPoint(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getVelocityAtLocalPoint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_isResting(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isResting'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isResting'", nullptr); - return 0; - } - auto&& ret = cobj->isResting(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isResting",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isResting'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsBody_addMass(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsBody* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_addMass'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:addMass"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_addMass'", nullptr); - return 0; - } - cobj->addMass(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:addMass",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_addMass'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getFirstShape'.",&tolua_err); #endif return 0; @@ -5207,7 +2842,7 @@ int lua_ax_physics_PhysicsBody_getShape(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsBody_setTag(lua_State* tolua_S) +int lua_ax_physics_PhysicsBody_applyForce(lua_State* tolua_S) { int argc = 0; ax::PhysicsBody* cobj = nullptr; @@ -5227,7 +2862,7 @@ int lua_ax_physics_PhysicsBody_setTag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setTag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_applyForce'", nullptr); return 0; } #endif @@ -5235,24 +2870,402 @@ int lua_ax_physics_PhysicsBody_setTag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + ax::Vec2 arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setTag"); + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyForce"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyForce'", nullptr); return 0; } - cobj->setTag(arg0); + cobj->applyForce(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setTag",argc, 1); + if (argc == 2) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyForce"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.PhysicsBody:applyForce"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyForce'", nullptr); + return 0; + } + cobj->applyForce(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:applyForce",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_applyForce'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_resetForces(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_resetForces'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_resetForces'", nullptr); + return 0; + } + cobj->resetForces(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:resetForces",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_resetForces'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_applyImpulse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyImpulse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyImpulse'", nullptr); + return 0; + } + cobj->applyImpulse(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:applyImpulse"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ax.PhysicsBody:applyImpulse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyImpulse'", nullptr); + return 0; + } + cobj->applyImpulse(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:applyImpulse",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_applyImpulse'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_applyTorque(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_applyTorque'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:applyTorque"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_applyTorque'", nullptr); + return 0; + } + cobj->applyTorque(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:applyTorque",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_applyTorque'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:setVelocity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setVelocity'", nullptr); + return 0; + } + cobj->setVelocity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setVelocity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getVelocity'", nullptr); + return 0; + } + auto&& ret = cobj->getVelocity(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getVelocity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setAngularVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setAngularVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setAngularVelocity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setAngularVelocity'", nullptr); + return 0; + } + cobj->setAngularVelocity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setAngularVelocity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setAngularVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:getVelocityAtLocalPoint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint'", nullptr); + return 0; + } + auto&& ret = cobj->getVelocityAtLocalPoint(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getVelocityAtLocalPoint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint'.",&tolua_err); #endif return 0; @@ -5307,7 +3320,7 @@ int lua_ax_physics_PhysicsBody_getVelocityAtWorldPoint(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) +int lua_ax_physics_PhysicsBody_getAngularVelocity(lua_State* tolua_S) { int argc = 0; ax::PhysicsBody* cobj = nullptr; @@ -5327,7 +3340,54 @@ int lua_ax_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setContactTestBitmask'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getAngularVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getAngularVelocity'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularVelocity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getAngularVelocity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getAngularVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setVelocityLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setVelocityLimit'", nullptr); return 0; } #endif @@ -5335,24 +3395,168 @@ int lua_ax_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + double arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setContactTestBitmask"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setVelocityLimit"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setContactTestBitmask'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setVelocityLimit'", nullptr); return 0; } - cobj->setContactTestBitmask(arg0); + cobj->setVelocityLimit(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setContactTestBitmask",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setVelocityLimit",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setContactTestBitmask'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setVelocityLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getVelocityLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getVelocityLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getVelocityLimit'", nullptr); + return 0; + } + auto&& ret = cobj->getVelocityLimit(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getVelocityLimit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getVelocityLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setAngularVelocityLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setAngularVelocityLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setAngularVelocityLimit"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setAngularVelocityLimit'", nullptr); + return 0; + } + cobj->setAngularVelocityLimit(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setAngularVelocityLimit",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setAngularVelocityLimit'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getAngularVelocityLimit(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getAngularVelocityLimit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getAngularVelocityLimit'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularVelocityLimit(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getAngularVelocityLimit",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getAngularVelocityLimit'.",&tolua_err); #endif return 0; @@ -5404,7 +3608,7 @@ int lua_ax_physics_PhysicsBody_removeFromWorld(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsBody_isDynamic(lua_State* tolua_S) +int lua_ax_physics_PhysicsBody_getWorld(lua_State* tolua_S) { int argc = 0; ax::PhysicsBody* cobj = nullptr; @@ -5424,7 +3628,7 @@ int lua_ax_physics_PhysicsBody_isDynamic(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isDynamic'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getWorld'", nullptr); return 0; } #endif @@ -5434,19 +3638,19 @@ int lua_ax_physics_PhysicsBody_isDynamic(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isDynamic'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getWorld'", nullptr); return 0; } - auto&& ret = cobj->isDynamic(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getWorld(); + object_to_luaval(tolua_S, "ax.PhysicsWorld",(ax::PhysicsWorld*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isDynamic",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getWorld",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isDynamic'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getWorld'.",&tolua_err); #endif return 0; @@ -5498,6 +3702,1931 @@ int lua_ax_physics_PhysicsBody_getNode(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsBody_setCategoryBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setCategoryBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setCategoryBitmask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setCategoryBitmask'", nullptr); + return 0; + } + cobj->setCategoryBitmask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setCategoryBitmask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setCategoryBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setContactTestBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setContactTestBitmask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setContactTestBitmask'", nullptr); + return 0; + } + cobj->setContactTestBitmask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setContactTestBitmask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setContactTestBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setCollisionBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setCollisionBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setCollisionBitmask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setCollisionBitmask'", nullptr); + return 0; + } + cobj->setCollisionBitmask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setCollisionBitmask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setCollisionBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getCategoryBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getCategoryBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getCategoryBitmask'", nullptr); + return 0; + } + auto&& ret = cobj->getCategoryBitmask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getCategoryBitmask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getCategoryBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getContactTestBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getContactTestBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getContactTestBitmask'", nullptr); + return 0; + } + auto&& ret = cobj->getContactTestBitmask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getContactTestBitmask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getContactTestBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getCollisionBitmask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getCollisionBitmask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getCollisionBitmask'", nullptr); + return 0; + } + auto&& ret = cobj->getCollisionBitmask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getCollisionBitmask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getCollisionBitmask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setGroup(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setGroup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setGroup"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setGroup'", nullptr); + return 0; + } + cobj->setGroup(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setGroup",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setGroup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getGroup(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getGroup'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getGroup'", nullptr); + return 0; + } + auto&& ret = cobj->getGroup(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getGroup",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getGroup'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getRotation(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getRotation'", nullptr); + return 0; + } + auto&& ret = cobj->getRotation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getRotation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setPositionOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setPositionOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:setPositionOffset"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setPositionOffset'", nullptr); + return 0; + } + cobj->setPositionOffset(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setPositionOffset",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setPositionOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getPositionOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getPositionOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getPositionOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionOffset(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getPositionOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getPositionOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setRotationOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setRotationOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setRotationOffset"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setRotationOffset'", nullptr); + return 0; + } + cobj->setRotationOffset(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setRotationOffset",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setRotationOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getRotationOffset(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getRotationOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getRotationOffset'", nullptr); + return 0; + } + auto&& ret = cobj->getRotationOffset(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getRotationOffset",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getRotationOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_isDynamic(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isDynamic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isDynamic'", nullptr); + return 0; + } + auto&& ret = cobj->isDynamic(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isDynamic",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isDynamic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setDynamic(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setDynamic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setDynamic"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setDynamic'", nullptr); + return 0; + } + cobj->setDynamic(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setDynamic",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setDynamic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setMass(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setMass'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setMass"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setMass'", nullptr); + return 0; + } + cobj->setMass(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setMass",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setMass'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getMass(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getMass'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getMass'", nullptr); + return 0; + } + auto&& ret = cobj->getMass(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getMass",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getMass'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_addMass(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_addMass'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:addMass"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_addMass'", nullptr); + return 0; + } + cobj->addMass(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:addMass",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_addMass'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setMoment(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setMoment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setMoment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setMoment'", nullptr); + return 0; + } + cobj->setMoment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setMoment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setMoment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getMoment(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getMoment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getMoment'", nullptr); + return 0; + } + auto&& ret = cobj->getMoment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getMoment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getMoment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_addMoment(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_addMoment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:addMoment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_addMoment'", nullptr); + return 0; + } + cobj->addMoment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:addMoment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_addMoment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getLinearDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getLinearDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getLinearDamping'", nullptr); + return 0; + } + auto&& ret = cobj->getLinearDamping(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getLinearDamping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getLinearDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setLinearDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setLinearDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setLinearDamping"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setLinearDamping'", nullptr); + return 0; + } + cobj->setLinearDamping(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setLinearDamping",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setLinearDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getAngularDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getAngularDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getAngularDamping'", nullptr); + return 0; + } + auto&& ret = cobj->getAngularDamping(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getAngularDamping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getAngularDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setAngularDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setAngularDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:setAngularDamping"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setAngularDamping'", nullptr); + return 0; + } + cobj->setAngularDamping(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setAngularDamping",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setAngularDamping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_isResting(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isResting'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isResting'", nullptr); + return 0; + } + auto&& ret = cobj->isResting(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isResting",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isResting'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setResting(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setResting'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setResting"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setResting'", nullptr); + return 0; + } + cobj->setResting(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setResting",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setResting'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isRotationEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isRotationEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isRotationEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isRotationEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isRotationEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setRotationEnable(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setRotationEnable'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setRotationEnable"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setRotationEnable'", nullptr); + return 0; + } + cobj->setRotationEnable(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setRotationEnable",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setRotationEnable'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_isGravityEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_isGravityEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_isGravityEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isGravityEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:isGravityEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_isGravityEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setGravityEnable(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setGravityEnable'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsBody:setGravityEnable"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setGravityEnable'", nullptr); + return 0; + } + cobj->setGravityEnable(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setGravityEnable",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setGravityEnable'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getTag(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getTag'", nullptr); + return 0; + } + auto&& ret = cobj->getTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getTag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_setTag(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_setTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsBody:setTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_setTag'", nullptr); + return 0; + } + cobj->setTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:setTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_setTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_world2Local(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_world2Local'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:world2Local"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_world2Local'", nullptr); + return 0; + } + auto&& ret = cobj->world2Local(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:world2Local",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_world2Local'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_local2World(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_local2World'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsBody:local2World"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_local2World'", nullptr); + return 0; + } + auto&& ret = cobj->local2World(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:local2World",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_local2World'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_getCPBody(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsBody* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsBody_getCPBody'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_getCPBody'", nullptr); + return 0; + } + auto&& ret = cobj->getCPBody(); + #pragma warning NO CONVERSION FROM NATIVE FOR cpBody*; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsBody:getCPBody",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_getCPBody'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsBody_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S)-1; + + do + { + if (argc == 1) + { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:create"); + if (!ok) { break; } + ax::PhysicsBody* ret = ax::PhysicsBody::create(arg0); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 0) + { + ax::PhysicsBody* ret = ax::PhysicsBody::create(); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 2) + { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:create"); + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.PhysicsBody:create"); + if (!ok) { break; } + ax::PhysicsBody* ret = ax::PhysicsBody::create(arg0, arg1); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + } while (0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.PhysicsBody:create",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_create'.",&tolua_err); +#endif + return 0; +} +int lua_ax_physics_PhysicsBody_createCircle(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:createCircle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_createCircle'", nullptr); + return 0; + } + auto&& ret = ax::PhysicsBody::createCircle(arg0); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + if (argc == 2) + { + double arg0; + ax::PhysicsMaterial arg1; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:createCircle"); + ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "ax.PhysicsBody:createCircle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_createCircle'", nullptr); + return 0; + } + auto&& ret = ax::PhysicsBody::createCircle(arg0, arg1); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + if (argc == 3) + { + double arg0; + ax::PhysicsMaterial arg1; + ax::Vec2 arg2; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:createCircle"); + ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "ax.PhysicsBody:createCircle"); + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "ax.PhysicsBody:createCircle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_createCircle'", nullptr); + return 0; + } + auto&& ret = ax::PhysicsBody::createCircle(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.PhysicsBody:createCircle",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_createCircle'.",&tolua_err); +#endif + return 0; +} int lua_ax_physics_PhysicsBody_createBox(lua_State* tolua_S) { int argc = 0; @@ -5640,67 +5769,6 @@ int lua_ax_physics_PhysicsBody_createEdgeSegment(lua_State* tolua_S) #endif return 0; } -int lua_ax_physics_PhysicsBody_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S)-1; - - do - { - if (argc == 1) - { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:create"); - if (!ok) { break; } - ax::PhysicsBody* ret = ax::PhysicsBody::create(arg0); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 0) - { - ax::PhysicsBody* ret = ax::PhysicsBody::create(); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 2) - { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:create"); - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.PhysicsBody:create"); - if (!ok) { break; } - ax::PhysicsBody* ret = ax::PhysicsBody::create(arg0, arg1); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - } while (0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.PhysicsBody:create",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_physics_PhysicsBody_createEdgeBox(lua_State* tolua_S) { int argc = 0; @@ -5788,74 +5856,6 @@ int lua_ax_physics_PhysicsBody_createEdgeBox(lua_State* tolua_S) #endif return 0; } -int lua_ax_physics_PhysicsBody_createCircle(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ax.PhysicsBody",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:createCircle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_createCircle'", nullptr); - return 0; - } - auto&& ret = ax::PhysicsBody::createCircle(arg0); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - if (argc == 2) - { - double arg0; - ax::PhysicsMaterial arg1; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:createCircle"); - ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "ax.PhysicsBody:createCircle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_createCircle'", nullptr); - return 0; - } - auto&& ret = ax::PhysicsBody::createCircle(arg0, arg1); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - if (argc == 3) - { - double arg0; - ax::PhysicsMaterial arg1; - ax::Vec2 arg2; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsBody:createCircle"); - ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "ax.PhysicsBody:createCircle"); - ok &= luaval_to_vec2(tolua_S, 4, &arg2, "ax.PhysicsBody:createCircle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsBody_createCircle'", nullptr); - return 0; - } - auto&& ret = ax::PhysicsBody::createCircle(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ax.PhysicsBody",(ax::PhysicsBody*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.PhysicsBody:createCircle",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsBody_createCircle'.",&tolua_err); -#endif - return 0; -} static int lua_ax_physics_PhysicsBody_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PhysicsBody)"); @@ -5868,71 +5868,71 @@ int lua_register_ax_physics_PhysicsBody(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsBody","ax.PhysicsBody","ax.Component",nullptr); tolua_beginmodule(tolua_S,"PhysicsBody"); - tolua_function(tolua_S,"isGravityEnabled",lua_ax_physics_PhysicsBody_isGravityEnabled); - tolua_function(tolua_S,"resetForces",lua_ax_physics_PhysicsBody_resetForces); - tolua_function(tolua_S,"getVelocityLimit",lua_ax_physics_PhysicsBody_getVelocityLimit); - tolua_function(tolua_S,"setGroup",lua_ax_physics_PhysicsBody_setGroup); - tolua_function(tolua_S,"getMass",lua_ax_physics_PhysicsBody_getMass); - tolua_function(tolua_S,"getCollisionBitmask",lua_ax_physics_PhysicsBody_getCollisionBitmask); - tolua_function(tolua_S,"getRotationOffset",lua_ax_physics_PhysicsBody_getRotationOffset); - tolua_function(tolua_S,"getRotation",lua_ax_physics_PhysicsBody_getRotation); - tolua_function(tolua_S,"getMoment",lua_ax_physics_PhysicsBody_getMoment); - tolua_function(tolua_S,"applyImpulse",lua_ax_physics_PhysicsBody_applyImpulse); - tolua_function(tolua_S,"setRotationOffset",lua_ax_physics_PhysicsBody_setRotationOffset); - tolua_function(tolua_S,"applyForce",lua_ax_physics_PhysicsBody_applyForce); tolua_function(tolua_S,"addShape",lua_ax_physics_PhysicsBody_addShape); - tolua_function(tolua_S,"applyTorque",lua_ax_physics_PhysicsBody_applyTorque); - tolua_function(tolua_S,"getAngularVelocityLimit",lua_ax_physics_PhysicsBody_getAngularVelocityLimit); - tolua_function(tolua_S,"setAngularVelocityLimit",lua_ax_physics_PhysicsBody_setAngularVelocityLimit); - tolua_function(tolua_S,"getVelocity",lua_ax_physics_PhysicsBody_getVelocity); - tolua_function(tolua_S,"getLinearDamping",lua_ax_physics_PhysicsBody_getLinearDamping); - tolua_function(tolua_S,"removeAllShapes",lua_ax_physics_PhysicsBody_removeAllShapes); - tolua_function(tolua_S,"setAngularDamping",lua_ax_physics_PhysicsBody_setAngularDamping); - tolua_function(tolua_S,"setVelocityLimit",lua_ax_physics_PhysicsBody_setVelocityLimit); - tolua_function(tolua_S,"setResting",lua_ax_physics_PhysicsBody_setResting); - tolua_function(tolua_S,"getPositionOffset",lua_ax_physics_PhysicsBody_getPositionOffset); - tolua_function(tolua_S,"setCategoryBitmask",lua_ax_physics_PhysicsBody_setCategoryBitmask); - tolua_function(tolua_S,"getWorld",lua_ax_physics_PhysicsBody_getWorld); - tolua_function(tolua_S,"getAngularVelocity",lua_ax_physics_PhysicsBody_getAngularVelocity); - tolua_function(tolua_S,"getPosition",lua_ax_physics_PhysicsBody_getPosition); - tolua_function(tolua_S,"setGravityEnable",lua_ax_physics_PhysicsBody_setGravityEnable); - tolua_function(tolua_S,"getGroup",lua_ax_physics_PhysicsBody_getGroup); - tolua_function(tolua_S,"setMoment",lua_ax_physics_PhysicsBody_setMoment); - tolua_function(tolua_S,"getTag",lua_ax_physics_PhysicsBody_getTag); - tolua_function(tolua_S,"local2World",lua_ax_physics_PhysicsBody_local2World); - tolua_function(tolua_S,"getCategoryBitmask",lua_ax_physics_PhysicsBody_getCategoryBitmask); - tolua_function(tolua_S,"setDynamic",lua_ax_physics_PhysicsBody_setDynamic); - tolua_function(tolua_S,"getFirstShape",lua_ax_physics_PhysicsBody_getFirstShape); - tolua_function(tolua_S,"getShapes",lua_ax_physics_PhysicsBody_getShapes); - tolua_function(tolua_S,"getContactTestBitmask",lua_ax_physics_PhysicsBody_getContactTestBitmask); - tolua_function(tolua_S,"setAngularVelocity",lua_ax_physics_PhysicsBody_setAngularVelocity); - tolua_function(tolua_S,"world2Local",lua_ax_physics_PhysicsBody_world2Local); tolua_function(tolua_S,"removeShape",lua_ax_physics_PhysicsBody_removeShape); - tolua_function(tolua_S,"setMass",lua_ax_physics_PhysicsBody_setMass); - tolua_function(tolua_S,"addMoment",lua_ax_physics_PhysicsBody_addMoment); - tolua_function(tolua_S,"setVelocity",lua_ax_physics_PhysicsBody_setVelocity); - tolua_function(tolua_S,"setLinearDamping",lua_ax_physics_PhysicsBody_setLinearDamping); - tolua_function(tolua_S,"setCollisionBitmask",lua_ax_physics_PhysicsBody_setCollisionBitmask); - tolua_function(tolua_S,"setPositionOffset",lua_ax_physics_PhysicsBody_setPositionOffset); - tolua_function(tolua_S,"setRotationEnable",lua_ax_physics_PhysicsBody_setRotationEnable); - tolua_function(tolua_S,"isRotationEnabled",lua_ax_physics_PhysicsBody_isRotationEnabled); - tolua_function(tolua_S,"getCPBody",lua_ax_physics_PhysicsBody_getCPBody); - tolua_function(tolua_S,"getAngularDamping",lua_ax_physics_PhysicsBody_getAngularDamping); - tolua_function(tolua_S,"getVelocityAtLocalPoint",lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint); - tolua_function(tolua_S,"isResting",lua_ax_physics_PhysicsBody_isResting); - tolua_function(tolua_S,"addMass",lua_ax_physics_PhysicsBody_addMass); + tolua_function(tolua_S,"removeAllShapes",lua_ax_physics_PhysicsBody_removeAllShapes); + tolua_function(tolua_S,"getShapes",lua_ax_physics_PhysicsBody_getShapes); + tolua_function(tolua_S,"getFirstShape",lua_ax_physics_PhysicsBody_getFirstShape); tolua_function(tolua_S,"getShape",lua_ax_physics_PhysicsBody_getShape); - tolua_function(tolua_S,"setTag",lua_ax_physics_PhysicsBody_setTag); + tolua_function(tolua_S,"applyForce",lua_ax_physics_PhysicsBody_applyForce); + tolua_function(tolua_S,"resetForces",lua_ax_physics_PhysicsBody_resetForces); + tolua_function(tolua_S,"applyImpulse",lua_ax_physics_PhysicsBody_applyImpulse); + tolua_function(tolua_S,"applyTorque",lua_ax_physics_PhysicsBody_applyTorque); + tolua_function(tolua_S,"setVelocity",lua_ax_physics_PhysicsBody_setVelocity); + tolua_function(tolua_S,"getVelocity",lua_ax_physics_PhysicsBody_getVelocity); + tolua_function(tolua_S,"setAngularVelocity",lua_ax_physics_PhysicsBody_setAngularVelocity); + tolua_function(tolua_S,"getVelocityAtLocalPoint",lua_ax_physics_PhysicsBody_getVelocityAtLocalPoint); tolua_function(tolua_S,"getVelocityAtWorldPoint",lua_ax_physics_PhysicsBody_getVelocityAtWorldPoint); - tolua_function(tolua_S,"setContactTestBitmask",lua_ax_physics_PhysicsBody_setContactTestBitmask); + tolua_function(tolua_S,"getAngularVelocity",lua_ax_physics_PhysicsBody_getAngularVelocity); + tolua_function(tolua_S,"setVelocityLimit",lua_ax_physics_PhysicsBody_setVelocityLimit); + tolua_function(tolua_S,"getVelocityLimit",lua_ax_physics_PhysicsBody_getVelocityLimit); + tolua_function(tolua_S,"setAngularVelocityLimit",lua_ax_physics_PhysicsBody_setAngularVelocityLimit); + tolua_function(tolua_S,"getAngularVelocityLimit",lua_ax_physics_PhysicsBody_getAngularVelocityLimit); tolua_function(tolua_S,"removeFromWorld",lua_ax_physics_PhysicsBody_removeFromWorld); - tolua_function(tolua_S,"isDynamic",lua_ax_physics_PhysicsBody_isDynamic); + tolua_function(tolua_S,"getWorld",lua_ax_physics_PhysicsBody_getWorld); tolua_function(tolua_S,"getNode",lua_ax_physics_PhysicsBody_getNode); + tolua_function(tolua_S,"setCategoryBitmask",lua_ax_physics_PhysicsBody_setCategoryBitmask); + tolua_function(tolua_S,"setContactTestBitmask",lua_ax_physics_PhysicsBody_setContactTestBitmask); + tolua_function(tolua_S,"setCollisionBitmask",lua_ax_physics_PhysicsBody_setCollisionBitmask); + tolua_function(tolua_S,"getCategoryBitmask",lua_ax_physics_PhysicsBody_getCategoryBitmask); + tolua_function(tolua_S,"getContactTestBitmask",lua_ax_physics_PhysicsBody_getContactTestBitmask); + tolua_function(tolua_S,"getCollisionBitmask",lua_ax_physics_PhysicsBody_getCollisionBitmask); + tolua_function(tolua_S,"setGroup",lua_ax_physics_PhysicsBody_setGroup); + tolua_function(tolua_S,"getGroup",lua_ax_physics_PhysicsBody_getGroup); + tolua_function(tolua_S,"getPosition",lua_ax_physics_PhysicsBody_getPosition); + tolua_function(tolua_S,"getRotation",lua_ax_physics_PhysicsBody_getRotation); + tolua_function(tolua_S,"setPositionOffset",lua_ax_physics_PhysicsBody_setPositionOffset); + tolua_function(tolua_S,"getPositionOffset",lua_ax_physics_PhysicsBody_getPositionOffset); + tolua_function(tolua_S,"setRotationOffset",lua_ax_physics_PhysicsBody_setRotationOffset); + tolua_function(tolua_S,"getRotationOffset",lua_ax_physics_PhysicsBody_getRotationOffset); + tolua_function(tolua_S,"isDynamic",lua_ax_physics_PhysicsBody_isDynamic); + tolua_function(tolua_S,"setDynamic",lua_ax_physics_PhysicsBody_setDynamic); + tolua_function(tolua_S,"setMass",lua_ax_physics_PhysicsBody_setMass); + tolua_function(tolua_S,"getMass",lua_ax_physics_PhysicsBody_getMass); + tolua_function(tolua_S,"addMass",lua_ax_physics_PhysicsBody_addMass); + tolua_function(tolua_S,"setMoment",lua_ax_physics_PhysicsBody_setMoment); + tolua_function(tolua_S,"getMoment",lua_ax_physics_PhysicsBody_getMoment); + tolua_function(tolua_S,"addMoment",lua_ax_physics_PhysicsBody_addMoment); + tolua_function(tolua_S,"getLinearDamping",lua_ax_physics_PhysicsBody_getLinearDamping); + tolua_function(tolua_S,"setLinearDamping",lua_ax_physics_PhysicsBody_setLinearDamping); + tolua_function(tolua_S,"getAngularDamping",lua_ax_physics_PhysicsBody_getAngularDamping); + tolua_function(tolua_S,"setAngularDamping",lua_ax_physics_PhysicsBody_setAngularDamping); + tolua_function(tolua_S,"isResting",lua_ax_physics_PhysicsBody_isResting); + tolua_function(tolua_S,"setResting",lua_ax_physics_PhysicsBody_setResting); + tolua_function(tolua_S,"isRotationEnabled",lua_ax_physics_PhysicsBody_isRotationEnabled); + tolua_function(tolua_S,"setRotationEnable",lua_ax_physics_PhysicsBody_setRotationEnable); + tolua_function(tolua_S,"isGravityEnabled",lua_ax_physics_PhysicsBody_isGravityEnabled); + tolua_function(tolua_S,"setGravityEnable",lua_ax_physics_PhysicsBody_setGravityEnable); + tolua_function(tolua_S,"getTag",lua_ax_physics_PhysicsBody_getTag); + tolua_function(tolua_S,"setTag",lua_ax_physics_PhysicsBody_setTag); + tolua_function(tolua_S,"world2Local",lua_ax_physics_PhysicsBody_world2Local); + tolua_function(tolua_S,"local2World",lua_ax_physics_PhysicsBody_local2World); + tolua_function(tolua_S,"getCPBody",lua_ax_physics_PhysicsBody_getCPBody); + tolua_function(tolua_S,"create", lua_ax_physics_PhysicsBody_create); + tolua_function(tolua_S,"createCircle", lua_ax_physics_PhysicsBody_createCircle); tolua_function(tolua_S,"createBox", lua_ax_physics_PhysicsBody_createBox); tolua_function(tolua_S,"createEdgeSegment", lua_ax_physics_PhysicsBody_createEdgeSegment); - tolua_function(tolua_S,"create", lua_ax_physics_PhysicsBody_create); tolua_function(tolua_S,"createEdgeBox", lua_ax_physics_PhysicsBody_createEdgeBox); - tolua_function(tolua_S,"createCircle", lua_ax_physics_PhysicsBody_createCircle); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsBody).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsBody"; @@ -5940,147 +5940,6 @@ int lua_register_ax_physics_PhysicsBody(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsContact_getContactData(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContact* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContact",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContact*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContact_getContactData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContact_getContactData'", nullptr); - return 0; - } - auto&& ret = cobj->getContactData(); - physics_contactdata_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContact:getContactData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContact_getContactData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsContact_getEventCode(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContact* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContact",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContact*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContact_getEventCode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContact_getEventCode'", nullptr); - return 0; - } - int ret = (int)cobj->getEventCode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContact:getEventCode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContact_getEventCode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsContact_getPreContactData(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContact* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContact",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContact*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContact_getPreContactData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContact_getPreContactData'", nullptr); - return 0; - } - auto&& ret = cobj->getPreContactData(); - physics_contactdata_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContact:getPreContactData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContact_getPreContactData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsContact_getShapeA(lua_State* tolua_S) { int argc = 0; @@ -6175,6 +6034,147 @@ int lua_ax_physics_PhysicsContact_getShapeB(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsContact_getContactData(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContact* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContact",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContact_getContactData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContact_getContactData'", nullptr); + return 0; + } + auto&& ret = cobj->getContactData(); + physics_contactdata_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContact:getContactData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContact_getContactData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsContact_getPreContactData(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContact* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContact",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContact_getPreContactData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContact_getPreContactData'", nullptr); + return 0; + } + auto&& ret = cobj->getPreContactData(); + physics_contactdata_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContact:getPreContactData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContact_getPreContactData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsContact_getEventCode(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContact* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContact",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContact_getEventCode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContact_getEventCode'", nullptr); + return 0; + } + int ret = (int)cobj->getEventCode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContact:getEventCode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContact_getEventCode'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_physics_PhysicsContact_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PhysicsContact)"); @@ -6187,11 +6187,11 @@ int lua_register_ax_physics_PhysicsContact(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsContact","ax.PhysicsContact","ax.EventCustom",nullptr); tolua_beginmodule(tolua_S,"PhysicsContact"); - tolua_function(tolua_S,"getContactData",lua_ax_physics_PhysicsContact_getContactData); - tolua_function(tolua_S,"getEventCode",lua_ax_physics_PhysicsContact_getEventCode); - tolua_function(tolua_S,"getPreContactData",lua_ax_physics_PhysicsContact_getPreContactData); tolua_function(tolua_S,"getShapeA",lua_ax_physics_PhysicsContact_getShapeA); tolua_function(tolua_S,"getShapeB",lua_ax_physics_PhysicsContact_getShapeB); + tolua_function(tolua_S,"getContactData",lua_ax_physics_PhysicsContact_getContactData); + tolua_function(tolua_S,"getPreContactData",lua_ax_physics_PhysicsContact_getPreContactData); + tolua_function(tolua_S,"getEventCode",lua_ax_physics_PhysicsContact_getEventCode); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsContact).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsContact"; @@ -6199,53 +6199,6 @@ int lua_register_ax_physics_PhysicsContact(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsContactPreSolve_getFriction(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContactPreSolve* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_getFriction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_getFriction'", nullptr); - return 0; - } - auto&& ret = cobj->getFriction(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:getFriction",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_getFriction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsContactPreSolve_getRestitution(lua_State* tolua_S) { int argc = 0; @@ -6293,7 +6246,7 @@ int lua_ax_physics_PhysicsContactPreSolve_getRestitution(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsContactPreSolve_setFriction(lua_State* tolua_S) +int lua_ax_physics_PhysicsContactPreSolve_getFriction(lua_State* tolua_S) { int argc = 0; ax::PhysicsContactPreSolve* cobj = nullptr; @@ -6313,57 +6266,7 @@ int lua_ax_physics_PhysicsContactPreSolve_setFriction(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_setFriction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsContactPreSolve:setFriction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_setFriction'", nullptr); - return 0; - } - cobj->setFriction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:setFriction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_setFriction'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsContactPreSolve_ignore(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContactPreSolve* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_ignore'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_getFriction'", nullptr); return 0; } #endif @@ -6373,19 +6276,19 @@ int lua_ax_physics_PhysicsContactPreSolve_ignore(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_ignore'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_getFriction'", nullptr); return 0; } - cobj->ignore(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getFriction(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:ignore",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:getFriction",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_ignore'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_getFriction'.",&tolua_err); #endif return 0; @@ -6437,56 +6340,6 @@ int lua_ax_physics_PhysicsContactPreSolve_getSurfaceVelocity(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContactPreSolve* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsContactPreSolve:setSurfaceVelocity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity'", nullptr); - return 0; - } - cobj->setSurfaceVelocity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:setSurfaceVelocity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsContactPreSolve_setRestitution(lua_State* tolua_S) { int argc = 0; @@ -6537,6 +6390,153 @@ int lua_ax_physics_PhysicsContactPreSolve_setRestitution(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsContactPreSolve_setFriction(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContactPreSolve* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_setFriction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsContactPreSolve:setFriction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_setFriction'", nullptr); + return 0; + } + cobj->setFriction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:setFriction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_setFriction'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContactPreSolve* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsContactPreSolve:setSurfaceVelocity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity'", nullptr); + return 0; + } + cobj->setSurfaceVelocity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:setSurfaceVelocity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsContactPreSolve_ignore(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContactPreSolve* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPreSolve_ignore'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPreSolve_ignore'", nullptr); + return 0; + } + cobj->ignore(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPreSolve:ignore",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPreSolve_ignore'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_physics_PhysicsContactPreSolve_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PhysicsContactPreSolve)"); @@ -6549,13 +6549,13 @@ int lua_register_ax_physics_PhysicsContactPreSolve(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsContactPreSolve","ax.PhysicsContactPreSolve","",nullptr); tolua_beginmodule(tolua_S,"PhysicsContactPreSolve"); - tolua_function(tolua_S,"getFriction",lua_ax_physics_PhysicsContactPreSolve_getFriction); tolua_function(tolua_S,"getRestitution",lua_ax_physics_PhysicsContactPreSolve_getRestitution); - tolua_function(tolua_S,"setFriction",lua_ax_physics_PhysicsContactPreSolve_setFriction); - tolua_function(tolua_S,"ignore",lua_ax_physics_PhysicsContactPreSolve_ignore); + tolua_function(tolua_S,"getFriction",lua_ax_physics_PhysicsContactPreSolve_getFriction); tolua_function(tolua_S,"getSurfaceVelocity",lua_ax_physics_PhysicsContactPreSolve_getSurfaceVelocity); - tolua_function(tolua_S,"setSurfaceVelocity",lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity); tolua_function(tolua_S,"setRestitution",lua_ax_physics_PhysicsContactPreSolve_setRestitution); + tolua_function(tolua_S,"setFriction",lua_ax_physics_PhysicsContactPreSolve_setFriction); + tolua_function(tolua_S,"setSurfaceVelocity",lua_ax_physics_PhysicsContactPreSolve_setSurfaceVelocity); + tolua_function(tolua_S,"ignore",lua_ax_physics_PhysicsContactPreSolve_ignore); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsContactPreSolve).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsContactPreSolve"; @@ -6563,6 +6563,53 @@ int lua_register_ax_physics_PhysicsContactPreSolve(lua_State* tolua_S) return 1; } +int lua_ax_physics_PhysicsContactPostSolve_getRestitution(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsContactPostSolve* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPostSolve",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPostSolve_getRestitution'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPostSolve_getRestitution'", nullptr); + return 0; + } + auto&& ret = cobj->getRestitution(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPostSolve:getRestitution",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPostSolve_getRestitution'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsContactPostSolve_getFriction(lua_State* tolua_S) { int argc = 0; @@ -6657,53 +6704,6 @@ int lua_ax_physics_PhysicsContactPostSolve_getSurfaceVelocity(lua_State* tolua_S return 0; } -int lua_ax_physics_PhysicsContactPostSolve_getRestitution(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsContactPostSolve* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsContactPostSolve",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsContactPostSolve_getRestitution'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsContactPostSolve_getRestitution'", nullptr); - return 0; - } - auto&& ret = cobj->getRestitution(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsContactPostSolve:getRestitution",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsContactPostSolve_getRestitution'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_physics_PhysicsContactPostSolve_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PhysicsContactPostSolve)"); @@ -6716,9 +6716,9 @@ int lua_register_ax_physics_PhysicsContactPostSolve(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsContactPostSolve","ax.PhysicsContactPostSolve","",nullptr); tolua_beginmodule(tolua_S,"PhysicsContactPostSolve"); + tolua_function(tolua_S,"getRestitution",lua_ax_physics_PhysicsContactPostSolve_getRestitution); tolua_function(tolua_S,"getFriction",lua_ax_physics_PhysicsContactPostSolve_getFriction); tolua_function(tolua_S,"getSurfaceVelocity",lua_ax_physics_PhysicsContactPostSolve_getSurfaceVelocity); - tolua_function(tolua_S,"getRestitution",lua_ax_physics_PhysicsContactPostSolve_getRestitution); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsContactPostSolve).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsContactPostSolve"; @@ -7208,7 +7208,7 @@ int lua_ax_physics_PhysicsJoint_getBodyB(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) +int lua_ax_physics_PhysicsJoint_getWorld(lua_State* tolua_S) { int argc = 0; ax::PhysicsJoint* cobj = nullptr; @@ -7228,7 +7228,7 @@ int lua_ax_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_getMaxForce'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_getWorld'", nullptr); return 0; } #endif @@ -7238,24 +7238,24 @@ int lua_ax_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_getMaxForce'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_getWorld'", nullptr); return 0; } - auto&& ret = cobj->getMaxForce(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getWorld(); + object_to_luaval(tolua_S, "ax.PhysicsWorld",(ax::PhysicsWorld*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:getMaxForce",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:getWorld",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_getMaxForce'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_getWorld'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) +int lua_ax_physics_PhysicsJoint_getTag(lua_State* tolua_S) { int argc = 0; ax::PhysicsJoint* cobj = nullptr; @@ -7275,7 +7275,54 @@ int lua_ax_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_setMaxForce'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_getTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_getTag'", nullptr); + return 0; + } + auto&& ret = cobj->getTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:getTag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_getTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsJoint_setTag(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJoint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_setTag'", nullptr); return 0; } #endif @@ -7283,24 +7330,24 @@ int lua_ax_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + int arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJoint:setMaxForce"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsJoint:setTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_setMaxForce'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_setTag'", nullptr); return 0; } - cobj->setMaxForce(arg0); + cobj->setTag(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:setMaxForce",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:setTag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_setMaxForce'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_setTag'.",&tolua_err); #endif return 0; @@ -7402,6 +7449,53 @@ int lua_ax_physics_PhysicsJoint_setEnable(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJoint_isCollisionEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJoint* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_isCollisionEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_isCollisionEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isCollisionEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:isCollisionEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_isCollisionEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJoint_setCollisionEnable(lua_State* tolua_S) { int argc = 0; @@ -7452,103 +7546,6 @@ int lua_ax_physics_PhysicsJoint_setCollisionEnable(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJoint_getWorld(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJoint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_getWorld'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_getWorld'", nullptr); - return 0; - } - auto&& ret = cobj->getWorld(); - object_to_luaval(tolua_S, "ax.PhysicsWorld",(ax::PhysicsWorld*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:getWorld",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_getWorld'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJoint_setTag(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJoint* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_setTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsJoint:setTag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_setTag'", nullptr); - return 0; - } - cobj->setTag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:setTag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_setTag'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJoint_removeFormWorld(lua_State* tolua_S) { int argc = 0; @@ -7596,7 +7593,7 @@ int lua_ax_physics_PhysicsJoint_removeFormWorld(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJoint_isCollisionEnabled(lua_State* tolua_S) +int lua_ax_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) { int argc = 0; ax::PhysicsJoint* cobj = nullptr; @@ -7616,34 +7613,37 @@ int lua_ax_physics_PhysicsJoint_isCollisionEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_isCollisionEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_setMaxForce'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJoint:setMaxForce"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_isCollisionEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_setMaxForce'", nullptr); return 0; } - auto&& ret = cobj->isCollisionEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setMaxForce(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:isCollisionEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:setMaxForce",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_isCollisionEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_setMaxForce'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsJoint_getTag(lua_State* tolua_S) +int lua_ax_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) { int argc = 0; ax::PhysicsJoint* cobj = nullptr; @@ -7663,7 +7663,7 @@ int lua_ax_physics_PhysicsJoint_getTag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_getTag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJoint_getMaxForce'", nullptr); return 0; } #endif @@ -7673,19 +7673,19 @@ int lua_ax_physics_PhysicsJoint_getTag(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_getTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJoint_getMaxForce'", nullptr); return 0; } - auto&& ret = cobj->getTag(); + auto&& ret = cobj->getMaxForce(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:getTag",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJoint:getMaxForce",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_getTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJoint_getMaxForce'.",&tolua_err); #endif return 0; @@ -7704,16 +7704,16 @@ int lua_register_ax_physics_PhysicsJoint(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PhysicsJoint"); tolua_function(tolua_S,"getBodyA",lua_ax_physics_PhysicsJoint_getBodyA); tolua_function(tolua_S,"getBodyB",lua_ax_physics_PhysicsJoint_getBodyB); - tolua_function(tolua_S,"getMaxForce",lua_ax_physics_PhysicsJoint_getMaxForce); - tolua_function(tolua_S,"setMaxForce",lua_ax_physics_PhysicsJoint_setMaxForce); + tolua_function(tolua_S,"getWorld",lua_ax_physics_PhysicsJoint_getWorld); + tolua_function(tolua_S,"getTag",lua_ax_physics_PhysicsJoint_getTag); + tolua_function(tolua_S,"setTag",lua_ax_physics_PhysicsJoint_setTag); tolua_function(tolua_S,"isEnabled",lua_ax_physics_PhysicsJoint_isEnabled); tolua_function(tolua_S,"setEnable",lua_ax_physics_PhysicsJoint_setEnable); - tolua_function(tolua_S,"setCollisionEnable",lua_ax_physics_PhysicsJoint_setCollisionEnable); - tolua_function(tolua_S,"getWorld",lua_ax_physics_PhysicsJoint_getWorld); - tolua_function(tolua_S,"setTag",lua_ax_physics_PhysicsJoint_setTag); - tolua_function(tolua_S,"removeFormWorld",lua_ax_physics_PhysicsJoint_removeFormWorld); tolua_function(tolua_S,"isCollisionEnabled",lua_ax_physics_PhysicsJoint_isCollisionEnabled); - tolua_function(tolua_S,"getTag",lua_ax_physics_PhysicsJoint_getTag); + tolua_function(tolua_S,"setCollisionEnable",lua_ax_physics_PhysicsJoint_setCollisionEnable); + tolua_function(tolua_S,"removeFormWorld",lua_ax_physics_PhysicsJoint_removeFormWorld); + tolua_function(tolua_S,"setMaxForce",lua_ax_physics_PhysicsJoint_setMaxForce); + tolua_function(tolua_S,"getMaxForce",lua_ax_physics_PhysicsJoint_getMaxForce); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJoint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsJoint"; @@ -7829,7 +7829,7 @@ int lua_register_ax_physics_PhysicsJointFixed(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointLimit* cobj = nullptr; @@ -7849,32 +7849,29 @@ int lua_ax_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_setAnchr2'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_getAnchr1'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsJointLimit:setAnchr2"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_setAnchr2'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_getAnchr1'", nullptr); return 0; } - cobj->setAnchr2(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAnchr1(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:setAnchr2",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:getAnchr1",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_setAnchr2'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_getAnchr1'.",&tolua_err); #endif return 0; @@ -7929,56 +7926,6 @@ int lua_ax_physics_PhysicsJointLimit_setAnchr1(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointLimit_setMax(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointLimit* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_setMax'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointLimit:setMax"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_setMax'", nullptr); - return 0; - } - cobj->setMax(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:setMax",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_setMax'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointLimit_getAnchr2(lua_State* tolua_S) { int argc = 0; @@ -8026,7 +7973,7 @@ int lua_ax_physics_PhysicsJointLimit_getAnchr2(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointLimit* cobj = nullptr; @@ -8046,76 +7993,32 @@ int lua_ax_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_getAnchr1'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_setAnchr2'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsJointLimit:setAnchr2"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_getAnchr1'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_setAnchr2'", nullptr); return 0; } - auto&& ret = cobj->getAnchr1(); - vec2_to_luaval(tolua_S, ret); + cobj->setAnchr2(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:getAnchr1",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:setAnchr2",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_getAnchr1'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJointLimit_createConstraints(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointLimit* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_createConstraints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_createConstraints'", nullptr); - return 0; - } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:createConstraints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_createConstraints'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_setAnchr2'.",&tolua_err); #endif return 0; @@ -8167,6 +8070,56 @@ int lua_ax_physics_PhysicsJointLimit_getMin(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointLimit_setMin(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointLimit* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_setMin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointLimit:setMin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_setMin'", nullptr); + return 0; + } + cobj->setMin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:setMin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_setMin'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointLimit_getMax(lua_State* tolua_S) { int argc = 0; @@ -8214,7 +8167,7 @@ int lua_ax_physics_PhysicsJointLimit_getMax(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointLimit_setMin(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointLimit_setMax(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointLimit* cobj = nullptr; @@ -8234,7 +8187,7 @@ int lua_ax_physics_PhysicsJointLimit_setMin(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_setMin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_setMax'", nullptr); return 0; } #endif @@ -8244,22 +8197,69 @@ int lua_ax_physics_PhysicsJointLimit_setMin(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointLimit:setMin"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointLimit:setMax"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_setMin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_setMax'", nullptr); return 0; } - cobj->setMin(arg0); + cobj->setMax(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:setMin",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:setMax",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_setMin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_setMax'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsJointLimit_createConstraints(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointLimit* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointLimit_createConstraints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointLimit_createConstraints'", nullptr); + return 0; + } + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointLimit:createConstraints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointLimit_createConstraints'.",&tolua_err); #endif return 0; @@ -8348,15 +8348,15 @@ int lua_register_ax_physics_PhysicsJointLimit(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointLimit","ax.PhysicsJointLimit","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointLimit"); - tolua_function(tolua_S,"setAnchr2",lua_ax_physics_PhysicsJointLimit_setAnchr2); - tolua_function(tolua_S,"setAnchr1",lua_ax_physics_PhysicsJointLimit_setAnchr1); - tolua_function(tolua_S,"setMax",lua_ax_physics_PhysicsJointLimit_setMax); - tolua_function(tolua_S,"getAnchr2",lua_ax_physics_PhysicsJointLimit_getAnchr2); tolua_function(tolua_S,"getAnchr1",lua_ax_physics_PhysicsJointLimit_getAnchr1); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointLimit_createConstraints); + tolua_function(tolua_S,"setAnchr1",lua_ax_physics_PhysicsJointLimit_setAnchr1); + tolua_function(tolua_S,"getAnchr2",lua_ax_physics_PhysicsJointLimit_getAnchr2); + tolua_function(tolua_S,"setAnchr2",lua_ax_physics_PhysicsJointLimit_setAnchr2); tolua_function(tolua_S,"getMin",lua_ax_physics_PhysicsJointLimit_getMin); - tolua_function(tolua_S,"getMax",lua_ax_physics_PhysicsJointLimit_getMax); tolua_function(tolua_S,"setMin",lua_ax_physics_PhysicsJointLimit_setMin); + tolua_function(tolua_S,"getMax",lua_ax_physics_PhysicsJointLimit_getMax); + tolua_function(tolua_S,"setMax",lua_ax_physics_PhysicsJointLimit_setMax); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointLimit_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointLimit_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointLimit).name(); // rtti is literal storage @@ -8496,7 +8496,7 @@ int lua_register_ax_physics_PhysicsJointPin(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointDistance_createConstraints(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointDistance_getDistance(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointDistance* cobj = nullptr; @@ -8516,7 +8516,7 @@ int lua_ax_physics_PhysicsJointDistance_createConstraints(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointDistance_createConstraints'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointDistance_getDistance'", nullptr); return 0; } #endif @@ -8526,19 +8526,19 @@ int lua_ax_physics_PhysicsJointDistance_createConstraints(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointDistance_createConstraints'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointDistance_getDistance'", nullptr); return 0; } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getDistance(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointDistance:createConstraints",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointDistance:getDistance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointDistance_createConstraints'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointDistance_getDistance'.",&tolua_err); #endif return 0; @@ -8593,7 +8593,7 @@ int lua_ax_physics_PhysicsJointDistance_setDistance(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointDistance_getDistance(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointDistance_createConstraints(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointDistance* cobj = nullptr; @@ -8613,7 +8613,7 @@ int lua_ax_physics_PhysicsJointDistance_getDistance(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointDistance_getDistance'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointDistance_createConstraints'", nullptr); return 0; } #endif @@ -8623,19 +8623,19 @@ int lua_ax_physics_PhysicsJointDistance_getDistance(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointDistance_getDistance'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointDistance_createConstraints'", nullptr); return 0; } - auto&& ret = cobj->getDistance(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointDistance:getDistance",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointDistance:createConstraints",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointDistance_getDistance'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointDistance_createConstraints'.",&tolua_err); #endif return 0; @@ -8694,9 +8694,9 @@ int lua_register_ax_physics_PhysicsJointDistance(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointDistance","ax.PhysicsJointDistance","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointDistance"); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointDistance_createConstraints); - tolua_function(tolua_S,"setDistance",lua_ax_physics_PhysicsJointDistance_setDistance); tolua_function(tolua_S,"getDistance",lua_ax_physics_PhysicsJointDistance_getDistance); + tolua_function(tolua_S,"setDistance",lua_ax_physics_PhysicsJointDistance_setDistance); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointDistance_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointDistance_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointDistance).name(); // rtti is literal storage @@ -8705,7 +8705,7 @@ int lua_register_ax_physics_PhysicsJointDistance(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointSpring* cobj = nullptr; @@ -8725,32 +8725,29 @@ int lua_ax_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_setAnchr2'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getAnchr1'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsJointSpring:setAnchr2"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_setAnchr2'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getAnchr1'", nullptr); return 0; } - cobj->setAnchr2(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAnchr1(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:setAnchr2",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getAnchr1",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_setAnchr2'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getAnchr1'.",&tolua_err); #endif return 0; @@ -8805,150 +8802,6 @@ int lua_ax_physics_PhysicsJointSpring_setAnchr1(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointSpring_getDamping(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointSpring* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getDamping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getDamping'", nullptr); - return 0; - } - auto&& ret = cobj->getDamping(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getDamping",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getDamping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJointSpring_setStiffness(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointSpring* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_setStiffness'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointSpring:setStiffness"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_setStiffness'", nullptr); - return 0; - } - cobj->setStiffness(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:setStiffness",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_setStiffness'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJointSpring_getRestLength(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointSpring* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getRestLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getRestLength'", nullptr); - return 0; - } - auto&& ret = cobj->getRestLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getRestLength",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getRestLength'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointSpring_getAnchr2(lua_State* tolua_S) { int argc = 0; @@ -8996,7 +8849,7 @@ int lua_ax_physics_PhysicsJointSpring_getAnchr2(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointSpring* cobj = nullptr; @@ -9016,34 +8869,37 @@ int lua_ax_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getAnchr1'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_setAnchr2'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsJointSpring:setAnchr2"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getAnchr1'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_setAnchr2'", nullptr); return 0; } - auto&& ret = cobj->getAnchr1(); - vec2_to_luaval(tolua_S, ret); + cobj->setAnchr2(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getAnchr1",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:setAnchr2",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getAnchr1'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_setAnchr2'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointSpring_getRestLength(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointSpring* cobj = nullptr; @@ -9063,7 +8919,7 @@ int lua_ax_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getStiffness'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getRestLength'", nullptr); return 0; } #endif @@ -9073,66 +8929,19 @@ int lua_ax_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getStiffness'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getRestLength'", nullptr); return 0; } - auto&& ret = cobj->getStiffness(); + auto&& ret = cobj->getRestLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getStiffness",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getRestLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getStiffness'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJointSpring_createConstraints(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointSpring* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_createConstraints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_createConstraints'", nullptr); - return 0; - } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:createConstraints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_createConstraints'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getRestLength'.",&tolua_err); #endif return 0; @@ -9187,6 +8996,150 @@ int lua_ax_physics_PhysicsJointSpring_setRestLength(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointSpring* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getStiffness'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getStiffness'", nullptr); + return 0; + } + auto&& ret = cobj->getStiffness(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getStiffness",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getStiffness'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsJointSpring_setStiffness(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointSpring* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_setStiffness'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointSpring:setStiffness"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_setStiffness'", nullptr); + return 0; + } + cobj->setStiffness(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:setStiffness",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_setStiffness'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsJointSpring_getDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointSpring* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_getDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_getDamping'", nullptr); + return 0; + } + auto&& ret = cobj->getDamping(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:getDamping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_getDamping'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointSpring_setDamping(lua_State* tolua_S) { int argc = 0; @@ -9237,6 +9190,53 @@ int lua_ax_physics_PhysicsJointSpring_setDamping(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointSpring_createConstraints(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointSpring* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointSpring_createConstraints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointSpring_createConstraints'", nullptr); + return 0; + } + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointSpring:createConstraints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointSpring_createConstraints'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointSpring_construct(lua_State* tolua_S) { int argc = 0; @@ -9295,17 +9295,17 @@ int lua_register_ax_physics_PhysicsJointSpring(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointSpring","ax.PhysicsJointSpring","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointSpring"); - tolua_function(tolua_S,"setAnchr2",lua_ax_physics_PhysicsJointSpring_setAnchr2); - tolua_function(tolua_S,"setAnchr1",lua_ax_physics_PhysicsJointSpring_setAnchr1); - tolua_function(tolua_S,"getDamping",lua_ax_physics_PhysicsJointSpring_getDamping); - tolua_function(tolua_S,"setStiffness",lua_ax_physics_PhysicsJointSpring_setStiffness); - tolua_function(tolua_S,"getRestLength",lua_ax_physics_PhysicsJointSpring_getRestLength); - tolua_function(tolua_S,"getAnchr2",lua_ax_physics_PhysicsJointSpring_getAnchr2); tolua_function(tolua_S,"getAnchr1",lua_ax_physics_PhysicsJointSpring_getAnchr1); - tolua_function(tolua_S,"getStiffness",lua_ax_physics_PhysicsJointSpring_getStiffness); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointSpring_createConstraints); + tolua_function(tolua_S,"setAnchr1",lua_ax_physics_PhysicsJointSpring_setAnchr1); + tolua_function(tolua_S,"getAnchr2",lua_ax_physics_PhysicsJointSpring_getAnchr2); + tolua_function(tolua_S,"setAnchr2",lua_ax_physics_PhysicsJointSpring_setAnchr2); + tolua_function(tolua_S,"getRestLength",lua_ax_physics_PhysicsJointSpring_getRestLength); tolua_function(tolua_S,"setRestLength",lua_ax_physics_PhysicsJointSpring_setRestLength); + tolua_function(tolua_S,"getStiffness",lua_ax_physics_PhysicsJointSpring_getStiffness); + tolua_function(tolua_S,"setStiffness",lua_ax_physics_PhysicsJointSpring_setStiffness); + tolua_function(tolua_S,"getDamping",lua_ax_physics_PhysicsJointSpring_getDamping); tolua_function(tolua_S,"setDamping",lua_ax_physics_PhysicsJointSpring_setDamping); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointSpring_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointSpring_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointSpring).name(); // rtti is literal storage @@ -9314,7 +9314,7 @@ int lua_register_ax_physics_PhysicsJointSpring(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointGroove_getGrooveA(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointGroove* cobj = nullptr; @@ -9334,32 +9334,29 @@ int lua_ax_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGroove_setAnchr2'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGroove_getGrooveA'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsJointGroove:setAnchr2"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGroove_setAnchr2'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGroove_getGrooveA'", nullptr); return 0; } - cobj->setAnchr2(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getGrooveA(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGroove:setAnchr2",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGroove:getGrooveA",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGroove_setAnchr2'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGroove_getGrooveA'.",&tolua_err); #endif return 0; @@ -9414,6 +9411,53 @@ int lua_ax_physics_PhysicsJointGroove_setGrooveA(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointGroove_getGrooveB(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointGroove* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGroove_getGrooveB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGroove_getGrooveB'", nullptr); + return 0; + } + auto&& ret = cobj->getGrooveB(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGroove:getGrooveB",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGroove_getGrooveB'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointGroove_setGrooveB(lua_State* tolua_S) { int argc = 0; @@ -9464,100 +9508,6 @@ int lua_ax_physics_PhysicsJointGroove_setGrooveB(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointGroove_getGrooveA(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointGroove* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGroove_getGrooveA'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGroove_getGrooveA'", nullptr); - return 0; - } - auto&& ret = cobj->getGrooveA(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGroove:getGrooveA",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGroove_getGrooveA'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJointGroove_getGrooveB(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointGroove* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGroove_getGrooveB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGroove_getGrooveB'", nullptr); - return 0; - } - auto&& ret = cobj->getGrooveB(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGroove:getGrooveB",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGroove_getGrooveB'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointGroove_getAnchr2(lua_State* tolua_S) { int argc = 0; @@ -9605,6 +9555,56 @@ int lua_ax_physics_PhysicsJointGroove_getAnchr2(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointGroove* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGroove_setAnchr2'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsJointGroove:setAnchr2"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGroove_setAnchr2'", nullptr); + return 0; + } + cobj->setAnchr2(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGroove:setAnchr2",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGroove_setAnchr2'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointGroove_createConstraints(lua_State* tolua_S) { int argc = 0; @@ -9708,12 +9708,12 @@ int lua_register_ax_physics_PhysicsJointGroove(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointGroove","ax.PhysicsJointGroove","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointGroove"); - tolua_function(tolua_S,"setAnchr2",lua_ax_physics_PhysicsJointGroove_setAnchr2); - tolua_function(tolua_S,"setGrooveA",lua_ax_physics_PhysicsJointGroove_setGrooveA); - tolua_function(tolua_S,"setGrooveB",lua_ax_physics_PhysicsJointGroove_setGrooveB); tolua_function(tolua_S,"getGrooveA",lua_ax_physics_PhysicsJointGroove_getGrooveA); + tolua_function(tolua_S,"setGrooveA",lua_ax_physics_PhysicsJointGroove_setGrooveA); tolua_function(tolua_S,"getGrooveB",lua_ax_physics_PhysicsJointGroove_getGrooveB); + tolua_function(tolua_S,"setGrooveB",lua_ax_physics_PhysicsJointGroove_setGrooveB); tolua_function(tolua_S,"getAnchr2",lua_ax_physics_PhysicsJointGroove_getAnchr2); + tolua_function(tolua_S,"setAnchr2",lua_ax_physics_PhysicsJointGroove_setAnchr2); tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointGroove_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointGroove_construct); tolua_endmodule(tolua_S); @@ -9723,7 +9723,7 @@ int lua_register_ax_physics_PhysicsJointGroove(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRotarySpring_getRestAngle(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRotarySpring* cobj = nullptr; @@ -9743,7 +9743,7 @@ int lua_ax_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotarySpring_getDamping'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotarySpring_getRestAngle'", nullptr); return 0; } #endif @@ -9753,19 +9753,19 @@ int lua_ax_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotarySpring_getDamping'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotarySpring_getRestAngle'", nullptr); return 0; } - auto&& ret = cobj->getDamping(); + auto&& ret = cobj->getRestAngle(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotarySpring:getDamping",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotarySpring:getRestAngle",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotarySpring_getDamping'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotarySpring_getRestAngle'.",&tolua_err); #endif return 0; @@ -9867,53 +9867,6 @@ int lua_ax_physics_PhysicsJointRotarySpring_getStiffness(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointRotarySpring_createConstraints(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointRotarySpring* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotarySpring_createConstraints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotarySpring_createConstraints'", nullptr); - return 0; - } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotarySpring:createConstraints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotarySpring_createConstraints'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointRotarySpring_setStiffness(lua_State* tolua_S) { int argc = 0; @@ -9964,6 +9917,53 @@ int lua_ax_physics_PhysicsJointRotarySpring_setStiffness(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointRotarySpring* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotarySpring_getDamping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotarySpring_getDamping'", nullptr); + return 0; + } + auto&& ret = cobj->getDamping(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotarySpring:getDamping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotarySpring_getDamping'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointRotarySpring_setDamping(lua_State* tolua_S) { int argc = 0; @@ -10014,7 +10014,7 @@ int lua_ax_physics_PhysicsJointRotarySpring_setDamping(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointRotarySpring_getRestAngle(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRotarySpring_createConstraints(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRotarySpring* cobj = nullptr; @@ -10034,7 +10034,7 @@ int lua_ax_physics_PhysicsJointRotarySpring_getRestAngle(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotarySpring_getRestAngle'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotarySpring_createConstraints'", nullptr); return 0; } #endif @@ -10044,19 +10044,19 @@ int lua_ax_physics_PhysicsJointRotarySpring_getRestAngle(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotarySpring_getRestAngle'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotarySpring_createConstraints'", nullptr); return 0; } - auto&& ret = cobj->getRestAngle(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotarySpring:getRestAngle",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotarySpring:createConstraints",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotarySpring_getRestAngle'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotarySpring_createConstraints'.",&tolua_err); #endif return 0; @@ -10115,13 +10115,13 @@ int lua_register_ax_physics_PhysicsJointRotarySpring(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointRotarySpring","ax.PhysicsJointRotarySpring","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointRotarySpring"); - tolua_function(tolua_S,"getDamping",lua_ax_physics_PhysicsJointRotarySpring_getDamping); + tolua_function(tolua_S,"getRestAngle",lua_ax_physics_PhysicsJointRotarySpring_getRestAngle); tolua_function(tolua_S,"setRestAngle",lua_ax_physics_PhysicsJointRotarySpring_setRestAngle); tolua_function(tolua_S,"getStiffness",lua_ax_physics_PhysicsJointRotarySpring_getStiffness); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointRotarySpring_createConstraints); tolua_function(tolua_S,"setStiffness",lua_ax_physics_PhysicsJointRotarySpring_setStiffness); + tolua_function(tolua_S,"getDamping",lua_ax_physics_PhysicsJointRotarySpring_getDamping); tolua_function(tolua_S,"setDamping",lua_ax_physics_PhysicsJointRotarySpring_setDamping); - tolua_function(tolua_S,"getRestAngle",lua_ax_physics_PhysicsJointRotarySpring_getRestAngle); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointRotarySpring_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointRotarySpring_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointRotarySpring).name(); // rtti is literal storage @@ -10130,7 +10130,7 @@ int lua_register_ax_physics_PhysicsJointRotarySpring(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRotaryLimit_getMin(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRotaryLimit* cobj = nullptr; @@ -10150,7 +10150,7 @@ int lua_ax_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMax'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMin'", nullptr); return 0; } #endif @@ -10160,66 +10160,19 @@ int lua_ax_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMax'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMin'", nullptr); return 0; } - auto&& ret = cobj->getMax(); + auto&& ret = cobj->getMin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotaryLimit:getMax",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotaryLimit:getMin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMax'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsJointRotaryLimit_createConstraints(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointRotaryLimit* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotaryLimit_createConstraints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotaryLimit_createConstraints'", nullptr); - return 0; - } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotaryLimit:createConstraints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotaryLimit_createConstraints'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMin'.",&tolua_err); #endif return 0; @@ -10274,6 +10227,53 @@ int lua_ax_physics_PhysicsJointRotaryLimit_setMin(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointRotaryLimit* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMax'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMax'", nullptr); + return 0; + } + auto&& ret = cobj->getMax(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotaryLimit:getMax",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMax'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointRotaryLimit_setMax(lua_State* tolua_S) { int argc = 0; @@ -10324,7 +10324,7 @@ int lua_ax_physics_PhysicsJointRotaryLimit_setMax(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointRotaryLimit_getMin(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRotaryLimit_createConstraints(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRotaryLimit* cobj = nullptr; @@ -10344,7 +10344,7 @@ int lua_ax_physics_PhysicsJointRotaryLimit_getMin(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRotaryLimit_createConstraints'", nullptr); return 0; } #endif @@ -10354,19 +10354,19 @@ int lua_ax_physics_PhysicsJointRotaryLimit_getMin(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRotaryLimit_createConstraints'", nullptr); return 0; } - auto&& ret = cobj->getMin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotaryLimit:getMin",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRotaryLimit:createConstraints",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotaryLimit_getMin'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRotaryLimit_createConstraints'.",&tolua_err); #endif return 0; @@ -10443,11 +10443,11 @@ int lua_register_ax_physics_PhysicsJointRotaryLimit(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointRotaryLimit","ax.PhysicsJointRotaryLimit","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointRotaryLimit"); - tolua_function(tolua_S,"getMax",lua_ax_physics_PhysicsJointRotaryLimit_getMax); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointRotaryLimit_createConstraints); - tolua_function(tolua_S,"setMin",lua_ax_physics_PhysicsJointRotaryLimit_setMin); - tolua_function(tolua_S,"setMax",lua_ax_physics_PhysicsJointRotaryLimit_setMax); tolua_function(tolua_S,"getMin",lua_ax_physics_PhysicsJointRotaryLimit_getMin); + tolua_function(tolua_S,"setMin",lua_ax_physics_PhysicsJointRotaryLimit_setMin); + tolua_function(tolua_S,"getMax",lua_ax_physics_PhysicsJointRotaryLimit_getMax); + tolua_function(tolua_S,"setMax",lua_ax_physics_PhysicsJointRotaryLimit_setMax); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointRotaryLimit_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointRotaryLimit_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointRotaryLimit).name(); // rtti is literal storage @@ -10553,7 +10553,7 @@ int lua_ax_physics_PhysicsJointRatchet_setAngle(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRatchet* cobj = nullptr; @@ -10573,7 +10573,7 @@ int lua_ax_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRatchet_createConstraints'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRatchet_getPhase'", nullptr); return 0; } #endif @@ -10583,19 +10583,19 @@ int lua_ax_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRatchet_createConstraints'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRatchet_getPhase'", nullptr); return 0; } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getPhase(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRatchet:createConstraints",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRatchet:getPhase",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRatchet_createConstraints'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRatchet_getPhase'.",&tolua_err); #endif return 0; @@ -10650,7 +10650,7 @@ int lua_ax_physics_PhysicsJointRatchet_setPhase(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRatchet_getRatchet(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRatchet* cobj = nullptr; @@ -10670,7 +10670,7 @@ int lua_ax_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRatchet_getPhase'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRatchet_getRatchet'", nullptr); return 0; } #endif @@ -10680,19 +10680,19 @@ int lua_ax_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRatchet_getPhase'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRatchet_getRatchet'", nullptr); return 0; } - auto&& ret = cobj->getPhase(); + auto&& ret = cobj->getRatchet(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRatchet:getPhase",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRatchet:getRatchet",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRatchet_getPhase'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRatchet_getRatchet'.",&tolua_err); #endif return 0; @@ -10747,7 +10747,7 @@ int lua_ax_physics_PhysicsJointRatchet_setRatchet(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointRatchet_getRatchet(lua_State* tolua_S) +int lua_ax_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_S) { int argc = 0; ax::PhysicsJointRatchet* cobj = nullptr; @@ -10767,7 +10767,7 @@ int lua_ax_physics_PhysicsJointRatchet_getRatchet(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRatchet_getRatchet'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointRatchet_createConstraints'", nullptr); return 0; } #endif @@ -10777,19 +10777,19 @@ int lua_ax_physics_PhysicsJointRatchet_getRatchet(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRatchet_getRatchet'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointRatchet_createConstraints'", nullptr); return 0; } - auto&& ret = cobj->getRatchet(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRatchet:getRatchet",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointRatchet:createConstraints",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRatchet_getRatchet'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointRatchet_createConstraints'.",&tolua_err); #endif return 0; @@ -10850,11 +10850,11 @@ int lua_register_ax_physics_PhysicsJointRatchet(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PhysicsJointRatchet"); tolua_function(tolua_S,"getAngle",lua_ax_physics_PhysicsJointRatchet_getAngle); tolua_function(tolua_S,"setAngle",lua_ax_physics_PhysicsJointRatchet_setAngle); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointRatchet_createConstraints); - tolua_function(tolua_S,"setPhase",lua_ax_physics_PhysicsJointRatchet_setPhase); tolua_function(tolua_S,"getPhase",lua_ax_physics_PhysicsJointRatchet_getPhase); - tolua_function(tolua_S,"setRatchet",lua_ax_physics_PhysicsJointRatchet_setRatchet); + tolua_function(tolua_S,"setPhase",lua_ax_physics_PhysicsJointRatchet_setPhase); tolua_function(tolua_S,"getRatchet",lua_ax_physics_PhysicsJointRatchet_getRatchet); + tolua_function(tolua_S,"setRatchet",lua_ax_physics_PhysicsJointRatchet_setRatchet); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointRatchet_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointRatchet_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointRatchet).name(); // rtti is literal storage @@ -10863,56 +10863,6 @@ int lua_register_ax_physics_PhysicsJointRatchet(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsJointGear_setRatio(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointGear* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGear_setRatio'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointGear:setRatio"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGear_setRatio'", nullptr); - return 0; - } - cobj->setRatio(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGear:setRatio",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGear_setRatio'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointGear_getPhase(lua_State* tolua_S) { int argc = 0; @@ -11010,53 +10960,6 @@ int lua_ax_physics_PhysicsJointGear_setPhase(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointGear_createConstraints(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointGear* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGear_createConstraints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGear_createConstraints'", nullptr); - return 0; - } - auto&& ret = cobj->createConstraints(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGear:createConstraints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGear_createConstraints'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointGear_getRatio(lua_State* tolua_S) { int argc = 0; @@ -11104,6 +11007,103 @@ int lua_ax_physics_PhysicsJointGear_getRatio(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsJointGear_setRatio(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointGear* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGear_setRatio'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsJointGear:setRatio"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGear_setRatio'", nullptr); + return 0; + } + cobj->setRatio(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGear:setRatio",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGear_setRatio'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsJointGear_createConstraints(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointGear* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointGear_createConstraints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointGear_createConstraints'", nullptr); + return 0; + } + auto&& ret = cobj->createConstraints(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointGear:createConstraints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointGear_createConstraints'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointGear_construct(lua_State* tolua_S) { int argc = 0; @@ -11158,11 +11158,11 @@ int lua_register_ax_physics_PhysicsJointGear(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointGear","ax.PhysicsJointGear","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointGear"); - tolua_function(tolua_S,"setRatio",lua_ax_physics_PhysicsJointGear_setRatio); tolua_function(tolua_S,"getPhase",lua_ax_physics_PhysicsJointGear_getPhase); tolua_function(tolua_S,"setPhase",lua_ax_physics_PhysicsJointGear_setPhase); - tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointGear_createConstraints); tolua_function(tolua_S,"getRatio",lua_ax_physics_PhysicsJointGear_getRatio); + tolua_function(tolua_S,"setRatio",lua_ax_physics_PhysicsJointGear_setRatio); + tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointGear_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointGear_construct); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsJointGear).name(); // rtti is literal storage @@ -11171,6 +11171,53 @@ int lua_register_ax_physics_PhysicsJointGear(lua_State* tolua_S) return 1; } +int lua_ax_physics_PhysicsJointMotor_getRate(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsJointMotor* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointMotor",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointMotor_getRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointMotor_getRate'", nullptr); + return 0; + } + auto&& ret = cobj->getRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointMotor:getRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointMotor_getRate'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsJointMotor_setRate(lua_State* tolua_S) { int argc = 0; @@ -11221,53 +11268,6 @@ int lua_ax_physics_PhysicsJointMotor_setRate(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsJointMotor_getRate(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsJointMotor* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsJointMotor",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsJointMotor_getRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsJointMotor_getRate'", nullptr); - return 0; - } - auto&& ret = cobj->getRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsJointMotor:getRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsJointMotor_getRate'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsJointMotor_createConstraints(lua_State* tolua_S) { int argc = 0; @@ -11367,8 +11367,8 @@ int lua_register_ax_physics_PhysicsJointMotor(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsJointMotor","ax.PhysicsJointMotor","ax.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointMotor"); - tolua_function(tolua_S,"setRate",lua_ax_physics_PhysicsJointMotor_setRate); tolua_function(tolua_S,"getRate",lua_ax_physics_PhysicsJointMotor_getRate); + tolua_function(tolua_S,"setRate",lua_ax_physics_PhysicsJointMotor_setRate); tolua_function(tolua_S,"createConstraints",lua_ax_physics_PhysicsJointMotor_createConstraints); tolua_function(tolua_S,"construct", lua_ax_physics_PhysicsJointMotor_construct); tolua_endmodule(tolua_S); @@ -11378,253 +11378,6 @@ int lua_register_ax_physics_PhysicsJointMotor(lua_State* tolua_S) return 1; } -int lua_ax_physics_PhysicsWorld_setGravity(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setGravity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsWorld:setGravity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setGravity'", nullptr); - return 0; - } - cobj->setGravity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setGravity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setGravity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_getAllBodies(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getAllBodies'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getAllBodies'", nullptr); - return 0; - } - auto&& ret = cobj->getAllBodies(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getAllBodies",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getAllBodies'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setFixedUpdateRate(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setFixedUpdateRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setFixedUpdateRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setFixedUpdateRate'", nullptr); - return 0; - } - cobj->setFixedUpdateRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setFixedUpdateRate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setFixedUpdateRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setSubsteps(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setSubsteps'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setSubsteps"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setSubsteps'", nullptr); - return 0; - } - cobj->setSubsteps(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setSubsteps",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setSubsteps'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setAutoStep(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setAutoStep'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsWorld:setAutoStep"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setAutoStep'", nullptr); - return 0; - } - cobj->setAutoStep(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setAutoStep",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setAutoStep'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsWorld_addJoint(lua_State* tolua_S) { int argc = 0; @@ -11675,324 +11428,6 @@ int lua_ax_physics_PhysicsWorld_addJoint(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsWorld_removeAllJoints(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'", nullptr); - return 0; - } - cobj->removeAllJoints(); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsWorld:removeAllJoints"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'", nullptr); - return 0; - } - cobj->removeAllJoints(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:removeAllJoints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_getDebugDrawMask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getDebugDrawMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getDebugDrawMask'", nullptr); - return 0; - } - auto&& ret = cobj->getDebugDrawMask(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getDebugDrawMask",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getDebugDrawMask'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setPreUpdateCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setPreUpdateCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setPreUpdateCallback'", nullptr); - return 0; - } - cobj->setPreUpdateCallback(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setPreUpdateCallback",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setPreUpdateCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_isAutoStep(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_isAutoStep'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_isAutoStep'", nullptr); - return 0; - } - auto&& ret = cobj->isAutoStep(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:isAutoStep",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_isAutoStep'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setPostUpdateCallback(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setPostUpdateCallback'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setPostUpdateCallback'", nullptr); - return 0; - } - cobj->setPostUpdateCallback(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setPostUpdateCallback",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setPostUpdateCallback'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_removeBody(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_removeBody'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:removeBody"); - - if (!ok) { break; } - cobj->removeBody(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.PhysicsBody",&arg0, "ax.PhysicsWorld:removeBody"); - - if (!ok) { break; } - cobj->removeBody(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:removeBody",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_removeBody'.",&tolua_err); -#endif - - return 0; -} int lua_ax_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) { int argc = 0; @@ -12060,7 +11495,7 @@ int lua_ax_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsWorld_getShapes(lua_State* tolua_S) +int lua_ax_physics_PhysicsWorld_removeAllJoints(lua_State* tolua_S) { int argc = 0; ax::PhysicsWorld* cobj = nullptr; @@ -12080,417 +11515,98 @@ int lua_ax_physics_PhysicsWorld_getShapes(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getShapes'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsWorld:getShapes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getShapes'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'", nullptr); return 0; } - auto&& ret = cobj->getShapes(arg0); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getShapes",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getShapes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_step(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_step'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsWorld:step"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_step'", nullptr); - return 0; - } - cobj->step(arg0); + cobj->removeAllJoints(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:step",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_step'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setDebugDrawMask(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setDebugDrawMask'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + bool arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setDebugDrawMask"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsWorld:removeAllJoints"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setDebugDrawMask'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'", nullptr); return 0; } - cobj->setDebugDrawMask(arg0); + cobj->removeAllJoints(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setDebugDrawMask",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:removeAllJoints",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setDebugDrawMask'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_removeAllJoints'.",&tolua_err); #endif return 0; } -int lua_ax_physics_PhysicsWorld_getGravity(lua_State* tolua_S) +int lua_ax_physics_PhysicsWorld_removeBody(lua_State* tolua_S) { int argc = 0; ax::PhysicsWorld* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getGravity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_removeBody'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getGravity'", nullptr); - return 0; + do{ + if (argc == 1) { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:removeBody"); + + if (!ok) { break; } + cobj->removeBody(arg0); + lua_settop(tolua_S, 1); + return 1; } - auto&& ret = cobj->getGravity(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getGravity",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.PhysicsBody",&arg0, "ax.PhysicsWorld:removeBody"); + + if (!ok) { break; } + cobj->removeBody(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:removeBody",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getGravity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_setUpdateRate(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setUpdateRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setUpdateRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setUpdateRate'", nullptr); - return 0; - } - cobj->setUpdateRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setUpdateRate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setUpdateRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_getFixedUpdateRate(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getFixedUpdateRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getFixedUpdateRate'", nullptr); - return 0; - } - auto&& ret = cobj->getFixedUpdateRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getFixedUpdateRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getFixedUpdateRate'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_getSubsteps(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getSubsteps'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getSubsteps'", nullptr); - return 0; - } - auto&& ret = cobj->getSubsteps(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getSubsteps",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getSubsteps'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_getSpeed(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getSpeed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getSpeed'", nullptr); - return 0; - } - auto&& ret = cobj->getSpeed(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getSpeed",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getSpeed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_physics_PhysicsWorld_getUpdateRate(lua_State* tolua_S) -{ - int argc = 0; - ax::PhysicsWorld* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getUpdateRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getUpdateRate'", nullptr); - return 0; - } - auto&& ret = cobj->getUpdateRate(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getUpdateRate",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getUpdateRate'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_removeBody'.",&tolua_err); #endif return 0; @@ -12542,7 +11658,7 @@ int lua_ax_physics_PhysicsWorld_removeAllBodies(lua_State* tolua_S) return 0; } -int lua_ax_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) +int lua_ax_physics_PhysicsWorld_getShapes(lua_State* tolua_S) { int argc = 0; ax::PhysicsWorld* cobj = nullptr; @@ -12562,7 +11678,7 @@ int lua_ax_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setSpeed'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getShapes'", nullptr); return 0; } #endif @@ -12570,24 +11686,24 @@ int lua_ax_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::Vec2 arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsWorld:setSpeed"); + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsWorld:getShapes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setSpeed'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getShapes'", nullptr); return 0; } - cobj->setSpeed(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getShapes(arg0); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setSpeed",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getShapes",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setSpeed'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getShapes'.",&tolua_err); #endif return 0; @@ -12642,6 +11758,53 @@ int lua_ax_physics_PhysicsWorld_getShape(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsWorld_getAllBodies(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getAllBodies'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getAllBodies'", nullptr); + return 0; + } + auto&& ret = cobj->getAllBodies(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getAllBodies",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getAllBodies'.",&tolua_err); +#endif + + return 0; +} int lua_ax_physics_PhysicsWorld_getBody(lua_State* tolua_S) { int argc = 0; @@ -12692,6 +11855,843 @@ int lua_ax_physics_PhysicsWorld_getBody(lua_State* tolua_S) return 0; } +int lua_ax_physics_PhysicsWorld_getGravity(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getGravity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getGravity'", nullptr); + return 0; + } + auto&& ret = cobj->getGravity(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getGravity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getGravity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setGravity(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setGravity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.PhysicsWorld:setGravity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setGravity'", nullptr); + return 0; + } + cobj->setGravity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setGravity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setGravity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setSpeed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsWorld:setSpeed"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setSpeed'", nullptr); + return 0; + } + cobj->setSpeed(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setSpeed",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_getSpeed(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getSpeed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getSpeed'", nullptr); + return 0; + } + auto&& ret = cobj->getSpeed(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getSpeed",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setUpdateRate(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setUpdateRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setUpdateRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setUpdateRate'", nullptr); + return 0; + } + cobj->setUpdateRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setUpdateRate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setUpdateRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_getUpdateRate(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getUpdateRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getUpdateRate'", nullptr); + return 0; + } + auto&& ret = cobj->getUpdateRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getUpdateRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getUpdateRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setSubsteps(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setSubsteps'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setSubsteps"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setSubsteps'", nullptr); + return 0; + } + cobj->setSubsteps(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setSubsteps",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setSubsteps'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_getSubsteps(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getSubsteps'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getSubsteps'", nullptr); + return 0; + } + auto&& ret = cobj->getSubsteps(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getSubsteps",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getSubsteps'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setFixedUpdateRate(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setFixedUpdateRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setFixedUpdateRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setFixedUpdateRate'", nullptr); + return 0; + } + cobj->setFixedUpdateRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setFixedUpdateRate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setFixedUpdateRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_getFixedUpdateRate(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getFixedUpdateRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getFixedUpdateRate'", nullptr); + return 0; + } + auto&& ret = cobj->getFixedUpdateRate(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getFixedUpdateRate",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getFixedUpdateRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setDebugDrawMask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setDebugDrawMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.PhysicsWorld:setDebugDrawMask"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setDebugDrawMask'", nullptr); + return 0; + } + cobj->setDebugDrawMask(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setDebugDrawMask",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setDebugDrawMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setPreUpdateCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setPreUpdateCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setPreUpdateCallback'", nullptr); + return 0; + } + cobj->setPreUpdateCallback(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setPreUpdateCallback",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setPreUpdateCallback'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setPostUpdateCallback(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setPostUpdateCallback'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setPostUpdateCallback'", nullptr); + return 0; + } + cobj->setPostUpdateCallback(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setPostUpdateCallback",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setPostUpdateCallback'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_getDebugDrawMask(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_getDebugDrawMask'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_getDebugDrawMask'", nullptr); + return 0; + } + auto&& ret = cobj->getDebugDrawMask(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:getDebugDrawMask",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_getDebugDrawMask'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_setAutoStep(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_setAutoStep'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PhysicsWorld:setAutoStep"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_setAutoStep'", nullptr); + return 0; + } + cobj->setAutoStep(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:setAutoStep",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_setAutoStep'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_isAutoStep(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_isAutoStep'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_isAutoStep'", nullptr); + return 0; + } + auto&& ret = cobj->isAutoStep(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:isAutoStep",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_isAutoStep'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_physics_PhysicsWorld_step(lua_State* tolua_S) +{ + int argc = 0; + ax::PhysicsWorld* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ax.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_physics_PhysicsWorld_step'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PhysicsWorld:step"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_physics_PhysicsWorld_step'", nullptr); + return 0; + } + cobj->step(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PhysicsWorld:step",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_physics_PhysicsWorld_step'.",&tolua_err); +#endif + + return 0; +} static int lua_ax_physics_PhysicsWorld_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PhysicsWorld)"); @@ -12704,32 +12704,32 @@ int lua_register_ax_physics_PhysicsWorld(lua_State* tolua_S) tolua_cclass(tolua_S,"PhysicsWorld","ax.PhysicsWorld","",nullptr); tolua_beginmodule(tolua_S,"PhysicsWorld"); - tolua_function(tolua_S,"setGravity",lua_ax_physics_PhysicsWorld_setGravity); - tolua_function(tolua_S,"getAllBodies",lua_ax_physics_PhysicsWorld_getAllBodies); - tolua_function(tolua_S,"setFixedUpdateRate",lua_ax_physics_PhysicsWorld_setFixedUpdateRate); - tolua_function(tolua_S,"setSubsteps",lua_ax_physics_PhysicsWorld_setSubsteps); - tolua_function(tolua_S,"setAutoStep",lua_ax_physics_PhysicsWorld_setAutoStep); tolua_function(tolua_S,"addJoint",lua_ax_physics_PhysicsWorld_addJoint); - tolua_function(tolua_S,"removeAllJoints",lua_ax_physics_PhysicsWorld_removeAllJoints); - tolua_function(tolua_S,"getDebugDrawMask",lua_ax_physics_PhysicsWorld_getDebugDrawMask); - tolua_function(tolua_S,"setPreUpdateCallback",lua_ax_physics_PhysicsWorld_setPreUpdateCallback); - tolua_function(tolua_S,"isAutoStep",lua_ax_physics_PhysicsWorld_isAutoStep); - tolua_function(tolua_S,"setPostUpdateCallback",lua_ax_physics_PhysicsWorld_setPostUpdateCallback); - tolua_function(tolua_S,"removeBody",lua_ax_physics_PhysicsWorld_removeBody); tolua_function(tolua_S,"removeJoint",lua_ax_physics_PhysicsWorld_removeJoint); - tolua_function(tolua_S,"getShapes",lua_ax_physics_PhysicsWorld_getShapes); - tolua_function(tolua_S,"step",lua_ax_physics_PhysicsWorld_step); - tolua_function(tolua_S,"setDebugDrawMask",lua_ax_physics_PhysicsWorld_setDebugDrawMask); - tolua_function(tolua_S,"getGravity",lua_ax_physics_PhysicsWorld_getGravity); - tolua_function(tolua_S,"setUpdateRate",lua_ax_physics_PhysicsWorld_setUpdateRate); - tolua_function(tolua_S,"getFixedUpdateRate",lua_ax_physics_PhysicsWorld_getFixedUpdateRate); - tolua_function(tolua_S,"getSubsteps",lua_ax_physics_PhysicsWorld_getSubsteps); - tolua_function(tolua_S,"getSpeed",lua_ax_physics_PhysicsWorld_getSpeed); - tolua_function(tolua_S,"getUpdateRate",lua_ax_physics_PhysicsWorld_getUpdateRate); + tolua_function(tolua_S,"removeAllJoints",lua_ax_physics_PhysicsWorld_removeAllJoints); + tolua_function(tolua_S,"removeBody",lua_ax_physics_PhysicsWorld_removeBody); tolua_function(tolua_S,"removeAllBodies",lua_ax_physics_PhysicsWorld_removeAllBodies); - tolua_function(tolua_S,"setSpeed",lua_ax_physics_PhysicsWorld_setSpeed); + tolua_function(tolua_S,"getShapes",lua_ax_physics_PhysicsWorld_getShapes); tolua_function(tolua_S,"getShape",lua_ax_physics_PhysicsWorld_getShape); + tolua_function(tolua_S,"getAllBodies",lua_ax_physics_PhysicsWorld_getAllBodies); tolua_function(tolua_S,"getBody",lua_ax_physics_PhysicsWorld_getBody); + tolua_function(tolua_S,"getGravity",lua_ax_physics_PhysicsWorld_getGravity); + tolua_function(tolua_S,"setGravity",lua_ax_physics_PhysicsWorld_setGravity); + tolua_function(tolua_S,"setSpeed",lua_ax_physics_PhysicsWorld_setSpeed); + tolua_function(tolua_S,"getSpeed",lua_ax_physics_PhysicsWorld_getSpeed); + tolua_function(tolua_S,"setUpdateRate",lua_ax_physics_PhysicsWorld_setUpdateRate); + tolua_function(tolua_S,"getUpdateRate",lua_ax_physics_PhysicsWorld_getUpdateRate); + tolua_function(tolua_S,"setSubsteps",lua_ax_physics_PhysicsWorld_setSubsteps); + tolua_function(tolua_S,"getSubsteps",lua_ax_physics_PhysicsWorld_getSubsteps); + tolua_function(tolua_S,"setFixedUpdateRate",lua_ax_physics_PhysicsWorld_setFixedUpdateRate); + tolua_function(tolua_S,"getFixedUpdateRate",lua_ax_physics_PhysicsWorld_getFixedUpdateRate); + tolua_function(tolua_S,"setDebugDrawMask",lua_ax_physics_PhysicsWorld_setDebugDrawMask); + tolua_function(tolua_S,"setPreUpdateCallback",lua_ax_physics_PhysicsWorld_setPreUpdateCallback); + tolua_function(tolua_S,"setPostUpdateCallback",lua_ax_physics_PhysicsWorld_setPostUpdateCallback); + tolua_function(tolua_S,"getDebugDrawMask",lua_ax_physics_PhysicsWorld_getDebugDrawMask); + tolua_function(tolua_S,"setAutoStep",lua_ax_physics_PhysicsWorld_setAutoStep); + tolua_function(tolua_S,"isAutoStep",lua_ax_physics_PhysicsWorld_isAutoStep); + tolua_function(tolua_S,"step",lua_ax_physics_PhysicsWorld_step); tolua_endmodule(tolua_S); auto typeName = typeid(ax::PhysicsWorld).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.PhysicsWorld"; @@ -12743,35 +12743,35 @@ TOLUA_API int register_all_ax_physics(lua_State* tolua_S) tolua_module(tolua_S,"ax",0); tolua_beginmodule(tolua_S,"ax"); - lua_register_ax_physics_PhysicsBody(tolua_S); - lua_register_ax_physics_PhysicsWorld(tolua_S); - lua_register_ax_physics_PhysicsJoint(tolua_S); - lua_register_ax_physics_PhysicsJointLimit(tolua_S); - lua_register_ax_physics_PhysicsJointFixed(tolua_S); - lua_register_ax_physics_EventListenerPhysicsContact(tolua_S); - lua_register_ax_physics_EventListenerPhysicsContactWithGroup(tolua_S); lua_register_ax_physics_PhysicsShape(tolua_S); + lua_register_ax_physics_PhysicsShapeCircle(tolua_S); lua_register_ax_physics_PhysicsShapePolygon(tolua_S); lua_register_ax_physics_PhysicsShapeBox(tolua_S); - lua_register_ax_physics_PhysicsJointMotor(tolua_S); - lua_register_ax_physics_PhysicsJointRatchet(tolua_S); - lua_register_ax_physics_PhysicsJointDistance(tolua_S); - lua_register_ax_physics_PhysicsShapeCircle(tolua_S); - lua_register_ax_physics_PhysicsShapeEdgePolygon(tolua_S); - lua_register_ax_physics_PhysicsJointPin(tolua_S); - lua_register_ax_physics_PhysicsContactPreSolve(tolua_S); - lua_register_ax_physics_PhysicsShapeEdgeChain(tolua_S); lua_register_ax_physics_PhysicsShapeEdgeSegment(tolua_S); - lua_register_ax_physics_PhysicsJointGear(tolua_S); - lua_register_ax_physics_PhysicsContact(tolua_S); - lua_register_ax_physics_EventListenerPhysicsContactWithBodies(tolua_S); - lua_register_ax_physics_PhysicsJointRotarySpring(tolua_S); - lua_register_ax_physics_PhysicsContactPostSolve(tolua_S); - lua_register_ax_physics_PhysicsJointGroove(tolua_S); + lua_register_ax_physics_PhysicsShapeEdgePolygon(tolua_S); lua_register_ax_physics_PhysicsShapeEdgeBox(tolua_S); - lua_register_ax_physics_PhysicsJointRotaryLimit(tolua_S); - lua_register_ax_physics_PhysicsJointSpring(tolua_S); + lua_register_ax_physics_PhysicsShapeEdgeChain(tolua_S); + lua_register_ax_physics_PhysicsBody(tolua_S); + lua_register_ax_physics_PhysicsContact(tolua_S); + lua_register_ax_physics_PhysicsContactPreSolve(tolua_S); + lua_register_ax_physics_PhysicsContactPostSolve(tolua_S); + lua_register_ax_physics_EventListenerPhysicsContact(tolua_S); + lua_register_ax_physics_EventListenerPhysicsContactWithBodies(tolua_S); lua_register_ax_physics_EventListenerPhysicsContactWithShapes(tolua_S); + lua_register_ax_physics_EventListenerPhysicsContactWithGroup(tolua_S); + lua_register_ax_physics_PhysicsJoint(tolua_S); + lua_register_ax_physics_PhysicsJointFixed(tolua_S); + lua_register_ax_physics_PhysicsJointLimit(tolua_S); + lua_register_ax_physics_PhysicsJointPin(tolua_S); + lua_register_ax_physics_PhysicsJointDistance(tolua_S); + lua_register_ax_physics_PhysicsJointSpring(tolua_S); + lua_register_ax_physics_PhysicsJointGroove(tolua_S); + lua_register_ax_physics_PhysicsJointRotarySpring(tolua_S); + lua_register_ax_physics_PhysicsJointRotaryLimit(tolua_S); + lua_register_ax_physics_PhysicsJointRatchet(tolua_S); + lua_register_ax_physics_PhysicsJointGear(tolua_S); + lua_register_ax_physics_PhysicsJointMotor(tolua_S); + lua_register_ax_physics_PhysicsWorld(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_spine_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_spine_auto.cpp index 0c3d1652ca..eadd33eea7 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_spine_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_spine_auto.cpp @@ -3,6 +3,53 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" +int lua_ax_spine_SkeletonRenderer_getSkeleton(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getSkeleton'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getSkeleton'", nullptr); + return 0; + } + auto&& ret = cobj->getSkeleton(); + object_to_luaval(tolua_S, "sp.Skeleton",(spine::Skeleton*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getSkeleton",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getSkeleton'.",&tolua_err); +#endif + + return 0; +} int lua_ax_spine_SkeletonRenderer_setTimeScale(lua_State* tolua_S) { int argc = 0; @@ -53,6 +100,344 @@ int lua_ax_spine_SkeletonRenderer_setTimeScale(lua_State* tolua_S) return 0; } +int lua_ax_spine_SkeletonRenderer_getTimeScale(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getTimeScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getTimeScale'", nullptr); + return 0; + } + auto&& ret = cobj->getTimeScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getTimeScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getTimeScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugSlotsEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); + return 0; + } + cobj->setDebugSlotsEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugSlotsEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->getDebugSlotsEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugSlotsEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugBonesEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); + return 0; + } + cobj->setDebugBonesEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugBonesEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->getDebugBonesEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugBonesEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugMeshesEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled'", nullptr); + return 0; + } + cobj->setDebugMeshesEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugMeshesEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->getDebugMeshesEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugMeshesEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_spine_SkeletonRenderer_setDebugBoundingRectEnabled(lua_State* tolua_S) { int argc = 0; @@ -103,7 +488,7 @@ int lua_ax_spine_SkeletonRenderer_setDebugBoundingRectEnabled(lua_State* tolua_S return 0; } -int lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled(lua_State* tolua_S) +int lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled(lua_State* tolua_S) { int argc = 0; spine::SkeletonRenderer* cobj = nullptr; @@ -123,7 +508,7 @@ int lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled'", nullptr); return 0; } #endif @@ -133,19 +518,215 @@ int lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled'", nullptr); return 0; } - auto&& ret = cobj->getDebugSlotsEnabled(); + auto&& ret = cobj->getDebugBoundingRectEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugSlotsEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugBoundingRectEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setToSetupPose(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setToSetupPose'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setToSetupPose'", nullptr); + return 0; + } + cobj->setToSetupPose(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setToSetupPose",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setToSetupPose'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setBonesToSetupPose(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setBonesToSetupPose'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setBonesToSetupPose'", nullptr); + return 0; + } + cobj->setBonesToSetupPose(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setBonesToSetupPose",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setBonesToSetupPose'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose'", nullptr); + return 0; + } + cobj->setSlotsToSetupPose(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSlotsToSetupPose",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setSkin(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setSkin'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + const char* arg0; + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "sp.SkeletonRenderer:setSkin"); arg0 = arg0_tmp.c_str(); + + if (!ok) { break; } + cobj->setSkin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setSkin"); + + if (!ok) { break; } + cobj->setSkin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSkin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setSkin'.",&tolua_err); #endif return 0; @@ -213,7 +794,7 @@ int lua_ax_spine_SkeletonRenderer_setAttachment(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonRenderer_setBonesToSetupPose(lua_State* tolua_S) +int lua_ax_spine_SkeletonRenderer_setTwoColorTint(lua_State* tolua_S) { int argc = 0; spine::SkeletonRenderer* cobj = nullptr; @@ -233,121 +814,7 @@ int lua_ax_spine_SkeletonRenderer_setBonesToSetupPose(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setBonesToSetupPose'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setBonesToSetupPose'", nullptr); - return 0; - } - cobj->setBonesToSetupPose(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setBonesToSetupPose",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setBonesToSetupPose'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_initWithData(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_initWithData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - spine::SkeletonData* arg0; - - ok &= luaval_to_object(tolua_S, 2, "sp.SkeletonData",&arg0, "sp.SkeletonRenderer:initWithData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_initWithData'", nullptr); - return 0; - } - cobj->initWithData(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - spine::SkeletonData* arg0; - bool arg1; - - ok &= luaval_to_object(tolua_S, 2, "sp.SkeletonData",&arg0, "sp.SkeletonRenderer:initWithData"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_initWithData'", nullptr); - return 0; - } - cobj->initWithData(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_initWithData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setTwoColorTint'", nullptr); return 0; } #endif @@ -357,372 +824,22 @@ int lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugSlotsEnabled"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setTwoColorTint"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setTwoColorTint'", nullptr); return 0; } - cobj->setDebugSlotsEnabled(arg0); + cobj->setTwoColorTint(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugSlotsEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setTwoColorTint",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_initWithJsonFile(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_initWithJsonFile'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - cobj->initWithJsonFile(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - cobj->initWithJsonFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - cobj->initWithJsonFile(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithJsonFile"); - - if (!ok) { break; } - cobj->initWithJsonFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithJsonFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_initWithJsonFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose'", nullptr); - return 0; - } - cobj->setSlotsToSetupPose(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSlotsToSetupPose",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_initWithBinaryFile(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_initWithBinaryFile'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - cobj->initWithBinaryFile(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - cobj->initWithBinaryFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - cobj->initWithBinaryFile(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithBinaryFile"); - - if (!ok) { break; } - cobj->initWithBinaryFile(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithBinaryFile",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_initWithBinaryFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setToSetupPose(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setToSetupPose'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setToSetupPose'", nullptr); - return 0; - } - cobj->setToSetupPose(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setToSetupPose",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setToSetupPose'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugMeshesEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled'", nullptr); - return 0; - } - cobj->setDebugMeshesEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugMeshesEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setTwoColorTint'.",&tolua_err); #endif return 0; @@ -774,6 +891,156 @@ int lua_ax_spine_SkeletonRenderer_isTwoColorTint(lua_State* tolua_S) return 0; } +int lua_ax_spine_SkeletonRenderer_setSlotsRange(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setSlotsRange'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + int arg0; + int arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonRenderer:setSlotsRange"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "sp.SkeletonRenderer:setSlotsRange"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setSlotsRange'", nullptr); + return 0; + } + cobj->setSlotsRange(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSlotsRange",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setSlotsRange'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "sp.SkeletonRenderer:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} int lua_ax_spine_SkeletonRenderer_initWithSkeleton(lua_State* tolua_S) { int argc = 0; @@ -884,7 +1151,7 @@ int lua_ax_spine_SkeletonRenderer_initWithSkeleton(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonRenderer_getBlendFunc(lua_State* tolua_S) +int lua_ax_spine_SkeletonRenderer_initWithData(lua_State* tolua_S) { int argc = 0; spine::SkeletonRenderer* cobj = nullptr; @@ -904,129 +1171,255 @@ int lua_ax_spine_SkeletonRenderer_getBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_initWithData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + spine::SkeletonData* arg0; + + ok &= luaval_to_object(tolua_S, 2, "sp.SkeletonData",&arg0, "sp.SkeletonRenderer:initWithData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_initWithData'", nullptr); return 0; } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setSlotsRange(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setSlotsRange'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - int arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonRenderer:setSlotsRange"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "sp.SkeletonRenderer:setSlotsRange"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setSlotsRange'", nullptr); - return 0; - } - cobj->setSlotsRange(arg0, arg1); + cobj->initWithData(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSlotsRange",argc, 2); + if (argc == 2) + { + spine::SkeletonData* arg0; + bool arg1; + + ok &= luaval_to_object(tolua_S, 2, "sp.SkeletonData",&arg0, "sp.SkeletonRenderer:initWithData"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_initWithData'", nullptr); + return 0; + } + cobj->initWithData(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithData",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setSlotsRange'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_initWithData'.",&tolua_err); #endif return 0; } -int lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled(lua_State* tolua_S) +int lua_ax_spine_SkeletonRenderer_initWithJsonFile(lua_State* tolua_S) { int argc = 0; spine::SkeletonRenderer* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_initWithJsonFile'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled'", nullptr); - return 0; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + cobj->initWithJsonFile(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; } - auto&& ret = cobj->getDebugBoundingRectEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugBoundingRectEnabled",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + cobj->initWithJsonFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + cobj->initWithJsonFile(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithJsonFile"); + + if (!ok) { break; } + cobj->initWithJsonFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithJsonFile",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_initWithJsonFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonRenderer_initWithBinaryFile(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_initWithBinaryFile'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + cobj->initWithBinaryFile(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + cobj->initWithBinaryFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + cobj->initWithBinaryFile(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithBinaryFile"); + + if (!ok) { break; } + cobj->initWithBinaryFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithBinaryFile",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_initWithBinaryFile'.",&tolua_err); #endif return 0; @@ -1078,491 +1471,6 @@ int lua_ax_spine_SkeletonRenderer_initialize(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugBonesEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); - return 0; - } - cobj->setDebugBonesEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugBonesEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->getDebugBonesEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugBonesEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_getTimeScale(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getTimeScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getTimeScale'", nullptr); - return 0; - } - auto&& ret = cobj->getTimeScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getTimeScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getTimeScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setTwoColorTint(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setTwoColorTint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setTwoColorTint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setTwoColorTint'", nullptr); - return 0; - } - cobj->setTwoColorTint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setTwoColorTint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setTwoColorTint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->getDebugMeshesEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugMeshesEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "sp.SkeletonRenderer:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_setSkin(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_setSkin'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - const char* arg0; - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "sp.SkeletonRenderer:setSkin"); arg0 = arg0_tmp.c_str(); - - if (!ok) { break; } - cobj->setSkin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setSkin"); - - if (!ok) { break; } - cobj->setSkin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setSkin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_setSkin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_getSkeleton(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonRenderer_getSkeleton'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonRenderer_getSkeleton'", nullptr); - return 0; - } - auto&& ret = cobj->getSkeleton(); - object_to_luaval(tolua_S, "sp.Skeleton",(spine::Skeleton*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getSkeleton",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_getSkeleton'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonRenderer_createWithFile(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S)-1; - - do - { - if (argc == 2) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1); - object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 3) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2); - object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 2) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1); - object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 3) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:createWithFile"); - if (!ok) { break; } - spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2); - object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); - return 1; - } - } while (0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonRenderer:createWithFile",argc, 2); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_createWithFile'.",&tolua_err); -#endif - return 0; -} int lua_ax_spine_SkeletonRenderer_create(lua_State* tolua_S) { int argc = 0; @@ -1665,6 +1573,98 @@ int lua_ax_spine_SkeletonRenderer_createWithSkeleton(lua_State* tolua_S) #endif return 0; } +int lua_ax_spine_SkeletonRenderer_createWithFile(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S)-1; + + do + { + if (argc == 2) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1); + object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 3) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2); + object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 2) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1); + object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 3) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:createWithFile"); + if (!ok) { break; } + spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2); + object_to_luaval(tolua_S, "sp.SkeletonRenderer",(spine::SkeletonRenderer*)ret); + return 1; + } + } while (0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonRenderer:createWithFile",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonRenderer_createWithFile'.",&tolua_err); +#endif + return 0; +} int lua_ax_spine_SkeletonRenderer_constructor(lua_State* tolua_S) { int argc = 0; @@ -1911,35 +1911,35 @@ int lua_register_ax_spine_SkeletonRenderer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SkeletonRenderer"); tolua_function(tolua_S,"new",lua_ax_spine_SkeletonRenderer_constructor); + tolua_function(tolua_S,"getSkeleton",lua_ax_spine_SkeletonRenderer_getSkeleton); tolua_function(tolua_S,"setTimeScale",lua_ax_spine_SkeletonRenderer_setTimeScale); - tolua_function(tolua_S,"setDebugBoundingRectEnabled",lua_ax_spine_SkeletonRenderer_setDebugBoundingRectEnabled); - tolua_function(tolua_S,"getDebugSlotsEnabled",lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled); - tolua_function(tolua_S,"setAttachment",lua_ax_spine_SkeletonRenderer_setAttachment); - tolua_function(tolua_S,"setBonesToSetupPose",lua_ax_spine_SkeletonRenderer_setBonesToSetupPose); - tolua_function(tolua_S,"initWithData",lua_ax_spine_SkeletonRenderer_initWithData); + tolua_function(tolua_S,"getTimeScale",lua_ax_spine_SkeletonRenderer_getTimeScale); tolua_function(tolua_S,"setDebugSlotsEnabled",lua_ax_spine_SkeletonRenderer_setDebugSlotsEnabled); - tolua_function(tolua_S,"initWithJsonFile",lua_ax_spine_SkeletonRenderer_initWithJsonFile); - tolua_function(tolua_S,"setSlotsToSetupPose",lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose); - tolua_function(tolua_S,"initWithBinaryFile",lua_ax_spine_SkeletonRenderer_initWithBinaryFile); - tolua_function(tolua_S,"setToSetupPose",lua_ax_spine_SkeletonRenderer_setToSetupPose); - tolua_function(tolua_S,"setDebugMeshesEnabled",lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled); - tolua_function(tolua_S,"isTwoColorTint",lua_ax_spine_SkeletonRenderer_isTwoColorTint); - tolua_function(tolua_S,"initWithSkeleton",lua_ax_spine_SkeletonRenderer_initWithSkeleton); - tolua_function(tolua_S,"getBlendFunc",lua_ax_spine_SkeletonRenderer_getBlendFunc); - tolua_function(tolua_S,"setSlotsRange",lua_ax_spine_SkeletonRenderer_setSlotsRange); - tolua_function(tolua_S,"getDebugBoundingRectEnabled",lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled); - tolua_function(tolua_S,"initialize",lua_ax_spine_SkeletonRenderer_initialize); + tolua_function(tolua_S,"getDebugSlotsEnabled",lua_ax_spine_SkeletonRenderer_getDebugSlotsEnabled); tolua_function(tolua_S,"setDebugBonesEnabled",lua_ax_spine_SkeletonRenderer_setDebugBonesEnabled); tolua_function(tolua_S,"getDebugBonesEnabled",lua_ax_spine_SkeletonRenderer_getDebugBonesEnabled); - tolua_function(tolua_S,"getTimeScale",lua_ax_spine_SkeletonRenderer_getTimeScale); - tolua_function(tolua_S,"setTwoColorTint",lua_ax_spine_SkeletonRenderer_setTwoColorTint); + tolua_function(tolua_S,"setDebugMeshesEnabled",lua_ax_spine_SkeletonRenderer_setDebugMeshesEnabled); tolua_function(tolua_S,"getDebugMeshesEnabled",lua_ax_spine_SkeletonRenderer_getDebugMeshesEnabled); - tolua_function(tolua_S,"setBlendFunc",lua_ax_spine_SkeletonRenderer_setBlendFunc); + tolua_function(tolua_S,"setDebugBoundingRectEnabled",lua_ax_spine_SkeletonRenderer_setDebugBoundingRectEnabled); + tolua_function(tolua_S,"getDebugBoundingRectEnabled",lua_ax_spine_SkeletonRenderer_getDebugBoundingRectEnabled); + tolua_function(tolua_S,"setToSetupPose",lua_ax_spine_SkeletonRenderer_setToSetupPose); + tolua_function(tolua_S,"setBonesToSetupPose",lua_ax_spine_SkeletonRenderer_setBonesToSetupPose); + tolua_function(tolua_S,"setSlotsToSetupPose",lua_ax_spine_SkeletonRenderer_setSlotsToSetupPose); tolua_function(tolua_S,"setSkin",lua_ax_spine_SkeletonRenderer_setSkin); - tolua_function(tolua_S,"getSkeleton",lua_ax_spine_SkeletonRenderer_getSkeleton); - tolua_function(tolua_S,"createWithFile", lua_ax_spine_SkeletonRenderer_createWithFile); + tolua_function(tolua_S,"setAttachment",lua_ax_spine_SkeletonRenderer_setAttachment); + tolua_function(tolua_S,"setTwoColorTint",lua_ax_spine_SkeletonRenderer_setTwoColorTint); + tolua_function(tolua_S,"isTwoColorTint",lua_ax_spine_SkeletonRenderer_isTwoColorTint); + tolua_function(tolua_S,"setSlotsRange",lua_ax_spine_SkeletonRenderer_setSlotsRange); + tolua_function(tolua_S,"setBlendFunc",lua_ax_spine_SkeletonRenderer_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_spine_SkeletonRenderer_getBlendFunc); + tolua_function(tolua_S,"initWithSkeleton",lua_ax_spine_SkeletonRenderer_initWithSkeleton); + tolua_function(tolua_S,"initWithData",lua_ax_spine_SkeletonRenderer_initWithData); + tolua_function(tolua_S,"initWithJsonFile",lua_ax_spine_SkeletonRenderer_initWithJsonFile); + tolua_function(tolua_S,"initWithBinaryFile",lua_ax_spine_SkeletonRenderer_initWithBinaryFile); + tolua_function(tolua_S,"initialize",lua_ax_spine_SkeletonRenderer_initialize); tolua_function(tolua_S,"create", lua_ax_spine_SkeletonRenderer_create); tolua_function(tolua_S,"createWithSkeleton", lua_ax_spine_SkeletonRenderer_createWithSkeleton); + tolua_function(tolua_S,"createWithFile", lua_ax_spine_SkeletonRenderer_createWithFile); tolua_endmodule(tolua_S); auto typeName = typeid(spine::SkeletonRenderer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "sp.SkeletonRenderer"; @@ -1947,167 +1947,6 @@ int lua_register_ax_spine_SkeletonRenderer(lua_State* tolua_S) return 1; } -int lua_ax_spine_SkeletonAnimation_setTrackCompleteListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackCompleteListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - spine::TrackEntry* arg0; - std::function arg1; - - ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackCompleteListener"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackCompleteListener'", nullptr); - return 0; - } - cobj->setTrackCompleteListener(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackCompleteListener",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackCompleteListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_findAnimation(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_findAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:findAnimation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_findAnimation'", nullptr); - return 0; - } - auto&& ret = cobj->findAnimation(arg0); - object_to_luaval(tolua_S, "sp.Animation",(spine::Animation*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:findAnimation",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_findAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setCompleteListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setCompleteListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setCompleteListener'", nullptr); - return 0; - } - cobj->setCompleteListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setCompleteListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setCompleteListener'.",&tolua_err); -#endif - - return 0; -} int lua_ax_spine_SkeletonAnimation_setMix(lua_State* tolua_S) { int argc = 0; @@ -2164,7 +2003,7 @@ int lua_ax_spine_SkeletonAnimation_setMix(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonAnimation_setTrackStartListener(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_setEmptyAnimation(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; @@ -2184,7 +2023,7 @@ int lua_ax_spine_SkeletonAnimation_setTrackStartListener(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackStartListener'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimation'", nullptr); return 0; } #endif @@ -2192,31 +2031,77 @@ int lua_ax_spine_SkeletonAnimation_setTrackStartListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - spine::TrackEntry* arg0; - std::function arg1; + int arg0; + double arg1; - ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackStartListener"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonAnimation:setEmptyAnimation"); - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + ok &= luaval_to_number(tolua_S, 3,&arg1, "sp.SkeletonAnimation:setEmptyAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackStartListener'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimation'", nullptr); return 0; } - cobj->setTrackStartListener(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->setEmptyAnimation(arg0, arg1); + object_to_luaval(tolua_S, "sp.TrackEntry",(spine::TrackEntry*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackStartListener",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEmptyAnimation",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackStartListener'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setEmptyAnimations(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimations'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "sp.SkeletonAnimation:setEmptyAnimations"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimations'", nullptr); + return 0; + } + cobj->setEmptyAnimations(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEmptyAnimations",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimations'.",&tolua_err); #endif return 0; @@ -2294,7 +2179,7 @@ int lua_ax_spine_SkeletonAnimation_addEmptyAnimation(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonAnimation_setDisposeListener(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_findAnimation(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; @@ -2314,7 +2199,7 @@ int lua_ax_spine_SkeletonAnimation_setDisposeListener(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setDisposeListener'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_findAnimation'", nullptr); return 0; } #endif @@ -2322,33 +2207,29 @@ int lua_ax_spine_SkeletonAnimation_setDisposeListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::string arg0; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:findAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setDisposeListener'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_findAnimation'", nullptr); return 0; } - cobj->setDisposeListener(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->findAnimation(arg0); + object_to_luaval(tolua_S, "sp.Animation",(spine::Animation*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setDisposeListener",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:findAnimation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setDisposeListener'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_findAnimation'.",&tolua_err); #endif return 0; } -int lua_ax_spine_SkeletonAnimation_setTrackInterruptListener(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_clearTracks(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; @@ -2368,472 +2249,29 @@ int lua_ax_spine_SkeletonAnimation_setTrackInterruptListener(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackInterruptListener'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_clearTracks'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - spine::TrackEntry* arg0; - std::function arg1; - - ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackInterruptListener"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackInterruptListener'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_clearTracks'", nullptr); return 0; } - cobj->setTrackInterruptListener(arg0, arg1); + cobj->clearTracks(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackInterruptListener",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:clearTracks",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackInterruptListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setEndListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEndListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEndListener'", nullptr); - return 0; - } - cobj->setEndListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEndListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEndListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener'", nullptr); - return 0; - } - cobj->setPostUpdateWorldTransformsListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setPostUpdateWorldTransformsListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonAnimation:setUpdateOnlyIfVisible"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible'", nullptr); - return 0; - } - cobj->setUpdateOnlyIfVisible(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setUpdateOnlyIfVisible",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setTrackDisposeListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackDisposeListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - spine::TrackEntry* arg0; - std::function arg1; - - ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackDisposeListener"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackDisposeListener'", nullptr); - return 0; - } - cobj->setTrackDisposeListener(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackDisposeListener",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackDisposeListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setEventListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEventListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEventListener'", nullptr); - return 0; - } - cobj->setEventListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEventListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEventListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setEmptyAnimation(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - int arg0; - double arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonAnimation:setEmptyAnimation"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "sp.SkeletonAnimation:setEmptyAnimation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimation'", nullptr); - return 0; - } - auto&& ret = cobj->setEmptyAnimation(arg0, arg1); - object_to_luaval(tolua_S, "sp.TrackEntry",(spine::TrackEntry*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEmptyAnimation",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener'", nullptr); - return 0; - } - cobj->setPreUpdateWorldTransformsListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setPreUpdateWorldTransformsListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_spine_SkeletonAnimation_setTrackEventListener(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackEventListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - spine::TrackEntry* arg0; - std::function arg1; - - ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackEventListener"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackEventListener'", nullptr); - return 0; - } - cobj->setTrackEventListener(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackEventListener",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackEventListener'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_clearTracks'.",&tolua_err); #endif return 0; @@ -2899,6 +2337,60 @@ int lua_ax_spine_SkeletonAnimation_clearTrack(lua_State* tolua_S) return 0; } +int lua_ax_spine_SkeletonAnimation_setStartListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setStartListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setStartListener'", nullptr); + return 0; + } + cobj->setStartListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setStartListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setStartListener'.",&tolua_err); +#endif + + return 0; +} int lua_ax_spine_SkeletonAnimation_setInterruptListener(lua_State* tolua_S) { int argc = 0; @@ -2953,7 +2445,7 @@ int lua_ax_spine_SkeletonAnimation_setInterruptListener(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonAnimation_setEmptyAnimations(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_setEndListener(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; @@ -2973,7 +2465,7 @@ int lua_ax_spine_SkeletonAnimation_setEmptyAnimations(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimations'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEndListener'", nullptr); return 0; } #endif @@ -2981,29 +2473,33 @@ int lua_ax_spine_SkeletonAnimation_setEmptyAnimations(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + std::function arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "sp.SkeletonAnimation:setEmptyAnimations"); + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimations'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEndListener'", nullptr); return 0; } - cobj->setEmptyAnimations(arg0); + cobj->setEndListener(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEmptyAnimations",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEndListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEmptyAnimations'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEndListener'.",&tolua_err); #endif return 0; } -int lua_ax_spine_SkeletonAnimation_clearTracks(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_setDisposeListener(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; @@ -3023,29 +2519,366 @@ int lua_ax_spine_SkeletonAnimation_clearTracks(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_clearTracks'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setDisposeListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_clearTracks'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setDisposeListener'", nullptr); return 0; } - cobj->clearTracks(); + cobj->setDisposeListener(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:clearTracks",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setDisposeListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_clearTracks'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setDisposeListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setCompleteListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setCompleteListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setCompleteListener'", nullptr); + return 0; + } + cobj->setCompleteListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setCompleteListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setCompleteListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setEventListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setEventListener'", nullptr); + return 0; + } + cobj->setEventListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setEventListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setEventListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener'", nullptr); + return 0; + } + cobj->setPreUpdateWorldTransformsListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setPreUpdateWorldTransformsListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener'", nullptr); + return 0; + } + cobj->setPostUpdateWorldTransformsListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setPostUpdateWorldTransformsListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setTrackStartListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackStartListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + spine::TrackEntry* arg0; + std::function arg1; + + ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackStartListener"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackStartListener'", nullptr); + return 0; + } + cobj->setTrackStartListener(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackStartListener",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackStartListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setTrackInterruptListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackInterruptListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + spine::TrackEntry* arg0; + std::function arg1; + + ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackInterruptListener"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackInterruptListener'", nullptr); + return 0; + } + cobj->setTrackInterruptListener(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackInterruptListener",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackInterruptListener'.",&tolua_err); #endif return 0; @@ -3107,7 +2940,7 @@ int lua_ax_spine_SkeletonAnimation_setTrackEndListener(lua_State* tolua_S) return 0; } -int lua_ax_spine_SkeletonAnimation_setStartListener(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_setTrackDisposeListener(lua_State* tolua_S) { int argc = 0; spine::SkeletonAnimation* cobj = nullptr; @@ -3127,15 +2960,18 @@ int lua_ax_spine_SkeletonAnimation_setStartListener(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setStartListener'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackDisposeListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { - std::function arg0; + spine::TrackEntry* arg0; + std::function arg1; + + ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackDisposeListener"); do { // Lambda binding for lua is not supported. @@ -3144,113 +2980,185 @@ int lua_ax_spine_SkeletonAnimation_setStartListener(lua_State* tolua_S) ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setStartListener'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackDisposeListener'", nullptr); return 0; } - cobj->setStartListener(arg0); + cobj->setTrackDisposeListener(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setStartListener",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackDisposeListener",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setStartListener'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackDisposeListener'.",&tolua_err); #endif return 0; } -int lua_ax_spine_SkeletonAnimation_createWithBinaryFile(lua_State* tolua_S) +int lua_ax_spine_SkeletonAnimation_setTrackCompleteListener(lua_State* tolua_S) { int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackCompleteListener'", nullptr); + return 0; + } #endif argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + spine::TrackEntry* arg0; + std::function arg1; - do - { - if (argc == 2) + ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackCompleteListener"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1); - object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); - return 1; + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackCompleteListener'", nullptr); + return 0; } - } while (0); - ok = true; - do - { - if (argc == 3) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1, arg2); - object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 2) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1); - object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 3) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - spine::Atlas* arg1; - ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithBinaryFile"); - if (!ok) { break; } - spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1, arg2); - object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); - return 1; - } - } while (0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonAnimation:createWithBinaryFile",argc, 2); + cobj->setTrackCompleteListener(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackCompleteListener",argc, 2); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_createWithBinaryFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackCompleteListener'.",&tolua_err); #endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setTrackEventListener(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setTrackEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + spine::TrackEntry* arg0; + std::function arg1; + + ok &= luaval_to_object(tolua_S, 2, "sp.TrackEntry",&arg0, "sp.SkeletonAnimation:setTrackEventListener"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setTrackEventListener'", nullptr); + return 0; + } + cobj->setTrackEventListener(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setTrackEventListener",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setTrackEventListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonAnimation:setUpdateOnlyIfVisible"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible'", nullptr); + return 0; + } + cobj->setUpdateOnlyIfVisible(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:setUpdateOnlyIfVisible",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible'.",&tolua_err); +#endif + return 0; } int lua_ax_spine_SkeletonAnimation_create(lua_State* tolua_S) @@ -3379,6 +3287,98 @@ int lua_ax_spine_SkeletonAnimation_createWithJsonFile(lua_State* tolua_S) #endif return 0; } +int lua_ax_spine_SkeletonAnimation_createWithBinaryFile(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S)-1; + + do + { + if (argc == 2) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1); + object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 3) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1, arg2); + object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 2) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1); + object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 3) + { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + spine::Atlas* arg1; + ok &= luaval_to_object(tolua_S, 3, "sp.Atlas",&arg1, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithBinaryFile"); + if (!ok) { break; } + spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1, arg2); + object_to_luaval(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret); + return 1; + } + } while (0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonAnimation:createWithBinaryFile",argc, 2); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_spine_SkeletonAnimation_createWithBinaryFile'.",&tolua_err); +#endif + return 0; +} static int lua_ax_spine_SkeletonAnimation_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkeletonAnimation)"); @@ -3391,31 +3391,31 @@ int lua_register_ax_spine_SkeletonAnimation(lua_State* tolua_S) tolua_cclass(tolua_S,"SkeletonAnimation","sp.SkeletonAnimation","sp.SkeletonRenderer",nullptr); tolua_beginmodule(tolua_S,"SkeletonAnimation"); - tolua_function(tolua_S,"setTrackCompleteListener",lua_ax_spine_SkeletonAnimation_setTrackCompleteListener); - tolua_function(tolua_S,"findAnimation",lua_ax_spine_SkeletonAnimation_findAnimation); - tolua_function(tolua_S,"setCompleteListener",lua_ax_spine_SkeletonAnimation_setCompleteListener); tolua_function(tolua_S,"setMix",lua_ax_spine_SkeletonAnimation_setMix); - tolua_function(tolua_S,"setTrackStartListener",lua_ax_spine_SkeletonAnimation_setTrackStartListener); - tolua_function(tolua_S,"addEmptyAnimation",lua_ax_spine_SkeletonAnimation_addEmptyAnimation); - tolua_function(tolua_S,"setDisposeListener",lua_ax_spine_SkeletonAnimation_setDisposeListener); - tolua_function(tolua_S,"setTrackInterruptListener",lua_ax_spine_SkeletonAnimation_setTrackInterruptListener); - tolua_function(tolua_S,"setEndListener",lua_ax_spine_SkeletonAnimation_setEndListener); - tolua_function(tolua_S,"setPostUpdateWorldTransformsListener",lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener); - tolua_function(tolua_S,"setUpdateOnlyIfVisible",lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible); - tolua_function(tolua_S,"setTrackDisposeListener",lua_ax_spine_SkeletonAnimation_setTrackDisposeListener); - tolua_function(tolua_S,"setEventListener",lua_ax_spine_SkeletonAnimation_setEventListener); tolua_function(tolua_S,"setEmptyAnimation",lua_ax_spine_SkeletonAnimation_setEmptyAnimation); - tolua_function(tolua_S,"setPreUpdateWorldTransformsListener",lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener); - tolua_function(tolua_S,"setTrackEventListener",lua_ax_spine_SkeletonAnimation_setTrackEventListener); - tolua_function(tolua_S,"clearTrack",lua_ax_spine_SkeletonAnimation_clearTrack); - tolua_function(tolua_S,"setInterruptListener",lua_ax_spine_SkeletonAnimation_setInterruptListener); tolua_function(tolua_S,"setEmptyAnimations",lua_ax_spine_SkeletonAnimation_setEmptyAnimations); + tolua_function(tolua_S,"addEmptyAnimation",lua_ax_spine_SkeletonAnimation_addEmptyAnimation); + tolua_function(tolua_S,"findAnimation",lua_ax_spine_SkeletonAnimation_findAnimation); tolua_function(tolua_S,"clearTracks",lua_ax_spine_SkeletonAnimation_clearTracks); - tolua_function(tolua_S,"setTrackEndListener",lua_ax_spine_SkeletonAnimation_setTrackEndListener); + tolua_function(tolua_S,"clearTrack",lua_ax_spine_SkeletonAnimation_clearTrack); tolua_function(tolua_S,"setStartListener",lua_ax_spine_SkeletonAnimation_setStartListener); - tolua_function(tolua_S,"createWithBinaryFile", lua_ax_spine_SkeletonAnimation_createWithBinaryFile); + tolua_function(tolua_S,"setInterruptListener",lua_ax_spine_SkeletonAnimation_setInterruptListener); + tolua_function(tolua_S,"setEndListener",lua_ax_spine_SkeletonAnimation_setEndListener); + tolua_function(tolua_S,"setDisposeListener",lua_ax_spine_SkeletonAnimation_setDisposeListener); + tolua_function(tolua_S,"setCompleteListener",lua_ax_spine_SkeletonAnimation_setCompleteListener); + tolua_function(tolua_S,"setEventListener",lua_ax_spine_SkeletonAnimation_setEventListener); + tolua_function(tolua_S,"setPreUpdateWorldTransformsListener",lua_ax_spine_SkeletonAnimation_setPreUpdateWorldTransformsListener); + tolua_function(tolua_S,"setPostUpdateWorldTransformsListener",lua_ax_spine_SkeletonAnimation_setPostUpdateWorldTransformsListener); + tolua_function(tolua_S,"setTrackStartListener",lua_ax_spine_SkeletonAnimation_setTrackStartListener); + tolua_function(tolua_S,"setTrackInterruptListener",lua_ax_spine_SkeletonAnimation_setTrackInterruptListener); + tolua_function(tolua_S,"setTrackEndListener",lua_ax_spine_SkeletonAnimation_setTrackEndListener); + tolua_function(tolua_S,"setTrackDisposeListener",lua_ax_spine_SkeletonAnimation_setTrackDisposeListener); + tolua_function(tolua_S,"setTrackCompleteListener",lua_ax_spine_SkeletonAnimation_setTrackCompleteListener); + tolua_function(tolua_S,"setTrackEventListener",lua_ax_spine_SkeletonAnimation_setTrackEventListener); + tolua_function(tolua_S,"setUpdateOnlyIfVisible",lua_ax_spine_SkeletonAnimation_setUpdateOnlyIfVisible); tolua_function(tolua_S,"create", lua_ax_spine_SkeletonAnimation_create); tolua_function(tolua_S,"createWithJsonFile", lua_ax_spine_SkeletonAnimation_createWithJsonFile); + tolua_function(tolua_S,"createWithBinaryFile", lua_ax_spine_SkeletonAnimation_createWithBinaryFile); tolua_endmodule(tolua_S); auto typeName = typeid(spine::SkeletonAnimation).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "sp.SkeletonAnimation"; diff --git a/extensions/scripting/lua-bindings/auto/axlua_studio_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_studio_auto.cpp index 5977720535..08c398dda0 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_studio_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_studio_auto.cpp @@ -5,6 +5,394 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" +int lua_ax_studio_ActionFrame_setFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFrame:setFrameIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setFrameIndex'", nullptr); + return 0; + } + cobj->setFrameIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setFrameIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_getFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getFrameIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getFrameIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_setFrameTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setFrameTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionFrame:setFrameTime"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setFrameTime'", nullptr); + return 0; + } + cobj->setFrameTime(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setFrameTime",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setFrameTime'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_getFrameTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getFrameTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getFrameTime'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getFrameTime",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getFrameTime'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_setFrameType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setFrameType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFrame:setFrameType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setFrameType'", nullptr); + return 0; + } + cobj->setFrameType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setFrameType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setFrameType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_getFrameType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getFrameType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getFrameType'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getFrameType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getFrameType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_setEasingType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setEasingType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFrame:setEasingType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setEasingType'", nullptr); + return 0; + } + cobj->setEasingType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setEasingType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setEasingType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionFrame_getEasingType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getEasingType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getEasingType'", nullptr); + return 0; + } + auto&& ret = cobj->getEasingType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getEasingType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getEasingType'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionFrame_getAction(lua_State* tolua_S) { int argc = 0; @@ -64,347 +452,6 @@ int lua_ax_studio_ActionFrame_getAction(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionFrame_getFrameType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getFrameType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getFrameType'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getFrameType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getFrameType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionFrame_setFrameTime(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setFrameTime'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionFrame:setFrameTime"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setFrameTime'", nullptr); - return 0; - } - cobj->setFrameTime(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setFrameTime",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setFrameTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionFrame_setEasingType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setEasingType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFrame:setEasingType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setEasingType'", nullptr); - return 0; - } - cobj->setEasingType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setEasingType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setEasingType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionFrame_getFrameTime(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getFrameTime'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getFrameTime'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameTime(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getFrameTime",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getFrameTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionFrame_getFrameIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getFrameIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getFrameIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getFrameIndex",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getFrameIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionFrame_setFrameType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setFrameType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFrame:setFrameType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setFrameType'", nullptr); - return 0; - } - cobj->setFrameType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setFrameType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setFrameType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionFrame_setFrameIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_setFrameIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFrame:setFrameIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_setFrameIndex'", nullptr); - return 0; - } - cobj->setFrameIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:setFrameIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_setFrameIndex'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionFrame_setEasingParameter(lua_State* tolua_S) { int argc = 0; @@ -455,53 +502,6 @@ int lua_ax_studio_ActionFrame_setEasingParameter(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionFrame_getEasingType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFrame_getEasingType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFrame_getEasingType'", nullptr); - return 0; - } - auto&& ret = cobj->getEasingType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFrame:getEasingType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFrame_getEasingType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionFrame_constructor(lua_State* tolua_S) { int argc = 0; @@ -552,16 +552,16 @@ int lua_register_ax_studio_ActionFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ActionFrame_constructor); - tolua_function(tolua_S,"getAction",lua_ax_studio_ActionFrame_getAction); - tolua_function(tolua_S,"getFrameType",lua_ax_studio_ActionFrame_getFrameType); - tolua_function(tolua_S,"setFrameTime",lua_ax_studio_ActionFrame_setFrameTime); - tolua_function(tolua_S,"setEasingType",lua_ax_studio_ActionFrame_setEasingType); - tolua_function(tolua_S,"getFrameTime",lua_ax_studio_ActionFrame_getFrameTime); - tolua_function(tolua_S,"getFrameIndex",lua_ax_studio_ActionFrame_getFrameIndex); - tolua_function(tolua_S,"setFrameType",lua_ax_studio_ActionFrame_setFrameType); tolua_function(tolua_S,"setFrameIndex",lua_ax_studio_ActionFrame_setFrameIndex); - tolua_function(tolua_S,"setEasingParameter",lua_ax_studio_ActionFrame_setEasingParameter); + tolua_function(tolua_S,"getFrameIndex",lua_ax_studio_ActionFrame_getFrameIndex); + tolua_function(tolua_S,"setFrameTime",lua_ax_studio_ActionFrame_setFrameTime); + tolua_function(tolua_S,"getFrameTime",lua_ax_studio_ActionFrame_getFrameTime); + tolua_function(tolua_S,"setFrameType",lua_ax_studio_ActionFrame_setFrameType); + tolua_function(tolua_S,"getFrameType",lua_ax_studio_ActionFrame_getFrameType); + tolua_function(tolua_S,"setEasingType",lua_ax_studio_ActionFrame_setEasingType); tolua_function(tolua_S,"getEasingType",lua_ax_studio_ActionFrame_getEasingType); + tolua_function(tolua_S,"getAction",lua_ax_studio_ActionFrame_getAction); + tolua_function(tolua_S,"setEasingParameter",lua_ax_studio_ActionFrame_setEasingParameter); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ActionFrame"; @@ -619,6 +619,53 @@ int lua_ax_studio_ActionMoveFrame_setPosition(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionMoveFrame_getPosition(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionMoveFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionMoveFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionMoveFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionMoveFrame_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionMoveFrame_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionMoveFrame:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionMoveFrame_getPosition'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionMoveFrame_getAction(lua_State* tolua_S) { int argc = 0; @@ -669,53 +716,6 @@ int lua_ax_studio_ActionMoveFrame_getAction(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionMoveFrame_getPosition(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionMoveFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionMoveFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionMoveFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionMoveFrame_getPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionMoveFrame_getPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionMoveFrame:getPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionMoveFrame_getPosition'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionMoveFrame_constructor(lua_State* tolua_S) { int argc = 0; @@ -767,8 +767,8 @@ int lua_register_ax_studio_ActionMoveFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionMoveFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ActionMoveFrame_constructor); tolua_function(tolua_S,"setPosition",lua_ax_studio_ActionMoveFrame_setPosition); - tolua_function(tolua_S,"getAction",lua_ax_studio_ActionMoveFrame_getAction); tolua_function(tolua_S,"getPosition",lua_ax_studio_ActionMoveFrame_getPosition); + tolua_function(tolua_S,"getAction",lua_ax_studio_ActionMoveFrame_getAction); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionMoveFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ActionMoveFrame"; @@ -776,56 +776,6 @@ int lua_register_ax_studio_ActionMoveFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_ActionScaleFrame_setScaleY(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionScaleFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionScaleFrame_setScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionScaleFrame:setScaleY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionScaleFrame_setScaleY'", nullptr); - return 0; - } - cobj->setScaleY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionScaleFrame:setScaleY",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionScaleFrame_setScaleY'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionScaleFrame_setScaleX(lua_State* tolua_S) { int argc = 0; @@ -876,53 +826,6 @@ int lua_ax_studio_ActionScaleFrame_setScaleX(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionScaleFrame_getScaleY(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionScaleFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionScaleFrame_getScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionScaleFrame_getScaleY'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionScaleFrame:getScaleY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionScaleFrame_getScaleY'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionScaleFrame_getScaleX(lua_State* tolua_S) { int argc = 0; @@ -970,6 +873,103 @@ int lua_ax_studio_ActionScaleFrame_getScaleX(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionScaleFrame_setScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionScaleFrame_setScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionScaleFrame:setScaleY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionScaleFrame_setScaleY'", nullptr); + return 0; + } + cobj->setScaleY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionScaleFrame:setScaleY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionScaleFrame_setScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionScaleFrame_getScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionScaleFrame_getScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionScaleFrame_getScaleY'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionScaleFrame:getScaleY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionScaleFrame_getScaleY'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionScaleFrame_getAction(lua_State* tolua_S) { int argc = 0; @@ -1070,10 +1070,10 @@ int lua_register_ax_studio_ActionScaleFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionScaleFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ActionScaleFrame_constructor); - tolua_function(tolua_S,"setScaleY",lua_ax_studio_ActionScaleFrame_setScaleY); tolua_function(tolua_S,"setScaleX",lua_ax_studio_ActionScaleFrame_setScaleX); - tolua_function(tolua_S,"getScaleY",lua_ax_studio_ActionScaleFrame_getScaleY); tolua_function(tolua_S,"getScaleX",lua_ax_studio_ActionScaleFrame_getScaleX); + tolua_function(tolua_S,"setScaleY",lua_ax_studio_ActionScaleFrame_setScaleY); + tolua_function(tolua_S,"getScaleY",lua_ax_studio_ActionScaleFrame_getScaleY); tolua_function(tolua_S,"getAction",lua_ax_studio_ActionScaleFrame_getAction); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionScaleFrame).name(); // rtti is literal storage @@ -1132,6 +1132,53 @@ int lua_ax_studio_ActionRotationFrame_setRotation(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionRotationFrame_getRotation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionRotationFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionRotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionRotationFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionRotationFrame_getRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionRotationFrame_getRotation'", nullptr); + return 0; + } + auto&& ret = cobj->getRotation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionRotationFrame:getRotation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionRotationFrame_getRotation'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionRotationFrame_getAction(lua_State* tolua_S) { int argc = 0; @@ -1191,53 +1238,6 @@ int lua_ax_studio_ActionRotationFrame_getAction(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionRotationFrame_getRotation(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionRotationFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionRotationFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionRotationFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionRotationFrame_getRotation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionRotationFrame_getRotation'", nullptr); - return 0; - } - auto&& ret = cobj->getRotation(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionRotationFrame:getRotation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionRotationFrame_getRotation'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionRotationFrame_constructor(lua_State* tolua_S) { int argc = 0; @@ -1289,8 +1289,8 @@ int lua_register_ax_studio_ActionRotationFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionRotationFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ActionRotationFrame_constructor); tolua_function(tolua_S,"setRotation",lua_ax_studio_ActionRotationFrame_setRotation); - tolua_function(tolua_S,"getAction",lua_ax_studio_ActionRotationFrame_getAction); tolua_function(tolua_S,"getRotation",lua_ax_studio_ActionRotationFrame_getRotation); + tolua_function(tolua_S,"getAction",lua_ax_studio_ActionRotationFrame_getAction); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionRotationFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ActionRotationFrame"; @@ -1298,6 +1298,56 @@ int lua_register_ax_studio_ActionRotationFrame(lua_State* tolua_S) return 1; } +int lua_ax_studio_ActionFadeFrame_setOpacity(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFadeFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFadeFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFadeFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFadeFrame_setOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFadeFrame:setOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFadeFrame_setOpacity'", nullptr); + return 0; + } + cobj->setOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFadeFrame:setOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFadeFrame_setOpacity'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionFadeFrame_getOpacity(lua_State* tolua_S) { int argc = 0; @@ -1395,56 +1445,6 @@ int lua_ax_studio_ActionFadeFrame_getAction(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionFadeFrame_setOpacity(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionFadeFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionFadeFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionFadeFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionFadeFrame_setOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionFadeFrame:setOpacity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionFadeFrame_setOpacity'", nullptr); - return 0; - } - cobj->setOpacity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFadeFrame:setOpacity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionFadeFrame_setOpacity'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionFadeFrame_constructor(lua_State* tolua_S) { int argc = 0; @@ -1495,9 +1495,9 @@ int lua_register_ax_studio_ActionFadeFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionFadeFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ActionFadeFrame_constructor); + tolua_function(tolua_S,"setOpacity",lua_ax_studio_ActionFadeFrame_setOpacity); tolua_function(tolua_S,"getOpacity",lua_ax_studio_ActionFadeFrame_getOpacity); tolua_function(tolua_S,"getAction",lua_ax_studio_ActionFadeFrame_getAction); - tolua_function(tolua_S,"setOpacity",lua_ax_studio_ActionFadeFrame_setOpacity); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionFadeFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ActionFadeFrame"; @@ -1505,6 +1505,56 @@ int lua_register_ax_studio_ActionFadeFrame(lua_State* tolua_S) return 1; } +int lua_ax_studio_ActionTintFrame_setColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionTintFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTintFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionTintFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTintFrame_setColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccs.ActionTintFrame:setColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTintFrame_setColor'", nullptr); + return 0; + } + cobj->setColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTintFrame:setColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTintFrame_setColor'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTintFrame_getColor(lua_State* tolua_S) { int argc = 0; @@ -1602,56 +1652,6 @@ int lua_ax_studio_ActionTintFrame_getAction(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionTintFrame_setColor(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionTintFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTintFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionTintFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTintFrame_setColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccs.ActionTintFrame:setColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTintFrame_setColor'", nullptr); - return 0; - } - cobj->setColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTintFrame:setColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTintFrame_setColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionTintFrame_constructor(lua_State* tolua_S) { int argc = 0; @@ -1702,9 +1702,9 @@ int lua_register_ax_studio_ActionTintFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionTintFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ActionTintFrame_constructor); + tolua_function(tolua_S,"setColor",lua_ax_studio_ActionTintFrame_setColor); tolua_function(tolua_S,"getColor",lua_ax_studio_ActionTintFrame_getColor); tolua_function(tolua_S,"getAction",lua_ax_studio_ActionTintFrame_getAction); - tolua_function(tolua_S,"setColor",lua_ax_studio_ActionTintFrame_setColor); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionTintFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ActionTintFrame"; @@ -1712,103 +1712,6 @@ int lua_register_ax_studio_ActionTintFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_ActionObject_setCurrentTime(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_setCurrentTime'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionObject:setCurrentTime"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_setCurrentTime'", nullptr); - return 0; - } - cobj->setCurrentTime(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:setCurrentTime",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_setCurrentTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionObject_pause(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_pause'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_pause'", nullptr); - return 0; - } - cobj->pause(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:pause",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_pause'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionObject_setName(lua_State* tolua_S) { int argc = 0; @@ -1859,6 +1762,150 @@ int lua_ax_studio_ActionObject_setName(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionObject_getName(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getName'", nullptr); + return 0; + } + auto&& ret = cobj->getName(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionObject_setLoop(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_setLoop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.ActionObject:setLoop"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_setLoop'", nullptr); + return 0; + } + cobj->setLoop(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:setLoop",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_setLoop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionObject_getLoop(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getLoop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getLoop'", nullptr); + return 0; + } + auto&& ret = cobj->getLoop(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getLoop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getLoop'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionObject_setUnitTime(lua_State* tolua_S) { int argc = 0; @@ -1909,6 +1956,150 @@ int lua_ax_studio_ActionObject_setUnitTime(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionObject_getUnitTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getUnitTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getUnitTime'", nullptr); + return 0; + } + auto&& ret = cobj->getUnitTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getUnitTime",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getUnitTime'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionObject_setCurrentTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_setCurrentTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionObject:setCurrentTime"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_setCurrentTime'", nullptr); + return 0; + } + cobj->setCurrentTime(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:setCurrentTime",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_setCurrentTime'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionObject_getCurrentTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionObject* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getCurrentTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getCurrentTime'", nullptr); + return 0; + } + auto&& ret = cobj->getCurrentTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getCurrentTime",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getCurrentTime'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionObject_getTotalTime(lua_State* tolua_S) { int argc = 0; @@ -1956,7 +2147,7 @@ int lua_ax_studio_ActionObject_getTotalTime(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionObject_getName(lua_State* tolua_S) +int lua_ax_studio_ActionObject_isPlaying(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; @@ -1976,7 +2167,7 @@ int lua_ax_studio_ActionObject_getName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_isPlaying'", nullptr); return 0; } #endif @@ -1986,66 +2177,19 @@ int lua_ax_studio_ActionObject_getName(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_isPlaying'", nullptr); return 0; } - auto&& ret = cobj->getName(); - tolua_pushstring(tolua_S,(const char*)ret); + auto&& ret = cobj->isPlaying(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getName",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:isPlaying",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionObject_stop(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_stop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_stop'", nullptr); - return 0; - } - cobj->stop(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:stop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_stop'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_isPlaying'.",&tolua_err); #endif return 0; @@ -2101,7 +2245,7 @@ int lua_ax_studio_ActionObject_play(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionObject_getCurrentTime(lua_State* tolua_S) +int lua_ax_studio_ActionObject_pause(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; @@ -2121,7 +2265,7 @@ int lua_ax_studio_ActionObject_getCurrentTime(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getCurrentTime'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_pause'", nullptr); return 0; } #endif @@ -2131,74 +2275,24 @@ int lua_ax_studio_ActionObject_getCurrentTime(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getCurrentTime'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_pause'", nullptr); return 0; } - auto&& ret = cobj->getCurrentTime(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getCurrentTime",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getCurrentTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionObject_removeActionNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_removeActionNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::ActionNode* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.ActionNode",&arg0, "ccs.ActionObject:removeActionNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_removeActionNode'", nullptr); - return 0; - } - cobj->removeActionNode(arg0); + cobj->pause(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:removeActionNode",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:pause",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_removeActionNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_pause'.",&tolua_err); #endif return 0; } -int lua_ax_studio_ActionObject_getLoop(lua_State* tolua_S) +int lua_ax_studio_ActionObject_stop(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; @@ -2218,7 +2312,7 @@ int lua_ax_studio_ActionObject_getLoop(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getLoop'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_stop'", nullptr); return 0; } #endif @@ -2228,19 +2322,19 @@ int lua_ax_studio_ActionObject_getLoop(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getLoop'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_stop'", nullptr); return 0; } - auto&& ret = cobj->getLoop(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->stop(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getLoop",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:stop",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getLoop'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_stop'.",&tolua_err); #endif return 0; @@ -2295,7 +2389,7 @@ int lua_ax_studio_ActionObject_addActionNode(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionObject_getUnitTime(lua_State* tolua_S) +int lua_ax_studio_ActionObject_removeActionNode(lua_State* tolua_S) { int argc = 0; cocostudio::ActionObject* cobj = nullptr; @@ -2315,76 +2409,32 @@ int lua_ax_studio_ActionObject_getUnitTime(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_getUnitTime'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_removeActionNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + cocostudio::ActionNode* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.ActionNode",&arg0, "ccs.ActionObject:removeActionNode"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_getUnitTime'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_removeActionNode'", nullptr); return 0; } - auto&& ret = cobj->getUnitTime(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->removeActionNode(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:getUnitTime",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:removeActionNode",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_getUnitTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionObject_isPlaying(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_isPlaying'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_isPlaying'", nullptr); - return 0; - } - auto&& ret = cobj->isPlaying(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:isPlaying",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_isPlaying'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_removeActionNode'.",&tolua_err); #endif return 0; @@ -2439,56 +2489,6 @@ int lua_ax_studio_ActionObject_updateToFrameByTime(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionObject_setLoop(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionObject* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionObject",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionObject*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionObject_setLoop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.ActionObject:setLoop"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionObject_setLoop'", nullptr); - return 0; - } - cobj->setLoop(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionObject:setLoop",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionObject_setLoop'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionObject_simulationActionUpdate(lua_State* tolua_S) { int argc = 0; @@ -2589,22 +2589,22 @@ int lua_register_ax_studio_ActionObject(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionObject"); tolua_function(tolua_S,"new",lua_ax_studio_ActionObject_constructor); - tolua_function(tolua_S,"setCurrentTime",lua_ax_studio_ActionObject_setCurrentTime); - tolua_function(tolua_S,"pause",lua_ax_studio_ActionObject_pause); tolua_function(tolua_S,"setName",lua_ax_studio_ActionObject_setName); - tolua_function(tolua_S,"setUnitTime",lua_ax_studio_ActionObject_setUnitTime); - tolua_function(tolua_S,"getTotalTime",lua_ax_studio_ActionObject_getTotalTime); tolua_function(tolua_S,"getName",lua_ax_studio_ActionObject_getName); - tolua_function(tolua_S,"stop",lua_ax_studio_ActionObject_stop); - tolua_function(tolua_S,"play",lua_ax_studio_ActionObject_play); - tolua_function(tolua_S,"getCurrentTime",lua_ax_studio_ActionObject_getCurrentTime); - tolua_function(tolua_S,"removeActionNode",lua_ax_studio_ActionObject_removeActionNode); - tolua_function(tolua_S,"getLoop",lua_ax_studio_ActionObject_getLoop); - tolua_function(tolua_S,"addActionNode",lua_ax_studio_ActionObject_addActionNode); - tolua_function(tolua_S,"getUnitTime",lua_ax_studio_ActionObject_getUnitTime); - tolua_function(tolua_S,"isPlaying",lua_ax_studio_ActionObject_isPlaying); - tolua_function(tolua_S,"updateToFrameByTime",lua_ax_studio_ActionObject_updateToFrameByTime); tolua_function(tolua_S,"setLoop",lua_ax_studio_ActionObject_setLoop); + tolua_function(tolua_S,"getLoop",lua_ax_studio_ActionObject_getLoop); + tolua_function(tolua_S,"setUnitTime",lua_ax_studio_ActionObject_setUnitTime); + tolua_function(tolua_S,"getUnitTime",lua_ax_studio_ActionObject_getUnitTime); + tolua_function(tolua_S,"setCurrentTime",lua_ax_studio_ActionObject_setCurrentTime); + tolua_function(tolua_S,"getCurrentTime",lua_ax_studio_ActionObject_getCurrentTime); + tolua_function(tolua_S,"getTotalTime",lua_ax_studio_ActionObject_getTotalTime); + tolua_function(tolua_S,"isPlaying",lua_ax_studio_ActionObject_isPlaying); + tolua_function(tolua_S,"play",lua_ax_studio_ActionObject_play); + tolua_function(tolua_S,"pause",lua_ax_studio_ActionObject_pause); + tolua_function(tolua_S,"stop",lua_ax_studio_ActionObject_stop); + tolua_function(tolua_S,"addActionNode",lua_ax_studio_ActionObject_addActionNode); + tolua_function(tolua_S,"removeActionNode",lua_ax_studio_ActionObject_removeActionNode); + tolua_function(tolua_S,"updateToFrameByTime",lua_ax_studio_ActionObject_updateToFrameByTime); tolua_function(tolua_S,"simulationActionUpdate",lua_ax_studio_ActionObject_simulationActionUpdate); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionObject).name(); // rtti is literal storage @@ -2613,59 +2613,6 @@ int lua_register_ax_studio_ActionObject(lua_State* tolua_S) return 1; } -int lua_ax_studio_ActionManagerEx_stopActionByName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionManagerEx_stopActionByName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - const char* arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ActionManagerEx:stopActionByName"); arg0 = arg0_tmp.c_str(); - - std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ccs.ActionManagerEx:stopActionByName"); arg1 = arg1_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionManagerEx_stopActionByName'", nullptr); - return 0; - } - auto&& ret = cobj->stopActionByName(arg0, arg1); - object_to_luaval(tolua_S, "ccs.ActionObject",(cocostudio::ActionObject*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionManagerEx:stopActionByName",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionManagerEx_stopActionByName'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionManagerEx_getActionByName(lua_State* tolua_S) { int argc = 0; @@ -2719,53 +2666,6 @@ int lua_ax_studio_ActionManagerEx_getActionByName(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionManagerEx_getStudioVersionNumber(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ActionManagerEx* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionManagerEx_getStudioVersionNumber'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionManagerEx_getStudioVersionNumber'", nullptr); - return 0; - } - auto&& ret = cobj->getStudioVersionNumber(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionManagerEx:getStudioVersionNumber",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionManagerEx_getStudioVersionNumber'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionManagerEx_playActionByName(lua_State* tolua_S) { int argc = 0; @@ -2833,6 +2733,59 @@ int lua_ax_studio_ActionManagerEx_playActionByName(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionManagerEx_stopActionByName(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionManagerEx* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionManagerEx_stopActionByName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + const char* arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ActionManagerEx:stopActionByName"); arg0 = arg0_tmp.c_str(); + + std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ccs.ActionManagerEx:stopActionByName"); arg1 = arg1_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionManagerEx_stopActionByName'", nullptr); + return 0; + } + auto&& ret = cobj->stopActionByName(arg0, arg1); + object_to_luaval(tolua_S, "ccs.ActionObject",(cocostudio::ActionObject*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionManagerEx:stopActionByName",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionManagerEx_stopActionByName'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionManagerEx_releaseActions(lua_State* tolua_S) { int argc = 0; @@ -2880,38 +2833,51 @@ int lua_ax_studio_ActionManagerEx_releaseActions(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionManagerEx_destroyInstance(lua_State* tolua_S) +int lua_ax_studio_ActionManagerEx_getStudioVersionNumber(lua_State* tolua_S) { int argc = 0; + cocostudio::ActionManagerEx* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionManagerEx_getStudioVersionNumber'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionManagerEx_destroyInstance'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionManagerEx_getStudioVersionNumber'", nullptr); return 0; } - cocostudio::ActionManagerEx::destroyInstance(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getStudioVersionNumber(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ActionManagerEx:destroyInstance",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionManagerEx:getStudioVersionNumber",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionManagerEx_destroyInstance'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionManagerEx_getStudioVersionNumber'.",&tolua_err); #endif + return 0; } int lua_ax_studio_ActionManagerEx_getInstance(lua_State* tolua_S) @@ -2948,6 +2914,40 @@ int lua_ax_studio_ActionManagerEx_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_studio_ActionManagerEx_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionManagerEx_destroyInstance'", nullptr); + return 0; + } + cocostudio::ActionManagerEx::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ActionManagerEx:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionManagerEx_destroyInstance'.",&tolua_err); +#endif + return 0; +} static int lua_ax_studio_ActionManagerEx_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionManagerEx)"); @@ -2960,13 +2960,13 @@ int lua_register_ax_studio_ActionManagerEx(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionManagerEx","ccs.ActionManagerEx","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionManagerEx"); - tolua_function(tolua_S,"stopActionByName",lua_ax_studio_ActionManagerEx_stopActionByName); tolua_function(tolua_S,"getActionByName",lua_ax_studio_ActionManagerEx_getActionByName); - tolua_function(tolua_S,"getStudioVersionNumber",lua_ax_studio_ActionManagerEx_getStudioVersionNumber); tolua_function(tolua_S,"playActionByName",lua_ax_studio_ActionManagerEx_playActionByName); + tolua_function(tolua_S,"stopActionByName",lua_ax_studio_ActionManagerEx_stopActionByName); tolua_function(tolua_S,"releaseActions",lua_ax_studio_ActionManagerEx_releaseActions); - tolua_function(tolua_S,"destroyInstance", lua_ax_studio_ActionManagerEx_destroyInstance); + tolua_function(tolua_S,"getStudioVersionNumber",lua_ax_studio_ActionManagerEx_getStudioVersionNumber); tolua_function(tolua_S,"getInstance", lua_ax_studio_ActionManagerEx_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_studio_ActionManagerEx_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ActionManagerEx).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ActionManagerEx"; @@ -2974,53 +2974,6 @@ int lua_register_ax_studio_ActionManagerEx(lua_State* tolua_S) return 1; } -int lua_ax_studio_BaseData_getColor(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::BaseData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BaseData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::BaseData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BaseData_getColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BaseData_getColor'", nullptr); - return 0; - } - auto&& ret = cobj->getColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BaseData:getColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BaseData_getColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_BaseData_setColor(lua_State* tolua_S) { int argc = 0; @@ -3071,6 +3024,53 @@ int lua_ax_studio_BaseData_setColor(lua_State* tolua_S) return 0; } +int lua_ax_studio_BaseData_getColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::BaseData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BaseData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::BaseData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BaseData_getColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BaseData_getColor'", nullptr); + return 0; + } + auto&& ret = cobj->getColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BaseData:getColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BaseData_getColor'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_BaseData_create(lua_State* tolua_S) { int argc = 0; @@ -3155,8 +3155,8 @@ int lua_register_ax_studio_BaseData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"BaseData"); tolua_function(tolua_S,"new",lua_ax_studio_BaseData_constructor); - tolua_function(tolua_S,"getColor",lua_ax_studio_BaseData_getColor); tolua_function(tolua_S,"setColor",lua_ax_studio_BaseData_setColor); + tolua_function(tolua_S,"getColor",lua_ax_studio_BaseData_getColor); tolua_function(tolua_S,"create", lua_ax_studio_BaseData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::BaseData).name(); // rtti is literal storage @@ -3215,6 +3215,40 @@ int lua_ax_studio_DisplayData_copy(lua_State* tolua_S) return 0; } +int lua_ax_studio_DisplayData_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.DisplayData",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayData_create'", nullptr); + return 0; + } + auto&& ret = cocostudio::DisplayData::create(); + object_to_luaval(tolua_S, "ccs.DisplayData",(cocostudio::DisplayData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.DisplayData:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayData_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_studio_DisplayData_changeDisplayToTexture(lua_State* tolua_S) { int argc = 0; @@ -3251,40 +3285,6 @@ int lua_ax_studio_DisplayData_changeDisplayToTexture(lua_State* tolua_S) #endif return 0; } -int lua_ax_studio_DisplayData_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.DisplayData",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayData_create'", nullptr); - return 0; - } - auto&& ret = cocostudio::DisplayData::create(); - object_to_luaval(tolua_S, "ccs.DisplayData",(cocostudio::DisplayData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.DisplayData:create",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayData_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_studio_DisplayData_constructor(lua_State* tolua_S) { int argc = 0; @@ -3336,8 +3336,8 @@ int lua_register_ax_studio_DisplayData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"DisplayData"); tolua_function(tolua_S,"new",lua_ax_studio_DisplayData_constructor); tolua_function(tolua_S,"copy",lua_ax_studio_DisplayData_copy); - tolua_function(tolua_S,"changeDisplayToTexture", lua_ax_studio_DisplayData_changeDisplayToTexture); tolua_function(tolua_S,"create", lua_ax_studio_DisplayData_create); + tolua_function(tolua_S,"changeDisplayToTexture", lua_ax_studio_DisplayData_changeDisplayToTexture); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::DisplayData).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.DisplayData"; @@ -3672,56 +3672,6 @@ int lua_register_ax_studio_ParticleDisplayData(lua_State* tolua_S) return 1; } -int lua_ax_studio_BoneData_getDisplayData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::BoneData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::BoneData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneData_getDisplayData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.BoneData:getDisplayData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneData_getDisplayData'", nullptr); - return 0; - } - auto&& ret = cobj->getDisplayData(arg0); - object_to_luaval(tolua_S, "ccs.DisplayData",(cocostudio::DisplayData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneData:getDisplayData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneData_getDisplayData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_BoneData_init(lua_State* tolua_S) { int argc = 0; @@ -3819,6 +3769,56 @@ int lua_ax_studio_BoneData_addDisplayData(lua_State* tolua_S) return 0; } +int lua_ax_studio_BoneData_getDisplayData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::BoneData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::BoneData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneData_getDisplayData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.BoneData:getDisplayData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneData_getDisplayData'", nullptr); + return 0; + } + auto&& ret = cobj->getDisplayData(arg0); + object_to_luaval(tolua_S, "ccs.DisplayData",(cocostudio::DisplayData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneData:getDisplayData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneData_getDisplayData'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_BoneData_create(lua_State* tolua_S) { int argc = 0; @@ -3903,9 +3903,9 @@ int lua_register_ax_studio_BoneData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"BoneData"); tolua_function(tolua_S,"new",lua_ax_studio_BoneData_constructor); - tolua_function(tolua_S,"getDisplayData",lua_ax_studio_BoneData_getDisplayData); tolua_function(tolua_S,"init",lua_ax_studio_BoneData_init); tolua_function(tolua_S,"addDisplayData",lua_ax_studio_BoneData_addDisplayData); + tolua_function(tolua_S,"getDisplayData",lua_ax_studio_BoneData_getDisplayData); tolua_function(tolua_S,"create", lua_ax_studio_BoneData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::BoneData).name(); // rtti is literal storage @@ -3914,6 +3914,53 @@ int lua_register_ax_studio_BoneData(lua_State* tolua_S) return 1; } +int lua_ax_studio_ArmatureData_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureData_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureData_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureData:init",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureData_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ArmatureData_addBoneData(lua_State* tolua_S) { int argc = 0; @@ -3964,53 +4011,6 @@ int lua_ax_studio_ArmatureData_addBoneData(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureData_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureData_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureData_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureData:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureData_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ArmatureData_getBoneData(lua_State* tolua_S) { int argc = 0; @@ -4145,8 +4145,8 @@ int lua_register_ax_studio_ArmatureData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ArmatureData"); tolua_function(tolua_S,"new",lua_ax_studio_ArmatureData_constructor); - tolua_function(tolua_S,"addBoneData",lua_ax_studio_ArmatureData_addBoneData); tolua_function(tolua_S,"init",lua_ax_studio_ArmatureData_init); + tolua_function(tolua_S,"addBoneData",lua_ax_studio_ArmatureData_addBoneData); tolua_function(tolua_S,"getBoneData",lua_ax_studio_ArmatureData_getBoneData); tolua_function(tolua_S,"create", lua_ax_studio_ArmatureData_create); tolua_endmodule(tolua_S); @@ -4346,56 +4346,6 @@ int lua_ax_studio_MovementBoneData_init(lua_State* tolua_S) return 0; } -int lua_ax_studio_MovementBoneData_getFrameData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::MovementBoneData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.MovementBoneData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::MovementBoneData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_MovementBoneData_getFrameData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.MovementBoneData:getFrameData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_MovementBoneData_getFrameData'", nullptr); - return 0; - } - auto&& ret = cobj->getFrameData(arg0); - object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.MovementBoneData:getFrameData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_MovementBoneData_getFrameData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_MovementBoneData_addFrameData(lua_State* tolua_S) { int argc = 0; @@ -4446,6 +4396,56 @@ int lua_ax_studio_MovementBoneData_addFrameData(lua_State* tolua_S) return 0; } +int lua_ax_studio_MovementBoneData_getFrameData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::MovementBoneData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.MovementBoneData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::MovementBoneData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_MovementBoneData_getFrameData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.MovementBoneData:getFrameData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_MovementBoneData_getFrameData'", nullptr); + return 0; + } + auto&& ret = cobj->getFrameData(arg0); + object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.MovementBoneData:getFrameData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_MovementBoneData_getFrameData'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_MovementBoneData_create(lua_State* tolua_S) { int argc = 0; @@ -4531,8 +4531,8 @@ int lua_register_ax_studio_MovementBoneData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MovementBoneData"); tolua_function(tolua_S,"new",lua_ax_studio_MovementBoneData_constructor); tolua_function(tolua_S,"init",lua_ax_studio_MovementBoneData_init); - tolua_function(tolua_S,"getFrameData",lua_ax_studio_MovementBoneData_getFrameData); tolua_function(tolua_S,"addFrameData",lua_ax_studio_MovementBoneData_addFrameData); + tolua_function(tolua_S,"getFrameData",lua_ax_studio_MovementBoneData_getFrameData); tolua_function(tolua_S,"create", lua_ax_studio_MovementBoneData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::MovementBoneData).name(); // rtti is literal storage @@ -4541,56 +4541,6 @@ int lua_register_ax_studio_MovementBoneData(lua_State* tolua_S) return 1; } -int lua_ax_studio_MovementData_getMovementBoneData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::MovementData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.MovementData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::MovementData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_MovementData_getMovementBoneData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.MovementData:getMovementBoneData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_MovementData_getMovementBoneData'", nullptr); - return 0; - } - auto&& ret = cobj->getMovementBoneData(arg0); - object_to_luaval(tolua_S, "ccs.MovementBoneData",(cocostudio::MovementBoneData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.MovementData:getMovementBoneData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_MovementData_getMovementBoneData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_MovementData_addMovementBoneData(lua_State* tolua_S) { int argc = 0; @@ -4641,6 +4591,56 @@ int lua_ax_studio_MovementData_addMovementBoneData(lua_State* tolua_S) return 0; } +int lua_ax_studio_MovementData_getMovementBoneData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::MovementData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.MovementData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::MovementData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_MovementData_getMovementBoneData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.MovementData:getMovementBoneData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_MovementData_getMovementBoneData'", nullptr); + return 0; + } + auto&& ret = cobj->getMovementBoneData(arg0); + object_to_luaval(tolua_S, "ccs.MovementBoneData",(cocostudio::MovementBoneData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.MovementData:getMovementBoneData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_MovementData_getMovementBoneData'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_MovementData_create(lua_State* tolua_S) { int argc = 0; @@ -4725,8 +4725,8 @@ int lua_register_ax_studio_MovementData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"MovementData"); tolua_function(tolua_S,"new",lua_ax_studio_MovementData_constructor); - tolua_function(tolua_S,"getMovementBoneData",lua_ax_studio_MovementData_getMovementBoneData); tolua_function(tolua_S,"addMovementBoneData",lua_ax_studio_MovementData_addMovementBoneData); + tolua_function(tolua_S,"getMovementBoneData",lua_ax_studio_MovementData_getMovementBoneData); tolua_function(tolua_S,"create", lua_ax_studio_MovementData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::MovementData).name(); // rtti is literal storage @@ -4735,6 +4735,56 @@ int lua_register_ax_studio_MovementData(lua_State* tolua_S) return 1; } +int lua_ax_studio_AnimationData_addMovement(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::AnimationData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.AnimationData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::AnimationData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_AnimationData_addMovement'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::MovementData* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.MovementData",&arg0, "ccs.AnimationData:addMovement"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_AnimationData_addMovement'", nullptr); + return 0; + } + cobj->addMovement(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.AnimationData:addMovement",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_AnimationData_addMovement'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_AnimationData_getMovement(lua_State* tolua_S) { int argc = 0; @@ -4832,56 +4882,6 @@ int lua_ax_studio_AnimationData_getMovementCount(lua_State* tolua_S) return 0; } -int lua_ax_studio_AnimationData_addMovement(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::AnimationData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.AnimationData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::AnimationData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_AnimationData_addMovement'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::MovementData* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.MovementData",&arg0, "ccs.AnimationData:addMovement"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_AnimationData_addMovement'", nullptr); - return 0; - } - cobj->addMovement(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.AnimationData:addMovement",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_AnimationData_addMovement'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_AnimationData_create(lua_State* tolua_S) { int argc = 0; @@ -4966,9 +4966,9 @@ int lua_register_ax_studio_AnimationData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AnimationData"); tolua_function(tolua_S,"new",lua_ax_studio_AnimationData_constructor); + tolua_function(tolua_S,"addMovement",lua_ax_studio_AnimationData_addMovement); tolua_function(tolua_S,"getMovement",lua_ax_studio_AnimationData_getMovement); tolua_function(tolua_S,"getMovementCount",lua_ax_studio_AnimationData_getMovementCount); - tolua_function(tolua_S,"addMovement",lua_ax_studio_AnimationData_addMovement); tolua_function(tolua_S,"create", lua_ax_studio_AnimationData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::AnimationData).name(); // rtti is literal storage @@ -5168,56 +5168,6 @@ int lua_register_ax_studio_ContourData(lua_State* tolua_S) return 1; } -int lua_ax_studio_TextureData_getContourData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::TextureData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.TextureData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::TextureData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_TextureData_getContourData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.TextureData:getContourData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_TextureData_getContourData'", nullptr); - return 0; - } - auto&& ret = cobj->getContourData(arg0); - object_to_luaval(tolua_S, "ccs.ContourData",(cocostudio::ContourData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.TextureData:getContourData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_TextureData_getContourData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_TextureData_init(lua_State* tolua_S) { int argc = 0; @@ -5315,6 +5265,56 @@ int lua_ax_studio_TextureData_addContourData(lua_State* tolua_S) return 0; } +int lua_ax_studio_TextureData_getContourData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::TextureData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.TextureData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::TextureData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_TextureData_getContourData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.TextureData:getContourData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_TextureData_getContourData'", nullptr); + return 0; + } + auto&& ret = cobj->getContourData(arg0); + object_to_luaval(tolua_S, "ccs.ContourData",(cocostudio::ContourData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.TextureData:getContourData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_TextureData_getContourData'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_TextureData_create(lua_State* tolua_S) { int argc = 0; @@ -5399,9 +5399,9 @@ int lua_register_ax_studio_TextureData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextureData"); tolua_function(tolua_S,"new",lua_ax_studio_TextureData_constructor); - tolua_function(tolua_S,"getContourData",lua_ax_studio_TextureData_getContourData); tolua_function(tolua_S,"init",lua_ax_studio_TextureData_init); tolua_function(tolua_S,"addContourData",lua_ax_studio_TextureData_addContourData); + tolua_function(tolua_S,"getContourData",lua_ax_studio_TextureData_getContourData); tolua_function(tolua_S,"create", lua_ax_studio_TextureData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::TextureData).name(); // rtti is literal storage @@ -5410,7 +5410,7 @@ int lua_register_ax_studio_TextureData(lua_State* tolua_S) return 1; } -int lua_ax_studio_Tween_getAnimation(lua_State* tolua_S) +int lua_ax_studio_Tween_init(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; @@ -5430,54 +5430,7 @@ int lua_ax_studio_Tween_getAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_getAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_getAnimation'", nullptr); - return 0; - } - auto&& ret = cobj->getAnimation(); - object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:getAnimation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_getAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Tween_gotoAndPause(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Tween* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_gotoAndPause'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_init'", nullptr); return 0; } #endif @@ -5485,24 +5438,24 @@ int lua_ax_studio_Tween_gotoAndPause(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + cocostudio::Bone* arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Tween:gotoAndPause"); + ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Tween:init"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_gotoAndPause'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_init'", nullptr); return 0; } - cobj->gotoAndPause(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:gotoAndPause",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:init",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_gotoAndPause'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_init'.",&tolua_err); #endif return 0; @@ -5569,6 +5522,103 @@ int lua_ax_studio_Tween_play(lua_State* tolua_S) return 0; } +int lua_ax_studio_Tween_setAnimation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Tween* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_setAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::ArmatureAnimation* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureAnimation",&arg0, "ccs.Tween:setAnimation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_setAnimation'", nullptr); + return 0; + } + cobj->setAnimation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:setAnimation",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_setAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Tween_getAnimation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Tween* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_getAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_getAnimation'", nullptr); + return 0; + } + auto&& ret = cobj->getAnimation(); + object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:getAnimation",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_getAnimation'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_Tween_gotoAndPlay(lua_State* tolua_S) { int argc = 0; @@ -5619,7 +5669,7 @@ int lua_ax_studio_Tween_gotoAndPlay(lua_State* tolua_S) return 0; } -int lua_ax_studio_Tween_init(lua_State* tolua_S) +int lua_ax_studio_Tween_gotoAndPause(lua_State* tolua_S) { int argc = 0; cocostudio::Tween* cobj = nullptr; @@ -5639,7 +5689,7 @@ int lua_ax_studio_Tween_init(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_init'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_gotoAndPause'", nullptr); return 0; } #endif @@ -5647,74 +5697,24 @@ int lua_ax_studio_Tween_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocostudio::Bone* arg0; + int arg0; - ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Tween:init"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Tween:gotoAndPause"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_init'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_gotoAndPause'", nullptr); return 0; } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Tween_setAnimation(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Tween* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Tween",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Tween*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Tween_setAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::ArmatureAnimation* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureAnimation",&arg0, "ccs.Tween:setAnimation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Tween_setAnimation'", nullptr); - return 0; - } - cobj->setAnimation(arg0); + cobj->gotoAndPause(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:setAnimation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Tween:gotoAndPause",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_setAnimation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Tween_gotoAndPause'.",&tolua_err); #endif return 0; @@ -5805,12 +5805,12 @@ int lua_register_ax_studio_Tween(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Tween"); tolua_function(tolua_S,"new",lua_ax_studio_Tween_constructor); - tolua_function(tolua_S,"getAnimation",lua_ax_studio_Tween_getAnimation); - tolua_function(tolua_S,"gotoAndPause",lua_ax_studio_Tween_gotoAndPause); - tolua_function(tolua_S,"play",lua_ax_studio_Tween_play); - tolua_function(tolua_S,"gotoAndPlay",lua_ax_studio_Tween_gotoAndPlay); tolua_function(tolua_S,"init",lua_ax_studio_Tween_init); + tolua_function(tolua_S,"play",lua_ax_studio_Tween_play); tolua_function(tolua_S,"setAnimation",lua_ax_studio_Tween_setAnimation); + tolua_function(tolua_S,"getAnimation",lua_ax_studio_Tween_getAnimation); + tolua_function(tolua_S,"gotoAndPlay",lua_ax_studio_Tween_gotoAndPlay); + tolua_function(tolua_S,"gotoAndPause",lua_ax_studio_Tween_gotoAndPause); tolua_function(tolua_S,"create", lua_ax_studio_Tween_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::Tween).name(); // rtti is literal storage @@ -5819,247 +5819,6 @@ int lua_register_ax_studio_Tween(lua_State* tolua_S) return 1; } -int lua_ax_studio_DisplayManager_getDisplayRenderNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getDisplayRenderNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getDisplayRenderNode'", nullptr); - return 0; - } - auto&& ret = cobj->getDisplayRenderNode(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDisplayRenderNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getDisplayRenderNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_DisplayManager_getAnchorPointInPoints(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getAnchorPointInPoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getAnchorPointInPoints'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorPointInPoints(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getAnchorPointInPoints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getAnchorPointInPoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_DisplayManager_getDisplayRenderNodeType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getDisplayRenderNodeType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getDisplayRenderNodeType'", nullptr); - return 0; - } - int ret = (int)cobj->getDisplayRenderNodeType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDisplayRenderNodeType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getDisplayRenderNodeType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_DisplayManager_removeDisplay(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_removeDisplay'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.DisplayManager:removeDisplay"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_removeDisplay'", nullptr); - return 0; - } - cobj->removeDisplay(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:removeDisplay",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_removeDisplay'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_DisplayManager_setForceChangeDisplay(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_setForceChangeDisplay'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.DisplayManager:setForceChangeDisplay"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_setForceChangeDisplay'", nullptr); - return 0; - } - cobj->setForceChangeDisplay(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:setForceChangeDisplay",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_setForceChangeDisplay'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_DisplayManager_init(lua_State* tolua_S) { int argc = 0; @@ -6110,100 +5869,6 @@ int lua_ax_studio_DisplayManager_init(lua_State* tolua_S) return 0; } -int lua_ax_studio_DisplayManager_getContentSize(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getContentSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getContentSize'", nullptr); - return 0; - } - auto&& ret = cobj->getContentSize(); - size_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getContentSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getContentSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_DisplayManager_getBoundingBox(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getBoundingBox'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getBoundingBox'", nullptr); - return 0; - } - auto&& ret = cobj->getBoundingBox(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getBoundingBox",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getBoundingBox'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_DisplayManager_addDisplay(lua_State* tolua_S) { int argc = 0; @@ -6267,61 +5932,99 @@ int lua_ax_studio_DisplayManager_addDisplay(lua_State* tolua_S) return 0; } -int lua_ax_studio_DisplayManager_containPoint(lua_State* tolua_S) +int lua_ax_studio_DisplayManager_removeDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; bool ok = true; + #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_containPoint'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_removeDisplay'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.DisplayManager:containPoint"); + if (argc == 1) + { + int arg0; - if (!ok) { break; } - double arg1; - ok &= luaval_to_number(tolua_S, 3,&arg1, "ccs.DisplayManager:containPoint"); - - if (!ok) { break; } - bool ret = cobj->containPoint(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.DisplayManager:removeDisplay"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_removeDisplay'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccs.DisplayManager:containPoint"); - - if (!ok) { break; } - bool ret = cobj->containPoint(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:containPoint",argc, 1); + cobj->removeDisplay(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:removeDisplay",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_containPoint'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_removeDisplay'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_getDecorativeDisplayList(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getDecorativeDisplayList'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getDecorativeDisplayList'", nullptr); + return 0; + } + auto&& ret = cobj->getDecorativeDisplayList(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDecorativeDisplayList",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getDecorativeDisplayList'.",&tolua_err); #endif return 0; @@ -6432,7 +6135,7 @@ int lua_ax_studio_DisplayManager_changeDisplayWithName(lua_State* tolua_S) return 0; } -int lua_ax_studio_DisplayManager_isForceChangeDisplay(lua_State* tolua_S) +int lua_ax_studio_DisplayManager_getDisplayRenderNode(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; @@ -6452,7 +6155,7 @@ int lua_ax_studio_DisplayManager_isForceChangeDisplay(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_isForceChangeDisplay'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getDisplayRenderNode'", nullptr); return 0; } #endif @@ -6462,19 +6165,66 @@ int lua_ax_studio_DisplayManager_isForceChangeDisplay(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_isForceChangeDisplay'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getDisplayRenderNode'", nullptr); return 0; } - auto&& ret = cobj->isForceChangeDisplay(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getDisplayRenderNode(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:isForceChangeDisplay",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDisplayRenderNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_isForceChangeDisplay'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getDisplayRenderNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_getDisplayRenderNodeType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getDisplayRenderNodeType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getDisplayRenderNodeType'", nullptr); + return 0; + } + int ret = (int)cobj->getDisplayRenderNodeType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDisplayRenderNodeType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getDisplayRenderNodeType'.",&tolua_err); #endif return 0; @@ -6526,7 +6276,7 @@ int lua_ax_studio_DisplayManager_getCurrentDisplayIndex(lua_State* tolua_S) return 0; } -int lua_ax_studio_DisplayManager_getAnchorPoint(lua_State* tolua_S) +int lua_ax_studio_DisplayManager_setVisible(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; @@ -6546,76 +6296,32 @@ int lua_ax_studio_DisplayManager_getAnchorPoint(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getAnchorPoint'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_setVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.DisplayManager:setVisible"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getAnchorPoint'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_setVisible'", nullptr); return 0; } - auto&& ret = cobj->getAnchorPoint(); - vec2_to_luaval(tolua_S, ret); + cobj->setVisible(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getAnchorPoint",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:setVisible",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getAnchorPoint'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_DisplayManager_getDecorativeDisplayList(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::DisplayManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getDecorativeDisplayList'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getDecorativeDisplayList'", nullptr); - return 0; - } - auto&& ret = cobj->getDecorativeDisplayList(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDecorativeDisplayList",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getDecorativeDisplayList'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_setVisible'.",&tolua_err); #endif return 0; @@ -6667,7 +6373,7 @@ int lua_ax_studio_DisplayManager_isVisible(lua_State* tolua_S) return 0; } -int lua_ax_studio_DisplayManager_setVisible(lua_State* tolua_S) +int lua_ax_studio_DisplayManager_getContentSize(lua_State* tolua_S) { int argc = 0; cocostudio::DisplayManager* cobj = nullptr; @@ -6687,7 +6393,254 @@ int lua_ax_studio_DisplayManager_setVisible(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_setVisible'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getContentSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getContentSize'", nullptr); + return 0; + } + auto&& ret = cobj->getContentSize(); + size_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getContentSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getContentSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_getBoundingBox(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getBoundingBox'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getBoundingBox'", nullptr); + return 0; + } + auto&& ret = cobj->getBoundingBox(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getBoundingBox",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getBoundingBox'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_getAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getAnchorPoint'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorPoint(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getAnchorPoint",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_getAnchorPointInPoints(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_getAnchorPointInPoints'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_getAnchorPointInPoints'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorPointInPoints(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getAnchorPointInPoints",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_getAnchorPointInPoints'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_containPoint(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_containPoint'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.DisplayManager:containPoint"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "ccs.DisplayManager:containPoint"); + + if (!ok) { break; } + bool ret = cobj->containPoint(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccs.DisplayManager:containPoint"); + + if (!ok) { break; } + bool ret = cobj->containPoint(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:containPoint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_containPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_setForceChangeDisplay(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_setForceChangeDisplay'", nullptr); return 0; } #endif @@ -6697,22 +6650,69 @@ int lua_ax_studio_DisplayManager_setVisible(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.DisplayManager:setVisible"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.DisplayManager:setForceChangeDisplay"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_setVisible'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_setForceChangeDisplay'", nullptr); return 0; } - cobj->setVisible(arg0); + cobj->setForceChangeDisplay(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:setVisible",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:setForceChangeDisplay",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_setVisible'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_setForceChangeDisplay'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_DisplayManager_isForceChangeDisplay(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::DisplayManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.DisplayManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::DisplayManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_DisplayManager_isForceChangeDisplay'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_DisplayManager_isForceChangeDisplay'", nullptr); + return 0; + } + auto&& ret = cobj->isForceChangeDisplay(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:isForceChangeDisplay",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_DisplayManager_isForceChangeDisplay'.",&tolua_err); #endif return 0; @@ -6803,24 +6803,24 @@ int lua_register_ax_studio_DisplayManager(lua_State* tolua_S) tolua_beginmodule(tolua_S,"DisplayManager"); tolua_function(tolua_S,"new",lua_ax_studio_DisplayManager_constructor); - tolua_function(tolua_S,"getDisplayRenderNode",lua_ax_studio_DisplayManager_getDisplayRenderNode); - tolua_function(tolua_S,"getAnchorPointInPoints",lua_ax_studio_DisplayManager_getAnchorPointInPoints); - tolua_function(tolua_S,"getDisplayRenderNodeType",lua_ax_studio_DisplayManager_getDisplayRenderNodeType); - tolua_function(tolua_S,"removeDisplay",lua_ax_studio_DisplayManager_removeDisplay); - tolua_function(tolua_S,"setForceChangeDisplay",lua_ax_studio_DisplayManager_setForceChangeDisplay); tolua_function(tolua_S,"init",lua_ax_studio_DisplayManager_init); - tolua_function(tolua_S,"getContentSize",lua_ax_studio_DisplayManager_getContentSize); - tolua_function(tolua_S,"getBoundingBox",lua_ax_studio_DisplayManager_getBoundingBox); tolua_function(tolua_S,"addDisplay",lua_ax_studio_DisplayManager_addDisplay); - tolua_function(tolua_S,"containPoint",lua_ax_studio_DisplayManager_containPoint); + tolua_function(tolua_S,"removeDisplay",lua_ax_studio_DisplayManager_removeDisplay); + tolua_function(tolua_S,"getDecorativeDisplayList",lua_ax_studio_DisplayManager_getDecorativeDisplayList); tolua_function(tolua_S,"changeDisplayWithIndex",lua_ax_studio_DisplayManager_changeDisplayWithIndex); tolua_function(tolua_S,"changeDisplayWithName",lua_ax_studio_DisplayManager_changeDisplayWithName); - tolua_function(tolua_S,"isForceChangeDisplay",lua_ax_studio_DisplayManager_isForceChangeDisplay); + tolua_function(tolua_S,"getDisplayRenderNode",lua_ax_studio_DisplayManager_getDisplayRenderNode); + tolua_function(tolua_S,"getDisplayRenderNodeType",lua_ax_studio_DisplayManager_getDisplayRenderNodeType); tolua_function(tolua_S,"getCurrentDisplayIndex",lua_ax_studio_DisplayManager_getCurrentDisplayIndex); - tolua_function(tolua_S,"getAnchorPoint",lua_ax_studio_DisplayManager_getAnchorPoint); - tolua_function(tolua_S,"getDecorativeDisplayList",lua_ax_studio_DisplayManager_getDecorativeDisplayList); - tolua_function(tolua_S,"isVisible",lua_ax_studio_DisplayManager_isVisible); tolua_function(tolua_S,"setVisible",lua_ax_studio_DisplayManager_setVisible); + tolua_function(tolua_S,"isVisible",lua_ax_studio_DisplayManager_isVisible); + tolua_function(tolua_S,"getContentSize",lua_ax_studio_DisplayManager_getContentSize); + tolua_function(tolua_S,"getBoundingBox",lua_ax_studio_DisplayManager_getBoundingBox); + tolua_function(tolua_S,"getAnchorPoint",lua_ax_studio_DisplayManager_getAnchorPoint); + tolua_function(tolua_S,"getAnchorPointInPoints",lua_ax_studio_DisplayManager_getAnchorPointInPoints); + tolua_function(tolua_S,"containPoint",lua_ax_studio_DisplayManager_containPoint); + tolua_function(tolua_S,"setForceChangeDisplay",lua_ax_studio_DisplayManager_setForceChangeDisplay); + tolua_function(tolua_S,"isForceChangeDisplay",lua_ax_studio_DisplayManager_isForceChangeDisplay); tolua_function(tolua_S,"create", lua_ax_studio_DisplayManager_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::DisplayManager).name(); // rtti is literal storage @@ -6829,726 +6829,6 @@ int lua_register_ax_studio_DisplayManager(lua_State* tolua_S) return 1; } -int lua_ax_studio_Bone_isTransformDirty(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_isTransformDirty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_isTransformDirty'", nullptr); - return 0; - } - auto&& ret = cobj->isTransformDirty(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:isTransformDirty",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_isTransformDirty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.Bone:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_isIgnoreMovementBoneData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_isIgnoreMovementBoneData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_isIgnoreMovementBoneData'", nullptr); - return 0; - } - auto&& ret = cobj->isIgnoreMovementBoneData(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:isIgnoreMovementBoneData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_isIgnoreMovementBoneData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_updateZOrder(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_updateZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_updateZOrder'", nullptr); - return 0; - } - cobj->updateZOrder(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:updateZOrder",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_updateZOrder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getDisplayRenderNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getDisplayRenderNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getDisplayRenderNode'", nullptr); - return 0; - } - auto&& ret = cobj->getDisplayRenderNode(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayRenderNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getDisplayRenderNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_isBlendDirty(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_isBlendDirty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_isBlendDirty'", nullptr); - return 0; - } - auto&& ret = cobj->isBlendDirty(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:isBlendDirty",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_isBlendDirty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_addChildBone(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_addChildBone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::Bone* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Bone:addChildBone"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_addChildBone'", nullptr); - return 0; - } - cobj->addChildBone(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:addChildBone",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_addChildBone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getWorldInfo(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getWorldInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getWorldInfo'", nullptr); - return 0; - } - auto&& ret = cobj->getWorldInfo(); - object_to_luaval(tolua_S, "ccs.BaseData",(cocostudio::BaseData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getWorldInfo",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getWorldInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getTween(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getTween'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getTween'", nullptr); - return 0; - } - auto&& ret = cobj->getTween(); - object_to_luaval(tolua_S, "ccs.Tween",(cocostudio::Tween*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getTween",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getTween'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getParentBone(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getParentBone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getParentBone'", nullptr); - return 0; - } - auto&& ret = cobj->getParentBone(); - object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getParentBone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getParentBone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_updateColor(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_updateColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_updateColor'", nullptr); - return 0; - } - cobj->updateColor(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:updateColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_updateColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_setTransformDirty(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setTransformDirty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.Bone:setTransformDirty"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setTransformDirty'", nullptr); - return 0; - } - cobj->setTransformDirty(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setTransformDirty",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setTransformDirty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getDisplayRenderNodeType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getDisplayRenderNodeType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getDisplayRenderNodeType'", nullptr); - return 0; - } - int ret = (int)cobj->getDisplayRenderNodeType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayRenderNodeType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getDisplayRenderNodeType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_removeDisplay(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_removeDisplay'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Bone:removeDisplay"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_removeDisplay'", nullptr); - return 0; - } - cobj->removeDisplay(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:removeDisplay",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_removeDisplay'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_setBoneData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setBoneData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::BoneData* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.BoneData",&arg0, "ccs.Bone:setBoneData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setBoneData'", nullptr); - return 0; - } - cobj->setBoneData(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setBoneData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setBoneData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Bone_init(lua_State* tolua_S) { int argc = 0; @@ -7599,56 +6879,6 @@ int lua_ax_studio_Bone_init(lua_State* tolua_S) return 0; } -int lua_ax_studio_Bone_setParentBone(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setParentBone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::Bone* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Bone:setParentBone"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setParentBone'", nullptr); - return 0; - } - cobj->setParentBone(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setParentBone",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setParentBone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Bone_addDisplay(lua_State* tolua_S) { int argc = 0; @@ -7712,7 +6942,7 @@ int lua_ax_studio_Bone_addDisplay(lua_State* tolua_S) return 0; } -int lua_ax_studio_Bone_getBlendFunc(lua_State* tolua_S) +int lua_ax_studio_Bone_removeDisplay(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; @@ -7732,54 +6962,7 @@ int lua_ax_studio_Bone_getBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_removeFromParent(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_removeFromParent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_removeDisplay'", nullptr); return 0; } #endif @@ -7787,165 +6970,24 @@ int lua_ax_studio_Bone_removeFromParent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + int arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.Bone:removeFromParent"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Bone:removeDisplay"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_removeFromParent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_removeDisplay'", nullptr); return 0; } - cobj->removeFromParent(arg0); + cobj->removeDisplay(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:removeFromParent",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:removeDisplay",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_removeFromParent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getColliderDetector(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getColliderDetector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getColliderDetector'", nullptr); - return 0; - } - auto&& ret = cobj->getColliderDetector(); - object_to_luaval(tolua_S, "ccs.ColliderDetector",(cocostudio::ColliderDetector*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getColliderDetector",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getColliderDetector'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getChildArmature(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getChildArmature'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getChildArmature'", nullptr); - return 0; - } - auto&& ret = cobj->getChildArmature(); - object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getChildArmature",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getChildArmature'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Bone_getTweenData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getTweenData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getTweenData'", nullptr); - return 0; - } - auto&& ret = cobj->getTweenData(); - object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getTweenData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getTweenData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_removeDisplay'.",&tolua_err); #endif return 0; @@ -8056,7 +7098,7 @@ int lua_ax_studio_Bone_changeDisplayWithName(lua_State* tolua_S) return 0; } -int lua_ax_studio_Bone_setArmature(lua_State* tolua_S) +int lua_ax_studio_Bone_addChildBone(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; @@ -8076,7 +7118,7 @@ int lua_ax_studio_Bone_setArmature(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setArmature'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_addChildBone'", nullptr); return 0; } #endif @@ -8084,29 +7126,29 @@ int lua_ax_studio_Bone_setArmature(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocostudio::Armature* arg0; + cocostudio::Bone* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0, "ccs.Bone:setArmature"); + ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Bone:addChildBone"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setArmature'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_addChildBone'", nullptr); return 0; } - cobj->setArmature(arg0); + cobj->addChildBone(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setArmature",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:addChildBone",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setArmature'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_addChildBone'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Bone_setBlendDirty(lua_State* tolua_S) +int lua_ax_studio_Bone_setParentBone(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; @@ -8126,7 +7168,104 @@ int lua_ax_studio_Bone_setBlendDirty(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setBlendDirty'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setParentBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::Bone* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Bone:setParentBone"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setParentBone'", nullptr); + return 0; + } + cobj->setParentBone(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setParentBone",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setParentBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getParentBone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getParentBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getParentBone'", nullptr); + return 0; + } + auto&& ret = cobj->getParentBone(); + object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getParentBone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getParentBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_removeFromParent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_removeFromParent'", nullptr); return 0; } #endif @@ -8136,22 +7275,22 @@ int lua_ax_studio_Bone_setBlendDirty(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.Bone:setBlendDirty"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.Bone:removeFromParent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setBlendDirty'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_removeFromParent'", nullptr); return 0; } - cobj->setBlendDirty(arg0); + cobj->removeFromParent(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setBlendDirty",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:removeFromParent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setBlendDirty'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_removeFromParent'.",&tolua_err); #endif return 0; @@ -8209,7 +7348,7 @@ int lua_ax_studio_Bone_removeChildBone(lua_State* tolua_S) return 0; } -int lua_ax_studio_Bone_setChildArmature(lua_State* tolua_S) +int lua_ax_studio_Bone_updateColor(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; @@ -8229,7 +7368,101 @@ int lua_ax_studio_Bone_setChildArmature(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setChildArmature'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_updateColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_updateColor'", nullptr); + return 0; + } + cobj->updateColor(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:updateColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_updateColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_updateZOrder(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_updateZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_updateZOrder'", nullptr); + return 0; + } + cobj->updateZOrder(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:updateZOrder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_updateZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_setLocalZOrder(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setLocalZOrder'", nullptr); return 0; } #endif @@ -8237,24 +7470,168 @@ int lua_ax_studio_Bone_setChildArmature(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocostudio::Armature* arg0; + int arg0; - ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0, "ccs.Bone:setChildArmature"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Bone:setLocalZOrder"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setChildArmature'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setLocalZOrder'", nullptr); return 0; } - cobj->setChildArmature(arg0); + cobj->setLocalZOrder(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setChildArmature",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setLocalZOrder",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setChildArmature'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setLocalZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getTween(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getTween'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getTween'", nullptr); + return 0; + } + auto&& ret = cobj->getTween(); + object_to_luaval(tolua_S, "ccs.Tween",(cocostudio::Tween*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getTween",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getTween'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_setTransformDirty(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setTransformDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.Bone:setTransformDirty"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setTransformDirty'", nullptr); + return 0; + } + cobj->setTransformDirty(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setTransformDirty",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setTransformDirty'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_isTransformDirty(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_isTransformDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_isTransformDirty'", nullptr); + return 0; + } + auto&& ret = cobj->isTransformDirty(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:isTransformDirty",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_isTransformDirty'.",&tolua_err); #endif return 0; @@ -8306,7 +7683,7 @@ int lua_ax_studio_Bone_getNodeToArmatureTransform(lua_State* tolua_S) return 0; } -int lua_ax_studio_Bone_getDisplayManager(lua_State* tolua_S) +int lua_ax_studio_Bone_getDisplayRenderNode(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; @@ -8326,7 +7703,7 @@ int lua_ax_studio_Bone_getDisplayManager(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getDisplayManager'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getDisplayRenderNode'", nullptr); return 0; } #endif @@ -8336,19 +7713,260 @@ int lua_ax_studio_Bone_getDisplayManager(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getDisplayManager'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getDisplayRenderNode'", nullptr); return 0; } - auto&& ret = cobj->getDisplayManager(); - object_to_luaval(tolua_S, "ccs.DisplayManager",(cocostudio::DisplayManager*)ret); + auto&& ret = cobj->getDisplayRenderNode(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayManager",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayRenderNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getDisplayManager'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getDisplayRenderNode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getDisplayRenderNodeType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getDisplayRenderNodeType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getDisplayRenderNodeType'", nullptr); + return 0; + } + int ret = (int)cobj->getDisplayRenderNodeType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayRenderNodeType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getDisplayRenderNodeType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getColliderDetector(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getColliderDetector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getColliderDetector'", nullptr); + return 0; + } + auto&& ret = cobj->getColliderDetector(); + object_to_luaval(tolua_S, "ccs.ColliderDetector",(cocostudio::ColliderDetector*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getColliderDetector",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getColliderDetector'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_setBoneData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setBoneData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::BoneData* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.BoneData",&arg0, "ccs.Bone:setBoneData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setBoneData'", nullptr); + return 0; + } + cobj->setBoneData(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setBoneData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setBoneData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getBoneData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getBoneData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getBoneData'", nullptr); + return 0; + } + auto&& ret = cobj->getBoneData(); + object_to_luaval(tolua_S, "ccs.BoneData",(cocostudio::BoneData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getBoneData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getBoneData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_setArmature(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setArmature'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::Armature* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0, "ccs.Bone:setArmature"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setArmature'", nullptr); + return 0; + } + cobj->setArmature(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setArmature",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setArmature'.",&tolua_err); #endif return 0; @@ -8400,7 +8018,7 @@ int lua_ax_studio_Bone_getArmature(lua_State* tolua_S) return 0; } -int lua_ax_studio_Bone_getBoneData(lua_State* tolua_S) +int lua_ax_studio_Bone_setChildArmature(lua_State* tolua_S) { int argc = 0; cocostudio::Bone* cobj = nullptr; @@ -8420,7 +8038,57 @@ int lua_ax_studio_Bone_getBoneData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getBoneData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setChildArmature'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::Armature* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0, "ccs.Bone:setChildArmature"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setChildArmature'", nullptr); + return 0; + } + cobj->setChildArmature(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setChildArmature",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setChildArmature'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getChildArmature(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getChildArmature'", nullptr); return 0; } #endif @@ -8430,19 +8098,401 @@ int lua_ax_studio_Bone_getBoneData(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getBoneData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getChildArmature'", nullptr); return 0; } - auto&& ret = cobj->getBoneData(); - object_to_luaval(tolua_S, "ccs.BoneData",(cocostudio::BoneData*)ret); + auto&& ret = cobj->getChildArmature(); + object_to_luaval(tolua_S, "ccs.Armature",(cocostudio::Armature*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getBoneData",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getChildArmature",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getBoneData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getChildArmature'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getDisplayManager(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getDisplayManager'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getDisplayManager'", nullptr); + return 0; + } + auto&& ret = cobj->getDisplayManager(); + object_to_luaval(tolua_S, "ccs.DisplayManager",(cocostudio::DisplayManager*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayManager",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getDisplayManager'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_isIgnoreMovementBoneData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_isIgnoreMovementBoneData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_isIgnoreMovementBoneData'", nullptr); + return 0; + } + auto&& ret = cobj->isIgnoreMovementBoneData(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:isIgnoreMovementBoneData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_isIgnoreMovementBoneData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.Bone:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_setBlendDirty(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_setBlendDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.Bone:setBlendDirty"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_setBlendDirty'", nullptr); + return 0; + } + cobj->setBlendDirty(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:setBlendDirty",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_setBlendDirty'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_isBlendDirty(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_isBlendDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_isBlendDirty'", nullptr); + return 0; + } + auto&& ret = cobj->isBlendDirty(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:isBlendDirty",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_isBlendDirty'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getTweenData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getTweenData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getTweenData'", nullptr); + return 0; + } + auto&& ret = cobj->getTweenData(); + object_to_luaval(tolua_S, "ccs.FrameData",(cocostudio::FrameData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getTweenData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getTweenData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Bone_getWorldInfo(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Bone* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Bone_getWorldInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Bone_getWorldInfo'", nullptr); + return 0; + } + auto&& ret = cobj->getWorldInfo(); + object_to_luaval(tolua_S, "ccs.BaseData",(cocostudio::BaseData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getWorldInfo",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Bone_getWorldInfo'.",&tolua_err); #endif return 0; @@ -8542,39 +8592,40 @@ int lua_register_ax_studio_Bone(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Bone"); tolua_function(tolua_S,"new",lua_ax_studio_Bone_constructor); - tolua_function(tolua_S,"isTransformDirty",lua_ax_studio_Bone_isTransformDirty); - tolua_function(tolua_S,"setBlendFunc",lua_ax_studio_Bone_setBlendFunc); - tolua_function(tolua_S,"isIgnoreMovementBoneData",lua_ax_studio_Bone_isIgnoreMovementBoneData); - tolua_function(tolua_S,"updateZOrder",lua_ax_studio_Bone_updateZOrder); - tolua_function(tolua_S,"getDisplayRenderNode",lua_ax_studio_Bone_getDisplayRenderNode); - tolua_function(tolua_S,"isBlendDirty",lua_ax_studio_Bone_isBlendDirty); - tolua_function(tolua_S,"addChildBone",lua_ax_studio_Bone_addChildBone); - tolua_function(tolua_S,"getWorldInfo",lua_ax_studio_Bone_getWorldInfo); - tolua_function(tolua_S,"getTween",lua_ax_studio_Bone_getTween); - tolua_function(tolua_S,"getParentBone",lua_ax_studio_Bone_getParentBone); - tolua_function(tolua_S,"updateColor",lua_ax_studio_Bone_updateColor); - tolua_function(tolua_S,"setTransformDirty",lua_ax_studio_Bone_setTransformDirty); - tolua_function(tolua_S,"getDisplayRenderNodeType",lua_ax_studio_Bone_getDisplayRenderNodeType); - tolua_function(tolua_S,"removeDisplay",lua_ax_studio_Bone_removeDisplay); - tolua_function(tolua_S,"setBoneData",lua_ax_studio_Bone_setBoneData); tolua_function(tolua_S,"init",lua_ax_studio_Bone_init); - tolua_function(tolua_S,"setParentBone",lua_ax_studio_Bone_setParentBone); tolua_function(tolua_S,"addDisplay",lua_ax_studio_Bone_addDisplay); - tolua_function(tolua_S,"getBlendFunc",lua_ax_studio_Bone_getBlendFunc); - tolua_function(tolua_S,"removeFromParent",lua_ax_studio_Bone_removeFromParent); - tolua_function(tolua_S,"getColliderDetector",lua_ax_studio_Bone_getColliderDetector); - tolua_function(tolua_S,"getChildArmature",lua_ax_studio_Bone_getChildArmature); - tolua_function(tolua_S,"getTweenData",lua_ax_studio_Bone_getTweenData); + tolua_function(tolua_S,"removeDisplay",lua_ax_studio_Bone_removeDisplay); tolua_function(tolua_S,"changeDisplayWithIndex",lua_ax_studio_Bone_changeDisplayWithIndex); tolua_function(tolua_S,"changeDisplayWithName",lua_ax_studio_Bone_changeDisplayWithName); - tolua_function(tolua_S,"setArmature",lua_ax_studio_Bone_setArmature); - tolua_function(tolua_S,"setBlendDirty",lua_ax_studio_Bone_setBlendDirty); + tolua_function(tolua_S,"addChildBone",lua_ax_studio_Bone_addChildBone); + tolua_function(tolua_S,"setParentBone",lua_ax_studio_Bone_setParentBone); + tolua_function(tolua_S,"getParentBone",lua_ax_studio_Bone_getParentBone); + tolua_function(tolua_S,"removeFromParent",lua_ax_studio_Bone_removeFromParent); tolua_function(tolua_S,"removeChildBone",lua_ax_studio_Bone_removeChildBone); - tolua_function(tolua_S,"setChildArmature",lua_ax_studio_Bone_setChildArmature); + tolua_function(tolua_S,"updateColor",lua_ax_studio_Bone_updateColor); + tolua_function(tolua_S,"updateZOrder",lua_ax_studio_Bone_updateZOrder); + tolua_function(tolua_S,"setLocalZOrder",lua_ax_studio_Bone_setLocalZOrder); + tolua_function(tolua_S,"getTween",lua_ax_studio_Bone_getTween); + tolua_function(tolua_S,"setTransformDirty",lua_ax_studio_Bone_setTransformDirty); + tolua_function(tolua_S,"isTransformDirty",lua_ax_studio_Bone_isTransformDirty); tolua_function(tolua_S,"getNodeToArmatureTransform",lua_ax_studio_Bone_getNodeToArmatureTransform); - tolua_function(tolua_S,"getDisplayManager",lua_ax_studio_Bone_getDisplayManager); - tolua_function(tolua_S,"getArmature",lua_ax_studio_Bone_getArmature); + tolua_function(tolua_S,"getDisplayRenderNode",lua_ax_studio_Bone_getDisplayRenderNode); + tolua_function(tolua_S,"getDisplayRenderNodeType",lua_ax_studio_Bone_getDisplayRenderNodeType); + tolua_function(tolua_S,"getColliderDetector",lua_ax_studio_Bone_getColliderDetector); + tolua_function(tolua_S,"setBoneData",lua_ax_studio_Bone_setBoneData); tolua_function(tolua_S,"getBoneData",lua_ax_studio_Bone_getBoneData); + tolua_function(tolua_S,"setArmature",lua_ax_studio_Bone_setArmature); + tolua_function(tolua_S,"getArmature",lua_ax_studio_Bone_getArmature); + tolua_function(tolua_S,"setChildArmature",lua_ax_studio_Bone_setChildArmature); + tolua_function(tolua_S,"getChildArmature",lua_ax_studio_Bone_getChildArmature); + tolua_function(tolua_S,"getDisplayManager",lua_ax_studio_Bone_getDisplayManager); + tolua_function(tolua_S,"isIgnoreMovementBoneData",lua_ax_studio_Bone_isIgnoreMovementBoneData); + tolua_function(tolua_S,"setBlendFunc",lua_ax_studio_Bone_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_studio_Bone_getBlendFunc); + tolua_function(tolua_S,"setBlendDirty",lua_ax_studio_Bone_setBlendDirty); + tolua_function(tolua_S,"isBlendDirty",lua_ax_studio_Bone_isBlendDirty); + tolua_function(tolua_S,"getTweenData",lua_ax_studio_Bone_getTweenData); + tolua_function(tolua_S,"getWorldInfo",lua_ax_studio_Bone_getWorldInfo); tolua_function(tolua_S,"create", lua_ax_studio_Bone_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::Bone).name(); // rtti is literal storage @@ -8637,6 +8688,106 @@ int lua_register_ax_studio_BatchNode(lua_State* tolua_S) return 1; } +int lua_ax_studio_ArmatureAnimation_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::Armature* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0, "ccs.ArmatureAnimation:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_init'", nullptr); + return 0; + } + auto&& ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_init'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureAnimation_setSpeedScale(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_setSpeedScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ArmatureAnimation:setSpeedScale"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_setSpeedScale'", nullptr); + return 0; + } + cobj->setSpeedScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:setSpeedScale",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_setSpeedScale'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ArmatureAnimation_getSpeedScale(lua_State* tolua_S) { int argc = 0; @@ -8771,7 +8922,7 @@ int lua_ax_studio_ArmatureAnimation_play(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureAnimation_gotoAndPause(lua_State* tolua_S) +int lua_ax_studio_ArmatureAnimation_playWithIndex(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; @@ -8791,7 +8942,7 @@ int lua_ax_studio_ArmatureAnimation_gotoAndPause(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_gotoAndPause'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); return 0; } #endif @@ -8801,356 +8952,59 @@ int lua_ax_studio_ArmatureAnimation_gotoAndPause(lua_State* tolua_S) { int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:gotoAndPause"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_gotoAndPause'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); return 0; } - cobj->gotoAndPause(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:gotoAndPause",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_gotoAndPause'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureAnimation_playWithIndexes(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::vector arg0; - - ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } - cobj->playWithIndexes(arg0); + cobj->playWithIndex(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { - std::vector arg0; + int arg0; int arg1; - ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); return 0; } - cobj->playWithIndexes(arg0, arg1); + cobj->playWithIndex(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) - { - std::vector arg0; - int arg1; - bool arg2; - - ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); - - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccs.ArmatureAnimation:playWithIndexes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } - cobj->playWithIndexes(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndexes",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureAnimation_setAnimationData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_setAnimationData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::AnimationData* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.AnimationData",&arg0, "ccs.ArmatureAnimation:setAnimationData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_setAnimationData'", nullptr); - return 0; - } - cobj->setAnimationData(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:setAnimationData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_setAnimationData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureAnimation_setSpeedScale(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_setSpeedScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ArmatureAnimation:setSpeedScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_setSpeedScale'", nullptr); - return 0; - } - cobj->setSpeedScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:setSpeedScale",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_setSpeedScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureAnimation_getAnimationData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_getAnimationData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_getAnimationData'", nullptr); - return 0; - } - auto&& ret = cobj->getAnimationData(); - object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:getAnimationData",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_getAnimationData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureAnimation_gotoAndPlay(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_gotoAndPlay'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) { int arg0; + int arg1; + int arg2; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:gotoAndPlay"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccs.ArmatureAnimation:playWithIndex"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_gotoAndPlay'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); return 0; } - cobj->gotoAndPlay(arg0); + cobj->playWithIndex(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:gotoAndPlay",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_gotoAndPlay'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureAnimation_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::Armature* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0, "ccs.ArmatureAnimation:init"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_init'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'.",&tolua_err); #endif return 0; @@ -9242,6 +9096,193 @@ int lua_ax_studio_ArmatureAnimation_playWithNames(lua_State* tolua_S) return 0; } +int lua_ax_studio_ArmatureAnimation_playWithIndexes(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::vector arg0; + + ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); + return 0; + } + cobj->playWithIndexes(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::vector arg0; + int arg1; + + ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); + return 0; + } + cobj->playWithIndexes(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 3) + { + std::vector arg0; + int arg1; + bool arg2; + + ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); + + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccs.ArmatureAnimation:playWithIndexes"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'", nullptr); + return 0; + } + cobj->playWithIndexes(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndexes",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_playWithIndexes'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureAnimation_gotoAndPlay(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_gotoAndPlay'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:gotoAndPlay"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_gotoAndPlay'", nullptr); + return 0; + } + cobj->gotoAndPlay(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:gotoAndPlay",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_gotoAndPlay'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureAnimation_gotoAndPause(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_gotoAndPause'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:gotoAndPause"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_gotoAndPause'", nullptr); + return 0; + } + cobj->gotoAndPause(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:gotoAndPause",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_gotoAndPause'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ArmatureAnimation_getMovementCount(lua_State* tolua_S) { int argc = 0; @@ -9289,93 +9330,6 @@ int lua_ax_studio_ArmatureAnimation_getMovementCount(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureAnimation_playWithIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); - return 0; - } - cobj->playWithIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - int arg0; - int arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); - return 0; - } - cobj->playWithIndex(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 3) - { - int arg0; - int arg1; - int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccs.ArmatureAnimation:playWithIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'", nullptr); - return 0; - } - cobj->playWithIndex(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_playWithIndex'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ArmatureAnimation_getCurrentMovementID(lua_State* tolua_S) { int argc = 0; @@ -9423,6 +9377,103 @@ int lua_ax_studio_ArmatureAnimation_getCurrentMovementID(lua_State* tolua_S) return 0; } +int lua_ax_studio_ArmatureAnimation_setAnimationData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_setAnimationData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::AnimationData* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.AnimationData",&arg0, "ccs.ArmatureAnimation:setAnimationData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_setAnimationData'", nullptr); + return 0; + } + cobj->setAnimationData(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:setAnimationData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_setAnimationData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureAnimation_getAnimationData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureAnimation_getAnimationData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureAnimation_getAnimationData'", nullptr); + return 0; + } + auto&& ret = cobj->getAnimationData(); + object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:getAnimationData",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureAnimation_getAnimationData'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ArmatureAnimation_create(lua_State* tolua_S) { int argc = 0; @@ -9509,19 +9560,19 @@ int lua_register_ax_studio_ArmatureAnimation(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ArmatureAnimation"); tolua_function(tolua_S,"new",lua_ax_studio_ArmatureAnimation_constructor); + tolua_function(tolua_S,"init",lua_ax_studio_ArmatureAnimation_init); + tolua_function(tolua_S,"setSpeedScale",lua_ax_studio_ArmatureAnimation_setSpeedScale); tolua_function(tolua_S,"getSpeedScale",lua_ax_studio_ArmatureAnimation_getSpeedScale); tolua_function(tolua_S,"play",lua_ax_studio_ArmatureAnimation_play); - tolua_function(tolua_S,"gotoAndPause",lua_ax_studio_ArmatureAnimation_gotoAndPause); - tolua_function(tolua_S,"playWithIndexes",lua_ax_studio_ArmatureAnimation_playWithIndexes); - tolua_function(tolua_S,"setAnimationData",lua_ax_studio_ArmatureAnimation_setAnimationData); - tolua_function(tolua_S,"setSpeedScale",lua_ax_studio_ArmatureAnimation_setSpeedScale); - tolua_function(tolua_S,"getAnimationData",lua_ax_studio_ArmatureAnimation_getAnimationData); - tolua_function(tolua_S,"gotoAndPlay",lua_ax_studio_ArmatureAnimation_gotoAndPlay); - tolua_function(tolua_S,"init",lua_ax_studio_ArmatureAnimation_init); - tolua_function(tolua_S,"playWithNames",lua_ax_studio_ArmatureAnimation_playWithNames); - tolua_function(tolua_S,"getMovementCount",lua_ax_studio_ArmatureAnimation_getMovementCount); tolua_function(tolua_S,"playWithIndex",lua_ax_studio_ArmatureAnimation_playWithIndex); + tolua_function(tolua_S,"playWithNames",lua_ax_studio_ArmatureAnimation_playWithNames); + tolua_function(tolua_S,"playWithIndexes",lua_ax_studio_ArmatureAnimation_playWithIndexes); + tolua_function(tolua_S,"gotoAndPlay",lua_ax_studio_ArmatureAnimation_gotoAndPlay); + tolua_function(tolua_S,"gotoAndPause",lua_ax_studio_ArmatureAnimation_gotoAndPause); + tolua_function(tolua_S,"getMovementCount",lua_ax_studio_ArmatureAnimation_getMovementCount); tolua_function(tolua_S,"getCurrentMovementID",lua_ax_studio_ArmatureAnimation_getCurrentMovementID); + tolua_function(tolua_S,"setAnimationData",lua_ax_studio_ArmatureAnimation_setAnimationData); + tolua_function(tolua_S,"getAnimationData",lua_ax_studio_ArmatureAnimation_getAnimationData); tolua_function(tolua_S,"create", lua_ax_studio_ArmatureAnimation_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ArmatureAnimation).name(); // rtti is literal storage @@ -9530,7 +9581,7 @@ int lua_register_ax_studio_ArmatureAnimation(lua_State* tolua_S) return 1; } -int lua_ax_studio_ArmatureDataManager_removeAnimationData(lua_State* tolua_S) +int lua_ax_studio_ArmatureDataManager_init(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; @@ -9550,32 +9601,29 @@ int lua_ax_studio_ArmatureDataManager_removeAnimationData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeAnimationData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeAnimationData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeAnimationData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_init'", nullptr); return 0; } - cobj->removeAnimationData(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeAnimationData",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeAnimationData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_init'.",&tolua_err); #endif return 0; @@ -9653,216 +9701,6 @@ int lua_ax_studio_ArmatureDataManager_addArmatureData(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureDataManager_addArmatureFileInfo(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_addArmatureFileInfo'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 3) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:addArmatureFileInfo"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ArmatureDataManager:addArmatureFileInfo"); - - if (!ok) { break; } - std::string_view arg2; - ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccs.ArmatureDataManager:addArmatureFileInfo"); - - if (!ok) { break; } - cobj->addArmatureFileInfo(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:addArmatureFileInfo"); - - if (!ok) { break; } - cobj->addArmatureFileInfo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:addArmatureFileInfo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_addArmatureFileInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeArmatureFileInfo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo'", nullptr); - return 0; - } - cobj->removeArmatureFileInfo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeArmatureFileInfo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_getTextureDatas(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getTextureDatas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getTextureDatas'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureDatas(); - ccmap_string_key_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getTextureDatas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getTextureDatas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_getTextureData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getTextureData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:getTextureData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getTextureData'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureData(arg0); - object_to_luaval(tolua_S, "ccs.TextureData",(cocostudio::TextureData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getTextureData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getTextureData'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ArmatureDataManager_getArmatureData(lua_State* tolua_S) { int argc = 0; @@ -9913,7 +9751,7 @@ int lua_ax_studio_ArmatureDataManager_getArmatureData(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureDataManager_getAnimationData(lua_State* tolua_S) +int lua_ax_studio_ArmatureDataManager_removeArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; @@ -9933,7 +9771,7 @@ int lua_ax_studio_ArmatureDataManager_getAnimationData(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getAnimationData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeArmatureData'", nullptr); return 0; } #endif @@ -9943,22 +9781,22 @@ int lua_ax_studio_ArmatureDataManager_getAnimationData(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:getAnimationData"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeArmatureData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getAnimationData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeArmatureData'", nullptr); return 0; } - auto&& ret = cobj->getAnimationData(arg0); - object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); + cobj->removeArmatureData(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getAnimationData",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeArmatureData",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getAnimationData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeArmatureData'.",&tolua_err); #endif return 0; @@ -10036,7 +9874,7 @@ int lua_ax_studio_ArmatureDataManager_addAnimationData(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureDataManager_init(lua_State* tolua_S) +int lua_ax_studio_ArmatureDataManager_getAnimationData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; @@ -10056,54 +9894,7 @@ int lua_ax_studio_ArmatureDataManager_init(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_removeArmatureData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeArmatureData'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getAnimationData'", nullptr); return 0; } #endif @@ -10113,219 +9904,72 @@ int lua_ax_studio_ArmatureDataManager_removeArmatureData(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeArmatureData"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:getAnimationData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeArmatureData'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getAnimationData'", nullptr); return 0; } - cobj->removeArmatureData(arg0); + auto&& ret = cobj->getAnimationData(arg0); + object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getAnimationData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getAnimationData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_removeAnimationData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeAnimationData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeAnimationData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeAnimationData'", nullptr); + return 0; + } + cobj->removeAnimationData(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeArmatureData",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeAnimationData",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeArmatureData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_getArmatureDatas(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getArmatureDatas'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getArmatureDatas'", nullptr); - return 0; - } - auto&& ret = cobj->getArmatureDatas(); - ccmap_string_key_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getArmatureDatas",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getArmatureDatas'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_addRelativeData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_addRelativeData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:addRelativeData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_addRelativeData'", nullptr); - return 0; - } - cobj->addRelativeData(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:addRelativeData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_addRelativeData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_removeTextureData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeTextureData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeTextureData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeTextureData'", nullptr); - return 0; - } - cobj->removeTextureData(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeTextureData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeTextureData'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ArmatureDataManager_getRelativeData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureDataManager* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getRelativeData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:getRelativeData"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getRelativeData'", nullptr); - return 0; - } - auto&& ret = cobj->getRelativeData(arg0); - #pragma warning NO CONVERSION FROM NATIVE FOR RelativeData*; - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getRelativeData",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getRelativeData'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeAnimationData'.",&tolua_err); #endif return 0; @@ -10403,7 +10047,7 @@ int lua_ax_studio_ArmatureDataManager_addTextureData(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureDataManager_getAnimationDatas(lua_State* tolua_S) +int lua_ax_studio_ArmatureDataManager_getTextureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; @@ -10423,34 +10067,37 @@ int lua_ax_studio_ArmatureDataManager_getAnimationDatas(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getAnimationDatas'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getTextureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:getTextureData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getAnimationDatas'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getTextureData'", nullptr); return 0; } - auto&& ret = cobj->getAnimationDatas(); - ccmap_string_key_to_luaval(tolua_S, ret); + auto&& ret = cobj->getTextureData(arg0); + object_to_luaval(tolua_S, "ccs.TextureData",(cocostudio::TextureData*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getAnimationDatas",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getTextureData",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getAnimationDatas'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getTextureData'.",&tolua_err); #endif return 0; } -int lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile(lua_State* tolua_S) +int lua_ax_studio_ArmatureDataManager_removeTextureData(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureDataManager* cobj = nullptr; @@ -10470,29 +10117,95 @@ int lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeTextureData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeTextureData"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeTextureData'", nullptr); return 0; } - auto&& ret = cobj->isAutoLoadSpriteFile(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->removeTextureData(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:isAutoLoadSpriteFile",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeTextureData",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeTextureData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_addArmatureFileInfo(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_addArmatureFileInfo'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:addArmatureFileInfo"); + + if (!ok) { break; } + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ArmatureDataManager:addArmatureFileInfo"); + + if (!ok) { break; } + std::string_view arg2; + ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccs.ArmatureDataManager:addArmatureFileInfo"); + + if (!ok) { break; } + cobj->addArmatureFileInfo(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:addArmatureFileInfo"); + + if (!ok) { break; } + cobj->addArmatureFileInfo(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:addArmatureFileInfo",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_addArmatureFileInfo'.",&tolua_err); #endif return 0; @@ -10570,38 +10283,342 @@ int lua_ax_studio_ArmatureDataManager_addSpriteFrameFromFile(lua_State* tolua_S) return 0; } -int lua_ax_studio_ArmatureDataManager_destroyInstance(lua_State* tolua_S) +int lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo(lua_State* tolua_S) { int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:removeArmatureFileInfo"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_destroyInstance'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo'", nullptr); return 0; } - cocostudio::ArmatureDataManager::destroyInstance(); + cobj->removeArmatureFileInfo(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ArmatureDataManager:destroyInstance",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:removeArmatureFileInfo",argc, 1); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_destroyInstance'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo'.",&tolua_err); #endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile'", nullptr); + return 0; + } + auto&& ret = cobj->isAutoLoadSpriteFile(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:isAutoLoadSpriteFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_getArmatureDatas(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getArmatureDatas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getArmatureDatas'", nullptr); + return 0; + } + auto&& ret = cobj->getArmatureDatas(); + ccmap_string_key_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getArmatureDatas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getArmatureDatas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_getAnimationDatas(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getAnimationDatas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getAnimationDatas'", nullptr); + return 0; + } + auto&& ret = cobj->getAnimationDatas(); + ccmap_string_key_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getAnimationDatas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getAnimationDatas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_getTextureDatas(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getTextureDatas'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getTextureDatas'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureDatas(); + ccmap_string_key_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getTextureDatas",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getTextureDatas'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_addRelativeData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_addRelativeData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:addRelativeData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_addRelativeData'", nullptr); + return 0; + } + cobj->addRelativeData(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:addRelativeData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_addRelativeData'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ArmatureDataManager_getRelativeData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureDataManager* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureDataManager*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ArmatureDataManager_getRelativeData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ArmatureDataManager:getRelativeData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_getRelativeData'", nullptr); + return 0; + } + auto&& ret = cobj->getRelativeData(arg0); + #pragma warning NO CONVERSION FROM NATIVE FOR RelativeData*; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureDataManager:getRelativeData",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_getRelativeData'.",&tolua_err); +#endif + return 0; } int lua_ax_studio_ArmatureDataManager_getInstance(lua_State* tolua_S) @@ -10638,6 +10655,40 @@ int lua_ax_studio_ArmatureDataManager_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_studio_ArmatureDataManager_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.ArmatureDataManager",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ArmatureDataManager_destroyInstance'", nullptr); + return 0; + } + cocostudio::ArmatureDataManager::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ArmatureDataManager:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ArmatureDataManager_destroyInstance'.",&tolua_err); +#endif + return 0; +} static int lua_ax_studio_ArmatureDataManager_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ArmatureDataManager)"); @@ -10650,27 +10701,27 @@ int lua_register_ax_studio_ArmatureDataManager(lua_State* tolua_S) tolua_cclass(tolua_S,"ArmatureDataManager","ccs.ArmatureDataManager","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"ArmatureDataManager"); - tolua_function(tolua_S,"removeAnimationData",lua_ax_studio_ArmatureDataManager_removeAnimationData); - tolua_function(tolua_S,"addArmatureData",lua_ax_studio_ArmatureDataManager_addArmatureData); - tolua_function(tolua_S,"addArmatureFileInfo",lua_ax_studio_ArmatureDataManager_addArmatureFileInfo); - tolua_function(tolua_S,"removeArmatureFileInfo",lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo); - tolua_function(tolua_S,"getTextureDatas",lua_ax_studio_ArmatureDataManager_getTextureDatas); - tolua_function(tolua_S,"getTextureData",lua_ax_studio_ArmatureDataManager_getTextureData); - tolua_function(tolua_S,"getArmatureData",lua_ax_studio_ArmatureDataManager_getArmatureData); - tolua_function(tolua_S,"getAnimationData",lua_ax_studio_ArmatureDataManager_getAnimationData); - tolua_function(tolua_S,"addAnimationData",lua_ax_studio_ArmatureDataManager_addAnimationData); tolua_function(tolua_S,"init",lua_ax_studio_ArmatureDataManager_init); + tolua_function(tolua_S,"addArmatureData",lua_ax_studio_ArmatureDataManager_addArmatureData); + tolua_function(tolua_S,"getArmatureData",lua_ax_studio_ArmatureDataManager_getArmatureData); tolua_function(tolua_S,"removeArmatureData",lua_ax_studio_ArmatureDataManager_removeArmatureData); - tolua_function(tolua_S,"getArmatureDatas",lua_ax_studio_ArmatureDataManager_getArmatureDatas); - tolua_function(tolua_S,"addRelativeData",lua_ax_studio_ArmatureDataManager_addRelativeData); - tolua_function(tolua_S,"removeTextureData",lua_ax_studio_ArmatureDataManager_removeTextureData); - tolua_function(tolua_S,"getRelativeData",lua_ax_studio_ArmatureDataManager_getRelativeData); + tolua_function(tolua_S,"addAnimationData",lua_ax_studio_ArmatureDataManager_addAnimationData); + tolua_function(tolua_S,"getAnimationData",lua_ax_studio_ArmatureDataManager_getAnimationData); + tolua_function(tolua_S,"removeAnimationData",lua_ax_studio_ArmatureDataManager_removeAnimationData); tolua_function(tolua_S,"addTextureData",lua_ax_studio_ArmatureDataManager_addTextureData); - tolua_function(tolua_S,"getAnimationDatas",lua_ax_studio_ArmatureDataManager_getAnimationDatas); - tolua_function(tolua_S,"isAutoLoadSpriteFile",lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile); + tolua_function(tolua_S,"getTextureData",lua_ax_studio_ArmatureDataManager_getTextureData); + tolua_function(tolua_S,"removeTextureData",lua_ax_studio_ArmatureDataManager_removeTextureData); + tolua_function(tolua_S,"addArmatureFileInfo",lua_ax_studio_ArmatureDataManager_addArmatureFileInfo); tolua_function(tolua_S,"addSpriteFrameFromFile",lua_ax_studio_ArmatureDataManager_addSpriteFrameFromFile); - tolua_function(tolua_S,"destroyInstance", lua_ax_studio_ArmatureDataManager_destroyInstance); + tolua_function(tolua_S,"removeArmatureFileInfo",lua_ax_studio_ArmatureDataManager_removeArmatureFileInfo); + tolua_function(tolua_S,"isAutoLoadSpriteFile",lua_ax_studio_ArmatureDataManager_isAutoLoadSpriteFile); + tolua_function(tolua_S,"getArmatureDatas",lua_ax_studio_ArmatureDataManager_getArmatureDatas); + tolua_function(tolua_S,"getAnimationDatas",lua_ax_studio_ArmatureDataManager_getAnimationDatas); + tolua_function(tolua_S,"getTextureDatas",lua_ax_studio_ArmatureDataManager_getTextureDatas); + tolua_function(tolua_S,"addRelativeData",lua_ax_studio_ArmatureDataManager_addRelativeData); + tolua_function(tolua_S,"getRelativeData",lua_ax_studio_ArmatureDataManager_getRelativeData); tolua_function(tolua_S,"getInstance", lua_ax_studio_ArmatureDataManager_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_studio_ArmatureDataManager_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ArmatureDataManager).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ArmatureDataManager"; @@ -10678,6 +10729,118 @@ int lua_register_ax_studio_ArmatureDataManager(lua_State* tolua_S) return 1; } +int lua_ax_studio_Armature_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_init'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.Armature:init"); + + if (!ok) { break; } + cocostudio::Bone* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccs.Bone",&arg1, "ccs.Armature:init"); + + if (!ok) { break; } + bool ret = cobj->init(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.Armature:init"); + + if (!ok) { break; } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:init",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_init'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Armature_addBone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_addBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocostudio::Bone* arg0; + std::string_view arg1; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Armature:addBone"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.Armature:addBone"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_addBone'", nullptr); + return 0; + } + cobj->addBone(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:addBone",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_addBone'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_Armature_getBone(lua_State* tolua_S) { int argc = 0; @@ -10781,7 +10944,7 @@ int lua_ax_studio_Armature_changeBoneParent(lua_State* tolua_S) return 0; } -int lua_ax_studio_Armature_setAnimation(lua_State* tolua_S) +int lua_ax_studio_Armature_removeBone(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -10801,32 +10964,82 @@ int lua_ax_studio_Armature_setAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setAnimation'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_removeBone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { - cocostudio::ArmatureAnimation* arg0; + cocostudio::Bone* arg0; + bool arg1; - ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureAnimation",&arg0, "ccs.Armature:setAnimation"); + ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Armature:removeBone"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.Armature:removeBone"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setAnimation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_removeBone'", nullptr); return 0; } - cobj->setAnimation(arg0); + cobj->removeBone(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setAnimation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:removeBone",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setAnimation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_removeBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Armature_getBoneDic(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getBoneDic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getBoneDic'", nullptr); + return 0; + } + auto&& ret = cobj->getBoneDic(); + ccmap_string_key_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getBoneDic",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getBoneDic'.",&tolua_err); #endif return 0; @@ -10884,7 +11097,7 @@ int lua_ax_studio_Armature_getBoneAtPoint(lua_State* tolua_S) return 0; } -int lua_ax_studio_Armature_getArmatureTransformDirty(lua_State* tolua_S) +int lua_ax_studio_Armature_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -10904,7 +11117,57 @@ int lua_ax_studio_Armature_getArmatureTransformDirty(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getArmatureTransformDirty'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.Armature:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Armature_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getBlendFunc'", nullptr); return 0; } #endif @@ -10914,69 +11177,19 @@ int lua_ax_studio_Armature_getArmatureTransformDirty(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getArmatureTransformDirty'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getBlendFunc'", nullptr); return 0; } - auto&& ret = cobj->getArmatureTransformDirty(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getArmatureTransformDirty",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getBlendFunc",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getArmatureTransformDirty'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_setVersion(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setVersion'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.Armature:setVersion"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setVersion'", nullptr); - return 0; - } - cobj->setVersion(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setVersion",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setVersion'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getBlendFunc'.",&tolua_err); #endif return 0; @@ -11028,7 +11241,7 @@ int lua_ax_studio_Armature_updateOffsetPoint(lua_State* tolua_S) return 0; } -int lua_ax_studio_Armature_getParentBone(lua_State* tolua_S) +int lua_ax_studio_Armature_getOffsetPoints(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -11048,7 +11261,7 @@ int lua_ax_studio_Armature_getParentBone(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getParentBone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getOffsetPoints'", nullptr); return 0; } #endif @@ -11058,24 +11271,24 @@ int lua_ax_studio_Armature_getParentBone(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getParentBone'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getOffsetPoints'", nullptr); return 0; } - auto&& ret = cobj->getParentBone(); - object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); + auto&& ret = cobj->getOffsetPoints(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getParentBone",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getOffsetPoints",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getParentBone'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getOffsetPoints'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Armature_removeBone(lua_State* tolua_S) +int lua_ax_studio_Armature_setAnimation(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -11095,166 +11308,7 @@ int lua_ax_studio_Armature_removeBone(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_removeBone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocostudio::Bone* arg0; - bool arg1; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Armature:removeBone"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.Armature:removeBone"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_removeBone'", nullptr); - return 0; - } - cobj->removeBone(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:removeBone",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_removeBone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_getBatchNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getBatchNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getBatchNode'", nullptr); - return 0; - } - auto&& ret = cobj->getBatchNode(); - object_to_luaval(tolua_S, "ccs.BatchNode",(cocostudio::BatchNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getBatchNode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getBatchNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_init'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.Armature:init"); - - if (!ok) { break; } - cocostudio::Bone* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccs.Bone",&arg1, "ccs.Armature:init"); - - if (!ok) { break; } - bool ret = cobj->init(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.Armature:init"); - - if (!ok) { break; } - bool ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:init",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_setParentBone(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setParentBone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setAnimation'", nullptr); return 0; } #endif @@ -11262,29 +11316,29 @@ int lua_ax_studio_Armature_setParentBone(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocostudio::Bone* arg0; + cocostudio::ArmatureAnimation* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Armature:setParentBone"); + ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureAnimation",&arg0, "ccs.Armature:setAnimation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setParentBone'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setAnimation'", nullptr); return 0; } - cobj->setParentBone(arg0); + cobj->setAnimation(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setParentBone",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setAnimation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setParentBone'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setAnimation'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Armature_setBatchNode(lua_State* tolua_S) +int lua_ax_studio_Armature_getAnimation(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -11304,57 +11358,7 @@ int lua_ax_studio_Armature_setBatchNode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setBatchNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::BatchNode* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.BatchNode",&arg0, "ccs.Armature:setBatchNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setBatchNode'", nullptr); - return 0; - } - cobj->setBatchNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setBatchNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setBatchNode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getAnimation'", nullptr); return 0; } #endif @@ -11364,19 +11368,66 @@ int lua_ax_studio_Armature_getBlendFunc(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getAnimation'", nullptr); return 0; } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); + auto&& ret = cobj->getAnimation(); + object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getBlendFunc",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getAnimation",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getAnimation'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Armature_getArmatureTransformDirty(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getArmatureTransformDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getArmatureTransformDirty'", nullptr); + return 0; + } + auto&& ret = cobj->getArmatureTransformDirty(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getArmatureTransformDirty",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getArmatureTransformDirty'.",&tolua_err); #endif return 0; @@ -11431,59 +11482,6 @@ int lua_ax_studio_Armature_setArmatureData(lua_State* tolua_S) return 0; } -int lua_ax_studio_Armature_addBone(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_addBone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocostudio::Bone* arg0; - std::string_view arg1; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Armature:addBone"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.Armature:addBone"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_addBone'", nullptr); - return 0; - } - cobj->addBone(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:addBone",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_addBone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Armature_getArmatureData(lua_State* tolua_S) { int argc = 0; @@ -11531,6 +11529,153 @@ int lua_ax_studio_Armature_getArmatureData(lua_State* tolua_S) return 0; } +int lua_ax_studio_Armature_setParentBone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setParentBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::Bone* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Bone",&arg0, "ccs.Armature:setParentBone"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setParentBone'", nullptr); + return 0; + } + cobj->setParentBone(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setParentBone",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setParentBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Armature_getParentBone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getParentBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getParentBone'", nullptr); + return 0; + } + auto&& ret = cobj->getParentBone(); + object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getParentBone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getParentBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Armature_setVersion(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Armature* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setVersion'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.Armature:setVersion"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setVersion'", nullptr); + return 0; + } + cobj->setVersion(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setVersion",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setVersion'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_Armature_getVersion(lua_State* tolua_S) { int argc = 0; @@ -11578,7 +11723,7 @@ int lua_ax_studio_Armature_getVersion(lua_State* tolua_S) return 0; } -int lua_ax_studio_Armature_getAnimation(lua_State* tolua_S) +int lua_ax_studio_Armature_setBatchNode(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -11598,101 +11743,7 @@ int lua_ax_studio_Armature_getAnimation(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getAnimation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getAnimation'", nullptr); - return 0; - } - auto&& ret = cobj->getAnimation(); - object_to_luaval(tolua_S, "ccs.ArmatureAnimation",(cocostudio::ArmatureAnimation*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getAnimation",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getAnimation'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_getOffsetPoints(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getOffsetPoints'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getOffsetPoints'", nullptr); - return 0; - } - auto&& ret = cobj->getOffsetPoints(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getOffsetPoints",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getOffsetPoints'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Armature_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_setBatchNode'", nullptr); return 0; } #endif @@ -11700,29 +11751,29 @@ int lua_ax_studio_Armature_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::BlendFunc arg0; + cocostudio::BatchNode* arg0; - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.Armature:setBlendFunc"); + ok &= luaval_to_object(tolua_S, 2, "ccs.BatchNode",&arg0, "ccs.Armature:setBatchNode"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_setBatchNode'", nullptr); return 0; } - cobj->setBlendFunc(arg0); + cobj->setBatchNode(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setBlendFunc",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:setBatchNode",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_setBatchNode'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Armature_getBoneDic(lua_State* tolua_S) +int lua_ax_studio_Armature_getBatchNode(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -11742,7 +11793,7 @@ int lua_ax_studio_Armature_getBoneDic(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getBoneDic'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Armature_getBatchNode'", nullptr); return 0; } #endif @@ -11752,19 +11803,19 @@ int lua_ax_studio_Armature_getBoneDic(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getBoneDic'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Armature_getBatchNode'", nullptr); return 0; } - auto&& ret = cobj->getBoneDic(); - ccmap_string_key_to_luaval(tolua_S, ret); + auto&& ret = cobj->getBatchNode(); + object_to_luaval(tolua_S, "ccs.BatchNode",(cocostudio::BatchNode*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getBoneDic",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:getBatchNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getBoneDic'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Armature_getBatchNode'.",&tolua_err); #endif return 0; @@ -11880,28 +11931,28 @@ int lua_register_ax_studio_Armature(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Armature"); tolua_function(tolua_S,"new",lua_ax_studio_Armature_constructor); + tolua_function(tolua_S,"init",lua_ax_studio_Armature_init); + tolua_function(tolua_S,"addBone",lua_ax_studio_Armature_addBone); tolua_function(tolua_S,"getBone",lua_ax_studio_Armature_getBone); tolua_function(tolua_S,"changeBoneParent",lua_ax_studio_Armature_changeBoneParent); - tolua_function(tolua_S,"setAnimation",lua_ax_studio_Armature_setAnimation); - tolua_function(tolua_S,"getBoneAtPoint",lua_ax_studio_Armature_getBoneAtPoint); - tolua_function(tolua_S,"getArmatureTransformDirty",lua_ax_studio_Armature_getArmatureTransformDirty); - tolua_function(tolua_S,"setVersion",lua_ax_studio_Armature_setVersion); - tolua_function(tolua_S,"updateOffsetPoint",lua_ax_studio_Armature_updateOffsetPoint); - tolua_function(tolua_S,"getParentBone",lua_ax_studio_Armature_getParentBone); tolua_function(tolua_S,"removeBone",lua_ax_studio_Armature_removeBone); - tolua_function(tolua_S,"getBatchNode",lua_ax_studio_Armature_getBatchNode); - tolua_function(tolua_S,"init",lua_ax_studio_Armature_init); - tolua_function(tolua_S,"setParentBone",lua_ax_studio_Armature_setParentBone); - tolua_function(tolua_S,"setBatchNode",lua_ax_studio_Armature_setBatchNode); - tolua_function(tolua_S,"getBlendFunc",lua_ax_studio_Armature_getBlendFunc); - tolua_function(tolua_S,"setArmatureData",lua_ax_studio_Armature_setArmatureData); - tolua_function(tolua_S,"addBone",lua_ax_studio_Armature_addBone); - tolua_function(tolua_S,"getArmatureData",lua_ax_studio_Armature_getArmatureData); - tolua_function(tolua_S,"getVersion",lua_ax_studio_Armature_getVersion); - tolua_function(tolua_S,"getAnimation",lua_ax_studio_Armature_getAnimation); - tolua_function(tolua_S,"getOffsetPoints",lua_ax_studio_Armature_getOffsetPoints); - tolua_function(tolua_S,"setBlendFunc",lua_ax_studio_Armature_setBlendFunc); tolua_function(tolua_S,"getBoneDic",lua_ax_studio_Armature_getBoneDic); + tolua_function(tolua_S,"getBoneAtPoint",lua_ax_studio_Armature_getBoneAtPoint); + tolua_function(tolua_S,"setBlendFunc",lua_ax_studio_Armature_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_studio_Armature_getBlendFunc); + tolua_function(tolua_S,"updateOffsetPoint",lua_ax_studio_Armature_updateOffsetPoint); + tolua_function(tolua_S,"getOffsetPoints",lua_ax_studio_Armature_getOffsetPoints); + tolua_function(tolua_S,"setAnimation",lua_ax_studio_Armature_setAnimation); + tolua_function(tolua_S,"getAnimation",lua_ax_studio_Armature_getAnimation); + tolua_function(tolua_S,"getArmatureTransformDirty",lua_ax_studio_Armature_getArmatureTransformDirty); + tolua_function(tolua_S,"setArmatureData",lua_ax_studio_Armature_setArmatureData); + tolua_function(tolua_S,"getArmatureData",lua_ax_studio_Armature_getArmatureData); + tolua_function(tolua_S,"setParentBone",lua_ax_studio_Armature_setParentBone); + tolua_function(tolua_S,"getParentBone",lua_ax_studio_Armature_getParentBone); + tolua_function(tolua_S,"setVersion",lua_ax_studio_Armature_setVersion); + tolua_function(tolua_S,"getVersion",lua_ax_studio_Armature_getVersion); + tolua_function(tolua_S,"setBatchNode",lua_ax_studio_Armature_setBatchNode); + tolua_function(tolua_S,"getBatchNode",lua_ax_studio_Armature_getBatchNode); tolua_function(tolua_S,"create", lua_ax_studio_Armature_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::Armature).name(); // rtti is literal storage @@ -11910,7 +11961,7 @@ int lua_register_ax_studio_Armature(lua_State* tolua_S) return 1; } -int lua_ax_studio_Skin_getBone(lua_State* tolua_S) +int lua_ax_studio_Skin_updateArmatureTransform(lua_State* tolua_S) { int argc = 0; cocostudio::Skin* cobj = nullptr; @@ -11930,7 +11981,7 @@ int lua_ax_studio_Skin_getBone(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Skin_getBone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Skin_updateArmatureTransform'", nullptr); return 0; } #endif @@ -11940,19 +11991,19 @@ int lua_ax_studio_Skin_getBone(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Skin_getBone'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Skin_updateArmatureTransform'", nullptr); return 0; } - auto&& ret = cobj->getBone(); - object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); + cobj->updateArmatureTransform(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:getBone",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:updateArmatureTransform",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Skin_getBone'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Skin_updateArmatureTransform'.",&tolua_err); #endif return 0; @@ -12004,100 +12055,6 @@ int lua_ax_studio_Skin_getNodeToWorldTransformAR(lua_State* tolua_S) return 0; } -int lua_ax_studio_Skin_getDisplayName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Skin* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Skin_getDisplayName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Skin_getDisplayName'", nullptr); - return 0; - } - auto&& ret = cobj->getDisplayName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:getDisplayName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Skin_getDisplayName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Skin_updateArmatureTransform(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Skin* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Skin_updateArmatureTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Skin_updateArmatureTransform'", nullptr); - return 0; - } - cobj->updateArmatureTransform(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:updateArmatureTransform",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Skin_updateArmatureTransform'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Skin_setBone(lua_State* tolua_S) { int argc = 0; @@ -12148,6 +12105,100 @@ int lua_ax_studio_Skin_setBone(lua_State* tolua_S) return 0; } +int lua_ax_studio_Skin_getBone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Skin* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Skin_getBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Skin_getBone'", nullptr); + return 0; + } + auto&& ret = cobj->getBone(); + object_to_luaval(tolua_S, "ccs.Bone",(cocostudio::Bone*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:getBone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Skin_getBone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Skin_getDisplayName(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::Skin* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Skin_getDisplayName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Skin_getDisplayName'", nullptr); + return 0; + } + auto&& ret = cobj->getDisplayName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:getDisplayName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Skin_getDisplayName'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_Skin_create(lua_State* tolua_S) { int argc = 0; @@ -12279,11 +12330,11 @@ int lua_register_ax_studio_Skin(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Skin"); tolua_function(tolua_S,"new",lua_ax_studio_Skin_constructor); - tolua_function(tolua_S,"getBone",lua_ax_studio_Skin_getBone); - tolua_function(tolua_S,"getNodeToWorldTransformAR",lua_ax_studio_Skin_getNodeToWorldTransformAR); - tolua_function(tolua_S,"getDisplayName",lua_ax_studio_Skin_getDisplayName); tolua_function(tolua_S,"updateArmatureTransform",lua_ax_studio_Skin_updateArmatureTransform); + tolua_function(tolua_S,"getNodeToWorldTransformAR",lua_ax_studio_Skin_getNodeToWorldTransformAR); tolua_function(tolua_S,"setBone",lua_ax_studio_Skin_setBone); + tolua_function(tolua_S,"getBone",lua_ax_studio_Skin_getBone); + tolua_function(tolua_S,"getDisplayName",lua_ax_studio_Skin_getDisplayName); tolua_function(tolua_S,"create", lua_ax_studio_Skin_create); tolua_function(tolua_S,"createWithSpriteFrameName", lua_ax_studio_Skin_createWithSpriteFrameName); tolua_endmodule(tolua_S); @@ -12293,7 +12344,7 @@ int lua_register_ax_studio_Skin(lua_State* tolua_S) return 1; } -int lua_ax_studio_ComAttribute_getFloat(lua_State* tolua_S) +int lua_ax_studio_ComAttribute_setInt(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; @@ -12313,116 +12364,35 @@ int lua_ax_studio_ComAttribute_getFloat(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_getFloat'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_setInt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getFloat"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getFloat'", nullptr); - return 0; - } - auto&& ret = cobj->getFloat(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } if (argc == 2) { std::string_view arg0; - double arg1; + int arg1; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getFloat"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:setInt"); - ok &= luaval_to_number(tolua_S, 3,&arg1, "ccs.ComAttribute:getFloat"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ComAttribute:setInt"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getFloat'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_setInt'", nullptr); return 0; } - auto&& ret = cobj->getFloat(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setInt(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:getFloat",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:setInt",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_getFloat'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAttribute_getString(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAttribute* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getString'", nullptr); - return 0; - } - auto&& ret = cobj->getString(arg0); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getString"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ComAttribute:getString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getString'", nullptr); - return 0; - } - auto&& ret = cobj->getString(arg0, arg1); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:getString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_getString'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_setInt'.",&tolua_err); #endif return 0; @@ -12480,6 +12450,59 @@ int lua_ax_studio_ComAttribute_setFloat(lua_State* tolua_S) return 0; } +int lua_ax_studio_ComAttribute_setBool(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAttribute* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_setBool'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + bool arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:setBool"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.ComAttribute:setBool"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_setBool'", nullptr); + return 0; + } + cobj->setBool(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:setBool",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_setBool'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ComAttribute_setString(lua_State* tolua_S) { int argc = 0; @@ -12533,176 +12556,6 @@ int lua_ax_studio_ComAttribute_setString(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComAttribute_getBool(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAttribute* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_getBool'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getBool"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getBool'", nullptr); - return 0; - } - auto&& ret = cobj->getBool(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - bool arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getBool"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.ComAttribute:getBool"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getBool'", nullptr); - return 0; - } - auto&& ret = cobj->getBool(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:getBool",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_getBool'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAttribute_setInt(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAttribute* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_setInt'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - int arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:setInt"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ComAttribute:setInt"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_setInt'", nullptr); - return 0; - } - cobj->setInt(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:setInt",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_setInt'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAttribute_parse(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAttribute* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_parse'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:parse"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_parse'", nullptr); - return 0; - } - auto&& ret = cobj->parse(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:parse",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_parse'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ComAttribute_getInt(lua_State* tolua_S) { int argc = 0; @@ -12770,7 +12623,7 @@ int lua_ax_studio_ComAttribute_getInt(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComAttribute_setBool(lua_State* tolua_S) +int lua_ax_studio_ComAttribute_getFloat(lua_State* tolua_S) { int argc = 0; cocostudio::ComAttribute* cobj = nullptr; @@ -12790,71 +12643,235 @@ int lua_ax_studio_ComAttribute_setBool(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_setBool'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_getFloat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getFloat"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getFloat'", nullptr); + return 0; + } + auto&& ret = cobj->getFloat(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } if (argc == 2) { std::string_view arg0; - bool arg1; + double arg1; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:setBool"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getFloat"); - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.ComAttribute:setBool"); + ok &= luaval_to_number(tolua_S, 3,&arg1, "ccs.ComAttribute:getFloat"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_setBool'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getFloat'", nullptr); return 0; } - cobj->setBool(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getFloat(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:setBool",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:getFloat",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_setBool'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_getFloat'.",&tolua_err); #endif return 0; } -int lua_ax_studio_ComAttribute_create(lua_State* tolua_S) +int lua_ax_studio_ComAttribute_getBool(lua_State* tolua_S) { int argc = 0; + cocostudio::ComAttribute* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_getBool'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getBool"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getBool'", nullptr); return 0; } - auto&& ret = cocostudio::ComAttribute::create(); - object_to_luaval(tolua_S, "ccs.ComAttribute",(cocostudio::ComAttribute*)ret); + auto&& ret = cobj->getBool(arg0); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComAttribute:create",argc, 0); + if (argc == 2) + { + std::string_view arg0; + bool arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getBool"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.ComAttribute:getBool"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getBool'", nullptr); + return 0; + } + auto&& ret = cobj->getBool(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:getBool",argc, 1); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_create'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_getBool'.",&tolua_err); #endif + + return 0; +} +int lua_ax_studio_ComAttribute_getString(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAttribute* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_getString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getString'", nullptr); + return 0; + } + auto&& ret = cobj->getString(arg0); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:getString"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ComAttribute:getString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_getString'", nullptr); + return 0; + } + auto&& ret = cobj->getString(arg0, arg1); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:getString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_getString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAttribute_parse(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAttribute* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAttribute*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAttribute_parse'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComAttribute:parse"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_parse'", nullptr); + return 0; + } + auto&& ret = cobj->parse(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAttribute:parse",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_parse'.",&tolua_err); +#endif + return 0; } int lua_ax_studio_ComAttribute_createInstance(lua_State* tolua_S) @@ -12891,6 +12908,40 @@ int lua_ax_studio_ComAttribute_createInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_studio_ComAttribute_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.ComAttribute",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAttribute_create'", nullptr); + return 0; + } + auto&& ret = cocostudio::ComAttribute::create(); + object_to_luaval(tolua_S, "ccs.ComAttribute",(cocostudio::ComAttribute*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComAttribute:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAttribute_create'.",&tolua_err); +#endif + return 0; +} static int lua_ax_studio_ComAttribute_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComAttribute)"); @@ -12903,17 +12954,17 @@ int lua_register_ax_studio_ComAttribute(lua_State* tolua_S) tolua_cclass(tolua_S,"ComAttribute","ccs.ComAttribute","ax.Component",nullptr); tolua_beginmodule(tolua_S,"ComAttribute"); - tolua_function(tolua_S,"getFloat",lua_ax_studio_ComAttribute_getFloat); - tolua_function(tolua_S,"getString",lua_ax_studio_ComAttribute_getString); - tolua_function(tolua_S,"setFloat",lua_ax_studio_ComAttribute_setFloat); - tolua_function(tolua_S,"setString",lua_ax_studio_ComAttribute_setString); - tolua_function(tolua_S,"getBool",lua_ax_studio_ComAttribute_getBool); tolua_function(tolua_S,"setInt",lua_ax_studio_ComAttribute_setInt); - tolua_function(tolua_S,"parse",lua_ax_studio_ComAttribute_parse); - tolua_function(tolua_S,"getInt",lua_ax_studio_ComAttribute_getInt); + tolua_function(tolua_S,"setFloat",lua_ax_studio_ComAttribute_setFloat); tolua_function(tolua_S,"setBool",lua_ax_studio_ComAttribute_setBool); - tolua_function(tolua_S,"create", lua_ax_studio_ComAttribute_create); + tolua_function(tolua_S,"setString",lua_ax_studio_ComAttribute_setString); + tolua_function(tolua_S,"getInt",lua_ax_studio_ComAttribute_getInt); + tolua_function(tolua_S,"getFloat",lua_ax_studio_ComAttribute_getFloat); + tolua_function(tolua_S,"getBool",lua_ax_studio_ComAttribute_getBool); + tolua_function(tolua_S,"getString",lua_ax_studio_ComAttribute_getString); + tolua_function(tolua_S,"parse",lua_ax_studio_ComAttribute_parse); tolua_function(tolua_S,"createInstance", lua_ax_studio_ComAttribute_createInstance); + tolua_function(tolua_S,"create", lua_ax_studio_ComAttribute_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ComAttribute).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ComAttribute"; @@ -12921,7 +12972,7 @@ int lua_register_ax_studio_ComAttribute(lua_State* tolua_S) return 1; } -int lua_ax_studio_ComAudio_stopAllEffects(lua_State* tolua_S) +int lua_ax_studio_ComAudio_end(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; @@ -12941,7 +12992,7 @@ int lua_ax_studio_ComAudio_stopAllEffects(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stopAllEffects'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_end'", nullptr); return 0; } #endif @@ -12951,593 +13002,19 @@ int lua_ax_studio_ComAudio_stopAllEffects(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_stopAllEffects'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_end'", nullptr); return 0; } - cobj->stopAllEffects(); + cobj->end(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stopAllEffects",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:end",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stopAllEffects'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_getEffectsVolume(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_getEffectsVolume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_getEffectsVolume'", nullptr); - return 0; - } - auto&& ret = cobj->getEffectsVolume(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:getEffectsVolume",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_getEffectsVolume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_stopEffect(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stopEffect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ccs.ComAudio:stopEffect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_stopEffect'", nullptr); - return 0; - } - cobj->stopEffect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stopEffect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stopEffect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_getBackgroundMusicVolume(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_getBackgroundMusicVolume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_getBackgroundMusicVolume'", nullptr); - return 0; - } - auto&& ret = cobj->getBackgroundMusicVolume(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:getBackgroundMusicVolume",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_getBackgroundMusicVolume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_willPlayBackgroundMusic(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_willPlayBackgroundMusic'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_willPlayBackgroundMusic'", nullptr); - return 0; - } - auto&& ret = cobj->willPlayBackgroundMusic(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:willPlayBackgroundMusic",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_willPlayBackgroundMusic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_setBackgroundMusicVolume(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setBackgroundMusicVolume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ComAudio:setBackgroundMusicVolume"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setBackgroundMusicVolume'", nullptr); - return 0; - } - cobj->setBackgroundMusicVolume(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setBackgroundMusicVolume",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setBackgroundMusicVolume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_start(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_start'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_start'", nullptr); - return 0; - } - cobj->start(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:start",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_start'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_stopBackgroundMusic(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stopBackgroundMusic'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - cobj->stopBackgroundMusic(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.ComAudio:stopBackgroundMusic"); - - if (!ok) { break; } - cobj->stopBackgroundMusic(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stopBackgroundMusic",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stopBackgroundMusic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_pauseBackgroundMusic(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_pauseBackgroundMusic'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_pauseBackgroundMusic'", nullptr); - return 0; - } - cobj->pauseBackgroundMusic(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:pauseBackgroundMusic",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_pauseBackgroundMusic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_isBackgroundMusicPlaying(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_isBackgroundMusicPlaying'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_isBackgroundMusicPlaying'", nullptr); - return 0; - } - auto&& ret = cobj->isBackgroundMusicPlaying(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:isBackgroundMusicPlaying",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_isBackgroundMusicPlaying'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_isLoop(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_isLoop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_isLoop'", nullptr); - return 0; - } - auto&& ret = cobj->isLoop(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:isLoop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_isLoop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_resumeAllEffects(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_resumeAllEffects'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_resumeAllEffects'", nullptr); - return 0; - } - cobj->resumeAllEffects(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:resumeAllEffects",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_resumeAllEffects'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_pauseAllEffects(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_pauseAllEffects'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_pauseAllEffects'", nullptr); - return 0; - } - cobj->pauseAllEffects(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:pauseAllEffects",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_pauseAllEffects'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_end'.",&tolua_err); #endif return 0; @@ -13659,54 +13136,58 @@ int lua_ax_studio_ComAudio_playBackgroundMusic(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComAudio_stop(lua_State* tolua_S) +int lua_ax_studio_ComAudio_stopBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stop'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stopBackgroundMusic'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_stop'", nullptr); - return 0; + do{ + if (argc == 0) { + cobj->stopBackgroundMusic(); + lua_settop(tolua_S, 1); + return 1; } - cobj->stop(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stop",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 1) { + bool arg0; + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.ComAudio:stopBackgroundMusic"); + + if (!ok) { break; } + cobj->stopBackgroundMusic(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stopBackgroundMusic",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stop'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stopBackgroundMusic'.",&tolua_err); #endif return 0; } -int lua_ax_studio_ComAudio_end(lua_State* tolua_S) +int lua_ax_studio_ComAudio_pauseBackgroundMusic(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; @@ -13726,7 +13207,7 @@ int lua_ax_studio_ComAudio_end(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_end'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_pauseBackgroundMusic'", nullptr); return 0; } #endif @@ -13736,19 +13217,401 @@ int lua_ax_studio_ComAudio_end(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_end'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_pauseBackgroundMusic'", nullptr); return 0; } - cobj->end(); + cobj->pauseBackgroundMusic(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:end",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:pauseBackgroundMusic",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_end'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_pauseBackgroundMusic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_resumeBackgroundMusic(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_resumeBackgroundMusic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_resumeBackgroundMusic'", nullptr); + return 0; + } + cobj->resumeBackgroundMusic(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:resumeBackgroundMusic",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_resumeBackgroundMusic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_rewindBackgroundMusic(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_rewindBackgroundMusic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_rewindBackgroundMusic'", nullptr); + return 0; + } + cobj->rewindBackgroundMusic(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:rewindBackgroundMusic",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_rewindBackgroundMusic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_willPlayBackgroundMusic(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_willPlayBackgroundMusic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_willPlayBackgroundMusic'", nullptr); + return 0; + } + auto&& ret = cobj->willPlayBackgroundMusic(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:willPlayBackgroundMusic",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_willPlayBackgroundMusic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_isBackgroundMusicPlaying(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_isBackgroundMusicPlaying'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_isBackgroundMusicPlaying'", nullptr); + return 0; + } + auto&& ret = cobj->isBackgroundMusicPlaying(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:isBackgroundMusicPlaying",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_isBackgroundMusicPlaying'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_getBackgroundMusicVolume(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_getBackgroundMusicVolume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_getBackgroundMusicVolume'", nullptr); + return 0; + } + auto&& ret = cobj->getBackgroundMusicVolume(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:getBackgroundMusicVolume",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_getBackgroundMusicVolume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_setBackgroundMusicVolume(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setBackgroundMusicVolume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ComAudio:setBackgroundMusicVolume"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setBackgroundMusicVolume'", nullptr); + return 0; + } + cobj->setBackgroundMusicVolume(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setBackgroundMusicVolume",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setBackgroundMusicVolume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_getEffectsVolume(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_getEffectsVolume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_getEffectsVolume'", nullptr); + return 0; + } + auto&& ret = cobj->getEffectsVolume(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:getEffectsVolume",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_getEffectsVolume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_setEffectsVolume(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setEffectsVolume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ComAudio:setEffectsVolume"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setEffectsVolume'", nullptr); + return 0; + } + cobj->setEffectsVolume(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setEffectsVolume",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setEffectsVolume'.",&tolua_err); #endif return 0; @@ -13820,203 +13683,6 @@ int lua_ax_studio_ComAudio_playEffect(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComAudio_preloadEffect(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_preloadEffect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ComAudio:preloadEffect"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_preloadEffect'", nullptr); - return 0; - } - cobj->preloadEffect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:preloadEffect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_preloadEffect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_setLoop(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setLoop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.ComAudio:setLoop"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setLoop'", nullptr); - return 0; - } - cobj->setLoop(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setLoop",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setLoop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_unloadEffect(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_unloadEffect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ComAudio:unloadEffect"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_unloadEffect'", nullptr); - return 0; - } - cobj->unloadEffect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:unloadEffect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_unloadEffect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_rewindBackgroundMusic(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_rewindBackgroundMusic'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_rewindBackgroundMusic'", nullptr); - return 0; - } - cobj->rewindBackgroundMusic(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:rewindBackgroundMusic",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_rewindBackgroundMusic'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ComAudio_pauseEffect(lua_State* tolua_S) { int argc = 0; @@ -14067,7 +13733,7 @@ int lua_ax_studio_ComAudio_pauseEffect(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComAudio_resumeBackgroundMusic(lua_State* tolua_S) +int lua_ax_studio_ComAudio_pauseAllEffects(lua_State* tolua_S) { int argc = 0; cocostudio::ComAudio* cobj = nullptr; @@ -14087,7 +13753,7 @@ int lua_ax_studio_ComAudio_resumeBackgroundMusic(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_resumeBackgroundMusic'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_pauseAllEffects'", nullptr); return 0; } #endif @@ -14097,166 +13763,19 @@ int lua_ax_studio_ComAudio_resumeBackgroundMusic(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_resumeBackgroundMusic'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_pauseAllEffects'", nullptr); return 0; } - cobj->resumeBackgroundMusic(); + cobj->pauseAllEffects(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:resumeBackgroundMusic",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:pauseAllEffects",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_resumeBackgroundMusic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_setFile(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ComAudio:setFile"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setFile'", nullptr); - return 0; - } - cobj->setFile(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_setEffectsVolume(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setEffectsVolume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ComAudio:setEffectsVolume"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setEffectsVolume'", nullptr); - return 0; - } - cobj->setEffectsVolume(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setEffectsVolume",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setEffectsVolume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ComAudio_getFile(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ComAudio* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_getFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_getFile'", nullptr); - return 0; - } - auto&& ret = cobj->getFile(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:getFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_getFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_pauseAllEffects'.",&tolua_err); #endif return 0; @@ -14311,38 +13830,536 @@ int lua_ax_studio_ComAudio_resumeEffect(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComAudio_create(lua_State* tolua_S) +int lua_ax_studio_ComAudio_resumeAllEffects(lua_State* tolua_S) { int argc = 0; + cocostudio::ComAudio* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_resumeAllEffects'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_resumeAllEffects'", nullptr); return 0; } - auto&& ret = cocostudio::ComAudio::create(); - object_to_luaval(tolua_S, "ccs.ComAudio",(cocostudio::ComAudio*)ret); + cobj->resumeAllEffects(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComAudio:create",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:resumeAllEffects",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_create'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_resumeAllEffects'.",&tolua_err); #endif + + return 0; +} +int lua_ax_studio_ComAudio_stopEffect(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stopEffect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ccs.ComAudio:stopEffect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_stopEffect'", nullptr); + return 0; + } + cobj->stopEffect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stopEffect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stopEffect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_stopAllEffects(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stopAllEffects'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_stopAllEffects'", nullptr); + return 0; + } + cobj->stopAllEffects(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stopAllEffects",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stopAllEffects'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_preloadEffect(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_preloadEffect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ComAudio:preloadEffect"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_preloadEffect'", nullptr); + return 0; + } + cobj->preloadEffect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:preloadEffect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_preloadEffect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_unloadEffect(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_unloadEffect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ComAudio:unloadEffect"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_unloadEffect'", nullptr); + return 0; + } + cobj->unloadEffect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:unloadEffect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_unloadEffect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_setFile(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccs.ComAudio:setFile"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setFile'", nullptr); + return 0; + } + cobj->setFile(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_getFile(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_getFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_getFile'", nullptr); + return 0; + } + auto&& ret = cobj->getFile(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:getFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_getFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_setLoop(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_setLoop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.ComAudio:setLoop"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_setLoop'", nullptr); + return 0; + } + cobj->setLoop(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:setLoop",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_setLoop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_isLoop(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_isLoop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_isLoop'", nullptr); + return 0; + } + auto&& ret = cobj->isLoop(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:isLoop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_isLoop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_start(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_start'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_start'", nullptr); + return 0; + } + cobj->start(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:start",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_start'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ComAudio_stop(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComAudio* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComAudio*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComAudio_stop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_stop'", nullptr); + return 0; + } + cobj->stop(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComAudio:stop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_stop'.",&tolua_err); +#endif + return 0; } int lua_ax_studio_ComAudio_createInstance(lua_State* tolua_S) @@ -14379,6 +14396,40 @@ int lua_ax_studio_ComAudio_createInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_studio_ComAudio_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.ComAudio",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComAudio_create'", nullptr); + return 0; + } + auto&& ret = cocostudio::ComAudio::create(); + object_to_luaval(tolua_S, "ccs.ComAudio",(cocostudio::ComAudio*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComAudio:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComAudio_create'.",&tolua_err); +#endif + return 0; +} static int lua_ax_studio_ComAudio_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComAudio)"); @@ -14391,36 +14442,36 @@ int lua_register_ax_studio_ComAudio(lua_State* tolua_S) tolua_cclass(tolua_S,"ComAudio","ccs.ComAudio","ax.Component",nullptr); tolua_beginmodule(tolua_S,"ComAudio"); - tolua_function(tolua_S,"stopAllEffects",lua_ax_studio_ComAudio_stopAllEffects); - tolua_function(tolua_S,"getEffectsVolume",lua_ax_studio_ComAudio_getEffectsVolume); - tolua_function(tolua_S,"stopEffect",lua_ax_studio_ComAudio_stopEffect); - tolua_function(tolua_S,"getBackgroundMusicVolume",lua_ax_studio_ComAudio_getBackgroundMusicVolume); - tolua_function(tolua_S,"willPlayBackgroundMusic",lua_ax_studio_ComAudio_willPlayBackgroundMusic); - tolua_function(tolua_S,"setBackgroundMusicVolume",lua_ax_studio_ComAudio_setBackgroundMusicVolume); - tolua_function(tolua_S,"start",lua_ax_studio_ComAudio_start); - tolua_function(tolua_S,"stopBackgroundMusic",lua_ax_studio_ComAudio_stopBackgroundMusic); - tolua_function(tolua_S,"pauseBackgroundMusic",lua_ax_studio_ComAudio_pauseBackgroundMusic); - tolua_function(tolua_S,"isBackgroundMusicPlaying",lua_ax_studio_ComAudio_isBackgroundMusicPlaying); - tolua_function(tolua_S,"isLoop",lua_ax_studio_ComAudio_isLoop); - tolua_function(tolua_S,"resumeAllEffects",lua_ax_studio_ComAudio_resumeAllEffects); - tolua_function(tolua_S,"pauseAllEffects",lua_ax_studio_ComAudio_pauseAllEffects); + tolua_function(tolua_S,"endToLua",lua_ax_studio_ComAudio_end); tolua_function(tolua_S,"preloadBackgroundMusic",lua_ax_studio_ComAudio_preloadBackgroundMusic); tolua_function(tolua_S,"playBackgroundMusic",lua_ax_studio_ComAudio_playBackgroundMusic); - tolua_function(tolua_S,"stop",lua_ax_studio_ComAudio_stop); - tolua_function(tolua_S,"endToLua",lua_ax_studio_ComAudio_end); - tolua_function(tolua_S,"playEffect",lua_ax_studio_ComAudio_playEffect); - tolua_function(tolua_S,"preloadEffect",lua_ax_studio_ComAudio_preloadEffect); - tolua_function(tolua_S,"setLoop",lua_ax_studio_ComAudio_setLoop); - tolua_function(tolua_S,"unloadEffect",lua_ax_studio_ComAudio_unloadEffect); - tolua_function(tolua_S,"rewindBackgroundMusic",lua_ax_studio_ComAudio_rewindBackgroundMusic); - tolua_function(tolua_S,"pauseEffect",lua_ax_studio_ComAudio_pauseEffect); + tolua_function(tolua_S,"stopBackgroundMusic",lua_ax_studio_ComAudio_stopBackgroundMusic); + tolua_function(tolua_S,"pauseBackgroundMusic",lua_ax_studio_ComAudio_pauseBackgroundMusic); tolua_function(tolua_S,"resumeBackgroundMusic",lua_ax_studio_ComAudio_resumeBackgroundMusic); - tolua_function(tolua_S,"setFile",lua_ax_studio_ComAudio_setFile); + tolua_function(tolua_S,"rewindBackgroundMusic",lua_ax_studio_ComAudio_rewindBackgroundMusic); + tolua_function(tolua_S,"willPlayBackgroundMusic",lua_ax_studio_ComAudio_willPlayBackgroundMusic); + tolua_function(tolua_S,"isBackgroundMusicPlaying",lua_ax_studio_ComAudio_isBackgroundMusicPlaying); + tolua_function(tolua_S,"getBackgroundMusicVolume",lua_ax_studio_ComAudio_getBackgroundMusicVolume); + tolua_function(tolua_S,"setBackgroundMusicVolume",lua_ax_studio_ComAudio_setBackgroundMusicVolume); + tolua_function(tolua_S,"getEffectsVolume",lua_ax_studio_ComAudio_getEffectsVolume); tolua_function(tolua_S,"setEffectsVolume",lua_ax_studio_ComAudio_setEffectsVolume); - tolua_function(tolua_S,"getFile",lua_ax_studio_ComAudio_getFile); + tolua_function(tolua_S,"playEffect",lua_ax_studio_ComAudio_playEffect); + tolua_function(tolua_S,"pauseEffect",lua_ax_studio_ComAudio_pauseEffect); + tolua_function(tolua_S,"pauseAllEffects",lua_ax_studio_ComAudio_pauseAllEffects); tolua_function(tolua_S,"resumeEffect",lua_ax_studio_ComAudio_resumeEffect); - tolua_function(tolua_S,"create", lua_ax_studio_ComAudio_create); + tolua_function(tolua_S,"resumeAllEffects",lua_ax_studio_ComAudio_resumeAllEffects); + tolua_function(tolua_S,"stopEffect",lua_ax_studio_ComAudio_stopEffect); + tolua_function(tolua_S,"stopAllEffects",lua_ax_studio_ComAudio_stopAllEffects); + tolua_function(tolua_S,"preloadEffect",lua_ax_studio_ComAudio_preloadEffect); + tolua_function(tolua_S,"unloadEffect",lua_ax_studio_ComAudio_unloadEffect); + tolua_function(tolua_S,"setFile",lua_ax_studio_ComAudio_setFile); + tolua_function(tolua_S,"getFile",lua_ax_studio_ComAudio_getFile); + tolua_function(tolua_S,"setLoop",lua_ax_studio_ComAudio_setLoop); + tolua_function(tolua_S,"isLoop",lua_ax_studio_ComAudio_isLoop); + tolua_function(tolua_S,"start",lua_ax_studio_ComAudio_start); + tolua_function(tolua_S,"stop",lua_ax_studio_ComAudio_stop); tolua_function(tolua_S,"createInstance", lua_ax_studio_ComAudio_createInstance); + tolua_function(tolua_S,"create", lua_ax_studio_ComAudio_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ComAudio).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ComAudio"; @@ -14428,40 +14479,6 @@ int lua_register_ax_studio_ComAudio(lua_State* tolua_S) return 1; } -int lua_ax_studio_ComController_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ComController",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComController_create'", nullptr); - return 0; - } - auto&& ret = cocostudio::ComController::create(); - object_to_luaval(tolua_S, "ccs.ComController",(cocostudio::ComController*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComController:create",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComController_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_studio_ComController_createInstance(lua_State* tolua_S) { int argc = 0; @@ -14496,6 +14513,40 @@ int lua_ax_studio_ComController_createInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_studio_ComController_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.ComController",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComController_create'", nullptr); + return 0; + } + auto&& ret = cocostudio::ComController::create(); + object_to_luaval(tolua_S, "ccs.ComController",(cocostudio::ComController*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComController:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComController_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_studio_ComController_constructor(lua_State* tolua_S) { int argc = 0; @@ -14546,8 +14597,8 @@ int lua_register_ax_studio_ComController(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ComController"); tolua_function(tolua_S,"new",lua_ax_studio_ComController_constructor); - tolua_function(tolua_S,"create", lua_ax_studio_ComController_create); tolua_function(tolua_S,"createInstance", lua_ax_studio_ComController_createInstance); + tolua_function(tolua_S,"create", lua_ax_studio_ComController_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ComController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ComController"; @@ -14555,6 +14606,53 @@ int lua_register_ax_studio_ComController(lua_State* tolua_S) return 1; } +int lua_ax_studio_ComRender_getNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComRender* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComRender*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComRender_getNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComRender_getNode'", nullptr); + return 0; + } + auto&& ret = cobj->getNode(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComRender:getNode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComRender_getNode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ComRender_setNode(lua_State* tolua_S) { int argc = 0; @@ -14605,51 +14703,38 @@ int lua_ax_studio_ComRender_setNode(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComRender_getNode(lua_State* tolua_S) +int lua_ax_studio_ComRender_createInstance(lua_State* tolua_S) { int argc = 0; - cocostudio::ComRender* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocostudio::ComRender*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComRender_getNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComRender_getNode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComRender_createInstance'", nullptr); return 0; } - auto&& ret = cobj->getNode(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + auto&& ret = cocostudio::ComRender::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComRender:getNode",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComRender:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComRender_getNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComRender_createInstance'.",&tolua_err); #endif - return 0; } int lua_ax_studio_ComRender_create(lua_State* tolua_S) @@ -14700,40 +14785,6 @@ int lua_ax_studio_ComRender_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_studio_ComRender_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ComRender",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComRender_createInstance'", nullptr); - return 0; - } - auto&& ret = cocostudio::ComRender::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComRender:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComRender_createInstance'.",&tolua_err); -#endif - return 0; -} static int lua_ax_studio_ComRender_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComRender)"); @@ -14746,10 +14797,10 @@ int lua_register_ax_studio_ComRender(lua_State* tolua_S) tolua_cclass(tolua_S,"ComRender","ccs.ComRender","ax.Component",nullptr); tolua_beginmodule(tolua_S,"ComRender"); - tolua_function(tolua_S,"setNode",lua_ax_studio_ComRender_setNode); tolua_function(tolua_S,"getNode",lua_ax_studio_ComRender_getNode); - tolua_function(tolua_S,"create", lua_ax_studio_ComRender_create); + tolua_function(tolua_S,"setNode",lua_ax_studio_ComRender_setNode); tolua_function(tolua_S,"createInstance", lua_ax_studio_ComRender_createInstance); + tolua_function(tolua_S,"create", lua_ax_studio_ComRender_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ComRender).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ComRender"; @@ -14757,56 +14808,6 @@ int lua_register_ax_studio_ComRender(lua_State* tolua_S) return 1; } -int lua_ax_studio_GUIReader_setFilePath(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::GUIReader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_GUIReader_setFilePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.GUIReader:setFilePath"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_GUIReader_setFilePath'", nullptr); - return 0; - } - cobj->setFilePath(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.GUIReader:setFilePath",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_GUIReader_setFilePath'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_GUIReader_widgetFromJsonFile(lua_State* tolua_S) { int argc = 0; @@ -14857,53 +14858,6 @@ int lua_ax_studio_GUIReader_widgetFromJsonFile(lua_State* tolua_S) return 0; } -int lua_ax_studio_GUIReader_getFilePath(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::GUIReader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_GUIReader_getFilePath'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_GUIReader_getFilePath'", nullptr); - return 0; - } - auto&& ret = cobj->getFilePath(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.GUIReader:getFilePath",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_GUIReader_getFilePath'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_GUIReader_widgetFromBinaryFile(lua_State* tolua_S) { int argc = 0; @@ -15004,38 +14958,101 @@ int lua_ax_studio_GUIReader_getVersionInteger(lua_State* tolua_S) return 0; } -int lua_ax_studio_GUIReader_destroyInstance(lua_State* tolua_S) +int lua_ax_studio_GUIReader_setFilePath(lua_State* tolua_S) { int argc = 0; + cocostudio::GUIReader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_GUIReader_setFilePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.GUIReader:setFilePath"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_GUIReader_destroyInstance'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_GUIReader_setFilePath'", nullptr); return 0; } - cocostudio::GUIReader::destroyInstance(); + cobj->setFilePath(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.GUIReader:destroyInstance",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.GUIReader:setFilePath",argc, 1); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_GUIReader_destroyInstance'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_GUIReader_setFilePath'.",&tolua_err); #endif + + return 0; +} +int lua_ax_studio_GUIReader_getFilePath(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::GUIReader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::GUIReader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_GUIReader_getFilePath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_GUIReader_getFilePath'", nullptr); + return 0; + } + auto&& ret = cobj->getFilePath(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.GUIReader:getFilePath",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_GUIReader_getFilePath'.",&tolua_err); +#endif + return 0; } int lua_ax_studio_GUIReader_getInstance(lua_State* tolua_S) @@ -15072,6 +15089,40 @@ int lua_ax_studio_GUIReader_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_studio_GUIReader_destroyInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.GUIReader",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_GUIReader_destroyInstance'", nullptr); + return 0; + } + cocostudio::GUIReader::destroyInstance(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.GUIReader:destroyInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_GUIReader_destroyInstance'.",&tolua_err); +#endif + return 0; +} static int lua_ax_studio_GUIReader_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GUIReader)"); @@ -15084,13 +15135,13 @@ int lua_register_ax_studio_GUIReader(lua_State* tolua_S) tolua_cclass(tolua_S,"GUIReader","ccs.GUIReader","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"GUIReader"); - tolua_function(tolua_S,"setFilePath",lua_ax_studio_GUIReader_setFilePath); tolua_function(tolua_S,"widgetFromJsonFile",lua_ax_studio_GUIReader_widgetFromJsonFile); - tolua_function(tolua_S,"getFilePath",lua_ax_studio_GUIReader_getFilePath); tolua_function(tolua_S,"widgetFromBinaryFile",lua_ax_studio_GUIReader_widgetFromBinaryFile); tolua_function(tolua_S,"getVersionInteger",lua_ax_studio_GUIReader_getVersionInteger); - tolua_function(tolua_S,"destroyInstance", lua_ax_studio_GUIReader_destroyInstance); + tolua_function(tolua_S,"setFilePath",lua_ax_studio_GUIReader_setFilePath); + tolua_function(tolua_S,"getFilePath",lua_ax_studio_GUIReader_getFilePath); tolua_function(tolua_S,"getInstance", lua_ax_studio_GUIReader_getInstance); + tolua_function(tolua_S,"destroyInstance", lua_ax_studio_GUIReader_destroyInstance); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::GUIReader).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.GUIReader"; @@ -15098,60 +15149,6 @@ int lua_register_ax_studio_GUIReader(lua_State* tolua_S) return 1; } -int lua_ax_studio_SceneReader_setTarget(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::SceneReader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::SceneReader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SceneReader_setTarget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SceneReader_setTarget'", nullptr); - return 0; - } - cobj->setTarget(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SceneReader:setTarget",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SceneReader_setTarget'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_SceneReader_createNodeWithSceneFile(lua_State* tolua_S) { int argc = 0; @@ -15219,7 +15216,7 @@ int lua_ax_studio_SceneReader_createNodeWithSceneFile(lua_State* tolua_S) return 0; } -int lua_ax_studio_SceneReader_getAttachComponentType(lua_State* tolua_S) +int lua_ax_studio_SceneReader_setTarget(lua_State* tolua_S) { int argc = 0; cocostudio::SceneReader* cobj = nullptr; @@ -15239,29 +15236,36 @@ int lua_ax_studio_SceneReader_getAttachComponentType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SceneReader_getAttachComponentType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SceneReader_setTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SceneReader_getAttachComponentType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SceneReader_setTarget'", nullptr); return 0; } - int ret = (int)cobj->getAttachComponentType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setTarget(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SceneReader:getAttachComponentType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SceneReader:setTarget",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SceneReader_getAttachComponentType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SceneReader_setTarget'.",&tolua_err); #endif return 0; @@ -15316,6 +15320,87 @@ int lua_ax_studio_SceneReader_getNodeByTag(lua_State* tolua_S) return 0; } +int lua_ax_studio_SceneReader_getAttachComponentType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::SceneReader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::SceneReader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SceneReader_getAttachComponentType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SceneReader_getAttachComponentType'", nullptr); + return 0; + } + int ret = (int)cobj->getAttachComponentType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SceneReader:getAttachComponentType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SceneReader_getAttachComponentType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_SceneReader_getInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SceneReader_getInstance'", nullptr); + return 0; + } + auto&& ret = cocostudio::SceneReader::getInstance(); + object_to_luaval(tolua_S, "ccs.SceneReader",(cocostudio::SceneReader*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.SceneReader:getInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SceneReader_getInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_studio_SceneReader_destroyInstance(lua_State* tolua_S) { int argc = 0; @@ -15384,40 +15469,6 @@ int lua_ax_studio_SceneReader_sceneReaderVersion(lua_State* tolua_S) #endif return 0; } -int lua_ax_studio_SceneReader_getInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.SceneReader",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SceneReader_getInstance'", nullptr); - return 0; - } - auto&& ret = cocostudio::SceneReader::getInstance(); - object_to_luaval(tolua_S, "ccs.SceneReader",(cocostudio::SceneReader*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.SceneReader:getInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SceneReader_getInstance'.",&tolua_err); -#endif - return 0; -} static int lua_ax_studio_SceneReader_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SceneReader)"); @@ -15430,13 +15481,13 @@ int lua_register_ax_studio_SceneReader(lua_State* tolua_S) tolua_cclass(tolua_S,"SceneReader","ccs.SceneReader","",nullptr); tolua_beginmodule(tolua_S,"SceneReader"); - tolua_function(tolua_S,"setTarget",lua_ax_studio_SceneReader_setTarget); tolua_function(tolua_S,"createNodeWithSceneFile",lua_ax_studio_SceneReader_createNodeWithSceneFile); - tolua_function(tolua_S,"getAttachComponentType",lua_ax_studio_SceneReader_getAttachComponentType); + tolua_function(tolua_S,"setTarget",lua_ax_studio_SceneReader_setTarget); tolua_function(tolua_S,"getNodeByTag",lua_ax_studio_SceneReader_getNodeByTag); + tolua_function(tolua_S,"getAttachComponentType",lua_ax_studio_SceneReader_getAttachComponentType); + tolua_function(tolua_S,"getInstance", lua_ax_studio_SceneReader_getInstance); tolua_function(tolua_S,"destroyInstance", lua_ax_studio_SceneReader_destroyInstance); tolua_function(tolua_S,"sceneReaderVersion", lua_ax_studio_SceneReader_sceneReaderVersion); - tolua_function(tolua_S,"getInstance", lua_ax_studio_SceneReader_getInstance); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::SceneReader).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.SceneReader"; @@ -15444,6 +15495,150 @@ int lua_register_ax_studio_SceneReader(lua_State* tolua_S) return 1; } +int lua_ax_studio_ActionTimelineCache_purge(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_purge'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_purge'", nullptr); + return 0; + } + cobj->purge(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:purge",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_purge'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimelineCache_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_init'", nullptr); + return 0; + } + cobj->init(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:init",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_init'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimelineCache_removeAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_removeAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:removeAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_removeAction'", nullptr); + return 0; + } + cobj->removeAction(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:removeAction",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_removeAction'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimelineCache_createActionFromJson(lua_State* tolua_S) { int argc = 0; @@ -15494,6 +15689,162 @@ int lua_ax_studio_ActionTimelineCache_createActionFromJson(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionTimelineCache_createActionFromContent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_createActionFromContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:createActionFromContent"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ActionTimelineCache:createActionFromContent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_createActionFromContent'", nullptr); + return 0; + } + auto&& ret = cobj->createActionFromContent(arg0, arg1); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:createActionFromContent",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_createActionFromContent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:loadAnimationActionWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile'", nullptr); + return 0; + } + auto&& ret = cobj->loadAnimationActionWithFile(arg0); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:loadAnimationActionWithFile",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:loadAnimationActionWithContent"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ActionTimelineCache:loadAnimationActionWithContent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent'", nullptr); + return 0; + } + auto&& ret = cobj->loadAnimationActionWithContent(arg0, arg1); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:loadAnimationActionWithContent",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimelineCache_createActionWithFlatBuffersFile(lua_State* tolua_S) { int argc = 0; @@ -15594,306 +15945,6 @@ int lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFlatBuffersFile(lua return 0; } -int lua_ax_studio_ActionTimelineCache_createActionFromContent(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_createActionFromContent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:createActionFromContent"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ActionTimelineCache:createActionFromContent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_createActionFromContent'", nullptr); - return 0; - } - auto&& ret = cobj->createActionFromContent(arg0, arg1); - object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:createActionFromContent",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_createActionFromContent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineCache_purge(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_purge'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_purge'", nullptr); - return 0; - } - cobj->purge(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:purge",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_purge'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineCache_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_init'", nullptr); - return 0; - } - cobj->init(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:loadAnimationActionWithContent"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ActionTimelineCache:loadAnimationActionWithContent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent'", nullptr); - return 0; - } - auto&& ret = cobj->loadAnimationActionWithContent(arg0, arg1); - object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:loadAnimationActionWithContent",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:loadAnimationActionWithFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile'", nullptr); - return 0; - } - auto&& ret = cobj->loadAnimationActionWithFile(arg0); - object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:loadAnimationActionWithFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineCache_removeAction(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineCache* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineCache_removeAction'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimelineCache:removeAction"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineCache_removeAction'", nullptr); - return 0; - } - cobj->removeAction(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineCache:removeAction",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineCache_removeAction'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionTimelineCache_createActionWithFlatBuffersForSimulator(lua_State* tolua_S) { int argc = 0; @@ -16026,15 +16077,15 @@ int lua_register_ax_studio_ActionTimelineCache(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionTimelineCache","ccs.ActionTimelineCache","",nullptr); tolua_beginmodule(tolua_S,"ActionTimelineCache"); - tolua_function(tolua_S,"createActionFromJson",lua_ax_studio_ActionTimelineCache_createActionFromJson); - tolua_function(tolua_S,"createActionWithFlatBuffersFile",lua_ax_studio_ActionTimelineCache_createActionWithFlatBuffersFile); - tolua_function(tolua_S,"loadAnimationActionWithFlatBuffersFile",lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFlatBuffersFile); - tolua_function(tolua_S,"createActionFromContent",lua_ax_studio_ActionTimelineCache_createActionFromContent); tolua_function(tolua_S,"purge",lua_ax_studio_ActionTimelineCache_purge); tolua_function(tolua_S,"init",lua_ax_studio_ActionTimelineCache_init); - tolua_function(tolua_S,"loadAnimationActionWithContent",lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent); - tolua_function(tolua_S,"loadAnimationActionWithFile",lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile); tolua_function(tolua_S,"removeAction",lua_ax_studio_ActionTimelineCache_removeAction); + tolua_function(tolua_S,"createActionFromJson",lua_ax_studio_ActionTimelineCache_createActionFromJson); + tolua_function(tolua_S,"createActionFromContent",lua_ax_studio_ActionTimelineCache_createActionFromContent); + tolua_function(tolua_S,"loadAnimationActionWithFile",lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFile); + tolua_function(tolua_S,"loadAnimationActionWithContent",lua_ax_studio_ActionTimelineCache_loadAnimationActionWithContent); + tolua_function(tolua_S,"createActionWithFlatBuffersFile",lua_ax_studio_ActionTimelineCache_createActionWithFlatBuffersFile); + tolua_function(tolua_S,"loadAnimationActionWithFlatBuffersFile",lua_ax_studio_ActionTimelineCache_loadAnimationActionWithFlatBuffersFile); tolua_function(tolua_S,"createActionWithFlatBuffersForSimulator",lua_ax_studio_ActionTimelineCache_createActionWithFlatBuffersForSimulator); tolua_function(tolua_S,"destroyInstance", lua_ax_studio_ActionTimelineCache_destroyInstance); tolua_function(tolua_S,"createAction", lua_ax_studio_ActionTimelineCache_createAction); @@ -16045,7 +16096,7 @@ int lua_register_ax_studio_ActionTimelineCache(lua_State* tolua_S) return 1; } -int lua_ax_studio_Frame_clone(lua_State* tolua_S) +int lua_ax_studio_Frame_setFrameIndex(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Frame* cobj = nullptr; @@ -16065,7 +16116,57 @@ int lua_ax_studio_Frame_clone(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_clone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ccs.Frame:setFrameIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setFrameIndex'", nullptr); + return 0; + } + cobj->setFrameIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setFrameIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_getFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getFrameIndex'", nullptr); return 0; } #endif @@ -16075,119 +16176,19 @@ int lua_ax_studio_Frame_clone(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_clone'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getFrameIndex'", nullptr); return 0; } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ccs.Frame",(cocostudio::timeline::Frame*)ret); + auto&& ret = cobj->getFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:clone",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getFrameIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_clone'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_setTweenType(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setTweenType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::tweenfunc::TweenType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Frame:setTweenType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setTweenType'", nullptr); - return 0; - } - cobj->setTweenType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setTweenType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setTweenType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_setNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ccs.Frame:setNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setNode'", nullptr); - return 0; - } - cobj->setNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setNode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getFrameIndex'.",&tolua_err); #endif return 0; @@ -16242,7 +16243,7 @@ int lua_ax_studio_Frame_setTimeline(lua_State* tolua_S) return 0; } -int lua_ax_studio_Frame_isEnterWhenPassed(lua_State* tolua_S) +int lua_ax_studio_Frame_getTimeline(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Frame* cobj = nullptr; @@ -16262,7 +16263,7 @@ int lua_ax_studio_Frame_isEnterWhenPassed(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_isEnterWhenPassed'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getTimeline'", nullptr); return 0; } #endif @@ -16272,24 +16273,24 @@ int lua_ax_studio_Frame_isEnterWhenPassed(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_isEnterWhenPassed'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getTimeline'", nullptr); return 0; } - auto&& ret = cobj->isEnterWhenPassed(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getTimeline(); + object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:isEnterWhenPassed",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getTimeline",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_isEnterWhenPassed'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getTimeline'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Frame_getTweenType(lua_State* tolua_S) +int lua_ax_studio_Frame_setNode(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Frame* cobj = nullptr; @@ -16309,101 +16310,7 @@ int lua_ax_studio_Frame_getTweenType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getTweenType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getTweenType'", nullptr); - return 0; - } - int ret = (int)cobj->getTweenType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getTweenType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getTweenType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_getEasingParams(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getEasingParams'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getEasingParams'", nullptr); - return 0; - } - auto&& ret = cobj->getEasingParams(); - ccvector_float_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getEasingParams",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getEasingParams'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_setEasingParams(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setEasingParams'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setNode'", nullptr); return 0; } #endif @@ -16411,29 +16318,29 @@ int lua_ax_studio_Frame_setEasingParams(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::vector arg0; + ax::Node* arg0; - ok &= luaval_to_std_vector_float(tolua_S, 2, &arg0, "ccs.Frame:setEasingParams"); + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ccs.Frame:setNode"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setEasingParams'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setNode'", nullptr); return 0; } - cobj->setEasingParams(arg0); + cobj->setNode(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setEasingParams",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setNode",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setEasingParams'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setNode'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Frame_getFrameIndex(lua_State* tolua_S) +int lua_ax_studio_Frame_getNode(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Frame* cobj = nullptr; @@ -16453,7 +16360,7 @@ int lua_ax_studio_Frame_getFrameIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getFrameIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getNode'", nullptr); return 0; } #endif @@ -16463,166 +16370,19 @@ int lua_ax_studio_Frame_getFrameIndex(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getFrameIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getNode'", nullptr); return 0; } - auto&& ret = cobj->getFrameIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getNode(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getFrameIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getFrameIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_apply(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_apply'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.Frame:apply"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_apply'", nullptr); - return 0; - } - cobj->apply(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:apply",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_apply'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_isTween(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_isTween'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_isTween'", nullptr); - return 0; - } - auto&& ret = cobj->isTween(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:isTween",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_isTween'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Frame_setFrameIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Frame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setFrameIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ccs.Frame:setFrameIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setFrameIndex'", nullptr); - return 0; - } - cobj->setFrameIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setFrameIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setFrameIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getNode'.",&tolua_err); #endif return 0; @@ -16677,7 +16437,7 @@ int lua_ax_studio_Frame_setTween(lua_State* tolua_S) return 0; } -int lua_ax_studio_Frame_getTimeline(lua_State* tolua_S) +int lua_ax_studio_Frame_isTween(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Frame* cobj = nullptr; @@ -16697,7 +16457,7 @@ int lua_ax_studio_Frame_getTimeline(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getTimeline'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_isTween'", nullptr); return 0; } #endif @@ -16707,24 +16467,24 @@ int lua_ax_studio_Frame_getTimeline(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getTimeline'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_isTween'", nullptr); return 0; } - auto&& ret = cobj->getTimeline(); - object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)ret); + auto&& ret = cobj->isTween(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getTimeline",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:isTween",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getTimeline'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_isTween'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Frame_getNode(lua_State* tolua_S) +int lua_ax_studio_Frame_setTweenType(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Frame* cobj = nullptr; @@ -16744,7 +16504,57 @@ int lua_ax_studio_Frame_getNode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getNode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setTweenType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::tweenfunc::TweenType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Frame:setTweenType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setTweenType'", nullptr); + return 0; + } + cobj->setTweenType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setTweenType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setTweenType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_getTweenType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getTweenType'", nullptr); return 0; } #endif @@ -16754,19 +16564,260 @@ int lua_ax_studio_Frame_getNode(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getNode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getTweenType'", nullptr); return 0; } - auto&& ret = cobj->getNode(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + int ret = (int)cobj->getTweenType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getNode",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getTweenType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getTweenType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_setEasingParams(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_setEasingParams'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::vector arg0; + + ok &= luaval_to_std_vector_float(tolua_S, 2, &arg0, "ccs.Frame:setEasingParams"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_setEasingParams'", nullptr); + return 0; + } + cobj->setEasingParams(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:setEasingParams",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_setEasingParams'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_getEasingParams(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_getEasingParams'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_getEasingParams'", nullptr); + return 0; + } + auto&& ret = cobj->getEasingParams(); + ccvector_float_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getEasingParams",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_getEasingParams'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_isEnterWhenPassed(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_isEnterWhenPassed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_isEnterWhenPassed'", nullptr); + return 0; + } + auto&& ret = cobj->isEnterWhenPassed(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:isEnterWhenPassed",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_isEnterWhenPassed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_apply(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_apply'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.Frame:apply"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_apply'", nullptr); + return 0; + } + cobj->apply(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:apply",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_apply'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Frame_clone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Frame_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Frame_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ccs.Frame",(cocostudio::timeline::Frame*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Frame_clone'.",&tolua_err); #endif return 0; @@ -16783,21 +16834,21 @@ int lua_register_ax_studio_Frame(lua_State* tolua_S) tolua_cclass(tolua_S,"Frame","ccs.Frame","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"Frame"); - tolua_function(tolua_S,"clone",lua_ax_studio_Frame_clone); - tolua_function(tolua_S,"setTweenType",lua_ax_studio_Frame_setTweenType); - tolua_function(tolua_S,"setNode",lua_ax_studio_Frame_setNode); - tolua_function(tolua_S,"setTimeline",lua_ax_studio_Frame_setTimeline); - tolua_function(tolua_S,"isEnterWhenPassed",lua_ax_studio_Frame_isEnterWhenPassed); - tolua_function(tolua_S,"getTweenType",lua_ax_studio_Frame_getTweenType); - tolua_function(tolua_S,"getEasingParams",lua_ax_studio_Frame_getEasingParams); - tolua_function(tolua_S,"setEasingParams",lua_ax_studio_Frame_setEasingParams); - tolua_function(tolua_S,"getFrameIndex",lua_ax_studio_Frame_getFrameIndex); - tolua_function(tolua_S,"apply",lua_ax_studio_Frame_apply); - tolua_function(tolua_S,"isTween",lua_ax_studio_Frame_isTween); tolua_function(tolua_S,"setFrameIndex",lua_ax_studio_Frame_setFrameIndex); - tolua_function(tolua_S,"setTween",lua_ax_studio_Frame_setTween); + tolua_function(tolua_S,"getFrameIndex",lua_ax_studio_Frame_getFrameIndex); + tolua_function(tolua_S,"setTimeline",lua_ax_studio_Frame_setTimeline); tolua_function(tolua_S,"getTimeline",lua_ax_studio_Frame_getTimeline); + tolua_function(tolua_S,"setNode",lua_ax_studio_Frame_setNode); tolua_function(tolua_S,"getNode",lua_ax_studio_Frame_getNode); + tolua_function(tolua_S,"setTween",lua_ax_studio_Frame_setTween); + tolua_function(tolua_S,"isTween",lua_ax_studio_Frame_isTween); + tolua_function(tolua_S,"setTweenType",lua_ax_studio_Frame_setTweenType); + tolua_function(tolua_S,"getTweenType",lua_ax_studio_Frame_getTweenType); + tolua_function(tolua_S,"setEasingParams",lua_ax_studio_Frame_setEasingParams); + tolua_function(tolua_S,"getEasingParams",lua_ax_studio_Frame_getEasingParams); + tolua_function(tolua_S,"isEnterWhenPassed",lua_ax_studio_Frame_isEnterWhenPassed); + tolua_function(tolua_S,"apply",lua_ax_studio_Frame_apply); + tolua_function(tolua_S,"clone",lua_ax_studio_Frame_clone); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::Frame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.Frame"; @@ -16805,53 +16856,6 @@ int lua_register_ax_studio_Frame(lua_State* tolua_S) return 1; } -int lua_ax_studio_VisibleFrame_isVisible(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::VisibleFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.VisibleFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::VisibleFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_VisibleFrame_isVisible'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_VisibleFrame_isVisible'", nullptr); - return 0; - } - auto&& ret = cobj->isVisible(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.VisibleFrame:isVisible",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_VisibleFrame_isVisible'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_VisibleFrame_setVisible(lua_State* tolua_S) { int argc = 0; @@ -16902,6 +16906,53 @@ int lua_ax_studio_VisibleFrame_setVisible(lua_State* tolua_S) return 0; } +int lua_ax_studio_VisibleFrame_isVisible(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::VisibleFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.VisibleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::VisibleFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_VisibleFrame_isVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_VisibleFrame_isVisible'", nullptr); + return 0; + } + auto&& ret = cobj->isVisible(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.VisibleFrame:isVisible",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_VisibleFrame_isVisible'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_VisibleFrame_create(lua_State* tolua_S) { int argc = 0; @@ -16986,8 +17037,8 @@ int lua_register_ax_studio_VisibleFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"VisibleFrame"); tolua_function(tolua_S,"new",lua_ax_studio_VisibleFrame_constructor); - tolua_function(tolua_S,"isVisible",lua_ax_studio_VisibleFrame_isVisible); tolua_function(tolua_S,"setVisible",lua_ax_studio_VisibleFrame_setVisible); + tolua_function(tolua_S,"isVisible",lua_ax_studio_VisibleFrame_isVisible); tolua_function(tolua_S,"create", lua_ax_studio_VisibleFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::VisibleFrame).name(); // rtti is literal storage @@ -16996,53 +17047,6 @@ int lua_register_ax_studio_VisibleFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_TextureFrame_getTextureName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::TextureFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.TextureFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::TextureFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_TextureFrame_getTextureName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_TextureFrame_getTextureName'", nullptr); - return 0; - } - auto&& ret = cobj->getTextureName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.TextureFrame:getTextureName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_TextureFrame_getTextureName'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_TextureFrame_setTextureName(lua_State* tolua_S) { int argc = 0; @@ -17093,6 +17097,53 @@ int lua_ax_studio_TextureFrame_setTextureName(lua_State* tolua_S) return 0; } +int lua_ax_studio_TextureFrame_getTextureName(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::TextureFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.TextureFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::TextureFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_TextureFrame_getTextureName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_TextureFrame_getTextureName'", nullptr); + return 0; + } + auto&& ret = cobj->getTextureName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.TextureFrame:getTextureName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_TextureFrame_getTextureName'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_TextureFrame_create(lua_State* tolua_S) { int argc = 0; @@ -17177,8 +17228,8 @@ int lua_register_ax_studio_TextureFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextureFrame"); tolua_function(tolua_S,"new",lua_ax_studio_TextureFrame_constructor); - tolua_function(tolua_S,"getTextureName",lua_ax_studio_TextureFrame_getTextureName); tolua_function(tolua_S,"setTextureName",lua_ax_studio_TextureFrame_setTextureName); + tolua_function(tolua_S,"getTextureName",lua_ax_studio_TextureFrame_getTextureName); tolua_function(tolua_S,"create", lua_ax_studio_TextureFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::TextureFrame).name(); // rtti is literal storage @@ -17378,53 +17429,6 @@ int lua_register_ax_studio_RotationFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_SkewFrame_getSkewY(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::SkewFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::SkewFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SkewFrame_getSkewY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SkewFrame_getSkewY'", nullptr); - return 0; - } - auto&& ret = cobj->getSkewY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SkewFrame:getSkewY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SkewFrame_getSkewY'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_SkewFrame_setSkewX(lua_State* tolua_S) { int argc = 0; @@ -17475,6 +17479,53 @@ int lua_ax_studio_SkewFrame_setSkewX(lua_State* tolua_S) return 0; } +int lua_ax_studio_SkewFrame_getSkewX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkewFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::SkewFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SkewFrame_getSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SkewFrame_getSkewX'", nullptr); + return 0; + } + auto&& ret = cobj->getSkewX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SkewFrame:getSkewX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SkewFrame_getSkewX'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_SkewFrame_setSkewY(lua_State* tolua_S) { int argc = 0; @@ -17525,7 +17576,7 @@ int lua_ax_studio_SkewFrame_setSkewY(lua_State* tolua_S) return 0; } -int lua_ax_studio_SkewFrame_getSkewX(lua_State* tolua_S) +int lua_ax_studio_SkewFrame_getSkewY(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::SkewFrame* cobj = nullptr; @@ -17545,7 +17596,7 @@ int lua_ax_studio_SkewFrame_getSkewX(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SkewFrame_getSkewX'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SkewFrame_getSkewY'", nullptr); return 0; } #endif @@ -17555,19 +17606,19 @@ int lua_ax_studio_SkewFrame_getSkewX(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SkewFrame_getSkewX'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SkewFrame_getSkewY'", nullptr); return 0; } - auto&& ret = cobj->getSkewX(); + auto&& ret = cobj->getSkewY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SkewFrame:getSkewX",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SkewFrame:getSkewY",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SkewFrame_getSkewX'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SkewFrame_getSkewY'.",&tolua_err); #endif return 0; @@ -17656,10 +17707,10 @@ int lua_register_ax_studio_SkewFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SkewFrame"); tolua_function(tolua_S,"new",lua_ax_studio_SkewFrame_constructor); - tolua_function(tolua_S,"getSkewY",lua_ax_studio_SkewFrame_getSkewY); tolua_function(tolua_S,"setSkewX",lua_ax_studio_SkewFrame_setSkewX); - tolua_function(tolua_S,"setSkewY",lua_ax_studio_SkewFrame_setSkewY); tolua_function(tolua_S,"getSkewX",lua_ax_studio_SkewFrame_getSkewX); + tolua_function(tolua_S,"setSkewY",lua_ax_studio_SkewFrame_setSkewY); + tolua_function(tolua_S,"getSkewY",lua_ax_studio_SkewFrame_getSkewY); tolua_function(tolua_S,"create", lua_ax_studio_SkewFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::SkewFrame).name(); // rtti is literal storage @@ -17760,100 +17811,6 @@ int lua_register_ax_studio_RotationSkewFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_PositionFrame_getX(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::PositionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PositionFrame_getX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PositionFrame_getX'", nullptr); - return 0; - } - auto&& ret = cobj->getX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PositionFrame:getX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PositionFrame_getX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_PositionFrame_getY(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::PositionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PositionFrame_getY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PositionFrame_getY'", nullptr); - return 0; - } - auto&& ret = cobj->getY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PositionFrame:getY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PositionFrame_getY'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_PositionFrame_setPosition(lua_State* tolua_S) { int argc = 0; @@ -17904,6 +17861,53 @@ int lua_ax_studio_PositionFrame_setPosition(lua_State* tolua_S) return 0; } +int lua_ax_studio_PositionFrame_getPosition(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PositionFrame_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PositionFrame_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + point_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PositionFrame:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PositionFrame_getPosition'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_PositionFrame_setX(lua_State* tolua_S) { int argc = 0; @@ -18004,7 +18008,7 @@ int lua_ax_studio_PositionFrame_setY(lua_State* tolua_S) return 0; } -int lua_ax_studio_PositionFrame_getPosition(lua_State* tolua_S) +int lua_ax_studio_PositionFrame_getX(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::PositionFrame* cobj = nullptr; @@ -18024,7 +18028,7 @@ int lua_ax_studio_PositionFrame_getPosition(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PositionFrame_getPosition'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PositionFrame_getX'", nullptr); return 0; } #endif @@ -18034,19 +18038,66 @@ int lua_ax_studio_PositionFrame_getPosition(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PositionFrame_getPosition'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PositionFrame_getX'", nullptr); return 0; } - auto&& ret = cobj->getPosition(); - point_to_luaval(tolua_S, ret); + auto&& ret = cobj->getX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PositionFrame:getPosition",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PositionFrame:getX",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PositionFrame_getPosition'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PositionFrame_getX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_PositionFrame_getY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PositionFrame_getY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PositionFrame_getY'", nullptr); + return 0; + } + auto&& ret = cobj->getY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PositionFrame:getY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PositionFrame_getY'.",&tolua_err); #endif return 0; @@ -18135,12 +18186,12 @@ int lua_register_ax_studio_PositionFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PositionFrame"); tolua_function(tolua_S,"new",lua_ax_studio_PositionFrame_constructor); - tolua_function(tolua_S,"getX",lua_ax_studio_PositionFrame_getX); - tolua_function(tolua_S,"getY",lua_ax_studio_PositionFrame_getY); tolua_function(tolua_S,"setPosition",lua_ax_studio_PositionFrame_setPosition); + tolua_function(tolua_S,"getPosition",lua_ax_studio_PositionFrame_getPosition); tolua_function(tolua_S,"setX",lua_ax_studio_PositionFrame_setX); tolua_function(tolua_S,"setY",lua_ax_studio_PositionFrame_setY); - tolua_function(tolua_S,"getPosition",lua_ax_studio_PositionFrame_getPosition); + tolua_function(tolua_S,"getX",lua_ax_studio_PositionFrame_getX); + tolua_function(tolua_S,"getY",lua_ax_studio_PositionFrame_getY); tolua_function(tolua_S,"create", lua_ax_studio_PositionFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::PositionFrame).name(); // rtti is literal storage @@ -18149,7 +18200,7 @@ int lua_register_ax_studio_PositionFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_ScaleFrame_setScaleY(lua_State* tolua_S) +int lua_ax_studio_ScaleFrame_setScale(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::ScaleFrame* cobj = nullptr; @@ -18169,7 +18220,7 @@ int lua_ax_studio_ScaleFrame_setScaleY(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ScaleFrame_setScaleY'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ScaleFrame_setScale'", nullptr); return 0; } #endif @@ -18179,22 +18230,22 @@ int lua_ax_studio_ScaleFrame_setScaleY(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ScaleFrame:setScaleY"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ScaleFrame:setScale"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ScaleFrame_setScaleY'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ScaleFrame_setScale'", nullptr); return 0; } - cobj->setScaleY(arg0); + cobj->setScale(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ScaleFrame:setScaleY",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ScaleFrame:setScale",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ScaleFrame_setScaleY'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ScaleFrame_setScale'.",&tolua_err); #endif return 0; @@ -18249,53 +18300,6 @@ int lua_ax_studio_ScaleFrame_setScaleX(lua_State* tolua_S) return 0; } -int lua_ax_studio_ScaleFrame_getScaleY(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ScaleFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ScaleFrame_getScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ScaleFrame_getScaleY'", nullptr); - return 0; - } - auto&& ret = cobj->getScaleY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ScaleFrame:getScaleY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ScaleFrame_getScaleY'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ScaleFrame_getScaleX(lua_State* tolua_S) { int argc = 0; @@ -18343,7 +18347,7 @@ int lua_ax_studio_ScaleFrame_getScaleX(lua_State* tolua_S) return 0; } -int lua_ax_studio_ScaleFrame_setScale(lua_State* tolua_S) +int lua_ax_studio_ScaleFrame_setScaleY(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::ScaleFrame* cobj = nullptr; @@ -18363,7 +18367,7 @@ int lua_ax_studio_ScaleFrame_setScale(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ScaleFrame_setScale'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ScaleFrame_setScaleY'", nullptr); return 0; } #endif @@ -18373,22 +18377,69 @@ int lua_ax_studio_ScaleFrame_setScale(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ScaleFrame:setScale"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ScaleFrame:setScaleY"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ScaleFrame_setScale'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ScaleFrame_setScaleY'", nullptr); return 0; } - cobj->setScale(arg0); + cobj->setScaleY(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ScaleFrame:setScale",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ScaleFrame:setScaleY",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ScaleFrame_setScale'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ScaleFrame_setScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ScaleFrame_getScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ScaleFrame_getScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ScaleFrame_getScaleY'", nullptr); + return 0; + } + auto&& ret = cobj->getScaleY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ScaleFrame:getScaleY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ScaleFrame_getScaleY'.",&tolua_err); #endif return 0; @@ -18477,11 +18528,11 @@ int lua_register_ax_studio_ScaleFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ScaleFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ScaleFrame_constructor); - tolua_function(tolua_S,"setScaleY",lua_ax_studio_ScaleFrame_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_ax_studio_ScaleFrame_setScaleX); - tolua_function(tolua_S,"getScaleY",lua_ax_studio_ScaleFrame_getScaleY); - tolua_function(tolua_S,"getScaleX",lua_ax_studio_ScaleFrame_getScaleX); tolua_function(tolua_S,"setScale",lua_ax_studio_ScaleFrame_setScale); + tolua_function(tolua_S,"setScaleX",lua_ax_studio_ScaleFrame_setScaleX); + tolua_function(tolua_S,"getScaleX",lua_ax_studio_ScaleFrame_getScaleX); + tolua_function(tolua_S,"setScaleY",lua_ax_studio_ScaleFrame_setScaleY); + tolua_function(tolua_S,"getScaleY",lua_ax_studio_ScaleFrame_getScaleY); tolua_function(tolua_S,"create", lua_ax_studio_ScaleFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::ScaleFrame).name(); // rtti is literal storage @@ -18681,7 +18732,7 @@ int lua_register_ax_studio_AnchorPointFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_InnerActionFrame_getEndFrameIndex(lua_State* tolua_S) +int lua_ax_studio_InnerActionFrame_setInnerActionType(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::InnerActionFrame* cobj = nullptr; @@ -18701,76 +18752,32 @@ int lua_ax_studio_InnerActionFrame_getEndFrameIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_getEndFrameIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_setInnerActionType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + cocostudio::timeline::InnerActionType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.InnerActionFrame:setInnerActionType"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_getEndFrameIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_setInnerActionType'", nullptr); return 0; } - auto&& ret = cobj->getEndFrameIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setInnerActionType(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:getEndFrameIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:setInnerActionType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_getEndFrameIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_InnerActionFrame_getStartFrameIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::InnerActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_getStartFrameIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_getStartFrameIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getStartFrameIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:getStartFrameIndex",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_getStartFrameIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_setInnerActionType'.",&tolua_err); #endif return 0; @@ -18822,56 +18829,6 @@ int lua_ax_studio_InnerActionFrame_getInnerActionType(lua_State* tolua_S) return 0; } -int lua_ax_studio_InnerActionFrame_setEndFrameIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::InnerActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_setEndFrameIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.InnerActionFrame:setEndFrameIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_setEndFrameIndex'", nullptr); - return 0; - } - cobj->setEndFrameIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:setEndFrameIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_setEndFrameIndex'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_InnerActionFrame_setEnterWithName(lua_State* tolua_S) { int argc = 0; @@ -18922,56 +18879,6 @@ int lua_ax_studio_InnerActionFrame_setEnterWithName(lua_State* tolua_S) return 0; } -int lua_ax_studio_InnerActionFrame_setSingleFrameIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::InnerActionFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_setSingleFrameIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.InnerActionFrame:setSingleFrameIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_setSingleFrameIndex'", nullptr); - return 0; - } - cobj->setSingleFrameIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:setSingleFrameIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_setSingleFrameIndex'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_InnerActionFrame_setStartFrameIndex(lua_State* tolua_S) { int argc = 0; @@ -19022,7 +18929,7 @@ int lua_ax_studio_InnerActionFrame_setStartFrameIndex(lua_State* tolua_S) return 0; } -int lua_ax_studio_InnerActionFrame_getSingleFrameIndex(lua_State* tolua_S) +int lua_ax_studio_InnerActionFrame_getStartFrameIndex(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::InnerActionFrame* cobj = nullptr; @@ -19042,7 +18949,7 @@ int lua_ax_studio_InnerActionFrame_getSingleFrameIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_getSingleFrameIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_getStartFrameIndex'", nullptr); return 0; } #endif @@ -19052,24 +18959,24 @@ int lua_ax_studio_InnerActionFrame_getSingleFrameIndex(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_getSingleFrameIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_getStartFrameIndex'", nullptr); return 0; } - auto&& ret = cobj->getSingleFrameIndex(); + auto&& ret = cobj->getStartFrameIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:getSingleFrameIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:getStartFrameIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_getSingleFrameIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_getStartFrameIndex'.",&tolua_err); #endif return 0; } -int lua_ax_studio_InnerActionFrame_setInnerActionType(lua_State* tolua_S) +int lua_ax_studio_InnerActionFrame_setEndFrameIndex(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::InnerActionFrame* cobj = nullptr; @@ -19089,7 +18996,7 @@ int lua_ax_studio_InnerActionFrame_setInnerActionType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_setInnerActionType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_setEndFrameIndex'", nullptr); return 0; } #endif @@ -19097,24 +19004,71 @@ int lua_ax_studio_InnerActionFrame_setInnerActionType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocostudio::timeline::InnerActionType arg0; + int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.InnerActionFrame:setInnerActionType"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.InnerActionFrame:setEndFrameIndex"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_setInnerActionType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_setEndFrameIndex'", nullptr); return 0; } - cobj->setInnerActionType(arg0); + cobj->setEndFrameIndex(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:setInnerActionType",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:setEndFrameIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_setInnerActionType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_setEndFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_InnerActionFrame_getEndFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_getEndFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_getEndFrameIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getEndFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:getEndFrameIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_getEndFrameIndex'.",&tolua_err); #endif return 0; @@ -19169,6 +19123,103 @@ int lua_ax_studio_InnerActionFrame_setAnimationName(lua_State* tolua_S) return 0; } +int lua_ax_studio_InnerActionFrame_setSingleFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_setSingleFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.InnerActionFrame:setSingleFrameIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_setSingleFrameIndex'", nullptr); + return 0; + } + cobj->setSingleFrameIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:setSingleFrameIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_setSingleFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_InnerActionFrame_getSingleFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_InnerActionFrame_getSingleFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_InnerActionFrame_getSingleFrameIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getSingleFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.InnerActionFrame:getSingleFrameIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_InnerActionFrame_getSingleFrameIndex'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_InnerActionFrame_create(lua_State* tolua_S) { int argc = 0; @@ -19253,16 +19304,16 @@ int lua_register_ax_studio_InnerActionFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"InnerActionFrame"); tolua_function(tolua_S,"new",lua_ax_studio_InnerActionFrame_constructor); - tolua_function(tolua_S,"getEndFrameIndex",lua_ax_studio_InnerActionFrame_getEndFrameIndex); - tolua_function(tolua_S,"getStartFrameIndex",lua_ax_studio_InnerActionFrame_getStartFrameIndex); - tolua_function(tolua_S,"getInnerActionType",lua_ax_studio_InnerActionFrame_getInnerActionType); - tolua_function(tolua_S,"setEndFrameIndex",lua_ax_studio_InnerActionFrame_setEndFrameIndex); - tolua_function(tolua_S,"setEnterWithName",lua_ax_studio_InnerActionFrame_setEnterWithName); - tolua_function(tolua_S,"setSingleFrameIndex",lua_ax_studio_InnerActionFrame_setSingleFrameIndex); - tolua_function(tolua_S,"setStartFrameIndex",lua_ax_studio_InnerActionFrame_setStartFrameIndex); - tolua_function(tolua_S,"getSingleFrameIndex",lua_ax_studio_InnerActionFrame_getSingleFrameIndex); tolua_function(tolua_S,"setInnerActionType",lua_ax_studio_InnerActionFrame_setInnerActionType); + tolua_function(tolua_S,"getInnerActionType",lua_ax_studio_InnerActionFrame_getInnerActionType); + tolua_function(tolua_S,"setEnterWithName",lua_ax_studio_InnerActionFrame_setEnterWithName); + tolua_function(tolua_S,"setStartFrameIndex",lua_ax_studio_InnerActionFrame_setStartFrameIndex); + tolua_function(tolua_S,"getStartFrameIndex",lua_ax_studio_InnerActionFrame_getStartFrameIndex); + tolua_function(tolua_S,"setEndFrameIndex",lua_ax_studio_InnerActionFrame_setEndFrameIndex); + tolua_function(tolua_S,"getEndFrameIndex",lua_ax_studio_InnerActionFrame_getEndFrameIndex); tolua_function(tolua_S,"setAnimationName",lua_ax_studio_InnerActionFrame_setAnimationName); + tolua_function(tolua_S,"setSingleFrameIndex",lua_ax_studio_InnerActionFrame_setSingleFrameIndex); + tolua_function(tolua_S,"getSingleFrameIndex",lua_ax_studio_InnerActionFrame_getSingleFrameIndex); tolua_function(tolua_S,"create", lua_ax_studio_InnerActionFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::InnerActionFrame).name(); // rtti is literal storage @@ -19271,53 +19322,6 @@ int lua_register_ax_studio_InnerActionFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_ColorFrame_getColor(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ColorFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ColorFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ColorFrame_getColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ColorFrame_getColor'", nullptr); - return 0; - } - auto&& ret = cobj->getColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ColorFrame:getColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ColorFrame_getColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ColorFrame_setColor(lua_State* tolua_S) { int argc = 0; @@ -19368,6 +19372,53 @@ int lua_ax_studio_ColorFrame_setColor(lua_State* tolua_S) return 0; } +int lua_ax_studio_ColorFrame_getColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ColorFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ColorFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ColorFrame_getColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ColorFrame_getColor'", nullptr); + return 0; + } + auto&& ret = cobj->getColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ColorFrame:getColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ColorFrame_getColor'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ColorFrame_create(lua_State* tolua_S) { int argc = 0; @@ -19452,8 +19503,8 @@ int lua_register_ax_studio_ColorFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ColorFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ColorFrame_constructor); - tolua_function(tolua_S,"getColor",lua_ax_studio_ColorFrame_getColor); tolua_function(tolua_S,"setColor",lua_ax_studio_ColorFrame_setColor); + tolua_function(tolua_S,"getColor",lua_ax_studio_ColorFrame_getColor); tolua_function(tolua_S,"create", lua_ax_studio_ColorFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::ColorFrame).name(); // rtti is literal storage @@ -19462,53 +19513,6 @@ int lua_register_ax_studio_ColorFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_AlphaFrame_getAlpha(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::AlphaFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.AlphaFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::AlphaFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_AlphaFrame_getAlpha'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_AlphaFrame_getAlpha'", nullptr); - return 0; - } - auto&& ret = cobj->getAlpha(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.AlphaFrame:getAlpha",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_AlphaFrame_getAlpha'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_AlphaFrame_setAlpha(lua_State* tolua_S) { int argc = 0; @@ -19559,6 +19563,53 @@ int lua_ax_studio_AlphaFrame_setAlpha(lua_State* tolua_S) return 0; } +int lua_ax_studio_AlphaFrame_getAlpha(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::AlphaFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.AlphaFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::AlphaFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_AlphaFrame_getAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_AlphaFrame_getAlpha'", nullptr); + return 0; + } + auto&& ret = cobj->getAlpha(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.AlphaFrame:getAlpha",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_AlphaFrame_getAlpha'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_AlphaFrame_create(lua_State* tolua_S) { int argc = 0; @@ -19643,8 +19694,8 @@ int lua_register_ax_studio_AlphaFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AlphaFrame"); tolua_function(tolua_S,"new",lua_ax_studio_AlphaFrame_constructor); - tolua_function(tolua_S,"getAlpha",lua_ax_studio_AlphaFrame_getAlpha); tolua_function(tolua_S,"setAlpha",lua_ax_studio_AlphaFrame_setAlpha); + tolua_function(tolua_S,"getAlpha",lua_ax_studio_AlphaFrame_getAlpha); tolua_function(tolua_S,"create", lua_ax_studio_AlphaFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::AlphaFrame).name(); // rtti is literal storage @@ -19653,6 +19704,53 @@ int lua_register_ax_studio_AlphaFrame(lua_State* tolua_S) return 1; } +int lua_ax_studio_EventFrame_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::EventFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.EventFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::EventFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_EventFrame_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_EventFrame_init'", nullptr); + return 0; + } + cobj->init(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.EventFrame:init",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_EventFrame_init'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_EventFrame_setEvent(lua_State* tolua_S) { int argc = 0; @@ -19703,53 +19801,6 @@ int lua_ax_studio_EventFrame_setEvent(lua_State* tolua_S) return 0; } -int lua_ax_studio_EventFrame_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::EventFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.EventFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::EventFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_EventFrame_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_EventFrame_init'", nullptr); - return 0; - } - cobj->init(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.EventFrame:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_EventFrame_init'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_EventFrame_getEvent(lua_State* tolua_S) { int argc = 0; @@ -19881,8 +19932,8 @@ int lua_register_ax_studio_EventFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventFrame"); tolua_function(tolua_S,"new",lua_ax_studio_EventFrame_constructor); - tolua_function(tolua_S,"setEvent",lua_ax_studio_EventFrame_setEvent); tolua_function(tolua_S,"init",lua_ax_studio_EventFrame_init); + tolua_function(tolua_S,"setEvent",lua_ax_studio_EventFrame_setEvent); tolua_function(tolua_S,"getEvent",lua_ax_studio_EventFrame_getEvent); tolua_function(tolua_S,"create", lua_ax_studio_EventFrame_create); tolua_endmodule(tolua_S); @@ -19892,53 +19943,6 @@ int lua_register_ax_studio_EventFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_ZOrderFrame_getZOrder(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ZOrderFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ZOrderFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ZOrderFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ZOrderFrame_getZOrder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ZOrderFrame_getZOrder'", nullptr); - return 0; - } - auto&& ret = cobj->getZOrder(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ZOrderFrame:getZOrder",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ZOrderFrame_getZOrder'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ZOrderFrame_setZOrder(lua_State* tolua_S) { int argc = 0; @@ -19989,6 +19993,53 @@ int lua_ax_studio_ZOrderFrame_setZOrder(lua_State* tolua_S) return 0; } +int lua_ax_studio_ZOrderFrame_getZOrder(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ZOrderFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ZOrderFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ZOrderFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ZOrderFrame_getZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ZOrderFrame_getZOrder'", nullptr); + return 0; + } + auto&& ret = cobj->getZOrder(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ZOrderFrame:getZOrder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ZOrderFrame_getZOrder'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ZOrderFrame_create(lua_State* tolua_S) { int argc = 0; @@ -20073,8 +20124,8 @@ int lua_register_ax_studio_ZOrderFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ZOrderFrame"); tolua_function(tolua_S,"new",lua_ax_studio_ZOrderFrame_constructor); - tolua_function(tolua_S,"getZOrder",lua_ax_studio_ZOrderFrame_getZOrder); tolua_function(tolua_S,"setZOrder",lua_ax_studio_ZOrderFrame_setZOrder); + tolua_function(tolua_S,"getZOrder",lua_ax_studio_ZOrderFrame_getZOrder); tolua_function(tolua_S,"create", lua_ax_studio_ZOrderFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::ZOrderFrame).name(); // rtti is literal storage @@ -20274,6 +20325,53 @@ int lua_register_ax_studio_BlendFuncFrame(lua_State* tolua_S) return 1; } +int lua_ax_studio_PlayableFrame_getPlayableAct(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PlayableFrame* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PlayableFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PlayableFrame*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PlayableFrame_getPlayableAct'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PlayableFrame_getPlayableAct'", nullptr); + return 0; + } + auto&& ret = cobj->getPlayableAct(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PlayableFrame:getPlayableAct",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PlayableFrame_getPlayableAct'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_PlayableFrame_setPlayableAct(lua_State* tolua_S) { int argc = 0; @@ -20324,53 +20422,6 @@ int lua_ax_studio_PlayableFrame_setPlayableAct(lua_State* tolua_S) return 0; } -int lua_ax_studio_PlayableFrame_getPlayableAct(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::PlayableFrame* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.PlayableFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::PlayableFrame*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_PlayableFrame_getPlayableAct'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_PlayableFrame_getPlayableAct'", nullptr); - return 0; - } - auto&& ret = cobj->getPlayableAct(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.PlayableFrame:getPlayableAct",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_PlayableFrame_getPlayableAct'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_PlayableFrame_create(lua_State* tolua_S) { int argc = 0; @@ -20455,8 +20506,8 @@ int lua_register_ax_studio_PlayableFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PlayableFrame"); tolua_function(tolua_S,"new",lua_ax_studio_PlayableFrame_constructor); - tolua_function(tolua_S,"setPlayableAct",lua_ax_studio_PlayableFrame_setPlayableAct); tolua_function(tolua_S,"getPlayableAct",lua_ax_studio_PlayableFrame_getPlayableAct); + tolua_function(tolua_S,"setPlayableAct",lua_ax_studio_PlayableFrame_setPlayableAct); tolua_function(tolua_S,"create", lua_ax_studio_PlayableFrame_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::PlayableFrame).name(); // rtti is literal storage @@ -20465,53 +20516,6 @@ int lua_register_ax_studio_PlayableFrame(lua_State* tolua_S) return 1; } -int lua_ax_studio_Timeline_clone(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Timeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_clone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Timeline_gotoFrame(lua_State* tolua_S) { int argc = 0; @@ -20562,7 +20566,7 @@ int lua_ax_studio_Timeline_gotoFrame(lua_State* tolua_S) return 0; } -int lua_ax_studio_Timeline_setNode(lua_State* tolua_S) +int lua_ax_studio_Timeline_stepToFrame(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Timeline* cobj = nullptr; @@ -20582,7 +20586,7 @@ int lua_ax_studio_Timeline_setNode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_setNode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_stepToFrame'", nullptr); return 0; } #endif @@ -20590,29 +20594,29 @@ int lua_ax_studio_Timeline_setNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Node* arg0; + int arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ccs.Timeline:setNode"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Timeline:stepToFrame"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_setNode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_stepToFrame'", nullptr); return 0; } - cobj->setNode(arg0); + cobj->stepToFrame(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:setNode",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:stepToFrame",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_setNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_stepToFrame'.",&tolua_err); #endif return 0; } -int lua_ax_studio_Timeline_getActionTimeline(lua_State* tolua_S) +int lua_ax_studio_Timeline_getFrames(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Timeline* cobj = nullptr; @@ -20632,7 +20636,7 @@ int lua_ax_studio_Timeline_getActionTimeline(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_getActionTimeline'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_getFrames'", nullptr); return 0; } #endif @@ -20642,19 +20646,69 @@ int lua_ax_studio_Timeline_getActionTimeline(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_getActionTimeline'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_getFrames'", nullptr); return 0; } - auto&& ret = cobj->getActionTimeline(); - object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + auto&& ret = cobj->getFrames(); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:getActionTimeline",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:getFrames",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_getActionTimeline'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_getFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Timeline_addFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_addFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Frame* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0, "ccs.Timeline:addFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_addFrame'", nullptr); + return 0; + } + cobj->addFrame(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:addFrame",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_addFrame'.",&tolua_err); #endif return 0; @@ -20712,6 +20766,56 @@ int lua_ax_studio_Timeline_insertFrame(lua_State* tolua_S) return 0; } +int lua_ax_studio_Timeline_removeFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_removeFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Frame* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0, "ccs.Timeline:removeFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_removeFrame'", nullptr); + return 0; + } + cobj->removeFrame(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:removeFrame",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_removeFrame'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_Timeline_setActionTag(lua_State* tolua_S) { int argc = 0; @@ -20762,103 +20866,6 @@ int lua_ax_studio_Timeline_setActionTag(lua_State* tolua_S) return 0; } -int lua_ax_studio_Timeline_addFrame(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Timeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_addFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::timeline::Frame* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0, "ccs.Timeline:addFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_addFrame'", nullptr); - return 0; - } - cobj->addFrame(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:addFrame",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_addFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_Timeline_getFrames(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Timeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_getFrames'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_getFrames'", nullptr); - return 0; - } - auto&& ret = cobj->getFrames(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:getFrames",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_getFrames'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Timeline_getActionTag(lua_State* tolua_S) { int argc = 0; @@ -20906,6 +20913,56 @@ int lua_ax_studio_Timeline_getActionTag(lua_State* tolua_S) return 0; } +int lua_ax_studio_Timeline_setNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_setNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ccs.Timeline:setNode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_setNode'", nullptr); + return 0; + } + cobj->setNode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:setNode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_setNode'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_Timeline_getNode(lua_State* tolua_S) { int argc = 0; @@ -20953,56 +21010,6 @@ int lua_ax_studio_Timeline_getNode(lua_State* tolua_S) return 0; } -int lua_ax_studio_Timeline_removeFrame(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::Timeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_removeFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::timeline::Frame* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0, "ccs.Timeline:removeFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_removeFrame'", nullptr); - return 0; - } - cobj->removeFrame(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:removeFrame",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_removeFrame'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_Timeline_setActionTimeline(lua_State* tolua_S) { int argc = 0; @@ -21053,7 +21060,7 @@ int lua_ax_studio_Timeline_setActionTimeline(lua_State* tolua_S) return 0; } -int lua_ax_studio_Timeline_stepToFrame(lua_State* tolua_S) +int lua_ax_studio_Timeline_getActionTimeline(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::Timeline* cobj = nullptr; @@ -21073,32 +21080,76 @@ int lua_ax_studio_Timeline_stepToFrame(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_stepToFrame'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_getActionTimeline'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Timeline:stepToFrame"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_stepToFrame'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_getActionTimeline'", nullptr); return 0; } - cobj->stepToFrame(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getActionTimeline(); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:stepToFrame",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:getActionTimeline",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_stepToFrame'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_getActionTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_Timeline_clone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_Timeline_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_Timeline_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_Timeline_clone'.",&tolua_err); #endif return 0; @@ -21187,19 +21238,19 @@ int lua_register_ax_studio_Timeline(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Timeline"); tolua_function(tolua_S,"new",lua_ax_studio_Timeline_constructor); - tolua_function(tolua_S,"clone",lua_ax_studio_Timeline_clone); tolua_function(tolua_S,"gotoFrame",lua_ax_studio_Timeline_gotoFrame); - tolua_function(tolua_S,"setNode",lua_ax_studio_Timeline_setNode); - tolua_function(tolua_S,"getActionTimeline",lua_ax_studio_Timeline_getActionTimeline); - tolua_function(tolua_S,"insertFrame",lua_ax_studio_Timeline_insertFrame); - tolua_function(tolua_S,"setActionTag",lua_ax_studio_Timeline_setActionTag); - tolua_function(tolua_S,"addFrame",lua_ax_studio_Timeline_addFrame); - tolua_function(tolua_S,"getFrames",lua_ax_studio_Timeline_getFrames); - tolua_function(tolua_S,"getActionTag",lua_ax_studio_Timeline_getActionTag); - tolua_function(tolua_S,"getNode",lua_ax_studio_Timeline_getNode); - tolua_function(tolua_S,"removeFrame",lua_ax_studio_Timeline_removeFrame); - tolua_function(tolua_S,"setActionTimeline",lua_ax_studio_Timeline_setActionTimeline); tolua_function(tolua_S,"stepToFrame",lua_ax_studio_Timeline_stepToFrame); + tolua_function(tolua_S,"getFrames",lua_ax_studio_Timeline_getFrames); + tolua_function(tolua_S,"addFrame",lua_ax_studio_Timeline_addFrame); + tolua_function(tolua_S,"insertFrame",lua_ax_studio_Timeline_insertFrame); + tolua_function(tolua_S,"removeFrame",lua_ax_studio_Timeline_removeFrame); + tolua_function(tolua_S,"setActionTag",lua_ax_studio_Timeline_setActionTag); + tolua_function(tolua_S,"getActionTag",lua_ax_studio_Timeline_getActionTag); + tolua_function(tolua_S,"setNode",lua_ax_studio_Timeline_setNode); + tolua_function(tolua_S,"getNode",lua_ax_studio_Timeline_getNode); + tolua_function(tolua_S,"setActionTimeline",lua_ax_studio_Timeline_setActionTimeline); + tolua_function(tolua_S,"getActionTimeline",lua_ax_studio_Timeline_getActionTimeline); + tolua_function(tolua_S,"clone",lua_ax_studio_Timeline_clone); tolua_function(tolua_S,"create", lua_ax_studio_Timeline_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::Timeline).name(); // rtti is literal storage @@ -21258,6 +21309,53 @@ int lua_ax_studio_ActionTimelineData_setActionTag(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionTimelineData_getActionTag(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineData_getActionTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineData_getActionTag'", nullptr); + return 0; + } + auto&& ret = cobj->getActionTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineData:getActionTag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineData_getActionTag'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimelineData_init(lua_State* tolua_S) { int argc = 0; @@ -21308,53 +21406,6 @@ int lua_ax_studio_ActionTimelineData_init(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionTimelineData_getActionTag(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineData* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineData",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineData*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineData_getActionTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineData_getActionTag'", nullptr); - return 0; - } - auto&& ret = cobj->getActionTag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineData:getActionTag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineData_getActionTag'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionTimelineData_create(lua_State* tolua_S) { int argc = 0; @@ -21442,8 +21493,8 @@ int lua_register_ax_studio_ActionTimelineData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionTimelineData"); tolua_function(tolua_S,"new",lua_ax_studio_ActionTimelineData_constructor); tolua_function(tolua_S,"setActionTag",lua_ax_studio_ActionTimelineData_setActionTag); - tolua_function(tolua_S,"init",lua_ax_studio_ActionTimelineData_init); tolua_function(tolua_S,"getActionTag",lua_ax_studio_ActionTimelineData_getActionTag); + tolua_function(tolua_S,"init",lua_ax_studio_ActionTimelineData_init); tolua_function(tolua_S,"create", lua_ax_studio_ActionTimelineData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::ActionTimelineData).name(); // rtti is literal storage @@ -21452,593 +21503,6 @@ int lua_register_ax_studio_ActionTimelineData(lua_State* tolua_S) return 1; } -int lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs'", nullptr); - return 0; - } - cobj->clearFrameEndCallFuncs(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:clearFrameEndCallFuncs",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_setAnimationEndCallFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_setAnimationEndCallFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string arg0; - std::function arg1; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.ActionTimeline:setAnimationEndCallFunc"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_setAnimationEndCallFunc'", nullptr); - return 0; - } - cobj->setAnimationEndCallFunc(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:setAnimationEndCallFunc",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_setAnimationEndCallFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_addTimeline(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_addTimeline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::timeline::Timeline* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0, "ccs.ActionTimeline:addTimeline"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_addTimeline'", nullptr); - return 0; - } - cobj->addTimeline(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:addTimeline",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_addTimeline'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_getCurrentFrame(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getCurrentFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getCurrentFrame'", nullptr); - return 0; - } - auto&& ret = cobj->getCurrentFrame(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getCurrentFrame",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getCurrentFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_getStartFrame(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getStartFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getStartFrame'", nullptr); - return 0; - } - auto&& ret = cobj->getStartFrame(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getStartFrame",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getStartFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_pause(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_pause'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_pause'", nullptr); - return 0; - } - cobj->pause(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:pause",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_pause'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_start(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_start'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_start'", nullptr); - return 0; - } - cobj->start(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:start",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_start'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:init",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_removeTimeline(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_removeTimeline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::timeline::Timeline* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0, "ccs.ActionTimeline:removeTimeline"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_removeTimeline'", nullptr); - return 0; - } - cobj->removeTimeline(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:removeTimeline",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_removeTimeline'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_clearFrameEventCallFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_clearFrameEventCallFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_clearFrameEventCallFunc'", nullptr); - return 0; - } - cobj->clearFrameEventCallFunc(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:clearFrameEventCallFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_clearFrameEventCallFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_setLastFrameCallFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_setLastFrameCallFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_setLastFrameCallFunc'", nullptr); - return 0; - } - cobj->setLastFrameCallFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:setLastFrameCallFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_setLastFrameCallFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_getTimelines(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getTimelines'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getTimelines'", nullptr); - return 0; - } - auto&& ret = cobj->getTimelines(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getTimelines",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getTimelines'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionTimeline_play(lua_State* tolua_S) { int argc = 0; @@ -22092,7 +21556,7 @@ int lua_ax_studio_ActionTimeline_play(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionTimeline_getAnimationInfo(lua_State* tolua_S) +int lua_ax_studio_ActionTimeline_init(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::ActionTimeline* cobj = nullptr; @@ -22112,57 +21576,7 @@ int lua_ax_studio_ActionTimeline_getAnimationInfo(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getAnimationInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimeline:getAnimationInfo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getAnimationInfo'", nullptr); - return 0; - } - auto&& ret = cobj->getAnimationInfo(arg0); - animationInfo_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getAnimationInfo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getAnimationInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_resume(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_resume'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_init'", nullptr); return 0; } #endif @@ -22172,420 +21586,19 @@ int lua_ax_studio_ActionTimeline_resume(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_resume'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_init'", nullptr); return 0; } - cobj->resume(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:resume",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_resume'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_addFrameEndCallFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_addFrameEndCallFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - std::string_view arg1; - std::function arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimeline:addFrameEndCallFunc"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ActionTimeline:addFrameEndCallFunc"); - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_addFrameEndCallFunc'", nullptr); - return 0; - } - cobj->addFrameEndCallFunc(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:addFrameEndCallFunc",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_addFrameEndCallFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_removeAnimationInfo(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_removeAnimationInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.ActionTimeline:removeAnimationInfo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_removeAnimationInfo'", nullptr); - return 0; - } - cobj->removeAnimationInfo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:removeAnimationInfo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_removeAnimationInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_getTimeSpeed(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getTimeSpeed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getTimeSpeed'", nullptr); - return 0; - } - auto&& ret = cobj->getTimeSpeed(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getTimeSpeed",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getTimeSpeed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_addAnimationInfo(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_addAnimationInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::timeline::AnimationInfo arg0; - - ok &= luaval_to_animationInfo(tolua_S, 2, &arg0, "ccs.ActionTimeline:addAnimationInfo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_addAnimationInfo'", nullptr); - return 0; - } - cobj->addAnimationInfo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:addAnimationInfo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_addAnimationInfo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_getDuration(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getDuration'", nullptr); - return 0; - } - auto&& ret = cobj->getDuration(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getDuration",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getDuration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_gotoFrameAndPause(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_gotoFrameAndPause'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimeline:gotoFrameAndPause"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_gotoFrameAndPause'", nullptr); - return 0; - } - cobj->gotoFrameAndPause(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:gotoFrameAndPause",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_gotoFrameAndPause'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_isPlaying(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_isPlaying'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_isPlaying'", nullptr); - return 0; - } - auto&& ret = cobj->isPlaying(); + auto&& ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:isPlaying",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:init",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_isPlaying'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimeline* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimeline:removeFrameEndCallFuncs"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs'", nullptr); - return 0; - } - cobj->removeFrameEndCallFuncs(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:removeFrameEndCallFuncs",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_init'.",&tolua_err); #endif return 0; @@ -22693,7 +21706,7 @@ int lua_ax_studio_ActionTimeline_gotoFrameAndPlay(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionTimeline_IsAnimationInfoExists(lua_State* tolua_S) +int lua_ax_studio_ActionTimeline_gotoFrameAndPause(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::ActionTimeline* cobj = nullptr; @@ -22713,7 +21726,7 @@ int lua_ax_studio_ActionTimeline_IsAnimationInfoExists(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_IsAnimationInfoExists'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_gotoFrameAndPause'", nullptr); return 0; } #endif @@ -22721,29 +21734,29 @@ int lua_ax_studio_ActionTimeline_IsAnimationInfoExists(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + int arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimeline:IsAnimationInfoExists"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimeline:gotoFrameAndPause"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_IsAnimationInfoExists'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_gotoFrameAndPause'", nullptr); return 0; } - auto&& ret = cobj->IsAnimationInfoExists(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->gotoFrameAndPause(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:IsAnimationInfoExists",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:gotoFrameAndPause",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_IsAnimationInfoExists'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_gotoFrameAndPause'.",&tolua_err); #endif return 0; } -int lua_ax_studio_ActionTimeline_getEndFrame(lua_State* tolua_S) +int lua_ax_studio_ActionTimeline_pause(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::ActionTimeline* cobj = nullptr; @@ -22763,7 +21776,7 @@ int lua_ax_studio_ActionTimeline_getEndFrame(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getEndFrame'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_pause'", nullptr); return 0; } #endif @@ -22773,19 +21786,113 @@ int lua_ax_studio_ActionTimeline_getEndFrame(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getEndFrame'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_pause'", nullptr); return 0; } - auto&& ret = cobj->getEndFrame(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->pause(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getEndFrame",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:pause",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getEndFrame'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_pause'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_resume(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_resume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_resume'", nullptr); + return 0; + } + cobj->resume(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:resume",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_resume'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_isPlaying(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_isPlaying'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_isPlaying'", nullptr); + return 0; + } + auto&& ret = cobj->isPlaying(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:isPlaying",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_isPlaying'.",&tolua_err); #endif return 0; @@ -22840,7 +21947,7 @@ int lua_ax_studio_ActionTimeline_setTimeSpeed(lua_State* tolua_S) return 0; } -int lua_ax_studio_ActionTimeline_clearLastFrameCallFunc(lua_State* tolua_S) +int lua_ax_studio_ActionTimeline_getTimeSpeed(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::ActionTimeline* cobj = nullptr; @@ -22860,7 +21967,7 @@ int lua_ax_studio_ActionTimeline_clearLastFrameCallFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_clearLastFrameCallFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getTimeSpeed'", nullptr); return 0; } #endif @@ -22870,19 +21977,19 @@ int lua_ax_studio_ActionTimeline_clearLastFrameCallFunc(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_clearLastFrameCallFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getTimeSpeed'", nullptr); return 0; } - cobj->clearLastFrameCallFunc(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getTimeSpeed(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:clearLastFrameCallFunc",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getTimeSpeed",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_clearLastFrameCallFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getTimeSpeed'.",&tolua_err); #endif return 0; @@ -22937,6 +22044,147 @@ int lua_ax_studio_ActionTimeline_setDuration(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionTimeline_getDuration(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getDuration'", nullptr); + return 0; + } + auto&& ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getDuration",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_getStartFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getStartFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getStartFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getStartFrame(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getStartFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getStartFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_getEndFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getEndFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getEndFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getEndFrame(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getEndFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getEndFrame'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimeline_setCurrentFrame(lua_State* tolua_S) { int argc = 0; @@ -22987,6 +22235,665 @@ int lua_ax_studio_ActionTimeline_setCurrentFrame(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionTimeline_getCurrentFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getCurrentFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getCurrentFrame'", nullptr); + return 0; + } + auto&& ret = cobj->getCurrentFrame(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getCurrentFrame",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getCurrentFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_addTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_addTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Timeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0, "ccs.ActionTimeline:addTimeline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_addTimeline'", nullptr); + return 0; + } + cobj->addTimeline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:addTimeline",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_addTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_removeTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_removeTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Timeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0, "ccs.ActionTimeline:removeTimeline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_removeTimeline'", nullptr); + return 0; + } + cobj->removeTimeline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:removeTimeline",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_removeTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_getTimelines(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getTimelines'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getTimelines'", nullptr); + return 0; + } + auto&& ret = cobj->getTimelines(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getTimelines",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getTimelines'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_addAnimationInfo(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_addAnimationInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::AnimationInfo arg0; + + ok &= luaval_to_animationInfo(tolua_S, 2, &arg0, "ccs.ActionTimeline:addAnimationInfo"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_addAnimationInfo'", nullptr); + return 0; + } + cobj->addAnimationInfo(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:addAnimationInfo",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_addAnimationInfo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_removeAnimationInfo(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_removeAnimationInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.ActionTimeline:removeAnimationInfo"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_removeAnimationInfo'", nullptr); + return 0; + } + cobj->removeAnimationInfo(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:removeAnimationInfo",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_removeAnimationInfo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_IsAnimationInfoExists(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_IsAnimationInfoExists'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimeline:IsAnimationInfoExists"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_IsAnimationInfoExists'", nullptr); + return 0; + } + auto&& ret = cobj->IsAnimationInfoExists(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:IsAnimationInfoExists",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_IsAnimationInfoExists'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_getAnimationInfo(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_getAnimationInfo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ActionTimeline:getAnimationInfo"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_getAnimationInfo'", nullptr); + return 0; + } + auto&& ret = cobj->getAnimationInfo(arg0); + animationInfo_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:getAnimationInfo",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_getAnimationInfo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_setAnimationEndCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_setAnimationEndCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::function arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.ActionTimeline:setAnimationEndCallFunc"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_setAnimationEndCallFunc'", nullptr); + return 0; + } + cobj->setAnimationEndCallFunc(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:setAnimationEndCallFunc",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_setAnimationEndCallFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_clearFrameEventCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_clearFrameEventCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_clearFrameEventCallFunc'", nullptr); + return 0; + } + cobj->clearFrameEventCallFunc(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:clearFrameEventCallFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_clearFrameEventCallFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_setLastFrameCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_setLastFrameCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_setLastFrameCallFunc'", nullptr); + return 0; + } + cobj->setLastFrameCallFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:setLastFrameCallFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_setLastFrameCallFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_clearLastFrameCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_clearLastFrameCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_clearLastFrameCallFunc'", nullptr); + return 0; + } + cobj->clearLastFrameCallFunc(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:clearLastFrameCallFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_clearLastFrameCallFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_addFrameEndCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_addFrameEndCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + int arg0; + std::string_view arg1; + std::function arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimeline:addFrameEndCallFunc"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccs.ActionTimeline:addFrameEndCallFunc"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_addFrameEndCallFunc'", nullptr); + return 0; + } + cobj->addFrameEndCallFunc(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:addFrameEndCallFunc",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_addFrameEndCallFunc'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimeline_removeFrameEndCallFunc(lua_State* tolua_S) { int argc = 0; @@ -23040,6 +22947,150 @@ int lua_ax_studio_ActionTimeline_removeFrameEndCallFunc(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimeline:removeFrameEndCallFuncs"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs'", nullptr); + return 0; + } + cobj->removeFrameEndCallFuncs(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:removeFrameEndCallFuncs",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs'", nullptr); + return 0; + } + cobj->clearFrameEndCallFuncs(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:clearFrameEndCallFuncs",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimeline_start(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimeline_start'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimeline_start'", nullptr); + return 0; + } + cobj->start(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimeline:start",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimeline_start'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimeline_create(lua_State* tolua_S) { int argc = 0; @@ -23124,37 +23175,37 @@ int lua_register_ax_studio_ActionTimeline(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionTimeline"); tolua_function(tolua_S,"new",lua_ax_studio_ActionTimeline_constructor); - tolua_function(tolua_S,"clearFrameEndCallFuncs",lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs); - tolua_function(tolua_S,"setAnimationEndCallFunc",lua_ax_studio_ActionTimeline_setAnimationEndCallFunc); - tolua_function(tolua_S,"addTimeline",lua_ax_studio_ActionTimeline_addTimeline); - tolua_function(tolua_S,"getCurrentFrame",lua_ax_studio_ActionTimeline_getCurrentFrame); - tolua_function(tolua_S,"getStartFrame",lua_ax_studio_ActionTimeline_getStartFrame); - tolua_function(tolua_S,"pause",lua_ax_studio_ActionTimeline_pause); - tolua_function(tolua_S,"start",lua_ax_studio_ActionTimeline_start); + tolua_function(tolua_S,"play",lua_ax_studio_ActionTimeline_play); tolua_function(tolua_S,"init",lua_ax_studio_ActionTimeline_init); + tolua_function(tolua_S,"gotoFrameAndPlay",lua_ax_studio_ActionTimeline_gotoFrameAndPlay); + tolua_function(tolua_S,"gotoFrameAndPause",lua_ax_studio_ActionTimeline_gotoFrameAndPause); + tolua_function(tolua_S,"pause",lua_ax_studio_ActionTimeline_pause); + tolua_function(tolua_S,"resume",lua_ax_studio_ActionTimeline_resume); + tolua_function(tolua_S,"isPlaying",lua_ax_studio_ActionTimeline_isPlaying); + tolua_function(tolua_S,"setTimeSpeed",lua_ax_studio_ActionTimeline_setTimeSpeed); + tolua_function(tolua_S,"getTimeSpeed",lua_ax_studio_ActionTimeline_getTimeSpeed); + tolua_function(tolua_S,"setDuration",lua_ax_studio_ActionTimeline_setDuration); + tolua_function(tolua_S,"getDuration",lua_ax_studio_ActionTimeline_getDuration); + tolua_function(tolua_S,"getStartFrame",lua_ax_studio_ActionTimeline_getStartFrame); + tolua_function(tolua_S,"getEndFrame",lua_ax_studio_ActionTimeline_getEndFrame); + tolua_function(tolua_S,"setCurrentFrame",lua_ax_studio_ActionTimeline_setCurrentFrame); + tolua_function(tolua_S,"getCurrentFrame",lua_ax_studio_ActionTimeline_getCurrentFrame); + tolua_function(tolua_S,"addTimeline",lua_ax_studio_ActionTimeline_addTimeline); tolua_function(tolua_S,"removeTimeline",lua_ax_studio_ActionTimeline_removeTimeline); + tolua_function(tolua_S,"getTimelines",lua_ax_studio_ActionTimeline_getTimelines); + tolua_function(tolua_S,"addAnimationInfo",lua_ax_studio_ActionTimeline_addAnimationInfo); + tolua_function(tolua_S,"removeAnimationInfo",lua_ax_studio_ActionTimeline_removeAnimationInfo); + tolua_function(tolua_S,"IsAnimationInfoExists",lua_ax_studio_ActionTimeline_IsAnimationInfoExists); + tolua_function(tolua_S,"getAnimationInfo",lua_ax_studio_ActionTimeline_getAnimationInfo); + tolua_function(tolua_S,"setAnimationEndCallFunc",lua_ax_studio_ActionTimeline_setAnimationEndCallFunc); tolua_function(tolua_S,"clearFrameEventCallFunc",lua_ax_studio_ActionTimeline_clearFrameEventCallFunc); tolua_function(tolua_S,"setLastFrameCallFunc",lua_ax_studio_ActionTimeline_setLastFrameCallFunc); - tolua_function(tolua_S,"getTimelines",lua_ax_studio_ActionTimeline_getTimelines); - tolua_function(tolua_S,"play",lua_ax_studio_ActionTimeline_play); - tolua_function(tolua_S,"getAnimationInfo",lua_ax_studio_ActionTimeline_getAnimationInfo); - tolua_function(tolua_S,"resume",lua_ax_studio_ActionTimeline_resume); - tolua_function(tolua_S,"addFrameEndCallFunc",lua_ax_studio_ActionTimeline_addFrameEndCallFunc); - tolua_function(tolua_S,"removeAnimationInfo",lua_ax_studio_ActionTimeline_removeAnimationInfo); - tolua_function(tolua_S,"getTimeSpeed",lua_ax_studio_ActionTimeline_getTimeSpeed); - tolua_function(tolua_S,"addAnimationInfo",lua_ax_studio_ActionTimeline_addAnimationInfo); - tolua_function(tolua_S,"getDuration",lua_ax_studio_ActionTimeline_getDuration); - tolua_function(tolua_S,"gotoFrameAndPause",lua_ax_studio_ActionTimeline_gotoFrameAndPause); - tolua_function(tolua_S,"isPlaying",lua_ax_studio_ActionTimeline_isPlaying); - tolua_function(tolua_S,"removeFrameEndCallFuncs",lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs); - tolua_function(tolua_S,"gotoFrameAndPlay",lua_ax_studio_ActionTimeline_gotoFrameAndPlay); - tolua_function(tolua_S,"IsAnimationInfoExists",lua_ax_studio_ActionTimeline_IsAnimationInfoExists); - tolua_function(tolua_S,"getEndFrame",lua_ax_studio_ActionTimeline_getEndFrame); - tolua_function(tolua_S,"setTimeSpeed",lua_ax_studio_ActionTimeline_setTimeSpeed); tolua_function(tolua_S,"clearLastFrameCallFunc",lua_ax_studio_ActionTimeline_clearLastFrameCallFunc); - tolua_function(tolua_S,"setDuration",lua_ax_studio_ActionTimeline_setDuration); - tolua_function(tolua_S,"setCurrentFrame",lua_ax_studio_ActionTimeline_setCurrentFrame); + tolua_function(tolua_S,"addFrameEndCallFunc",lua_ax_studio_ActionTimeline_addFrameEndCallFunc); tolua_function(tolua_S,"removeFrameEndCallFunc",lua_ax_studio_ActionTimeline_removeFrameEndCallFunc); + tolua_function(tolua_S,"removeFrameEndCallFuncs",lua_ax_studio_ActionTimeline_removeFrameEndCallFuncs); + tolua_function(tolua_S,"clearFrameEndCallFuncs",lua_ax_studio_ActionTimeline_clearFrameEndCallFuncs); + tolua_function(tolua_S,"start",lua_ax_studio_ActionTimeline_start); tolua_function(tolua_S,"create", lua_ax_studio_ActionTimeline_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::ActionTimeline).name(); // rtti is literal storage @@ -23163,150 +23214,6 @@ int lua_register_ax_studio_ActionTimeline(lua_State* tolua_S) return 1; } -int lua_ax_studio_ActionTimelineNode_getRoot(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineNode_getRoot'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineNode_getRoot'", nullptr); - return 0; - } - auto&& ret = cobj->getRoot(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:getRoot",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineNode_getRoot'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineNode_getActionTimeline(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineNode_getActionTimeline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineNode_getActionTimeline'", nullptr); - return 0; - } - auto&& ret = cobj->getActionTimeline(); - object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:getActionTimeline",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineNode_getActionTimeline'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_ActionTimelineNode_setActionTimeline(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::ActionTimelineNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineNode_setActionTimeline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::timeline::ActionTimeline* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.ActionTimeline",&arg0, "ccs.ActionTimelineNode:setActionTimeline"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineNode_setActionTimeline'", nullptr); - return 0; - } - cobj->setActionTimeline(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:setActionTimeline",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineNode_setActionTimeline'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_ActionTimelineNode_init(lua_State* tolua_S) { int argc = 0; @@ -23410,6 +23317,150 @@ int lua_ax_studio_ActionTimelineNode_setRoot(lua_State* tolua_S) return 0; } +int lua_ax_studio_ActionTimelineNode_getRoot(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineNode_getRoot'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineNode_getRoot'", nullptr); + return 0; + } + auto&& ret = cobj->getRoot(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:getRoot",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineNode_getRoot'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimelineNode_setActionTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineNode_setActionTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::ActionTimeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.ActionTimeline",&arg0, "ccs.ActionTimelineNode:setActionTimeline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineNode_setActionTimeline'", nullptr); + return 0; + } + cobj->setActionTimeline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:setActionTimeline",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineNode_setActionTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_ActionTimelineNode_getActionTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ActionTimelineNode_getActionTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ActionTimelineNode_getActionTimeline'", nullptr); + return 0; + } + auto&& ret = cobj->getActionTimeline(); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:getActionTimeline",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ActionTimelineNode_getActionTimeline'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ActionTimelineNode_create(lua_State* tolua_S) { int argc = 0; @@ -23498,11 +23549,11 @@ int lua_register_ax_studio_ActionTimelineNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionTimelineNode"); tolua_function(tolua_S,"new",lua_ax_studio_ActionTimelineNode_constructor); - tolua_function(tolua_S,"getRoot",lua_ax_studio_ActionTimelineNode_getRoot); - tolua_function(tolua_S,"getActionTimeline",lua_ax_studio_ActionTimelineNode_getActionTimeline); - tolua_function(tolua_S,"setActionTimeline",lua_ax_studio_ActionTimelineNode_setActionTimeline); tolua_function(tolua_S,"init",lua_ax_studio_ActionTimelineNode_init); tolua_function(tolua_S,"setRoot",lua_ax_studio_ActionTimelineNode_setRoot); + tolua_function(tolua_S,"getRoot",lua_ax_studio_ActionTimelineNode_getRoot); + tolua_function(tolua_S,"setActionTimeline",lua_ax_studio_ActionTimelineNode_setActionTimeline); + tolua_function(tolua_S,"getActionTimeline",lua_ax_studio_ActionTimelineNode_getActionTimeline); tolua_function(tolua_S,"create", lua_ax_studio_ActionTimelineNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::ActionTimelineNode).name(); // rtti is literal storage @@ -23511,53 +23562,6 @@ int lua_register_ax_studio_ActionTimelineNode(lua_State* tolua_S) return 1; } -int lua_ax_studio_BoneNode_getDebugDrawWidth(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getDebugDrawWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getDebugDrawWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getDebugDrawWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getDebugDrawWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getDebugDrawWidth'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_BoneNode_getChildBones(lua_State* tolua_S) { int argc = 0; @@ -23605,7 +23609,7 @@ int lua_ax_studio_BoneNode_getChildBones(lua_State* tolua_S) return 0; } -int lua_ax_studio_BoneNode_getBlendFunc(lua_State* tolua_S) +int lua_ax_studio_BoneNode_getRootSkeletonNode(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::BoneNode* cobj = nullptr; @@ -23625,7 +23629,7 @@ int lua_ax_studio_BoneNode_getBlendFunc(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getRootSkeletonNode'", nullptr); return 0; } #endif @@ -23635,19 +23639,19 @@ int lua_ax_studio_BoneNode_getBlendFunc(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getRootSkeletonNode'", nullptr); return 0; } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); + auto&& ret = cobj->getRootSkeletonNode(); + object_to_luaval(tolua_S, "ccs.SkeletonNode",(cocostudio::timeline::SkeletonNode*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getBlendFunc",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getRootSkeletonNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getRootSkeletonNode'.",&tolua_err); #endif return 0; @@ -23699,310 +23703,6 @@ int lua_ax_studio_BoneNode_getAllSubBones(lua_State* tolua_S) return 0; } -int lua_ax_studio_BoneNode_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.BoneNode:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:setBlendFunc",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_BoneNode_setDebugDrawEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_setDebugDrawEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.BoneNode:setDebugDrawEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_setDebugDrawEnabled'", nullptr); - return 0; - } - cobj->setDebugDrawEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:setDebugDrawEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_setDebugDrawEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_BoneNode_getVisibleSkinsRect(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getVisibleSkinsRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getVisibleSkinsRect'", nullptr); - return 0; - } - auto&& ret = cobj->getVisibleSkinsRect(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getVisibleSkinsRect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getVisibleSkinsRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_BoneNode_getAllSubSkins(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getAllSubSkins'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getAllSubSkins'", nullptr); - return 0; - } - auto&& ret = cobj->getAllSubSkins(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getAllSubSkins",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getAllSubSkins'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_BoneNode_displaySkin(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_displaySkin'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.BoneNode:displaySkin"); - - if (!ok) { break; } - bool arg1; - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.BoneNode:displaySkin"); - - if (!ok) { break; } - cobj->displaySkin(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 2) { - ax::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ccs.BoneNode:displaySkin"); - - if (!ok) { break; } - bool arg1; - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.BoneNode:displaySkin"); - - if (!ok) { break; } - cobj->displaySkin(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:displaySkin",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_displaySkin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_BoneNode_isDebugDrawEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_isDebugDrawEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_isDebugDrawEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isDebugDrawEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:isDebugDrawEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_isDebugDrawEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_BoneNode_addSkin(lua_State* tolua_S) { int argc = 0; @@ -24070,7 +23770,70 @@ int lua_ax_studio_BoneNode_addSkin(lua_State* tolua_S) return 0; } -int lua_ax_studio_BoneNode_getRootSkeletonNode(lua_State* tolua_S) +int lua_ax_studio_BoneNode_displaySkin(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_displaySkin'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.BoneNode:displaySkin"); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.BoneNode:displaySkin"); + + if (!ok) { break; } + cobj->displaySkin(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + ax::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "ccs.BoneNode:displaySkin"); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ccs.BoneNode:displaySkin"); + + if (!ok) { break; } + cobj->displaySkin(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:displaySkin",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_displaySkin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_getVisibleSkins(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::BoneNode* cobj = nullptr; @@ -24090,7 +23853,7 @@ int lua_ax_studio_BoneNode_getRootSkeletonNode(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getRootSkeletonNode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getVisibleSkins'", nullptr); return 0; } #endif @@ -24100,19 +23863,307 @@ int lua_ax_studio_BoneNode_getRootSkeletonNode(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getRootSkeletonNode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getVisibleSkins'", nullptr); return 0; } - auto&& ret = cobj->getRootSkeletonNode(); - object_to_luaval(tolua_S, "ccs.SkeletonNode",(cocostudio::timeline::SkeletonNode*)ret); + auto&& ret = cobj->getVisibleSkins(); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getRootSkeletonNode",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getVisibleSkins",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getRootSkeletonNode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getVisibleSkins'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_getSkins(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getSkins'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 0) { + ax::Vector& ret = cobj->getSkins(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + const ax::Vector& ret = cobj->getSkins(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getSkins",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getSkins'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_getAllSubSkins(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getAllSubSkins'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getAllSubSkins'", nullptr); + return 0; + } + auto&& ret = cobj->getAllSubSkins(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getAllSubSkins",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getAllSubSkins'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.BoneNode:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:setBlendFunc",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_setDebugDrawEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_setDebugDrawEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccs.BoneNode:setDebugDrawEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_setDebugDrawEnabled'", nullptr); + return 0; + } + cobj->setDebugDrawEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:setDebugDrawEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_setDebugDrawEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_isDebugDrawEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_isDebugDrawEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_isDebugDrawEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isDebugDrawEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:isDebugDrawEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_isDebugDrawEnabled'.",&tolua_err); #endif return 0; @@ -24167,54 +24218,7 @@ int lua_ax_studio_BoneNode_setDebugDrawLength(lua_State* tolua_S) return 0; } -int lua_ax_studio_BoneNode_getSkins(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::BoneNode* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getSkins'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - ax::Vector& ret = cobj->getSkins(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const ax::Vector& ret = cobj->getSkins(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getSkins",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getSkins'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_studio_BoneNode_getVisibleSkins(lua_State* tolua_S) +int lua_ax_studio_BoneNode_getDebugDrawLength(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::BoneNode* cobj = nullptr; @@ -24234,7 +24238,7 @@ int lua_ax_studio_BoneNode_getVisibleSkins(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getVisibleSkins'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getDebugDrawLength'", nullptr); return 0; } #endif @@ -24244,19 +24248,19 @@ int lua_ax_studio_BoneNode_getVisibleSkins(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getVisibleSkins'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getDebugDrawLength'", nullptr); return 0; } - auto&& ret = cobj->getVisibleSkins(); - ccvector_to_luaval(tolua_S, ret); + auto&& ret = cobj->getDebugDrawLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getVisibleSkins",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getDebugDrawLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getVisibleSkins'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getDebugDrawLength'.",&tolua_err); #endif return 0; @@ -24311,7 +24315,7 @@ int lua_ax_studio_BoneNode_setDebugDrawWidth(lua_State* tolua_S) return 0; } -int lua_ax_studio_BoneNode_getDebugDrawLength(lua_State* tolua_S) +int lua_ax_studio_BoneNode_getDebugDrawWidth(lua_State* tolua_S) { int argc = 0; cocostudio::timeline::BoneNode* cobj = nullptr; @@ -24331,7 +24335,7 @@ int lua_ax_studio_BoneNode_getDebugDrawLength(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getDebugDrawLength'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getDebugDrawWidth'", nullptr); return 0; } #endif @@ -24341,19 +24345,19 @@ int lua_ax_studio_BoneNode_getDebugDrawLength(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getDebugDrawLength'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getDebugDrawWidth'", nullptr); return 0; } - auto&& ret = cobj->getDebugDrawLength(); + auto&& ret = cobj->getDebugDrawWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getDebugDrawLength",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getDebugDrawWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getDebugDrawLength'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getDebugDrawWidth'.",&tolua_err); #endif return 0; @@ -24455,6 +24459,103 @@ int lua_ax_studio_BoneNode_getDebugDrawColor(lua_State* tolua_S) return 0; } +int lua_ax_studio_BoneNode_getVisibleSkinsRect(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_getVisibleSkinsRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_getVisibleSkinsRect'", nullptr); + return 0; + } + auto&& ret = cobj->getVisibleSkinsRect(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:getVisibleSkinsRect",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_getVisibleSkinsRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_studio_BoneNode_setLocalZOrder(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::BoneNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.BoneNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::BoneNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_BoneNode_setLocalZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.BoneNode:setLocalZOrder"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_BoneNode_setLocalZOrder'", nullptr); + return 0; + } + cobj->setLocalZOrder(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BoneNode:setLocalZOrder",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_BoneNode_setLocalZOrder'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_BoneNode_create(lua_State* tolua_S) { int argc = 0; @@ -24550,25 +24651,26 @@ int lua_register_ax_studio_BoneNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"BoneNode"); tolua_function(tolua_S,"new",lua_ax_studio_BoneNode_constructor); - tolua_function(tolua_S,"getDebugDrawWidth",lua_ax_studio_BoneNode_getDebugDrawWidth); tolua_function(tolua_S,"getChildBones",lua_ax_studio_BoneNode_getChildBones); - tolua_function(tolua_S,"getBlendFunc",lua_ax_studio_BoneNode_getBlendFunc); - tolua_function(tolua_S,"getAllSubBones",lua_ax_studio_BoneNode_getAllSubBones); - tolua_function(tolua_S,"setBlendFunc",lua_ax_studio_BoneNode_setBlendFunc); - tolua_function(tolua_S,"setDebugDrawEnabled",lua_ax_studio_BoneNode_setDebugDrawEnabled); - tolua_function(tolua_S,"getVisibleSkinsRect",lua_ax_studio_BoneNode_getVisibleSkinsRect); - tolua_function(tolua_S,"getAllSubSkins",lua_ax_studio_BoneNode_getAllSubSkins); - tolua_function(tolua_S,"displaySkin",lua_ax_studio_BoneNode_displaySkin); - tolua_function(tolua_S,"isDebugDrawEnabled",lua_ax_studio_BoneNode_isDebugDrawEnabled); - tolua_function(tolua_S,"addSkin",lua_ax_studio_BoneNode_addSkin); tolua_function(tolua_S,"getRootSkeletonNode",lua_ax_studio_BoneNode_getRootSkeletonNode); - tolua_function(tolua_S,"setDebugDrawLength",lua_ax_studio_BoneNode_setDebugDrawLength); - tolua_function(tolua_S,"getSkins",lua_ax_studio_BoneNode_getSkins); + tolua_function(tolua_S,"getAllSubBones",lua_ax_studio_BoneNode_getAllSubBones); + tolua_function(tolua_S,"addSkin",lua_ax_studio_BoneNode_addSkin); + tolua_function(tolua_S,"displaySkin",lua_ax_studio_BoneNode_displaySkin); tolua_function(tolua_S,"getVisibleSkins",lua_ax_studio_BoneNode_getVisibleSkins); - tolua_function(tolua_S,"setDebugDrawWidth",lua_ax_studio_BoneNode_setDebugDrawWidth); + tolua_function(tolua_S,"getSkins",lua_ax_studio_BoneNode_getSkins); + tolua_function(tolua_S,"getAllSubSkins",lua_ax_studio_BoneNode_getAllSubSkins); + tolua_function(tolua_S,"setBlendFunc",lua_ax_studio_BoneNode_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_studio_BoneNode_getBlendFunc); + tolua_function(tolua_S,"setDebugDrawEnabled",lua_ax_studio_BoneNode_setDebugDrawEnabled); + tolua_function(tolua_S,"isDebugDrawEnabled",lua_ax_studio_BoneNode_isDebugDrawEnabled); + tolua_function(tolua_S,"setDebugDrawLength",lua_ax_studio_BoneNode_setDebugDrawLength); tolua_function(tolua_S,"getDebugDrawLength",lua_ax_studio_BoneNode_getDebugDrawLength); + tolua_function(tolua_S,"setDebugDrawWidth",lua_ax_studio_BoneNode_setDebugDrawWidth); + tolua_function(tolua_S,"getDebugDrawWidth",lua_ax_studio_BoneNode_getDebugDrawWidth); tolua_function(tolua_S,"setDebugDrawColor",lua_ax_studio_BoneNode_setDebugDrawColor); tolua_function(tolua_S,"getDebugDrawColor",lua_ax_studio_BoneNode_getDebugDrawColor); + tolua_function(tolua_S,"getVisibleSkinsRect",lua_ax_studio_BoneNode_getVisibleSkinsRect); + tolua_function(tolua_S,"setLocalZOrder",lua_ax_studio_BoneNode_setLocalZOrder); tolua_function(tolua_S,"create", lua_ax_studio_BoneNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::BoneNode).name(); // rtti is literal storage @@ -24627,6 +24729,53 @@ int lua_ax_studio_SkeletonNode_getBoneNode(lua_State* tolua_S) return 0; } +int lua_ax_studio_SkeletonNode_getAllSubBonesMap(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkeletonNode* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SkeletonNode",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::SkeletonNode*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SkeletonNode_getAllSubBonesMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SkeletonNode_getAllSubBonesMap'", nullptr); + return 0; + } + auto&& ret = cobj->getAllSubBonesMap(); + ccmap_string_key_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SkeletonNode:getAllSubBonesMap",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SkeletonNode_getAllSubBonesMap'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_SkeletonNode_changeSkins(lua_State* tolua_S) { int argc = 0; @@ -24735,53 +24884,6 @@ int lua_ax_studio_SkeletonNode_addSkinGroup(lua_State* tolua_S) return 0; } -int lua_ax_studio_SkeletonNode_getAllSubBonesMap(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::SkeletonNode* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.SkeletonNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::SkeletonNode*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_SkeletonNode_getAllSubBonesMap'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_SkeletonNode_getAllSubBonesMap'", nullptr); - return 0; - } - auto&& ret = cobj->getAllSubBonesMap(); - ccmap_string_key_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SkeletonNode:getAllSubBonesMap",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_SkeletonNode_getAllSubBonesMap'.",&tolua_err); -#endif - - return 0; -} int lua_ax_studio_SkeletonNode_create(lua_State* tolua_S) { int argc = 0; @@ -24867,9 +24969,9 @@ int lua_register_ax_studio_SkeletonNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SkeletonNode"); tolua_function(tolua_S,"new",lua_ax_studio_SkeletonNode_constructor); tolua_function(tolua_S,"getBoneNode",lua_ax_studio_SkeletonNode_getBoneNode); + tolua_function(tolua_S,"getAllSubBonesMap",lua_ax_studio_SkeletonNode_getAllSubBonesMap); tolua_function(tolua_S,"changeSkins",lua_ax_studio_SkeletonNode_changeSkins); tolua_function(tolua_S,"addSkinGroup",lua_ax_studio_SkeletonNode_addSkinGroup); - tolua_function(tolua_S,"getAllSubBonesMap",lua_ax_studio_SkeletonNode_getAllSubBonesMap); tolua_function(tolua_S,"create", lua_ax_studio_SkeletonNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::timeline::SkeletonNode).name(); // rtti is literal storage @@ -24878,7 +24980,7 @@ int lua_register_ax_studio_SkeletonNode(lua_State* tolua_S) return 1; } -int lua_ax_studio_ComExtensionData_setActionTag(lua_State* tolua_S) +int lua_ax_studio_ComExtensionData_setCustomProperty(lua_State* tolua_S) { int argc = 0; cocostudio::ComExtensionData* cobj = nullptr; @@ -24898,7 +25000,7 @@ int lua_ax_studio_ComExtensionData_setActionTag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComExtensionData_setActionTag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComExtensionData_setCustomProperty'", nullptr); return 0; } #endif @@ -24906,24 +25008,24 @@ int lua_ax_studio_ComExtensionData_setActionTag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + std::string_view arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ComExtensionData:setActionTag"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComExtensionData:setCustomProperty"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComExtensionData_setActionTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComExtensionData_setCustomProperty'", nullptr); return 0; } - cobj->setActionTag(arg0); + cobj->setCustomProperty(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComExtensionData:setActionTag",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComExtensionData:setCustomProperty",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComExtensionData_setActionTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComExtensionData_setCustomProperty'.",&tolua_err); #endif return 0; @@ -24975,6 +25077,56 @@ int lua_ax_studio_ComExtensionData_getCustomProperty(lua_State* tolua_S) return 0; } +int lua_ax_studio_ComExtensionData_setActionTag(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ComExtensionData* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ComExtensionData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ComExtensionData*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComExtensionData_setActionTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ComExtensionData:setActionTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComExtensionData_setActionTag'", nullptr); + return 0; + } + cobj->setActionTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComExtensionData:setActionTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComExtensionData_setActionTag'.",&tolua_err); +#endif + + return 0; +} int lua_ax_studio_ComExtensionData_getActionTag(lua_State* tolua_S) { int argc = 0; @@ -25022,54 +25174,38 @@ int lua_ax_studio_ComExtensionData_getActionTag(lua_State* tolua_S) return 0; } -int lua_ax_studio_ComExtensionData_setCustomProperty(lua_State* tolua_S) +int lua_ax_studio_ComExtensionData_createInstance(lua_State* tolua_S) { int argc = 0; - cocostudio::ComExtensionData* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.ComExtensionData",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ccs.ComExtensionData",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocostudio::ComExtensionData*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 0) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_studio_ComExtensionData_setCustomProperty'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccs.ComExtensionData:setCustomProperty"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComExtensionData_setCustomProperty'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComExtensionData_createInstance'", nullptr); return 0; } - cobj->setCustomProperty(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cocostudio::ComExtensionData::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComExtensionData:setCustomProperty",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComExtensionData:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComExtensionData_setCustomProperty'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComExtensionData_createInstance'.",&tolua_err); #endif - return 0; } int lua_ax_studio_ComExtensionData_create(lua_State* tolua_S) @@ -25106,40 +25242,6 @@ int lua_ax_studio_ComExtensionData_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_studio_ComExtensionData_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.ComExtensionData",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_studio_ComExtensionData_createInstance'", nullptr); - return 0; - } - auto&& ret = cocostudio::ComExtensionData::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComExtensionData:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_studio_ComExtensionData_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_studio_ComExtensionData_constructor(lua_State* tolua_S) { int argc = 0; @@ -25190,12 +25292,12 @@ int lua_register_ax_studio_ComExtensionData(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ComExtensionData"); tolua_function(tolua_S,"new",lua_ax_studio_ComExtensionData_constructor); - tolua_function(tolua_S,"setActionTag",lua_ax_studio_ComExtensionData_setActionTag); - tolua_function(tolua_S,"getCustomProperty",lua_ax_studio_ComExtensionData_getCustomProperty); - tolua_function(tolua_S,"getActionTag",lua_ax_studio_ComExtensionData_getActionTag); tolua_function(tolua_S,"setCustomProperty",lua_ax_studio_ComExtensionData_setCustomProperty); - tolua_function(tolua_S,"create", lua_ax_studio_ComExtensionData_create); + tolua_function(tolua_S,"getCustomProperty",lua_ax_studio_ComExtensionData_getCustomProperty); + tolua_function(tolua_S,"setActionTag",lua_ax_studio_ComExtensionData_setActionTag); + tolua_function(tolua_S,"getActionTag",lua_ax_studio_ComExtensionData_getActionTag); tolua_function(tolua_S,"createInstance", lua_ax_studio_ComExtensionData_createInstance); + tolua_function(tolua_S,"create", lua_ax_studio_ComExtensionData_create); tolua_endmodule(tolua_S); auto typeName = typeid(cocostudio::ComExtensionData).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccs.ComExtensionData"; @@ -25209,65 +25311,65 @@ TOLUA_API int register_all_ax_studio(lua_State* tolua_S) tolua_module(tolua_S,"ccs",0); tolua_beginmodule(tolua_S,"ccs"); - lua_register_ax_studio_Frame(tolua_S); - lua_register_ax_studio_PlayableFrame(tolua_S); - lua_register_ax_studio_ActionTimelineNode(tolua_S); lua_register_ax_studio_ActionFrame(tolua_S); - lua_register_ax_studio_ActionRotationFrame(tolua_S); - lua_register_ax_studio_BlendFuncFrame(tolua_S); - lua_register_ax_studio_BoneNode(tolua_S); - lua_register_ax_studio_SkeletonNode(tolua_S); - lua_register_ax_studio_ScaleFrame(tolua_S); - lua_register_ax_studio_Tween(tolua_S); - lua_register_ax_studio_ContourData(tolua_S); - lua_register_ax_studio_ActionTimeline(tolua_S); - lua_register_ax_studio_InnerActionFrame(tolua_S); - lua_register_ax_studio_ActionTimelineData(tolua_S); - lua_register_ax_studio_DisplayData(tolua_S); - lua_register_ax_studio_ArmatureDisplayData(tolua_S); - lua_register_ax_studio_MovementData(tolua_S); - lua_register_ax_studio_ArmatureDataManager(tolua_S); - lua_register_ax_studio_ColorFrame(tolua_S); - lua_register_ax_studio_BatchNode(tolua_S); - lua_register_ax_studio_BaseData(tolua_S); - lua_register_ax_studio_FrameData(tolua_S); - lua_register_ax_studio_Timeline(tolua_S); - lua_register_ax_studio_ComController(tolua_S); - lua_register_ax_studio_BoneData(tolua_S); - lua_register_ax_studio_ComRender(tolua_S); - lua_register_ax_studio_SkewFrame(tolua_S); - lua_register_ax_studio_RotationSkewFrame(tolua_S); - lua_register_ax_studio_ParticleDisplayData(tolua_S); - lua_register_ax_studio_ActionFadeFrame(tolua_S); - lua_register_ax_studio_VisibleFrame(tolua_S); - lua_register_ax_studio_PositionFrame(tolua_S); - lua_register_ax_studio_RotationFrame(tolua_S); - lua_register_ax_studio_ArmatureData(tolua_S); - lua_register_ax_studio_ActionObject(tolua_S); - lua_register_ax_studio_Skin(tolua_S); - lua_register_ax_studio_MovementBoneData(tolua_S); - lua_register_ax_studio_EventFrame(tolua_S); - lua_register_ax_studio_DisplayManager(tolua_S); - lua_register_ax_studio_GUIReader(tolua_S); - lua_register_ax_studio_ArmatureAnimation(tolua_S); - lua_register_ax_studio_Armature(tolua_S); - lua_register_ax_studio_SpriteDisplayData(tolua_S); - lua_register_ax_studio_ActionManagerEx(tolua_S); - lua_register_ax_studio_Bone(tolua_S); - lua_register_ax_studio_ZOrderFrame(tolua_S); - lua_register_ax_studio_ActionTintFrame(tolua_S); - lua_register_ax_studio_TextureData(tolua_S); lua_register_ax_studio_ActionMoveFrame(tolua_S); + lua_register_ax_studio_ActionScaleFrame(tolua_S); + lua_register_ax_studio_ActionRotationFrame(tolua_S); + lua_register_ax_studio_ActionFadeFrame(tolua_S); + lua_register_ax_studio_ActionTintFrame(tolua_S); + lua_register_ax_studio_ActionObject(tolua_S); + lua_register_ax_studio_ActionManagerEx(tolua_S); + lua_register_ax_studio_BaseData(tolua_S); + lua_register_ax_studio_DisplayData(tolua_S); + lua_register_ax_studio_SpriteDisplayData(tolua_S); + lua_register_ax_studio_ArmatureDisplayData(tolua_S); + lua_register_ax_studio_ParticleDisplayData(tolua_S); + lua_register_ax_studio_BoneData(tolua_S); + lua_register_ax_studio_ArmatureData(tolua_S); + lua_register_ax_studio_FrameData(tolua_S); + lua_register_ax_studio_MovementBoneData(tolua_S); + lua_register_ax_studio_MovementData(tolua_S); + lua_register_ax_studio_AnimationData(tolua_S); + lua_register_ax_studio_ContourData(tolua_S); + lua_register_ax_studio_TextureData(tolua_S); + lua_register_ax_studio_Tween(tolua_S); + lua_register_ax_studio_DisplayManager(tolua_S); + lua_register_ax_studio_Bone(tolua_S); + lua_register_ax_studio_BatchNode(tolua_S); + lua_register_ax_studio_ArmatureAnimation(tolua_S); + lua_register_ax_studio_ArmatureDataManager(tolua_S); + lua_register_ax_studio_Armature(tolua_S); + lua_register_ax_studio_Skin(tolua_S); + lua_register_ax_studio_ComAttribute(tolua_S); + lua_register_ax_studio_ComAudio(tolua_S); + lua_register_ax_studio_ComController(tolua_S); + lua_register_ax_studio_ComRender(tolua_S); + lua_register_ax_studio_GUIReader(tolua_S); lua_register_ax_studio_SceneReader(tolua_S); lua_register_ax_studio_ActionTimelineCache(tolua_S); - lua_register_ax_studio_AlphaFrame(tolua_S); - lua_register_ax_studio_ComAudio(tolua_S); - lua_register_ax_studio_ComExtensionData(tolua_S); - lua_register_ax_studio_AnimationData(tolua_S); - lua_register_ax_studio_AnchorPointFrame(tolua_S); - lua_register_ax_studio_ActionScaleFrame(tolua_S); + lua_register_ax_studio_Frame(tolua_S); + lua_register_ax_studio_VisibleFrame(tolua_S); lua_register_ax_studio_TextureFrame(tolua_S); - lua_register_ax_studio_ComAttribute(tolua_S); + lua_register_ax_studio_RotationFrame(tolua_S); + lua_register_ax_studio_SkewFrame(tolua_S); + lua_register_ax_studio_RotationSkewFrame(tolua_S); + lua_register_ax_studio_PositionFrame(tolua_S); + lua_register_ax_studio_ScaleFrame(tolua_S); + lua_register_ax_studio_AnchorPointFrame(tolua_S); + lua_register_ax_studio_InnerActionFrame(tolua_S); + lua_register_ax_studio_ColorFrame(tolua_S); + lua_register_ax_studio_AlphaFrame(tolua_S); + lua_register_ax_studio_EventFrame(tolua_S); + lua_register_ax_studio_ZOrderFrame(tolua_S); + lua_register_ax_studio_BlendFuncFrame(tolua_S); + lua_register_ax_studio_PlayableFrame(tolua_S); + lua_register_ax_studio_Timeline(tolua_S); + lua_register_ax_studio_ActionTimelineData(tolua_S); + lua_register_ax_studio_ActionTimeline(tolua_S); + lua_register_ax_studio_ActionTimelineNode(tolua_S); + lua_register_ax_studio_BoneNode(tolua_S); + lua_register_ax_studio_SkeletonNode(tolua_S); + lua_register_ax_studio_ComExtensionData(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_studio_auto.hpp b/extensions/scripting/lua-bindings/auto/axlua_studio_auto.hpp index a1bb09ec9d..28cd657156 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_studio_auto.hpp +++ b/extensions/scripting/lua-bindings/auto/axlua_studio_auto.hpp @@ -562,6 +562,8 @@ int register_all_ax_studio(lua_State* tolua_S); + + diff --git a/extensions/scripting/lua-bindings/auto/axlua_ui_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_ui_auto.cpp index 35d43118c8..650e5f0a94 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_ui_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_ui_auto.cpp @@ -3,53 +3,6 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_ui_LayoutParameter_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutParameter* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutParameter_clone'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_clone'", nullptr); - return 0; - } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:clone",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_clone'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_LayoutParameter_getLayoutType(lua_State* tolua_S) { int argc = 0; @@ -97,6 +50,53 @@ int lua_ax_ui_LayoutParameter_getLayoutType(lua_State* tolua_S) return 0; } +int lua_ax_ui_LayoutParameter_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutParameter* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutParameter_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_clone'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_LayoutParameter_createCloneInstance(lua_State* tolua_S) { int argc = 0; @@ -278,8 +278,8 @@ int lua_register_ax_ui_LayoutParameter(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LayoutParameter"); tolua_function(tolua_S,"new",lua_ax_ui_LayoutParameter_constructor); - tolua_function(tolua_S,"clone",lua_ax_ui_LayoutParameter_clone); tolua_function(tolua_S,"getLayoutType",lua_ax_ui_LayoutParameter_getLayoutType); + tolua_function(tolua_S,"clone",lua_ax_ui_LayoutParameter_clone); tolua_function(tolua_S,"createCloneInstance",lua_ax_ui_LayoutParameter_createCloneInstance); tolua_function(tolua_S,"copyProperties",lua_ax_ui_LayoutParameter_copyProperties); tolua_function(tolua_S,"create", lua_ax_ui_LayoutParameter_create); @@ -531,6 +531,53 @@ int lua_ax_ui_RelativeLayoutParameter_setAlign(lua_State* tolua_S) return 0; } +int lua_ax_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RelativeLayoutParameter* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'", nullptr); + return 0; + } + int ret = (int)cobj->getAlign(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getAlign",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State* tolua_S) { int argc = 0; @@ -581,53 +628,6 @@ int lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State* tolua_S return 0; } -int lua_ax_ui_RelativeLayoutParameter_getRelativeName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RelativeLayoutParameter* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'", nullptr); - return 0; - } - auto&& ret = cobj->getRelativeName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getRelativeName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName(lua_State* tolua_S) { int argc = 0; @@ -725,7 +725,7 @@ int lua_ax_ui_RelativeLayoutParameter_setRelativeName(lua_State* tolua_S) return 0; } -int lua_ax_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) +int lua_ax_ui_RelativeLayoutParameter_getRelativeName(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; @@ -745,7 +745,7 @@ int lua_ax_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'", nullptr); return 0; } #endif @@ -755,19 +755,19 @@ int lua_ax_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'", nullptr); return 0; } - int ret = (int)cobj->getAlign(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getRelativeName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getAlign",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getRelativeName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'.",&tolua_err); #endif return 0; @@ -857,11 +857,11 @@ int lua_register_ax_ui_RelativeLayoutParameter(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RelativeLayoutParameter"); tolua_function(tolua_S,"new",lua_ax_ui_RelativeLayoutParameter_constructor); tolua_function(tolua_S,"setAlign",lua_ax_ui_RelativeLayoutParameter_setAlign); + tolua_function(tolua_S,"getAlign",lua_ax_ui_RelativeLayoutParameter_getAlign); tolua_function(tolua_S,"setRelativeToWidgetName",lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName); - tolua_function(tolua_S,"getRelativeName",lua_ax_ui_RelativeLayoutParameter_getRelativeName); tolua_function(tolua_S,"getRelativeToWidgetName",lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName); tolua_function(tolua_S,"setRelativeName",lua_ax_ui_RelativeLayoutParameter_setRelativeName); - tolua_function(tolua_S,"getAlign",lua_ax_ui_RelativeLayoutParameter_getAlign); + tolua_function(tolua_S,"getRelativeName",lua_ax_ui_RelativeLayoutParameter_getRelativeName); tolua_function(tolua_S,"create", lua_ax_ui_RelativeLayoutParameter_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RelativeLayoutParameter).name(); // rtti is literal storage @@ -870,7 +870,7 @@ int lua_register_ax_ui_RelativeLayoutParameter(lua_State* tolua_S) return 1; } -int lua_ax_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) +int lua_ax_ui_Widget_setEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -890,7 +890,7 @@ int lua_ax_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setEnabled'", nullptr); return 0; } #endif @@ -900,1089 +900,22 @@ int lua_ax_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setLayoutComponentEnabled"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setEnabled'", nullptr); return 0; } - cobj->setLayoutComponentEnabled(arg0); + cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setLayoutComponentEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setSizePercent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSizePercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:setSizePercent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSizePercent'", nullptr); - return 0; - } - cobj->setSizePercent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSizePercent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSizePercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getCustomSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCustomSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCustomSize'", nullptr); - return 0; - } - auto&& ret = cobj->getCustomSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCustomSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCustomSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getLeftBoundary(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLeftBoundary'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLeftBoundary'", nullptr); - return 0; - } - auto&& ret = cobj->getLeftBoundary(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLeftBoundary",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLeftBoundary'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setFlippedX(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFlippedX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFlippedX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFlippedX'", nullptr); - return 0; - } - cobj->setFlippedX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFlippedX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFlippedX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setCallbackName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setCallbackName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Widget:setCallbackName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setCallbackName'", nullptr); - return 0; - } - cobj->setCallbackName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setCallbackName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setCallbackName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getVirtualRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getVirtualRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getVirtualRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getVirtualRenderer(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getVirtualRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getVirtualRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setPropagateTouchEvents(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPropagateTouchEvents'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setPropagateTouchEvents"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPropagateTouchEvents'", nullptr); - return 0; - } - cobj->setPropagateTouchEvents(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPropagateTouchEvents",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPropagateTouchEvents'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isUnifySizeEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isUnifySizeEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isUnifySizeEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isUnifySizeEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isUnifySizeEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isUnifySizeEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getSizePercent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getSizePercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getSizePercent'", nullptr); - return 0; - } - auto&& ret = cobj->getSizePercent(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getSizePercent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getSizePercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setPositionPercent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPositionPercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:setPositionPercent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPositionPercent'", nullptr); - return 0; - } - cobj->setPositionPercent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPositionPercent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPositionPercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setSwallowTouches(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSwallowTouches'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setSwallowTouches"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSwallowTouches'", nullptr); - return 0; - } - cobj->setSwallowTouches(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSwallowTouches",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSwallowTouches'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getLayoutSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLayoutSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLayoutSize'", nullptr); - return 0; - } - auto&& ret = cobj->getLayoutSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLayoutSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLayoutSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setHighlighted(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setHighlighted'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setHighlighted"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setHighlighted'", nullptr); - return 0; - } - cobj->setHighlighted(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setHighlighted",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setHighlighted'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setPositionType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPositionType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Widget::PositionType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setPositionType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPositionType'", nullptr); - return 0; - } - cobj->setPositionType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPositionType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPositionType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'", nullptr); - return 0; - } - auto&& ret = cobj->isIgnoreContentAdaptWithSize(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isIgnoreContentAdaptWithSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getVirtualRendererSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getVirtualRendererSize'", nullptr); - return 0; - } - auto&& ret = cobj->getVirtualRendererSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getVirtualRendererSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getVirtualRendererSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isHighlighted(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isHighlighted'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isHighlighted'", nullptr); - return 0; - } - auto&& ret = cobj->isHighlighted(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isHighlighted",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isHighlighted'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getLayoutParameter(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLayoutParameter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLayoutParameter'", nullptr); - return 0; - } - auto&& ret = cobj->getLayoutParameter(); - object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLayoutParameter",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLayoutParameter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getPositionType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getPositionType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getPositionType'", nullptr); - return 0; - } - int ret = (int)cobj->getPositionType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getPositionType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getPositionType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getTopBoundary(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTopBoundary'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTopBoundary'", nullptr); - return 0; - } - auto&& ret = cobj->getTopBoundary(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTopBoundary",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTopBoundary'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:ignoreContentAdaptWithSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'", nullptr); - return 0; - } - cobj->ignoreContentAdaptWithSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:ignoreContentAdaptWithSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_findNextFocusedWidget'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::ui::Widget::FocusDirection arg0; - ax::ui::Widget* arg1; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:findNextFocusedWidget"); - - ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:findNextFocusedWidget"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_findNextFocusedWidget'", nullptr); - return 0; - } - auto&& ret = cobj->findNextFocusedWidget(arg0, arg1); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:findNextFocusedWidget",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_findNextFocusedWidget'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setEnabled'.",&tolua_err); #endif return 0; @@ -2034,7 +967,7 @@ int lua_ax_ui_Widget_isEnabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_Widget_isFocused(lua_State* tolua_S) +int lua_ax_ui_Widget_setBright(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -2054,336 +987,7 @@ int lua_ax_ui_Widget_isFocused(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFocused'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFocused'", nullptr); - return 0; - } - auto&& ret = cobj->isFocused(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFocused",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFocused'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchBeganPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchBeganPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getTouchBeganPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchBeganPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchBeganPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isTouchEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isTouchEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isTouchEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isTouchEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isTouchEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isTouchEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getCallbackName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCallbackName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCallbackName'", nullptr); - return 0; - } - auto&& ret = cobj->getCallbackName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCallbackName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCallbackName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getActionTag(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getActionTag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getActionTag'", nullptr); - return 0; - } - auto&& ret = cobj->getActionTag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getActionTag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getActionTag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_requestFocus(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_requestFocus'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_requestFocus'", nullptr); - return 0; - } - cobj->requestFocus(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:requestFocus",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_requestFocus'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isFocusEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFocusEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFocusEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isFocusEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFocusEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFocusEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setFocused(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFocused'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setBright'", nullptr); return 0; } #endif @@ -2393,27 +997,27 @@ int lua_ax_ui_Widget_setFocused(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFocused"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setBright"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFocused'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setBright'", nullptr); return 0; } - cobj->setFocused(arg0); + cobj->setBright(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFocused",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setBright",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFocused'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setBright'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_setActionTag(lua_State* tolua_S) +int lua_ax_ui_Widget_isBright(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -2433,32 +1037,29 @@ int lua_ax_ui_Widget_setActionTag(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setActionTag'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isBright'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setActionTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setActionTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isBright'", nullptr); return 0; } - cobj->setActionTag(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->isBright(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setActionTag",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isBright",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setActionTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isBright'.",&tolua_err); #endif return 0; @@ -2513,153 +1114,6 @@ int lua_ax_ui_Widget_setTouchEnabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_Widget_setFlippedY(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFlippedY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFlippedY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFlippedY'", nullptr); - return 0; - } - cobj->setFlippedY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFlippedY",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFlippedY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getRightBoundary(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getRightBoundary'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getRightBoundary'", nullptr); - return 0; - } - auto&& ret = cobj->getRightBoundary(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getRightBoundary",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getRightBoundary'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Widget_setBrightStyle(lua_State* tolua_S) { int argc = 0; @@ -2710,7 +1164,7 @@ int lua_ax_ui_Widget_setBrightStyle(lua_State* tolua_S) return 0; } -int lua_ax_ui_Widget_setLayoutParameter(lua_State* tolua_S) +int lua_ax_ui_Widget_isTouchEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -2730,57 +1184,7 @@ int lua_ax_ui_Widget_setLayoutParameter(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setLayoutParameter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::LayoutParameter* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.LayoutParameter",&arg0, "axui.Widget:setLayoutParameter"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setLayoutParameter'", nullptr); - return 0; - } - cobj->setLayoutParameter(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setLayoutParameter",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setLayoutParameter'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_clone(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_clone'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isTouchEnabled'", nullptr); return 0; } #endif @@ -2790,24 +1194,24 @@ int lua_ax_ui_Widget_clone(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_clone'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isTouchEnabled'", nullptr); return 0; } - auto&& ret = cobj->clone(); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + auto&& ret = cobj->isTouchEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:clone",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isTouchEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_clone'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isTouchEnabled'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_setFocusEnabled(lua_State* tolua_S) +int lua_ax_ui_Widget_isHighlighted(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -2827,7 +1231,54 @@ int lua_ax_ui_Widget_setFocusEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFocusEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isHighlighted'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isHighlighted'", nullptr); + return 0; + } + auto&& ret = cobj->isHighlighted(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isHighlighted",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isHighlighted'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setHighlighted(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setHighlighted'", nullptr); return 0; } #endif @@ -2837,22 +1288,69 @@ int lua_ax_ui_Widget_setFocusEnabled(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFocusEnabled"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setHighlighted"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFocusEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setHighlighted'", nullptr); return 0; } - cobj->setFocusEnabled(arg0); + cobj->setHighlighted(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFocusEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setHighlighted",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFocusEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setHighlighted'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getLeftBoundary(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLeftBoundary'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLeftBoundary'", nullptr); + return 0; + } + auto&& ret = cobj->getLeftBoundary(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLeftBoundary",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLeftBoundary'.",&tolua_err); #endif return 0; @@ -2904,7 +1402,7 @@ int lua_ax_ui_Widget_getBottomBoundary(lua_State* tolua_S) return 0; } -int lua_ax_ui_Widget_isBright(lua_State* tolua_S) +int lua_ax_ui_Widget_getRightBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -2924,7 +1422,7 @@ int lua_ax_ui_Widget_isBright(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isBright'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getRightBoundary'", nullptr); return 0; } #endif @@ -2934,24 +1432,24 @@ int lua_ax_ui_Widget_isBright(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isBright'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getRightBoundary'", nullptr); return 0; } - auto&& ret = cobj->isBright(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getRightBoundary(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isBright",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getRightBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isBright'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getRightBoundary'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) +int lua_ax_ui_Widget_getTopBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -2971,40 +1469,34 @@ int lua_ax_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_dispatchFocusEvent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTopBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - ax::ui::Widget* arg0; - ax::ui::Widget* arg1; - - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Widget:dispatchFocusEvent"); - - ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:dispatchFocusEvent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_dispatchFocusEvent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTopBoundary'", nullptr); return 0; } - cobj->dispatchFocusEvent(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getTopBoundary(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:dispatchFocusEvent",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTopBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_dispatchFocusEvent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTopBoundary'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) +int lua_ax_ui_Widget_setPositionPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -3024,474 +1516,32 @@ int lua_ax_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setUnifySizeEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPositionPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setUnifySizeEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setUnifySizeEnabled'", nullptr); - return 0; - } - cobj->setUnifySizeEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setUnifySizeEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setUnifySizeEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isPropagateTouchEvents(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isPropagateTouchEvents'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isPropagateTouchEvents'", nullptr); - return 0; - } - auto&& ret = cobj->isPropagateTouchEvents(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isPropagateTouchEvents",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isPropagateTouchEvents'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_hitTest(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_hitTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) { ax::Vec2 arg0; - const ax::Camera* arg1; - ax::Vec3* arg2; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:hitTest"); - - ok &= luaval_to_object(tolua_S, 3, "ax.Camera",&arg1, "axui.Widget:hitTest"); - - ok &= luaval_to_object(tolua_S, 4, "ax.Vec3",&arg2, "axui.Widget:hitTest"); + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:setPositionPercent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_hitTest'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPositionPercent'", nullptr); return 0; } - auto&& ret = cobj->hitTest(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:hitTest",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_hitTest'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_isLayoutComponentEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isLayoutComponentEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isLayoutComponentEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_updateSizeAndPosition'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Vec2 arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:updateSizeAndPosition"); - - if (!ok) { break; } - cobj->updateSizeAndPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->updateSizeAndPosition(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:updateSizeAndPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_updateSizeAndPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_onFocusChange(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_onFocusChange'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::ui::Widget* arg0; - ax::ui::Widget* arg1; - - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Widget:onFocusChange"); - - ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:onFocusChange"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_onFocusChange'", nullptr); - return 0; - } - cobj->onFocusChange(arg0, arg1); + cobj->setPositionPercent(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:onFocusChange",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPositionPercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_onFocusChange'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getTouchMovePosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchMovePosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchMovePosition'", nullptr); - return 0; - } - auto&& ret = cobj->getTouchMovePosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchMovePosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchMovePosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getSizeType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getSizeType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getSizeType'", nullptr); - return 0; - } - int ret = (int)cobj->getSizeType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getSizeType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getSizeType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getCallbackType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCallbackType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCallbackType'", nullptr); - return 0; - } - auto&& ret = cobj->getCallbackType(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCallbackType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCallbackType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Widget_getTouchEndPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Widget* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchEndPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchEndPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getTouchEndPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchEndPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchEndPosition'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPositionPercent'.",&tolua_err); #endif return 0; @@ -3543,7 +1593,7 @@ int lua_ax_ui_Widget_getPositionPercent(lua_State* tolua_S) return 0; } -int lua_ax_ui_Widget_propagateTouchEvent(lua_State* tolua_S) +int lua_ax_ui_Widget_setPositionType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -3563,38 +1613,129 @@ int lua_ax_ui_Widget_propagateTouchEvent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_propagateTouchEvent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPositionType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 1) { - ax::ui::Widget::TouchEventType arg0; - ax::ui::Widget* arg1; - ax::Touch* arg2; + ax::ui::Widget::PositionType arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:propagateTouchEvent"); - - ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:propagateTouchEvent"); - - ok &= luaval_to_object(tolua_S, 4, "ax.Touch",&arg2, "axui.Widget:propagateTouchEvent"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setPositionType"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_propagateTouchEvent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPositionType'", nullptr); return 0; } - cobj->propagateTouchEvent(arg0, arg1, arg2); + cobj->setPositionType(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:propagateTouchEvent",argc, 3); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPositionType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_propagateTouchEvent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPositionType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getPositionType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getPositionType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getPositionType'", nullptr); + return 0; + } + int ret = (int)cobj->getPositionType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getPositionType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getPositionType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setFlippedX(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFlippedX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFlippedX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFlippedX'", nullptr); + return 0; + } + cobj->setFlippedX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFlippedX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFlippedX'.",&tolua_err); #endif return 0; @@ -3646,6 +1787,56 @@ int lua_ax_ui_Widget_isFlippedX(lua_State* tolua_S) return 0; } +int lua_ax_ui_Widget_setFlippedY(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFlippedY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFlippedY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFlippedY'", nullptr); + return 0; + } + cobj->setFlippedY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFlippedY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFlippedY'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Widget_isFlippedY(lua_State* tolua_S) { int argc = 0; @@ -3743,6 +1934,197 @@ int lua_ax_ui_Widget_isClippingParentContainsPoint(lua_State* tolua_S) return 0; } +int lua_ax_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchBeganPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchBeganPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getTouchBeganPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchBeganPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchBeganPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getTouchMovePosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchMovePosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchMovePosition'", nullptr); + return 0; + } + auto&& ret = cobj->getTouchMovePosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchMovePosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchMovePosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getTouchEndPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchEndPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchEndPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getTouchEndPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchEndPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchEndPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setSizePercent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSizePercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:setSizePercent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSizePercent'", nullptr); + return 0; + } + cobj->setSizePercent(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSizePercent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSizePercent'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Widget_setSizeType(lua_State* tolua_S) { int argc = 0; @@ -3793,6 +2175,1609 @@ int lua_ax_ui_Widget_setSizeType(lua_State* tolua_S) return 0; } +int lua_ax_ui_Widget_getSizeType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getSizeType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getSizeType'", nullptr); + return 0; + } + int ret = (int)cobj->getSizeType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getSizeType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getSizeType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getCustomSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCustomSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCustomSize'", nullptr); + return 0; + } + auto&& ret = cobj->getCustomSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCustomSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCustomSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getLayoutSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLayoutSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLayoutSize'", nullptr); + return 0; + } + auto&& ret = cobj->getLayoutSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLayoutSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLayoutSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getSizePercent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getSizePercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getSizePercent'", nullptr); + return 0; + } + auto&& ret = cobj->getSizePercent(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getSizePercent",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getSizePercent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_hitTest(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_hitTest'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Vec2 arg0; + const ax::Camera* arg1; + ax::Vec3* arg2; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:hitTest"); + + ok &= luaval_to_object(tolua_S, 3, "ax.Camera",&arg1, "axui.Widget:hitTest"); + + ok &= luaval_to_object(tolua_S, 4, "ax.Vec3",&arg2, "axui.Widget:hitTest"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_hitTest'", nullptr); + return 0; + } + auto&& ret = cobj->hitTest(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:hitTest",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_hitTest'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setLayoutParameter(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setLayoutParameter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::LayoutParameter* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.LayoutParameter",&arg0, "axui.Widget:setLayoutParameter"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setLayoutParameter'", nullptr); + return 0; + } + cobj->setLayoutParameter(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setLayoutParameter",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setLayoutParameter'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getLayoutParameter(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLayoutParameter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLayoutParameter'", nullptr); + return 0; + } + auto&& ret = cobj->getLayoutParameter(); + object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLayoutParameter",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLayoutParameter'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:ignoreContentAdaptWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'", nullptr); + return 0; + } + cobj->ignoreContentAdaptWithSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:ignoreContentAdaptWithSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'", nullptr); + return 0; + } + auto&& ret = cobj->isIgnoreContentAdaptWithSize(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isIgnoreContentAdaptWithSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getVirtualRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getVirtualRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getVirtualRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getVirtualRenderer(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getVirtualRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getVirtualRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getVirtualRendererSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getVirtualRendererSize'", nullptr); + return 0; + } + auto&& ret = cobj->getVirtualRendererSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getVirtualRendererSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getVirtualRendererSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_clone(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_clone'", nullptr); + return 0; + } + auto&& ret = cobj->clone(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:clone",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_updateSizeAndPosition'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Vec2 arg0; + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:updateSizeAndPosition"); + + if (!ok) { break; } + cobj->updateSizeAndPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->updateSizeAndPosition(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:updateSizeAndPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_updateSizeAndPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setActionTag(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setActionTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setActionTag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setActionTag'", nullptr); + return 0; + } + cobj->setActionTag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setActionTag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setActionTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getActionTag(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getActionTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getActionTag'", nullptr); + return 0; + } + auto&& ret = cobj->getActionTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getActionTag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getActionTag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setPropagateTouchEvents(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPropagateTouchEvents'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setPropagateTouchEvents"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPropagateTouchEvents'", nullptr); + return 0; + } + cobj->setPropagateTouchEvents(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPropagateTouchEvents",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPropagateTouchEvents'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isPropagateTouchEvents(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isPropagateTouchEvents'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isPropagateTouchEvents'", nullptr); + return 0; + } + auto&& ret = cobj->isPropagateTouchEvents(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isPropagateTouchEvents",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isPropagateTouchEvents'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setSwallowTouches(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSwallowTouches'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setSwallowTouches"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSwallowTouches'", nullptr); + return 0; + } + cobj->setSwallowTouches(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSwallowTouches",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSwallowTouches'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isSwallowTouches(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isSwallowTouches'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isSwallowTouches'", nullptr); + return 0; + } + auto&& ret = cobj->isSwallowTouches(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isSwallowTouches",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isSwallowTouches'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isFocused(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFocused'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFocused'", nullptr); + return 0; + } + auto&& ret = cobj->isFocused(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFocused",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFocused'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setFocused(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFocused'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFocused"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFocused'", nullptr); + return 0; + } + cobj->setFocused(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFocused",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFocused'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isFocusEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFocusEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFocusEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isFocusEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFocusEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFocusEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setFocusEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFocusEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFocusEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFocusEnabled'", nullptr); + return 0; + } + cobj->setFocusEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFocusEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFocusEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_findNextFocusedWidget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::ui::Widget::FocusDirection arg0; + ax::ui::Widget* arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:findNextFocusedWidget"); + + ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:findNextFocusedWidget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_findNextFocusedWidget'", nullptr); + return 0; + } + auto&& ret = cobj->findNextFocusedWidget(arg0, arg1); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:findNextFocusedWidget",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_findNextFocusedWidget'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_requestFocus(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_requestFocus'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_requestFocus'", nullptr); + return 0; + } + cobj->requestFocus(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:requestFocus",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_requestFocus'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setUnifySizeEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setUnifySizeEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setUnifySizeEnabled'", nullptr); + return 0; + } + cobj->setUnifySizeEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setUnifySizeEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setUnifySizeEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isUnifySizeEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isUnifySizeEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isUnifySizeEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isUnifySizeEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isUnifySizeEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isUnifySizeEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setCallbackName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setCallbackName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Widget:setCallbackName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setCallbackName'", nullptr); + return 0; + } + cobj->setCallbackName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setCallbackName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setCallbackName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getCallbackName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCallbackName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCallbackName'", nullptr); + return 0; + } + auto&& ret = cobj->getCallbackName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCallbackName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCallbackName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setCallbackType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setCallbackType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Widget:setCallbackType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setCallbackType'", nullptr); + return 0; + } + cobj->setCallbackType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setCallbackType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setCallbackType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_getCallbackType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCallbackType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCallbackType'", nullptr); + return 0; + } + auto&& ret = cobj->getCallbackType(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCallbackType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCallbackType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setLayoutComponentEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'", nullptr); + return 0; + } + cobj->setLayoutComponentEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setLayoutComponentEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Widget_isLayoutComponentEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Widget* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isLayoutComponentEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isLayoutComponentEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Widget_interceptTouchEvent(lua_State* tolua_S) { int argc = 0; @@ -3849,7 +3834,7 @@ int lua_ax_ui_Widget_interceptTouchEvent(lua_State* tolua_S) return 0; } -int lua_ax_ui_Widget_setBright(lua_State* tolua_S) +int lua_ax_ui_Widget_propagateTouchEvent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -3869,37 +3854,43 @@ int lua_ax_ui_Widget_setBright(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setBright'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_propagateTouchEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 3) { - bool arg0; + ax::ui::Widget::TouchEventType arg0; + ax::ui::Widget* arg1; + ax::Touch* arg2; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setBright"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:propagateTouchEvent"); + + ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:propagateTouchEvent"); + + ok &= luaval_to_object(tolua_S, 4, "ax.Touch",&arg2, "axui.Widget:propagateTouchEvent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setBright'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_propagateTouchEvent'", nullptr); return 0; } - cobj->setBright(arg0); + cobj->propagateTouchEvent(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setBright",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:propagateTouchEvent",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setBright'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_propagateTouchEvent'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_setCallbackType(lua_State* tolua_S) +int lua_ax_ui_Widget_onFocusChange(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -3919,37 +3910,40 @@ int lua_ax_ui_Widget_setCallbackType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setCallbackType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_onFocusChange'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { - std::string_view arg0; + ax::ui::Widget* arg0; + ax::ui::Widget* arg1; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Widget:setCallbackType"); + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Widget:onFocusChange"); + + ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:onFocusChange"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setCallbackType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_onFocusChange'", nullptr); return 0; } - cobj->setCallbackType(arg0); + cobj->onFocusChange(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setCallbackType",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:onFocusChange",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setCallbackType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_onFocusChange'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_isSwallowTouches(lua_State* tolua_S) +int lua_ax_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; @@ -3969,34 +3963,40 @@ int lua_ax_ui_Widget_isSwallowTouches(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isSwallowTouches'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_dispatchFocusEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + ax::ui::Widget* arg0; + ax::ui::Widget* arg1; + + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Widget:dispatchFocusEvent"); + + ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:dispatchFocusEvent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isSwallowTouches'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_dispatchFocusEvent'", nullptr); return 0; } - auto&& ret = cobj->isSwallowTouches(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->dispatchFocusEvent(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isSwallowTouches",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:dispatchFocusEvent",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isSwallowTouches'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_dispatchFocusEvent'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Widget_enableDpadNavigation(lua_State* tolua_S) +int lua_ax_ui_Widget_create(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -4011,24 +4011,22 @@ int lua_ax_ui_Widget_enableDpadNavigation(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 1) + if (argc == 0) { - bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:enableDpadNavigation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_enableDpadNavigation'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_create'", nullptr); return 0; } - ax::ui::Widget::enableDpadNavigation(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::ui::Widget::create(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:enableDpadNavigation",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_enableDpadNavigation'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_create'.",&tolua_err); #endif return 0; } @@ -4066,7 +4064,7 @@ int lua_ax_ui_Widget_getCurrentFocusedWidget(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Widget_create(lua_State* tolua_S) +int lua_ax_ui_Widget_enableDpadNavigation(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -4081,22 +4079,24 @@ int lua_ax_ui_Widget_create(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 0) + if (argc == 1) { + bool arg0; + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:enableDpadNavigation"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_enableDpadNavigation'", nullptr); return 0; } - auto&& ret = ax::ui::Widget::create(); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + ax::ui::Widget::enableDpadNavigation(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:create",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:enableDpadNavigation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_create'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_enableDpadNavigation'.",&tolua_err); #endif return 0; } @@ -4150,73 +4150,73 @@ int lua_register_ax_ui_Widget(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Widget"); tolua_function(tolua_S,"new",lua_ax_ui_Widget_constructor); - tolua_function(tolua_S,"setLayoutComponentEnabled",lua_ax_ui_Widget_setLayoutComponentEnabled); - tolua_function(tolua_S,"setSizePercent",lua_ax_ui_Widget_setSizePercent); - tolua_function(tolua_S,"getCustomSize",lua_ax_ui_Widget_getCustomSize); - tolua_function(tolua_S,"getLeftBoundary",lua_ax_ui_Widget_getLeftBoundary); - tolua_function(tolua_S,"setFlippedX",lua_ax_ui_Widget_setFlippedX); - tolua_function(tolua_S,"setCallbackName",lua_ax_ui_Widget_setCallbackName); - tolua_function(tolua_S,"getVirtualRenderer",lua_ax_ui_Widget_getVirtualRenderer); - tolua_function(tolua_S,"setPropagateTouchEvents",lua_ax_ui_Widget_setPropagateTouchEvents); - tolua_function(tolua_S,"isUnifySizeEnabled",lua_ax_ui_Widget_isUnifySizeEnabled); - tolua_function(tolua_S,"getSizePercent",lua_ax_ui_Widget_getSizePercent); - tolua_function(tolua_S,"setPositionPercent",lua_ax_ui_Widget_setPositionPercent); - tolua_function(tolua_S,"setSwallowTouches",lua_ax_ui_Widget_setSwallowTouches); - tolua_function(tolua_S,"getLayoutSize",lua_ax_ui_Widget_getLayoutSize); - tolua_function(tolua_S,"setHighlighted",lua_ax_ui_Widget_setHighlighted); - tolua_function(tolua_S,"setPositionType",lua_ax_ui_Widget_setPositionType); - tolua_function(tolua_S,"isIgnoreContentAdaptWithSize",lua_ax_ui_Widget_isIgnoreContentAdaptWithSize); - tolua_function(tolua_S,"getVirtualRendererSize",lua_ax_ui_Widget_getVirtualRendererSize); - tolua_function(tolua_S,"isHighlighted",lua_ax_ui_Widget_isHighlighted); - tolua_function(tolua_S,"getLayoutParameter",lua_ax_ui_Widget_getLayoutParameter); - tolua_function(tolua_S,"getPositionType",lua_ax_ui_Widget_getPositionType); - tolua_function(tolua_S,"getTopBoundary",lua_ax_ui_Widget_getTopBoundary); - tolua_function(tolua_S,"ignoreContentAdaptWithSize",lua_ax_ui_Widget_ignoreContentAdaptWithSize); - tolua_function(tolua_S,"findNextFocusedWidget",lua_ax_ui_Widget_findNextFocusedWidget); - tolua_function(tolua_S,"isEnabled",lua_ax_ui_Widget_isEnabled); - tolua_function(tolua_S,"isFocused",lua_ax_ui_Widget_isFocused); - tolua_function(tolua_S,"getTouchBeganPosition",lua_ax_ui_Widget_getTouchBeganPosition); - tolua_function(tolua_S,"isTouchEnabled",lua_ax_ui_Widget_isTouchEnabled); - tolua_function(tolua_S,"getCallbackName",lua_ax_ui_Widget_getCallbackName); - tolua_function(tolua_S,"getActionTag",lua_ax_ui_Widget_getActionTag); - tolua_function(tolua_S,"requestFocus",lua_ax_ui_Widget_requestFocus); - tolua_function(tolua_S,"isFocusEnabled",lua_ax_ui_Widget_isFocusEnabled); - tolua_function(tolua_S,"setFocused",lua_ax_ui_Widget_setFocused); - tolua_function(tolua_S,"setActionTag",lua_ax_ui_Widget_setActionTag); - tolua_function(tolua_S,"setTouchEnabled",lua_ax_ui_Widget_setTouchEnabled); - tolua_function(tolua_S,"setFlippedY",lua_ax_ui_Widget_setFlippedY); tolua_function(tolua_S,"setEnabled",lua_ax_ui_Widget_setEnabled); - tolua_function(tolua_S,"getRightBoundary",lua_ax_ui_Widget_getRightBoundary); - tolua_function(tolua_S,"setBrightStyle",lua_ax_ui_Widget_setBrightStyle); - tolua_function(tolua_S,"setLayoutParameter",lua_ax_ui_Widget_setLayoutParameter); - tolua_function(tolua_S,"clone",lua_ax_ui_Widget_clone); - tolua_function(tolua_S,"setFocusEnabled",lua_ax_ui_Widget_setFocusEnabled); - tolua_function(tolua_S,"getBottomBoundary",lua_ax_ui_Widget_getBottomBoundary); + tolua_function(tolua_S,"isEnabled",lua_ax_ui_Widget_isEnabled); + tolua_function(tolua_S,"setBright",lua_ax_ui_Widget_setBright); tolua_function(tolua_S,"isBright",lua_ax_ui_Widget_isBright); - tolua_function(tolua_S,"dispatchFocusEvent",lua_ax_ui_Widget_dispatchFocusEvent); - tolua_function(tolua_S,"setUnifySizeEnabled",lua_ax_ui_Widget_setUnifySizeEnabled); - tolua_function(tolua_S,"isPropagateTouchEvents",lua_ax_ui_Widget_isPropagateTouchEvents); - tolua_function(tolua_S,"hitTest",lua_ax_ui_Widget_hitTest); - tolua_function(tolua_S,"isLayoutComponentEnabled",lua_ax_ui_Widget_isLayoutComponentEnabled); - tolua_function(tolua_S,"updateSizeAndPosition",lua_ax_ui_Widget_updateSizeAndPosition); - tolua_function(tolua_S,"onFocusChange",lua_ax_ui_Widget_onFocusChange); - tolua_function(tolua_S,"getTouchMovePosition",lua_ax_ui_Widget_getTouchMovePosition); - tolua_function(tolua_S,"getSizeType",lua_ax_ui_Widget_getSizeType); - tolua_function(tolua_S,"getCallbackType",lua_ax_ui_Widget_getCallbackType); - tolua_function(tolua_S,"getTouchEndPosition",lua_ax_ui_Widget_getTouchEndPosition); + tolua_function(tolua_S,"setTouchEnabled",lua_ax_ui_Widget_setTouchEnabled); + tolua_function(tolua_S,"setBrightStyle",lua_ax_ui_Widget_setBrightStyle); + tolua_function(tolua_S,"isTouchEnabled",lua_ax_ui_Widget_isTouchEnabled); + tolua_function(tolua_S,"isHighlighted",lua_ax_ui_Widget_isHighlighted); + tolua_function(tolua_S,"setHighlighted",lua_ax_ui_Widget_setHighlighted); + tolua_function(tolua_S,"getLeftBoundary",lua_ax_ui_Widget_getLeftBoundary); + tolua_function(tolua_S,"getBottomBoundary",lua_ax_ui_Widget_getBottomBoundary); + tolua_function(tolua_S,"getRightBoundary",lua_ax_ui_Widget_getRightBoundary); + tolua_function(tolua_S,"getTopBoundary",lua_ax_ui_Widget_getTopBoundary); + tolua_function(tolua_S,"setPositionPercent",lua_ax_ui_Widget_setPositionPercent); tolua_function(tolua_S,"getPositionPercent",lua_ax_ui_Widget_getPositionPercent); - tolua_function(tolua_S,"propagateTouchEvent",lua_ax_ui_Widget_propagateTouchEvent); + tolua_function(tolua_S,"setPositionType",lua_ax_ui_Widget_setPositionType); + tolua_function(tolua_S,"getPositionType",lua_ax_ui_Widget_getPositionType); + tolua_function(tolua_S,"setFlippedX",lua_ax_ui_Widget_setFlippedX); tolua_function(tolua_S,"isFlippedX",lua_ax_ui_Widget_isFlippedX); + tolua_function(tolua_S,"setFlippedY",lua_ax_ui_Widget_setFlippedY); tolua_function(tolua_S,"isFlippedY",lua_ax_ui_Widget_isFlippedY); tolua_function(tolua_S,"isClippingParentContainsPoint",lua_ax_ui_Widget_isClippingParentContainsPoint); + tolua_function(tolua_S,"getTouchBeganPosition",lua_ax_ui_Widget_getTouchBeganPosition); + tolua_function(tolua_S,"getTouchMovePosition",lua_ax_ui_Widget_getTouchMovePosition); + tolua_function(tolua_S,"getTouchEndPosition",lua_ax_ui_Widget_getTouchEndPosition); + tolua_function(tolua_S,"setSizePercent",lua_ax_ui_Widget_setSizePercent); tolua_function(tolua_S,"setSizeType",lua_ax_ui_Widget_setSizeType); - tolua_function(tolua_S,"interceptTouchEvent",lua_ax_ui_Widget_interceptTouchEvent); - tolua_function(tolua_S,"setBright",lua_ax_ui_Widget_setBright); - tolua_function(tolua_S,"setCallbackType",lua_ax_ui_Widget_setCallbackType); + tolua_function(tolua_S,"getSizeType",lua_ax_ui_Widget_getSizeType); + tolua_function(tolua_S,"getCustomSize",lua_ax_ui_Widget_getCustomSize); + tolua_function(tolua_S,"getLayoutSize",lua_ax_ui_Widget_getLayoutSize); + tolua_function(tolua_S,"getSizePercent",lua_ax_ui_Widget_getSizePercent); + tolua_function(tolua_S,"hitTest",lua_ax_ui_Widget_hitTest); + tolua_function(tolua_S,"setLayoutParameter",lua_ax_ui_Widget_setLayoutParameter); + tolua_function(tolua_S,"getLayoutParameter",lua_ax_ui_Widget_getLayoutParameter); + tolua_function(tolua_S,"ignoreContentAdaptWithSize",lua_ax_ui_Widget_ignoreContentAdaptWithSize); + tolua_function(tolua_S,"isIgnoreContentAdaptWithSize",lua_ax_ui_Widget_isIgnoreContentAdaptWithSize); + tolua_function(tolua_S,"getVirtualRenderer",lua_ax_ui_Widget_getVirtualRenderer); + tolua_function(tolua_S,"getVirtualRendererSize",lua_ax_ui_Widget_getVirtualRendererSize); + tolua_function(tolua_S,"clone",lua_ax_ui_Widget_clone); + tolua_function(tolua_S,"updateSizeAndPosition",lua_ax_ui_Widget_updateSizeAndPosition); + tolua_function(tolua_S,"setActionTag",lua_ax_ui_Widget_setActionTag); + tolua_function(tolua_S,"getActionTag",lua_ax_ui_Widget_getActionTag); + tolua_function(tolua_S,"setPropagateTouchEvents",lua_ax_ui_Widget_setPropagateTouchEvents); + tolua_function(tolua_S,"isPropagateTouchEvents",lua_ax_ui_Widget_isPropagateTouchEvents); + tolua_function(tolua_S,"setSwallowTouches",lua_ax_ui_Widget_setSwallowTouches); tolua_function(tolua_S,"isSwallowTouches",lua_ax_ui_Widget_isSwallowTouches); - tolua_function(tolua_S,"enableDpadNavigation", lua_ax_ui_Widget_enableDpadNavigation); - tolua_function(tolua_S,"getCurrentFocusedWidget", lua_ax_ui_Widget_getCurrentFocusedWidget); + tolua_function(tolua_S,"isFocused",lua_ax_ui_Widget_isFocused); + tolua_function(tolua_S,"setFocused",lua_ax_ui_Widget_setFocused); + tolua_function(tolua_S,"isFocusEnabled",lua_ax_ui_Widget_isFocusEnabled); + tolua_function(tolua_S,"setFocusEnabled",lua_ax_ui_Widget_setFocusEnabled); + tolua_function(tolua_S,"findNextFocusedWidget",lua_ax_ui_Widget_findNextFocusedWidget); + tolua_function(tolua_S,"requestFocus",lua_ax_ui_Widget_requestFocus); + tolua_function(tolua_S,"setUnifySizeEnabled",lua_ax_ui_Widget_setUnifySizeEnabled); + tolua_function(tolua_S,"isUnifySizeEnabled",lua_ax_ui_Widget_isUnifySizeEnabled); + tolua_function(tolua_S,"setCallbackName",lua_ax_ui_Widget_setCallbackName); + tolua_function(tolua_S,"getCallbackName",lua_ax_ui_Widget_getCallbackName); + tolua_function(tolua_S,"setCallbackType",lua_ax_ui_Widget_setCallbackType); + tolua_function(tolua_S,"getCallbackType",lua_ax_ui_Widget_getCallbackType); + tolua_function(tolua_S,"setLayoutComponentEnabled",lua_ax_ui_Widget_setLayoutComponentEnabled); + tolua_function(tolua_S,"isLayoutComponentEnabled",lua_ax_ui_Widget_isLayoutComponentEnabled); + tolua_function(tolua_S,"interceptTouchEvent",lua_ax_ui_Widget_interceptTouchEvent); + tolua_function(tolua_S,"propagateTouchEvent",lua_ax_ui_Widget_propagateTouchEvent); + tolua_function(tolua_S,"onFocusChange",lua_ax_ui_Widget_onFocusChange); + tolua_function(tolua_S,"dispatchFocusEvent",lua_ax_ui_Widget_dispatchFocusEvent); tolua_function(tolua_S,"create", lua_ax_ui_Widget_create); + tolua_function(tolua_S,"getCurrentFocusedWidget", lua_ax_ui_Widget_getCurrentFocusedWidget); + tolua_function(tolua_S,"enableDpadNavigation", lua_ax_ui_Widget_enableDpadNavigation); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Widget).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Widget"; @@ -4224,635 +4224,6 @@ int lua_register_ax_ui_Widget(lua_State* tolua_S) return 1; } -int lua_ax_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorVector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Layout:setBackGroundColorVector"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorVector'", nullptr); - return 0; - } - cobj->setBackGroundColorVector(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorVector",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorVector'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setClippingType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setClippingType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Layout::ClippingType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setClippingType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setClippingType'", nullptr); - return 0; - } - cobj->setClippingType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setClippingType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setClippingType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setBackGroundColorType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Layout::BackGroundColorType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setBackGroundColorType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorType'", nullptr); - return 0; - } - cobj->setBackGroundColorType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setLoopFocus(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setLoopFocus'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setLoopFocus"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setLoopFocus'", nullptr); - return 0; - } - cobj->setLoopFocus(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setLoopFocus",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setLoopFocus'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Layout:setBackGroundImageColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageColor'", nullptr); - return 0; - } - cobj->setBackGroundImageColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorVector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorVector'", nullptr); - return 0; - } - auto&& ret = cobj->getBackGroundColorVector(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorVector",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorVector'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getClippingType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getClippingType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getClippingType'", nullptr); - return 0; - } - int ret = (int)cobj->getClippingType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getClippingType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getClippingType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getRenderFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getRenderFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getRenderFile'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getRenderFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getRenderFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_isLoopFocus(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isLoopFocus'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isLoopFocus'", nullptr); - return 0; - } - auto&& ret = cobj->isLoopFocus(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isLoopFocus",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isLoopFocus'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_removeBackGroundImage(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_removeBackGroundImage'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_removeBackGroundImage'", nullptr); - return 0; - } - cobj->removeBackGroundImage(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:removeBackGroundImage",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_removeBackGroundImage'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getBackGroundColorOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'", nullptr); - return 0; - } - auto&& ret = cobj->getBackGroundColorOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_isClippingEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isClippingEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isClippingEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isClippingEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isClippingEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isClippingEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setBackGroundImageOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - uint16_t arg0; - - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImageOpacity"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'", nullptr); - return 0; - } - cobj->setBackGroundImageOpacity(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageOpacity",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Layout_setBackGroundImage(lua_State* tolua_S) { int argc = 0; @@ -4920,6 +4291,297 @@ int lua_ax_ui_Layout_setBackGroundImage(lua_State* tolua_S) return 0; } +int lua_ax_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Layout:setBackGroundImageCapInsets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'", nullptr); + return 0; + } + cobj->setBackGroundImageCapInsets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageCapInsets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'", nullptr); + return 0; + } + auto&& ret = cobj->getBackGroundImageCapInsets(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageCapInsets",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setBackGroundColorType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Layout::BackGroundColorType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setBackGroundColorType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorType'", nullptr); + return 0; + } + cobj->setBackGroundColorType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_getBackGroundColorType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorType'", nullptr); + return 0; + } + int ret = (int)cobj->getBackGroundColorType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setBackGroundImageScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImageScale9Enabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'", nullptr); + return 0; + } + cobj->setBackGroundImageScale9Enabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageScale9Enabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_isBackGroundImageScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'", nullptr); + return 0; + } + auto&& ret = cobj->isBackGroundImageScale9Enabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isBackGroundImageScale9Enabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Layout_setBackGroundColor(lua_State* tolua_S) { int argc = 0; @@ -4979,100 +4641,6 @@ int lua_ax_ui_Layout_setBackGroundColor(lua_State* tolua_S) return 0; } -int lua_ax_ui_Layout_requestDoLayout(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_requestDoLayout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_requestDoLayout'", nullptr); - return 0; - } - cobj->requestDoLayout(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:requestDoLayout",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_requestDoLayout'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'", nullptr); - return 0; - } - auto&& ret = cobj->getBackGroundImageCapInsets(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageCapInsets",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Layout_getBackGroundColor(lua_State* tolua_S) { int argc = 0; @@ -5120,7 +4688,7 @@ int lua_ax_ui_Layout_getBackGroundColor(lua_State* tolua_S) return 0; } -int lua_ax_ui_Layout_setClippingEnabled(lua_State* tolua_S) +int lua_ax_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; @@ -5140,57 +4708,7 @@ int lua_ax_ui_Layout_setClippingEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setClippingEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setClippingEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setClippingEnabled'", nullptr); - return 0; - } - cobj->setClippingEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setClippingEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setClippingEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundStartColor'", nullptr); return 0; } #endif @@ -5200,113 +4718,19 @@ int lua_ax_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundStartColor'", nullptr); return 0; } - auto&& ret = cobj->getBackGroundImageColor(); + auto&& ret = cobj->getBackGroundStartColor(); color3b_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageColor",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundStartColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_isBackGroundImageScale9Enabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'", nullptr); - return 0; - } - auto&& ret = cobj->isBackGroundImageScale9Enabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isBackGroundImageScale9Enabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getBackGroundColorType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorType'", nullptr); - return 0; - } - int ret = (int)cobj->getBackGroundColorType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundStartColor'.",&tolua_err); #endif return 0; @@ -5408,6 +4832,297 @@ int lua_ax_ui_Layout_setBackGroundColorOpacity(lua_State* tolua_S) return 0; } +int lua_ax_ui_Layout_getBackGroundColorOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getBackGroundColorOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorVector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Layout:setBackGroundColorVector"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorVector'", nullptr); + return 0; + } + cobj->setBackGroundColorVector(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorVector",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorVector'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorVector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorVector'", nullptr); + return 0; + } + auto&& ret = cobj->getBackGroundColorVector(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorVector",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorVector'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Layout:setBackGroundImageColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageColor'", nullptr); + return 0; + } + cobj->setBackGroundImageColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setBackGroundImageOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImageOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'", nullptr); + return 0; + } + cobj->setBackGroundImageOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageColor'", nullptr); + return 0; + } + auto&& ret = cobj->getBackGroundImageColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageColor'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S) { int argc = 0; @@ -5455,7 +5170,7 @@ int lua_ax_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S) return 0; } -int lua_ax_ui_Layout_isPassFocusToChild(lua_State* tolua_S) +int lua_ax_ui_Layout_removeBackGroundImage(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; @@ -5475,7 +5190,7 @@ int lua_ax_ui_Layout_isPassFocusToChild(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isPassFocusToChild'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_removeBackGroundImage'", nullptr); return 0; } #endif @@ -5485,69 +5200,19 @@ int lua_ax_ui_Layout_isPassFocusToChild(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isPassFocusToChild'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_removeBackGroundImage'", nullptr); return 0; } - auto&& ret = cobj->isPassFocusToChild(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isPassFocusToChild",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isPassFocusToChild'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Layout:setBackGroundImageCapInsets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'", nullptr); - return 0; - } - cobj->setBackGroundImageCapInsets(arg0); + cobj->removeBackGroundImage(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageCapInsets",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:removeBackGroundImage",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_removeBackGroundImage'.",&tolua_err); #endif return 0; @@ -5599,7 +5264,7 @@ int lua_ax_ui_Layout_getBackGroundImageTextureSize(lua_State* tolua_S) return 0; } -int lua_ax_ui_Layout_forceDoLayout(lua_State* tolua_S) +int lua_ax_ui_Layout_setClippingEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; @@ -5619,34 +5284,37 @@ int lua_ax_ui_Layout_forceDoLayout(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_forceDoLayout'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setClippingEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setClippingEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_forceDoLayout'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setClippingEnabled'", nullptr); return 0; } - cobj->forceDoLayout(); + cobj->setClippingEnabled(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:forceDoLayout",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setClippingEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_forceDoLayout'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setClippingEnabled'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Layout_getLayoutType(lua_State* tolua_S) +int lua_ax_ui_Layout_setClippingType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; @@ -5666,7 +5334,57 @@ int lua_ax_ui_Layout_getLayoutType(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getLayoutType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setClippingType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Layout::ClippingType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setClippingType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setClippingType'", nullptr); + return 0; + } + cobj->setClippingType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setClippingType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setClippingType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_getClippingType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getClippingType'", nullptr); return 0; } #endif @@ -5676,24 +5394,24 @@ int lua_ax_ui_Layout_getLayoutType(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getLayoutType'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getClippingType'", nullptr); return 0; } - int ret = (int)cobj->getLayoutType(); + int ret = (int)cobj->getClippingType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getLayoutType",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getClippingType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getLayoutType'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getClippingType'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Layout_setPassFocusToChild(lua_State* tolua_S) +int lua_ax_ui_Layout_isClippingEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; @@ -5713,57 +5431,7 @@ int lua_ax_ui_Layout_setPassFocusToChild(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setPassFocusToChild'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setPassFocusToChild"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setPassFocusToChild'", nullptr); - return 0; - } - cobj->setPassFocusToChild(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setPassFocusToChild",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setPassFocusToChild'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundStartColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isClippingEnabled'", nullptr); return 0; } #endif @@ -5773,69 +5441,19 @@ int lua_ax_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundStartColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isClippingEnabled'", nullptr); return 0; } - auto&& ret = cobj->getBackGroundStartColor(); - color3b_to_luaval(tolua_S, ret); + auto&& ret = cobj->isClippingEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundStartColor",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isClippingEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundStartColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Layout_setBackGroundImageScale9Enabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Layout* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImageScale9Enabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'", nullptr); - return 0; - } - cobj->setBackGroundImageScale9Enabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageScale9Enabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isClippingEnabled'.",&tolua_err); #endif return 0; @@ -5890,38 +5508,386 @@ int lua_ax_ui_Layout_setLayoutType(lua_State* tolua_S) return 0; } -int lua_ax_ui_Layout_create(lua_State* tolua_S) +int lua_ax_ui_Layout_getLayoutType(lua_State* tolua_S) { int argc = 0; + ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getLayoutType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getLayoutType'", nullptr); return 0; } - auto&& ret = ax::ui::Layout::create(); - object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); + int ret = (int)cobj->getLayoutType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Layout:create",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getLayoutType",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_create'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getLayoutType'.",&tolua_err); #endif + + return 0; +} +int lua_ax_ui_Layout_forceDoLayout(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_forceDoLayout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_forceDoLayout'", nullptr); + return 0; + } + cobj->forceDoLayout(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:forceDoLayout",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_forceDoLayout'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_requestDoLayout(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_requestDoLayout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_requestDoLayout'", nullptr); + return 0; + } + cobj->requestDoLayout(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:requestDoLayout",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_requestDoLayout'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setLoopFocus(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setLoopFocus'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setLoopFocus"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setLoopFocus'", nullptr); + return 0; + } + cobj->setLoopFocus(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setLoopFocus",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setLoopFocus'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_isLoopFocus(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isLoopFocus'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isLoopFocus'", nullptr); + return 0; + } + auto&& ret = cobj->isLoopFocus(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isLoopFocus",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isLoopFocus'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_setPassFocusToChild(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setPassFocusToChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setPassFocusToChild"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setPassFocusToChild'", nullptr); + return 0; + } + cobj->setPassFocusToChild(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setPassFocusToChild",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setPassFocusToChild'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_isPassFocusToChild(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isPassFocusToChild'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isPassFocusToChild'", nullptr); + return 0; + } + auto&& ret = cobj->isPassFocusToChild(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isPassFocusToChild",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isPassFocusToChild'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Layout_getRenderFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Layout* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getRenderFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getRenderFile'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getRenderFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getRenderFile'.",&tolua_err); +#endif + return 0; } int lua_ax_ui_Layout_createInstance(lua_State* tolua_S) @@ -5958,6 +5924,40 @@ int lua_ax_ui_Layout_createInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_ui_Layout_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_create'", nullptr); + return 0; + } + auto&& ret = ax::ui::Layout::create(); + object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Layout:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_Layout_constructor(lua_State* tolua_S) { int argc = 0; @@ -6008,42 +6008,42 @@ int lua_register_ax_ui_Layout(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Layout"); tolua_function(tolua_S,"new",lua_ax_ui_Layout_constructor); - tolua_function(tolua_S,"setBackGroundColorVector",lua_ax_ui_Layout_setBackGroundColorVector); - tolua_function(tolua_S,"setClippingType",lua_ax_ui_Layout_setClippingType); - tolua_function(tolua_S,"setBackGroundColorType",lua_ax_ui_Layout_setBackGroundColorType); - tolua_function(tolua_S,"setLoopFocus",lua_ax_ui_Layout_setLoopFocus); - tolua_function(tolua_S,"setBackGroundImageColor",lua_ax_ui_Layout_setBackGroundImageColor); - tolua_function(tolua_S,"getBackGroundColorVector",lua_ax_ui_Layout_getBackGroundColorVector); - tolua_function(tolua_S,"getClippingType",lua_ax_ui_Layout_getClippingType); - tolua_function(tolua_S,"getRenderFile",lua_ax_ui_Layout_getRenderFile); - tolua_function(tolua_S,"isLoopFocus",lua_ax_ui_Layout_isLoopFocus); - tolua_function(tolua_S,"removeBackGroundImage",lua_ax_ui_Layout_removeBackGroundImage); - tolua_function(tolua_S,"getBackGroundColorOpacity",lua_ax_ui_Layout_getBackGroundColorOpacity); - tolua_function(tolua_S,"isClippingEnabled",lua_ax_ui_Layout_isClippingEnabled); - tolua_function(tolua_S,"setBackGroundImageOpacity",lua_ax_ui_Layout_setBackGroundImageOpacity); tolua_function(tolua_S,"setBackGroundImage",lua_ax_ui_Layout_setBackGroundImage); - tolua_function(tolua_S,"setBackGroundColor",lua_ax_ui_Layout_setBackGroundColor); - tolua_function(tolua_S,"requestDoLayout",lua_ax_ui_Layout_requestDoLayout); + tolua_function(tolua_S,"setBackGroundImageCapInsets",lua_ax_ui_Layout_setBackGroundImageCapInsets); tolua_function(tolua_S,"getBackGroundImageCapInsets",lua_ax_ui_Layout_getBackGroundImageCapInsets); - tolua_function(tolua_S,"getBackGroundColor",lua_ax_ui_Layout_getBackGroundColor); - tolua_function(tolua_S,"setClippingEnabled",lua_ax_ui_Layout_setClippingEnabled); - tolua_function(tolua_S,"getBackGroundImageColor",lua_ax_ui_Layout_getBackGroundImageColor); - tolua_function(tolua_S,"isBackGroundImageScale9Enabled",lua_ax_ui_Layout_isBackGroundImageScale9Enabled); + tolua_function(tolua_S,"setBackGroundColorType",lua_ax_ui_Layout_setBackGroundColorType); tolua_function(tolua_S,"getBackGroundColorType",lua_ax_ui_Layout_getBackGroundColorType); + tolua_function(tolua_S,"setBackGroundImageScale9Enabled",lua_ax_ui_Layout_setBackGroundImageScale9Enabled); + tolua_function(tolua_S,"isBackGroundImageScale9Enabled",lua_ax_ui_Layout_isBackGroundImageScale9Enabled); + tolua_function(tolua_S,"setBackGroundColor",lua_ax_ui_Layout_setBackGroundColor); + tolua_function(tolua_S,"getBackGroundColor",lua_ax_ui_Layout_getBackGroundColor); + tolua_function(tolua_S,"getBackGroundStartColor",lua_ax_ui_Layout_getBackGroundStartColor); tolua_function(tolua_S,"getBackGroundEndColor",lua_ax_ui_Layout_getBackGroundEndColor); tolua_function(tolua_S,"setBackGroundColorOpacity",lua_ax_ui_Layout_setBackGroundColorOpacity); + tolua_function(tolua_S,"getBackGroundColorOpacity",lua_ax_ui_Layout_getBackGroundColorOpacity); + tolua_function(tolua_S,"setBackGroundColorVector",lua_ax_ui_Layout_setBackGroundColorVector); + tolua_function(tolua_S,"getBackGroundColorVector",lua_ax_ui_Layout_getBackGroundColorVector); + tolua_function(tolua_S,"setBackGroundImageColor",lua_ax_ui_Layout_setBackGroundImageColor); + tolua_function(tolua_S,"setBackGroundImageOpacity",lua_ax_ui_Layout_setBackGroundImageOpacity); + tolua_function(tolua_S,"getBackGroundImageColor",lua_ax_ui_Layout_getBackGroundImageColor); tolua_function(tolua_S,"getBackGroundImageOpacity",lua_ax_ui_Layout_getBackGroundImageOpacity); - tolua_function(tolua_S,"isPassFocusToChild",lua_ax_ui_Layout_isPassFocusToChild); - tolua_function(tolua_S,"setBackGroundImageCapInsets",lua_ax_ui_Layout_setBackGroundImageCapInsets); + tolua_function(tolua_S,"removeBackGroundImage",lua_ax_ui_Layout_removeBackGroundImage); tolua_function(tolua_S,"getBackGroundImageTextureSize",lua_ax_ui_Layout_getBackGroundImageTextureSize); - tolua_function(tolua_S,"forceDoLayout",lua_ax_ui_Layout_forceDoLayout); - tolua_function(tolua_S,"getLayoutType",lua_ax_ui_Layout_getLayoutType); - tolua_function(tolua_S,"setPassFocusToChild",lua_ax_ui_Layout_setPassFocusToChild); - tolua_function(tolua_S,"getBackGroundStartColor",lua_ax_ui_Layout_getBackGroundStartColor); - tolua_function(tolua_S,"setBackGroundImageScale9Enabled",lua_ax_ui_Layout_setBackGroundImageScale9Enabled); + tolua_function(tolua_S,"setClippingEnabled",lua_ax_ui_Layout_setClippingEnabled); + tolua_function(tolua_S,"setClippingType",lua_ax_ui_Layout_setClippingType); + tolua_function(tolua_S,"getClippingType",lua_ax_ui_Layout_getClippingType); + tolua_function(tolua_S,"isClippingEnabled",lua_ax_ui_Layout_isClippingEnabled); tolua_function(tolua_S,"setLayoutType",lua_ax_ui_Layout_setLayoutType); - tolua_function(tolua_S,"create", lua_ax_ui_Layout_create); + tolua_function(tolua_S,"getLayoutType",lua_ax_ui_Layout_getLayoutType); + tolua_function(tolua_S,"forceDoLayout",lua_ax_ui_Layout_forceDoLayout); + tolua_function(tolua_S,"requestDoLayout",lua_ax_ui_Layout_requestDoLayout); + tolua_function(tolua_S,"setLoopFocus",lua_ax_ui_Layout_setLoopFocus); + tolua_function(tolua_S,"isLoopFocus",lua_ax_ui_Layout_isLoopFocus); + tolua_function(tolua_S,"setPassFocusToChild",lua_ax_ui_Layout_setPassFocusToChild); + tolua_function(tolua_S,"isPassFocusToChild",lua_ax_ui_Layout_isPassFocusToChild); + tolua_function(tolua_S,"getRenderFile",lua_ax_ui_Layout_getRenderFile); tolua_function(tolua_S,"createInstance", lua_ax_ui_Layout_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_Layout_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Layout).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Layout"; @@ -6051,7 +6051,7 @@ int lua_register_ax_ui_Layout(lua_State* tolua_S) return 1; } -int lua_ax_ui_Button_getNormalTextureSize(lua_State* tolua_S) +int lua_ax_ui_Button_loadTextures(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; @@ -6071,34 +6071,83 @@ int lua_ax_ui_Button_getNormalTextureSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getNormalTextureSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + std::string_view arg0; + std::string_view arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getNormalTextureSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); return 0; } - auto&& ret = cobj->getNormalTextureSize(); - vec2_to_luaval(tolua_S, ret); + cobj->loadTextures(arg0, arg1); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getNormalTextureSize",argc, 0); + if (argc == 3) + { + std::string_view arg0; + std::string_view arg1; + std::string_view arg2; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:loadTextures"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); + return 0; + } + cobj->loadTextures(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 4) + { + std::string_view arg0; + std::string_view arg1; + std::string_view arg2; + ax::ui::Widget::TextureResType arg3; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:loadTextures"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.Button:loadTextures"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); + return 0; + } + cobj->loadTextures(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextures",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getNormalTextureSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextures'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Button_getTitleText(lua_State* tolua_S) +int lua_ax_ui_Button_loadTextureNormal(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; @@ -6118,54 +6167,7 @@ int lua_ax_ui_Button_getTitleText(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleText'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleText(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleText",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleText'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setTitleLabel(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleLabel'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); return 0; } #endif @@ -6173,29 +6175,46 @@ int lua_ax_ui_Button_setTitleLabel(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Label* arg0; + std::string_view arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Label",&arg0, "axui.Button:setTitleLabel"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureNormal"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleLabel'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); return 0; } - cobj->setTitleLabel(arg0); + cobj->loadTextureNormal(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleLabel",argc, 1); + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureNormal"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTextureNormal"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); + return 0; + } + cobj->loadTextureNormal(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextureNormal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleLabel'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextureNormal'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Button_setTitleFontSize(lua_State* tolua_S) +int lua_ax_ui_Button_loadTexturePressed(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; @@ -6215,7 +6234,7 @@ int lua_ax_ui_Button_setTitleFontSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleFontSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); return 0; } #endif @@ -6223,694 +6242,41 @@ int lua_ax_ui_Button_setTitleFontSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + std::string_view arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Button:setTitleFontSize"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTexturePressed"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleFontSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); return 0; } - cobj->setTitleFontSize(arg0); + cobj->loadTexturePressed(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_resetPressedRender(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 2) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetPressedRender'", nullptr); - return 0; - } -#endif + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTexturePressed"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTexturePressed"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetPressedRender'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); return 0; } - cobj->resetPressedRender(); + cobj->loadTexturePressed(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetPressedRender",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTexturePressed",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetPressedRender'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setScale9Enabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Button:setScale9Enabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setScale9Enabled'", nullptr); - return 0; - } - cobj->setScale9Enabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setScale9Enabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setScale9Enabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_resetDisabledRender(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetDisabledRender'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetDisabledRender'", nullptr); - return 0; - } - cobj->resetDisabledRender(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetDisabledRender",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetDisabledRender'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getTitleRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleRenderer(); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getRendererClicked(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererClicked'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererClicked'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererClicked(); - object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererClicked",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererClicked'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getDisabledFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getDisabledFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getDisabledFile'", nullptr); - return 0; - } - auto&& ret = cobj->getDisabledFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getDisabledFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getDisabledFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getZoomScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getZoomScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getZoomScale'", nullptr); - return 0; - } - auto&& ret = cobj->getZoomScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getZoomScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getZoomScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsetsDisabledRenderer(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsDisabledRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setTitleColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Button:setTitleColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleColor'", nullptr); - return 0; - } - cobj->setTitleColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getNormalFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getNormalFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getNormalFile'", nullptr); - return 0; - } - auto&& ret = cobj->getNormalFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getNormalFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getNormalFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_resetNormalRender(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetNormalRender'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetNormalRender'", nullptr); - return 0; - } - cobj->resetNormalRender(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetNormalRender",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetNormalRender'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getRendererDisabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererDisabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererDisabled'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererDisabled(); - object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererDisabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererDisabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsDisabledRenderer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'", nullptr); - return 0; - } - cobj->setCapInsetsDisabledRenderer(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsDisabledRenderer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsets'", nullptr); - return 0; - } - cobj->setCapInsets(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsets",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsets'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTexturePressed'.",&tolua_err); #endif return 0; @@ -6982,6 +6348,1605 @@ int lua_ax_ui_Button_loadTextureDisabled(lua_State* tolua_S) return 0; } +int lua_ax_ui_Button_setCapInsets(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsets'", nullptr); + return 0; + } + cobj->setCapInsets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsNormalRenderer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'", nullptr); + return 0; + } + cobj->setCapInsetsNormalRenderer(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsNormalRenderer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsetsNormalRenderer(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsNormalRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsPressedRenderer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'", nullptr); + return 0; + } + cobj->setCapInsetsPressedRenderer(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsPressedRenderer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsetsPressedRenderer(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsPressedRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsDisabledRenderer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'", nullptr); + return 0; + } + cobj->setCapInsetsDisabledRenderer(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsDisabledRenderer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsetsDisabledRenderer(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsDisabledRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Button:setScale9Enabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setScale9Enabled'", nullptr); + return 0; + } + cobj->setScale9Enabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setScale9Enabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setScale9Enabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_isScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_isScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_isScale9Enabled'", nullptr); + return 0; + } + auto&& ret = cobj->isScale9Enabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:isScale9Enabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_isScale9Enabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setPressedActionEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setPressedActionEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Button:setPressedActionEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setPressedActionEnabled'", nullptr); + return 0; + } + cobj->setPressedActionEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setPressedActionEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setPressedActionEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getTitleRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleRenderer(); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setTitleText(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleText'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:setTitleText"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleText'", nullptr); + return 0; + } + cobj->setTitleText(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleText",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleText'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getTitleText(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleText'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleText'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleText(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleText",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleText'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setTitleColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Button:setTitleColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleColor'", nullptr); + return 0; + } + cobj->setTitleColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getTitleColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleColor'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setTitleFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Button:setTitleFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleFontSize'", nullptr); + return 0; + } + cobj->setTitleFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getTitleFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setTitleFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:setTitleFontName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleFontName'", nullptr); + return 0; + } + cobj->setTitleFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getTitleFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleFontName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setTitleAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleAlignment'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + ax::TextHAlignment arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Button:setTitleAlignment"); + + if (!ok) { break; } + ax::TextVAlignment arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:setTitleAlignment"); + + if (!ok) { break; } + cobj->setTitleAlignment(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::TextHAlignment arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Button:setTitleAlignment"); + + if (!ok) { break; } + cobj->setTitleAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setTitleLabel(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleLabel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Label* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ax.Label",&arg0, "axui.Button:setTitleLabel"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleLabel'", nullptr); + return 0; + } + cobj->setTitleLabel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleLabel",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleLabel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getTitleLabel(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleLabel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleLabel'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleLabel(); + object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleLabel",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleLabel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_setZoomScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setZoomScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Button:setZoomScale"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setZoomScale'", nullptr); + return 0; + } + cobj->setZoomScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setZoomScale",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setZoomScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getZoomScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getZoomScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getZoomScale'", nullptr); + return 0; + } + auto&& ret = cobj->getZoomScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getZoomScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getZoomScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getRendererNormal(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererNormal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererNormal'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererNormal(); + object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererNormal",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererNormal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getRendererClicked(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererClicked'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererClicked'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererClicked(); + object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererClicked",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererClicked'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getRendererDisabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererDisabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererDisabled'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererDisabled(); + object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererDisabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererDisabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_resetNormalRender(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetNormalRender'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetNormalRender'", nullptr); + return 0; + } + cobj->resetNormalRender(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetNormalRender",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetNormalRender'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_resetPressedRender(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetPressedRender'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetPressedRender'", nullptr); + return 0; + } + cobj->resetPressedRender(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetPressedRender",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetPressedRender'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_resetDisabledRender(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetDisabledRender'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetDisabledRender'", nullptr); + return 0; + } + cobj->resetDisabledRender(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetDisabledRender",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetDisabledRender'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getNormalFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getNormalFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getNormalFile'", nullptr); + return 0; + } + auto&& ret = cobj->getNormalFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getNormalFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getNormalFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getPressedFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getPressedFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getPressedFile'", nullptr); + return 0; + } + auto&& ret = cobj->getPressedFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getPressedFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getPressedFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Button_getDisabledFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Button* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getDisabledFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getDisabledFile'", nullptr); + return 0; + } + auto&& ret = cobj->getDisabledFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getDisabledFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getDisabledFile'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Button_init(lua_State* tolua_S) { int argc = 0; @@ -7092,7 +8057,7 @@ int lua_ax_ui_Button_init(lua_State* tolua_S) return 0; } -int lua_ax_ui_Button_setTitleText(lua_State* tolua_S) +int lua_ax_ui_Button_getNormalTextureSize(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; @@ -7112,224 +8077,7 @@ int lua_ax_ui_Button_setTitleText(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:setTitleText"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleText'", nullptr); - return 0; - } - cobj->setTitleText(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleText",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleText'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsNormalRenderer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'", nullptr); - return 0; - } - cobj->setCapInsetsNormalRenderer(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsNormalRenderer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_loadTexturePressed(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTexturePressed"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); - return 0; - } - cobj->loadTexturePressed(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTexturePressed"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTexturePressed"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); - return 0; - } - cobj->loadTexturePressed(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTexturePressed",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTexturePressed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setTitleFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:setTitleFontName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleFontName'", nullptr); - return 0; - } - cobj->setTitleFontName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleFontName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getNormalTextureSize'", nullptr); return 0; } #endif @@ -7339,769 +8087,55 @@ int lua_ax_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getNormalTextureSize'", nullptr); return 0; } - auto&& ret = cobj->getCapInsetsNormalRenderer(); - rect_to_luaval(tolua_S, ret); + auto&& ret = cobj->getNormalTextureSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsNormalRenderer",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getNormalTextureSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getNormalTextureSize'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Button_setTitleAlignment(lua_State* tolua_S) +int lua_ax_ui_Button_createInstance(lua_State* tolua_S) { int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleAlignment'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - ax::TextHAlignment arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Button:setTitleAlignment"); - - if (!ok) { break; } - ax::TextVAlignment arg1; - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:setTitleAlignment"); - - if (!ok) { break; } - cobj->setTitleAlignment(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::TextHAlignment arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Button:setTitleAlignment"); - - if (!ok) { break; } - cobj->setTitleAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_createInstance'", nullptr); return 0; } - auto&& ret = cobj->getCapInsetsPressedRenderer(); - rect_to_luaval(tolua_S, ret); + auto&& ret = ax::ui::Button::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsPressedRenderer",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Button:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_createInstance'.",&tolua_err); #endif - - return 0; -} -int lua_ax_ui_Button_loadTextures(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextures'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string_view arg0; - std::string_view arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); - return 0; - } - cobj->loadTextures(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 3) - { - std::string_view arg0; - std::string_view arg1; - std::string_view arg2; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:loadTextures"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); - return 0; - } - cobj->loadTextures(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 4) - { - std::string_view arg0; - std::string_view arg1; - std::string_view arg2; - ax::ui::Widget::TextureResType arg3; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:loadTextures"); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.Button:loadTextures"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); - return 0; - } - cobj->loadTextures(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextures",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextures'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_isScale9Enabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_isScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_isScale9Enabled'", nullptr); - return 0; - } - auto&& ret = cobj->isScale9Enabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:isScale9Enabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_isScale9Enabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_loadTextureNormal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureNormal"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); - return 0; - } - cobj->loadTextureNormal(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureNormal"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTextureNormal"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); - return 0; - } - cobj->loadTextureNormal(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextureNormal",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextureNormal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsPressedRenderer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'", nullptr); - return 0; - } - cobj->setCapInsetsPressedRenderer(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsPressedRenderer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getPressedFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getPressedFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getPressedFile'", nullptr); - return 0; - } - auto&& ret = cobj->getPressedFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getPressedFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getPressedFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getTitleLabel(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleLabel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleLabel'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleLabel(); - object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleLabel",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleLabel'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getTitleFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getRendererNormal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererNormal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererNormal'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererNormal(); - object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererNormal",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererNormal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getTitleFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleFontName'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleFontName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleFontName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_getTitleColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleColor'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setPressedActionEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setPressedActionEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Button:setPressedActionEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setPressedActionEnabled'", nullptr); - return 0; - } - cobj->setPressedActionEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setPressedActionEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setPressedActionEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Button_setZoomScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Button* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setZoomScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Button:setZoomScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setZoomScale'", nullptr); - return 0; - } - cobj->setZoomScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setZoomScale",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setZoomScale'.",&tolua_err); -#endif - return 0; } int lua_ax_ui_Button_create(lua_State* tolua_S) @@ -8206,40 +8240,6 @@ int lua_ax_ui_Button_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Button_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::Button::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Button:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_Button_constructor(lua_State* tolua_S) { int argc = 0; @@ -8290,47 +8290,47 @@ int lua_register_ax_ui_Button(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Button"); tolua_function(tolua_S,"new",lua_ax_ui_Button_constructor); - tolua_function(tolua_S,"getNormalTextureSize",lua_ax_ui_Button_getNormalTextureSize); - tolua_function(tolua_S,"getTitleText",lua_ax_ui_Button_getTitleText); - tolua_function(tolua_S,"setTitleLabel",lua_ax_ui_Button_setTitleLabel); - tolua_function(tolua_S,"setTitleFontSize",lua_ax_ui_Button_setTitleFontSize); - tolua_function(tolua_S,"resetPressedRender",lua_ax_ui_Button_resetPressedRender); - tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Button_setScale9Enabled); - tolua_function(tolua_S,"resetDisabledRender",lua_ax_ui_Button_resetDisabledRender); - tolua_function(tolua_S,"getTitleRenderer",lua_ax_ui_Button_getTitleRenderer); - tolua_function(tolua_S,"getRendererClicked",lua_ax_ui_Button_getRendererClicked); - tolua_function(tolua_S,"getDisabledFile",lua_ax_ui_Button_getDisabledFile); - tolua_function(tolua_S,"getZoomScale",lua_ax_ui_Button_getZoomScale); - tolua_function(tolua_S,"getCapInsetsDisabledRenderer",lua_ax_ui_Button_getCapInsetsDisabledRenderer); - tolua_function(tolua_S,"setTitleColor",lua_ax_ui_Button_setTitleColor); - tolua_function(tolua_S,"getNormalFile",lua_ax_ui_Button_getNormalFile); - tolua_function(tolua_S,"resetNormalRender",lua_ax_ui_Button_resetNormalRender); - tolua_function(tolua_S,"getRendererDisabled",lua_ax_ui_Button_getRendererDisabled); - tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_ax_ui_Button_setCapInsetsDisabledRenderer); - tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Button_setCapInsets); - tolua_function(tolua_S,"loadTextureDisabled",lua_ax_ui_Button_loadTextureDisabled); - tolua_function(tolua_S,"init",lua_ax_ui_Button_init); - tolua_function(tolua_S,"setTitleText",lua_ax_ui_Button_setTitleText); - tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_ax_ui_Button_setCapInsetsNormalRenderer); - tolua_function(tolua_S,"loadTexturePressed",lua_ax_ui_Button_loadTexturePressed); - tolua_function(tolua_S,"setTitleFontName",lua_ax_ui_Button_setTitleFontName); - tolua_function(tolua_S,"getCapInsetsNormalRenderer",lua_ax_ui_Button_getCapInsetsNormalRenderer); - tolua_function(tolua_S,"setTitleAlignment",lua_ax_ui_Button_setTitleAlignment); - tolua_function(tolua_S,"getCapInsetsPressedRenderer",lua_ax_ui_Button_getCapInsetsPressedRenderer); tolua_function(tolua_S,"loadTextures",lua_ax_ui_Button_loadTextures); - tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Button_isScale9Enabled); tolua_function(tolua_S,"loadTextureNormal",lua_ax_ui_Button_loadTextureNormal); + tolua_function(tolua_S,"loadTexturePressed",lua_ax_ui_Button_loadTexturePressed); + tolua_function(tolua_S,"loadTextureDisabled",lua_ax_ui_Button_loadTextureDisabled); + tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Button_setCapInsets); + tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_ax_ui_Button_setCapInsetsNormalRenderer); + tolua_function(tolua_S,"getCapInsetsNormalRenderer",lua_ax_ui_Button_getCapInsetsNormalRenderer); tolua_function(tolua_S,"setCapInsetsPressedRenderer",lua_ax_ui_Button_setCapInsetsPressedRenderer); - tolua_function(tolua_S,"getPressedFile",lua_ax_ui_Button_getPressedFile); - tolua_function(tolua_S,"getTitleLabel",lua_ax_ui_Button_getTitleLabel); - tolua_function(tolua_S,"getTitleFontSize",lua_ax_ui_Button_getTitleFontSize); - tolua_function(tolua_S,"getRendererNormal",lua_ax_ui_Button_getRendererNormal); - tolua_function(tolua_S,"getTitleFontName",lua_ax_ui_Button_getTitleFontName); - tolua_function(tolua_S,"getTitleColor",lua_ax_ui_Button_getTitleColor); + tolua_function(tolua_S,"getCapInsetsPressedRenderer",lua_ax_ui_Button_getCapInsetsPressedRenderer); + tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_ax_ui_Button_setCapInsetsDisabledRenderer); + tolua_function(tolua_S,"getCapInsetsDisabledRenderer",lua_ax_ui_Button_getCapInsetsDisabledRenderer); + tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Button_setScale9Enabled); + tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Button_isScale9Enabled); tolua_function(tolua_S,"setPressedActionEnabled",lua_ax_ui_Button_setPressedActionEnabled); + tolua_function(tolua_S,"getTitleRenderer",lua_ax_ui_Button_getTitleRenderer); + tolua_function(tolua_S,"setTitleText",lua_ax_ui_Button_setTitleText); + tolua_function(tolua_S,"getTitleText",lua_ax_ui_Button_getTitleText); + tolua_function(tolua_S,"setTitleColor",lua_ax_ui_Button_setTitleColor); + tolua_function(tolua_S,"getTitleColor",lua_ax_ui_Button_getTitleColor); + tolua_function(tolua_S,"setTitleFontSize",lua_ax_ui_Button_setTitleFontSize); + tolua_function(tolua_S,"getTitleFontSize",lua_ax_ui_Button_getTitleFontSize); + tolua_function(tolua_S,"setTitleFontName",lua_ax_ui_Button_setTitleFontName); + tolua_function(tolua_S,"getTitleFontName",lua_ax_ui_Button_getTitleFontName); + tolua_function(tolua_S,"setTitleAlignment",lua_ax_ui_Button_setTitleAlignment); + tolua_function(tolua_S,"setTitleLabel",lua_ax_ui_Button_setTitleLabel); + tolua_function(tolua_S,"getTitleLabel",lua_ax_ui_Button_getTitleLabel); tolua_function(tolua_S,"setZoomScale",lua_ax_ui_Button_setZoomScale); - tolua_function(tolua_S,"create", lua_ax_ui_Button_create); + tolua_function(tolua_S,"getZoomScale",lua_ax_ui_Button_getZoomScale); + tolua_function(tolua_S,"getRendererNormal",lua_ax_ui_Button_getRendererNormal); + tolua_function(tolua_S,"getRendererClicked",lua_ax_ui_Button_getRendererClicked); + tolua_function(tolua_S,"getRendererDisabled",lua_ax_ui_Button_getRendererDisabled); + tolua_function(tolua_S,"resetNormalRender",lua_ax_ui_Button_resetNormalRender); + tolua_function(tolua_S,"resetPressedRender",lua_ax_ui_Button_resetPressedRender); + tolua_function(tolua_S,"resetDisabledRender",lua_ax_ui_Button_resetDisabledRender); + tolua_function(tolua_S,"getNormalFile",lua_ax_ui_Button_getNormalFile); + tolua_function(tolua_S,"getPressedFile",lua_ax_ui_Button_getPressedFile); + tolua_function(tolua_S,"getDisabledFile",lua_ax_ui_Button_getDisabledFile); + tolua_function(tolua_S,"init",lua_ax_ui_Button_init); + tolua_function(tolua_S,"getNormalTextureSize",lua_ax_ui_Button_getNormalTextureSize); tolua_function(tolua_S,"createInstance", lua_ax_ui_Button_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_Button_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Button).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Button"; @@ -8338,7 +8338,7 @@ int lua_register_ax_ui_Button(lua_State* tolua_S) return 1; } -int lua_ax_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) +int lua_ax_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; @@ -8358,34 +8358,78 @@ int lua_ax_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 5) { + std::string_view arg0; + std::string_view arg1; + std::string_view arg2; + std::string_view arg3; + std::string_view arg4; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:loadTextures"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); return 0; } - auto&& ret = cobj->getCrossDisabledFile(); - resourceData_to_luaval(tolua_S, ret); + cobj->loadTextures(arg0, arg1, arg2, arg3, arg4); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getCrossDisabledFile",argc, 0); + if (argc == 6) + { + std::string_view arg0; + std::string_view arg1; + std::string_view arg2; + std::string_view arg3; + std::string_view arg4; + ax::ui::Widget::TextureResType arg5; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:loadTextures"); + + ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.AbstractCheckButton:loadTextures"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); + return 0; + } + cobj->loadTextures(arg0, arg1, arg2, arg3, arg4, arg5); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextures",argc, 5); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextures'.",&tolua_err); #endif return 0; } -int lua_ax_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) +int lua_ax_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; @@ -8405,29 +8449,49 @@ int lua_ax_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGround"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); return 0; } - auto&& ret = cobj->getBackDisabledFile(); - resourceData_to_luaval(tolua_S, ret); + cobj->loadTextureBackGround(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackDisabledFile",argc, 0); + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGround"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGround"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); + return 0; + } + cobj->loadTextureBackGround(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGround",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'.",&tolua_err); #endif return 0; @@ -8499,311 +8563,6 @@ int lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected(lua_State* tolua return 0; } -int lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); - return 0; - } - cobj->loadTextureBackGroundDisabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); - return 0; - } - cobj->loadTextureBackGroundDisabled(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGroundDisabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); - return 0; - } - auto&& ret = cobj->getCrossNormalFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getCrossNormalFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_setSelected(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_setSelected'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.AbstractCheckButton:setSelected"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_setSelected'", nullptr); - return 0; - } - cobj->setSelected(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:setSelected",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_setSelected'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'", nullptr); - return 0; - } - auto&& ret = cobj->getBackPressedFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackPressedFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererFrontCrossDisabled(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererFrontCrossDisabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererBackground(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackground",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S) { int argc = 0; @@ -8871,7 +8630,7 @@ int lua_ax_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S) return 0; } -int lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* tolua_S) +int lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; @@ -8891,29 +8650,116 @@ int lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* tolua #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); return 0; } - auto&& ret = cobj->getRendererBackgroundDisabled(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + cobj->loadTextureBackGroundDisabled(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackgroundDisabled",argc, 0); + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); + return 0; + } + cobj->loadTextureBackGroundDisabled(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGroundDisabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); + return 0; + } + cobj->loadTextureFrontCrossDisabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); + return 0; + } + cobj->loadTextureFrontCrossDisabled(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureFrontCrossDisabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'.",&tolua_err); #endif return 0; @@ -8965,6 +8811,623 @@ int lua_ax_ui_AbstractCheckButton_isSelected(lua_State* tolua_S) return 0; } +int lua_ax_ui_AbstractCheckButton_setSelected(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_setSelected'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.AbstractCheckButton:setSelected"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_setSelected'", nullptr); + return 0; + } + cobj->setSelected(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:setSelected",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_setSelected'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_setZoomScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.AbstractCheckButton:setZoomScale"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'", nullptr); + return 0; + } + cobj->setZoomScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:setZoomScale",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getZoomScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'", nullptr); + return 0; + } + auto&& ret = cobj->getZoomScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getZoomScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererBackground(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackground",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererBackgroundSelected(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackgroundSelected",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererFrontCross(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererFrontCross",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererBackgroundDisabled(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackgroundDisabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); + return 0; + } + auto&& ret = cobj->getRendererFrontCrossDisabled(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererFrontCrossDisabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBackNormalFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackNormalFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBackPressedFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackPressedFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBackDisabledFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackDisabledFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); + return 0; + } + auto&& ret = cobj->getCrossNormalFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getCrossNormalFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::AbstractCheckButton* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); + return 0; + } + auto&& ret = cobj->getCrossDisabledFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getCrossDisabledFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_AbstractCheckButton_init(lua_State* tolua_S) { int argc = 0; @@ -9056,469 +9519,6 @@ int lua_ax_ui_AbstractCheckButton_init(lua_State* tolua_S) return 0; } -int lua_ax_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'", nullptr); - return 0; - } - auto&& ret = cobj->getBackNormalFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackNormalFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - std::string_view arg0; - std::string_view arg1; - std::string_view arg2; - std::string_view arg3; - std::string_view arg4; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:loadTextures"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); - return 0; - } - cobj->loadTextures(arg0, arg1, arg2, arg3, arg4); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 6) - { - std::string_view arg0; - std::string_view arg1; - std::string_view arg2; - std::string_view arg3; - std::string_view arg4; - ax::ui::Widget::TextureResType arg5; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:loadTextures"); - - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.AbstractCheckButton:loadTextures"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); - return 0; - } - cobj->loadTextures(arg0, arg1, arg2, arg3, arg4, arg5); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextures",argc, 5); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextures'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getZoomScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'", nullptr); - return 0; - } - auto&& ret = cobj->getZoomScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getZoomScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererFrontCross(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererFrontCross",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); - return 0; - } - auto&& ret = cobj->getRendererBackgroundSelected(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackgroundSelected",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGround"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); - return 0; - } - cobj->loadTextureBackGround(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGround"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGround"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); - return 0; - } - cobj->loadTextureBackGround(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGround",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_setZoomScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.AbstractCheckButton:setZoomScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'", nullptr); - return 0; - } - cobj->setZoomScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:setZoomScale",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::AbstractCheckButton* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); - return 0; - } - cobj->loadTextureFrontCrossDisabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); - return 0; - } - cobj->loadTextureFrontCrossDisabled(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureFrontCrossDisabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'.",&tolua_err); -#endif - - return 0; -} static int lua_ax_ui_AbstractCheckButton_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AbstractCheckButton)"); @@ -9531,27 +9531,27 @@ int lua_register_ax_ui_AbstractCheckButton(lua_State* tolua_S) tolua_cclass(tolua_S,"AbstractCheckButton","axui.AbstractCheckButton","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"AbstractCheckButton"); - tolua_function(tolua_S,"getCrossDisabledFile",lua_ax_ui_AbstractCheckButton_getCrossDisabledFile); - tolua_function(tolua_S,"getBackDisabledFile",lua_ax_ui_AbstractCheckButton_getBackDisabledFile); - tolua_function(tolua_S,"loadTextureBackGroundSelected",lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected); - tolua_function(tolua_S,"loadTextureBackGroundDisabled",lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled); - tolua_function(tolua_S,"getCrossNormalFile",lua_ax_ui_AbstractCheckButton_getCrossNormalFile); - tolua_function(tolua_S,"setSelected",lua_ax_ui_AbstractCheckButton_setSelected); - tolua_function(tolua_S,"getBackPressedFile",lua_ax_ui_AbstractCheckButton_getBackPressedFile); - tolua_function(tolua_S,"getRendererFrontCrossDisabled",lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled); - tolua_function(tolua_S,"getRendererBackground",lua_ax_ui_AbstractCheckButton_getRendererBackground); - tolua_function(tolua_S,"loadTextureFrontCross",lua_ax_ui_AbstractCheckButton_loadTextureFrontCross); - tolua_function(tolua_S,"getRendererBackgroundDisabled",lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled); - tolua_function(tolua_S,"isSelected",lua_ax_ui_AbstractCheckButton_isSelected); - tolua_function(tolua_S,"init",lua_ax_ui_AbstractCheckButton_init); - tolua_function(tolua_S,"getBackNormalFile",lua_ax_ui_AbstractCheckButton_getBackNormalFile); tolua_function(tolua_S,"loadTextures",lua_ax_ui_AbstractCheckButton_loadTextures); - tolua_function(tolua_S,"getZoomScale",lua_ax_ui_AbstractCheckButton_getZoomScale); - tolua_function(tolua_S,"getRendererFrontCross",lua_ax_ui_AbstractCheckButton_getRendererFrontCross); - tolua_function(tolua_S,"getRendererBackgroundSelected",lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected); tolua_function(tolua_S,"loadTextureBackGround",lua_ax_ui_AbstractCheckButton_loadTextureBackGround); - tolua_function(tolua_S,"setZoomScale",lua_ax_ui_AbstractCheckButton_setZoomScale); + tolua_function(tolua_S,"loadTextureBackGroundSelected",lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected); + tolua_function(tolua_S,"loadTextureFrontCross",lua_ax_ui_AbstractCheckButton_loadTextureFrontCross); + tolua_function(tolua_S,"loadTextureBackGroundDisabled",lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled); tolua_function(tolua_S,"loadTextureFrontCrossDisabled",lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled); + tolua_function(tolua_S,"isSelected",lua_ax_ui_AbstractCheckButton_isSelected); + tolua_function(tolua_S,"setSelected",lua_ax_ui_AbstractCheckButton_setSelected); + tolua_function(tolua_S,"setZoomScale",lua_ax_ui_AbstractCheckButton_setZoomScale); + tolua_function(tolua_S,"getZoomScale",lua_ax_ui_AbstractCheckButton_getZoomScale); + tolua_function(tolua_S,"getRendererBackground",lua_ax_ui_AbstractCheckButton_getRendererBackground); + tolua_function(tolua_S,"getRendererBackgroundSelected",lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected); + tolua_function(tolua_S,"getRendererFrontCross",lua_ax_ui_AbstractCheckButton_getRendererFrontCross); + tolua_function(tolua_S,"getRendererBackgroundDisabled",lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled); + tolua_function(tolua_S,"getRendererFrontCrossDisabled",lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled); + tolua_function(tolua_S,"getBackNormalFile",lua_ax_ui_AbstractCheckButton_getBackNormalFile); + tolua_function(tolua_S,"getBackPressedFile",lua_ax_ui_AbstractCheckButton_getBackPressedFile); + tolua_function(tolua_S,"getBackDisabledFile",lua_ax_ui_AbstractCheckButton_getBackDisabledFile); + tolua_function(tolua_S,"getCrossNormalFile",lua_ax_ui_AbstractCheckButton_getCrossNormalFile); + tolua_function(tolua_S,"getCrossDisabledFile",lua_ax_ui_AbstractCheckButton_getCrossDisabledFile); + tolua_function(tolua_S,"init",lua_ax_ui_AbstractCheckButton_init); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::AbstractCheckButton).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.AbstractCheckButton"; @@ -9613,6 +9613,40 @@ int lua_ax_ui_CheckBox_addEventListener(lua_State* tolua_S) return 0; } +int lua_ax_ui_CheckBox_createInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.CheckBox",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_CheckBox_createInstance'", nullptr); + return 0; + } + auto&& ret = ax::ui::CheckBox::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.CheckBox:createInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_CheckBox_createInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_CheckBox_create(lua_State* tolua_S) { int argc = 0; @@ -9733,40 +9767,6 @@ int lua_ax_ui_CheckBox_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_CheckBox_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.CheckBox",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_CheckBox_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::CheckBox::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.CheckBox:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_CheckBox_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_CheckBox_constructor(lua_State* tolua_S) { int argc = 0; @@ -9818,8 +9818,8 @@ int lua_register_ax_ui_CheckBox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"CheckBox"); tolua_function(tolua_S,"new",lua_ax_ui_CheckBox_constructor); tolua_function(tolua_S,"addEventListener",lua_ax_ui_CheckBox_addEventListener); - tolua_function(tolua_S,"create", lua_ax_ui_CheckBox_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_CheckBox_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_CheckBox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::CheckBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.CheckBox"; @@ -9881,6 +9881,40 @@ int lua_ax_ui_RadioButton_addEventListener(lua_State* tolua_S) return 0; } +int lua_ax_ui_RadioButton_createInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.RadioButton",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButton_createInstance'", nullptr); + return 0; + } + auto&& ret = ax::ui::RadioButton::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RadioButton:createInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButton_createInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_RadioButton_create(lua_State* tolua_S) { int argc = 0; @@ -10001,40 +10035,6 @@ int lua_ax_ui_RadioButton_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_RadioButton_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.RadioButton",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButton_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::RadioButton::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RadioButton:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButton_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_RadioButton_constructor(lua_State* tolua_S) { int argc = 0; @@ -10086,8 +10086,8 @@ int lua_register_ax_ui_RadioButton(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RadioButton"); tolua_function(tolua_S,"new",lua_ax_ui_RadioButton_constructor); tolua_function(tolua_S,"addEventListener",lua_ax_ui_RadioButton_addEventListener); - tolua_function(tolua_S,"create", lua_ax_ui_RadioButton_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_RadioButton_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_RadioButton_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RadioButton).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RadioButton"; @@ -10095,7 +10095,7 @@ int lua_register_ax_ui_RadioButton(lua_State* tolua_S) return 1; } -int lua_ax_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) +int lua_ax_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; @@ -10115,7 +10115,7 @@ int lua_ax_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_addEventListener'", nullptr); return 0; } #endif @@ -10123,71 +10123,28 @@ int lua_ax_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::ui::RadioButton* arg0; + std::function arg0; - ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:removeRadioButton"); + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_addEventListener'", nullptr); return 0; } - cobj->removeRadioButton(arg0); + cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:removeRadioButton",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RadioButtonGroup_isAllowedNoSelection(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RadioButtonGroup* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'", nullptr); - return 0; - } - auto&& ret = cobj->isAllowedNoSelection(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:isAllowedNoSelection",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_addEventListener'.",&tolua_err); #endif return 0; @@ -10239,52 +10196,57 @@ int lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex(lua_State* tolua_S) return 0; } -int lua_ax_ui_RadioButtonGroup_setAllowedNoSelection(lua_State* tolua_S) +int lua_ax_ui_RadioButtonGroup_setSelectedButton(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setSelectedButton'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; + do{ + if (argc == 1) { + ax::ui::RadioButton* arg0; + ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:setSelectedButton"); - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RadioButtonGroup:setAllowedNoSelection"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'", nullptr); - return 0; + if (!ok) { break; } + cobj->setSelectedButton(arg0); + lua_settop(tolua_S, 1); + return 1; } - cobj->setAllowedNoSelection(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setAllowedNoSelection",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 1) { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RadioButtonGroup:setSelectedButton"); + + if (!ok) { break; } + cobj->setSelectedButton(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setSelectedButton",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setSelectedButton'.",&tolua_err); #endif return 0; @@ -10344,7 +10306,7 @@ int lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State* tolua_S) return 0; } -int lua_ax_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) +int lua_ax_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; @@ -10364,7 +10326,7 @@ int lua_ax_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_addEventListener'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'", nullptr); return 0; } #endif @@ -10372,28 +10334,74 @@ int lua_ax_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + ax::ui::RadioButton* arg0; - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:addRadioButton"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_addEventListener'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'", nullptr); return 0; } - cobj->addEventListener(arg0); + cobj->addRadioButton(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:addEventListener",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:addRadioButton",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_addEventListener'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RadioButtonGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::RadioButton* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:removeRadioButton"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'", nullptr); + return 0; + } + cobj->removeRadioButton(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:removeRadioButton",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'.",&tolua_err); #endif return 0; @@ -10445,6 +10453,53 @@ int lua_ax_ui_RadioButtonGroup_removeAllRadioButtons(lua_State* tolua_S) return 0; } +int lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RadioButtonGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'", nullptr); + return 0; + } + auto&& ret = cobj->getNumberOfRadioButtons(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:getNumberOfRadioButtons",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) { int argc = 0; @@ -10495,7 +10550,7 @@ int lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) return 0; } -int lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) +int lua_ax_ui_RadioButtonGroup_setAllowedNoSelection(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; @@ -10515,7 +10570,57 @@ int lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RadioButtonGroup:setAllowedNoSelection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'", nullptr); + return 0; + } + cobj->setAllowedNoSelection(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setAllowedNoSelection",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RadioButtonGroup_isAllowedNoSelection(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RadioButtonGroup* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'", nullptr); return 0; } #endif @@ -10525,124 +10630,19 @@ int lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'", nullptr); return 0; } - auto&& ret = cobj->getNumberOfRadioButtons(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->isAllowedNoSelection(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:getNumberOfRadioButtons",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:isAllowedNoSelection",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RadioButtonGroup* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::RadioButton* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:addRadioButton"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'", nullptr); - return 0; - } - cobj->addRadioButton(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:addRadioButton",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RadioButtonGroup_setSelectedButton(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RadioButtonGroup* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setSelectedButton'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::ui::RadioButton* arg0; - ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:setSelectedButton"); - - if (!ok) { break; } - cobj->setSelectedButton(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RadioButtonGroup:setSelectedButton"); - - if (!ok) { break; } - cobj->setSelectedButton(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setSelectedButton",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setSelectedButton'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'.",&tolua_err); #endif return 0; @@ -10731,17 +10731,17 @@ int lua_register_ax_ui_RadioButtonGroup(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RadioButtonGroup"); tolua_function(tolua_S,"new",lua_ax_ui_RadioButtonGroup_constructor); - tolua_function(tolua_S,"removeRadioButton",lua_ax_ui_RadioButtonGroup_removeRadioButton); - tolua_function(tolua_S,"isAllowedNoSelection",lua_ax_ui_RadioButtonGroup_isAllowedNoSelection); - tolua_function(tolua_S,"getSelectedButtonIndex",lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex); - tolua_function(tolua_S,"setAllowedNoSelection",lua_ax_ui_RadioButtonGroup_setAllowedNoSelection); - tolua_function(tolua_S,"setSelectedButtonWithoutEvent",lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent); tolua_function(tolua_S,"addEventListener",lua_ax_ui_RadioButtonGroup_addEventListener); - tolua_function(tolua_S,"removeAllRadioButtons",lua_ax_ui_RadioButtonGroup_removeAllRadioButtons); - tolua_function(tolua_S,"getRadioButtonByIndex",lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex); - tolua_function(tolua_S,"getNumberOfRadioButtons",lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons); - tolua_function(tolua_S,"addRadioButton",lua_ax_ui_RadioButtonGroup_addRadioButton); + tolua_function(tolua_S,"getSelectedButtonIndex",lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex); tolua_function(tolua_S,"setSelectedButton",lua_ax_ui_RadioButtonGroup_setSelectedButton); + tolua_function(tolua_S,"setSelectedButtonWithoutEvent",lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent); + tolua_function(tolua_S,"addRadioButton",lua_ax_ui_RadioButtonGroup_addRadioButton); + tolua_function(tolua_S,"removeRadioButton",lua_ax_ui_RadioButtonGroup_removeRadioButton); + tolua_function(tolua_S,"removeAllRadioButtons",lua_ax_ui_RadioButtonGroup_removeAllRadioButtons); + tolua_function(tolua_S,"getNumberOfRadioButtons",lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons); + tolua_function(tolua_S,"getRadioButtonByIndex",lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex); + tolua_function(tolua_S,"setAllowedNoSelection",lua_ax_ui_RadioButtonGroup_setAllowedNoSelection); + tolua_function(tolua_S,"isAllowedNoSelection",lua_ax_ui_RadioButtonGroup_isAllowedNoSelection); tolua_function(tolua_S,"create", lua_ax_ui_RadioButtonGroup_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RadioButtonGroup).name(); // rtti is literal storage @@ -10750,53 +10750,6 @@ int lua_register_ax_ui_RadioButtonGroup(lua_State* tolua_S) return 1; } -int lua_ax_ui_ImageView_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ImageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_ImageView_loadTexture(lua_State* tolua_S) { int argc = 0; @@ -10864,6 +10817,250 @@ int lua_ax_ui_ImageView_loadTexture(lua_State* tolua_S) return 0; } +int lua_ax_ui_ImageView_setTextureRect(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setTextureRect'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.ImageView:setTextureRect"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setTextureRect'", nullptr); + return 0; + } + cobj->setTextureRect(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setTextureRect",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setTextureRect'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ImageView_setScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ImageView:setScale9Enabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setScale9Enabled'", nullptr); + return 0; + } + cobj->setScale9Enabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setScale9Enabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setScale9Enabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ImageView_isScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_isScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_isScale9Enabled'", nullptr); + return 0; + } + auto&& ret = cobj->isScale9Enabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:isScale9Enabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_isScale9Enabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ImageView_setCapInsets(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.ImageView:setCapInsets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setCapInsets'", nullptr); + return 0; + } + cobj->setCapInsets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setCapInsets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setCapInsets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ImageView_getCapInsets(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getCapInsets'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsets(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getCapInsets",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getCapInsets'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_ImageView_setBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -10914,6 +11111,100 @@ int lua_ax_ui_ImageView_setBlendFunc(lua_State* tolua_S) return 0; } +int lua_ax_ui_ImageView_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getBlendFunc'", nullptr); + return 0; + } + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getBlendFunc",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ImageView_getRenderFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getRenderFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getRenderFile'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getRenderFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getRenderFile'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_ImageView_init(lua_State* tolua_S) { int argc = 0; @@ -10981,295 +11272,38 @@ int lua_ax_ui_ImageView_init(lua_State* tolua_S) return 0; } -int lua_ax_ui_ImageView_setScale9Enabled(lua_State* tolua_S) +int lua_ax_ui_ImageView_createInstance(lua_State* tolua_S) { int argc = 0; - ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ImageView:setScale9Enabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setScale9Enabled'", nullptr); - return 0; - } - cobj->setScale9Enabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setScale9Enabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setScale9Enabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ImageView_setTextureRect(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ImageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setTextureRect'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.ImageView:setTextureRect"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setTextureRect'", nullptr); - return 0; - } - cobj->setTextureRect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setTextureRect",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setTextureRect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ImageView_setCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ImageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.ImageView:setCapInsets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setCapInsets'", nullptr); - return 0; - } - cobj->setCapInsets(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setCapInsets",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setCapInsets'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ImageView_getRenderFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ImageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getRenderFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getRenderFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_createInstance'", nullptr); return 0; } - auto&& ret = cobj->getRenderFile(); - resourceData_to_luaval(tolua_S, ret); + auto&& ret = ax::ui::ImageView::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getRenderFile",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ImageView:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getRenderFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_createInstance'.",&tolua_err); #endif - - return 0; -} -int lua_ax_ui_ImageView_getCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ImageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getCapInsets'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsets(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getCapInsets",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getCapInsets'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ImageView_isScale9Enabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ImageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_isScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_isScale9Enabled'", nullptr); - return 0; - } - auto&& ret = cobj->isScale9Enabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:isScale9Enabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_isScale9Enabled'.",&tolua_err); -#endif - return 0; } int lua_ax_ui_ImageView_create(lua_State* tolua_S) @@ -11333,40 +11367,6 @@ int lua_ax_ui_ImageView_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_ImageView_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::ImageView::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ImageView:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_ImageView_constructor(lua_State* tolua_S) { int argc = 0; @@ -11417,18 +11417,18 @@ int lua_register_ax_ui_ImageView(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ImageView"); tolua_function(tolua_S,"new",lua_ax_ui_ImageView_constructor); - tolua_function(tolua_S,"getBlendFunc",lua_ax_ui_ImageView_getBlendFunc); tolua_function(tolua_S,"loadTexture",lua_ax_ui_ImageView_loadTexture); - tolua_function(tolua_S,"setBlendFunc",lua_ax_ui_ImageView_setBlendFunc); - tolua_function(tolua_S,"init",lua_ax_ui_ImageView_init); - tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_ImageView_setScale9Enabled); tolua_function(tolua_S,"setTextureRect",lua_ax_ui_ImageView_setTextureRect); - tolua_function(tolua_S,"setCapInsets",lua_ax_ui_ImageView_setCapInsets); - tolua_function(tolua_S,"getRenderFile",lua_ax_ui_ImageView_getRenderFile); - tolua_function(tolua_S,"getCapInsets",lua_ax_ui_ImageView_getCapInsets); + tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_ImageView_setScale9Enabled); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_ImageView_isScale9Enabled); - tolua_function(tolua_S,"create", lua_ax_ui_ImageView_create); + tolua_function(tolua_S,"setCapInsets",lua_ax_ui_ImageView_setCapInsets); + tolua_function(tolua_S,"getCapInsets",lua_ax_ui_ImageView_getCapInsets); + tolua_function(tolua_S,"setBlendFunc",lua_ax_ui_ImageView_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_ui_ImageView_getBlendFunc); + tolua_function(tolua_S,"getRenderFile",lua_ax_ui_ImageView_getRenderFile); + tolua_function(tolua_S,"init",lua_ax_ui_ImageView_init); tolua_function(tolua_S,"createInstance", lua_ax_ui_ImageView_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_ImageView_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::ImageView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.ImageView"; @@ -11436,6 +11436,923 @@ int lua_register_ax_ui_ImageView(lua_State* tolua_S) return 1; } +int lua_ax_ui_Text_setString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:setString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setString'", nullptr); + return 0; + } + cobj->setString(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getString'", nullptr); + return 0; + } + auto&& ret = cobj->getString(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getString",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getStringLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getStringLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getStringLength'", nullptr); + return 0; + } + auto&& ret = cobj->getStringLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getStringLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getStringLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Text:setFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setFontSize'", nullptr); + return 0; + } + cobj->setFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:setFontName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setFontName'", nullptr); + return 0; + } + cobj->setFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getFontName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getType'", nullptr); + return 0; + } + int ret = (int)cobj->getType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setTouchScaleChangeEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Text:setTouchScaleChangeEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'", nullptr); + return 0; + } + cobj->setTouchScaleChangeEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTouchScaleChangeEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isTouchScaleChangeEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:isTouchScaleChangeEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getAutoRenderSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getAutoRenderSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getAutoRenderSize'", nullptr); + return 0; + } + auto&& ret = cobj->getAutoRenderSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getAutoRenderSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getAutoRenderSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setTextAreaSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextAreaSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Text:setTextAreaSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextAreaSize'", nullptr); + return 0; + } + cobj->setTextAreaSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextAreaSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextAreaSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getTextAreaSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextAreaSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextAreaSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTextAreaSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextAreaSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextAreaSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setTextHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextHAlignment arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:setTextHorizontalAlignment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextHorizontalAlignment'", nullptr); + return 0; + } + cobj->setTextHorizontalAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextHorizontalAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getTextHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextHorizontalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getTextHorizontalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextHorizontalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextVerticalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::TextVAlignment arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:setTextVerticalAlignment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextVerticalAlignment'", nullptr); + return 0; + } + cobj->setTextVerticalAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextVerticalAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextVerticalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextVerticalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextVerticalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getTextVerticalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextVerticalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextVerticalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_setTextColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:setTextColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextColor'", nullptr); + return 0; + } + cobj->setTextColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getTextColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextColor'", nullptr); + return 0; + } + auto&& ret = cobj->getTextColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextColor'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Text_enableShadow(lua_State* tolua_S) { int argc = 0; @@ -11534,927 +12451,6 @@ int lua_ax_ui_Text_enableShadow(lua_State* tolua_S) return 0; } -int lua_ax_ui_Text_getFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getString(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getString'", nullptr); - return 0; - } - auto&& ret = cobj->getString(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getString",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_disableEffect(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_disableEffect'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::LabelEffect arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:disableEffect"); - - if (!ok) { break; } - cobj->disableEffect(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - cobj->disableEffect(); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:disableEffect",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_disableEffect'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getLabelEffectType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getLabelEffectType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getLabelEffectType'", nullptr); - return 0; - } - int ret = (int)cobj->getLabelEffectType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getLabelEffectType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getLabelEffectType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getTextColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextColor'", nullptr); - return 0; - } - auto&& ret = cobj->getTextColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getBlendFunc'", nullptr); - return 0; - } - auto&& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getBlendFunc",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextVerticalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextVAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:setTextVerticalAlignment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextVerticalAlignment'", nullptr); - return 0; - } - cobj->setTextVerticalAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextVerticalAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextVerticalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_setFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:setFontName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setFontName'", nullptr); - return 0; - } - cobj->setFontName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setFontName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_setTouchScaleChangeEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Text:setTouchScaleChangeEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'", nullptr); - return 0; - } - cobj->setTouchScaleChangeEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTouchScaleChangeEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getShadowOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getShadowOffset(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_setString(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:setString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setString'", nullptr); - return 0; - } - cobj->setString(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getOutlineSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getOutlineSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getOutlineSize'", nullptr); - return 0; - } - auto&& ret = cobj->getOutlineSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getOutlineSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getOutlineSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_init(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - std::string_view arg0; - std::string_view arg1; - double arg2; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:init"); - - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Text:init"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.Text:init"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_init'", nullptr); - return 0; - } - auto&& ret = cobj->init(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:init",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_init'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getShadowBlurRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowBlurRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowBlurRadius'", nullptr); - return 0; - } - auto&& ret = cobj->getShadowBlurRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowBlurRadius",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowBlurRadius'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isTouchScaleChangeEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:isTouchScaleChangeEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getFontName'", nullptr); - return 0; - } - auto&& ret = cobj->getFontName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getFontName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_setTextAreaSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextAreaSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Text:setTextAreaSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextAreaSize'", nullptr); - return 0; - } - cobj->setTextAreaSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextAreaSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextAreaSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getStringLength(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getStringLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getStringLength'", nullptr); - return 0; - } - auto&& ret = cobj->getStringLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getStringLength",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getStringLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getAutoRenderSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getAutoRenderSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getAutoRenderSize'", nullptr); - return 0; - } - auto&& ret = cobj->getAutoRenderSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getAutoRenderSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getAutoRenderSize'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Text_enableOutline(lua_State* tolua_S) { int argc = 0; @@ -12522,7 +12518,7 @@ int lua_ax_ui_Text_enableOutline(lua_State* tolua_S) return 0; } -int lua_ax_ui_Text_getEffectColor(lua_State* tolua_S) +int lua_ax_ui_Text_enableGlow(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; @@ -12542,123 +12538,83 @@ int lua_ax_ui_Text_getEffectColor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getEffectColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_enableGlow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableGlow"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getEffectColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableGlow'", nullptr); return 0; } - auto&& ret = cobj->getEffectColor(); - color4b_to_luaval(tolua_S, ret); + cobj->enableGlow(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getEffectColor",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:enableGlow",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getEffectColor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_enableGlow'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Text_getType(lua_State* tolua_S) +int lua_ax_ui_Text_disableEffect(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getType'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_disableEffect'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getType'", nullptr); - return 0; + do{ + if (argc == 1) { + ax::LabelEffect arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:disableEffect"); + + if (!ok) { break; } + cobj->disableEffect(arg0); + lua_settop(tolua_S, 1); + return 1; } - int ret = (int)cobj->getType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getType",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->disableEffect(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:disableEffect",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Text_getTextHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Text* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextHorizontalAlignment'", nullptr); - return 0; - } - int ret = (int)cobj->getTextHorizontalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextHorizontalAlignment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextHorizontalAlignment'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_disableEffect'.",&tolua_err); #endif return 0; @@ -12710,7 +12666,7 @@ int lua_ax_ui_Text_isShadowEnabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_Text_setFontSize(lua_State* tolua_S) +int lua_ax_ui_Text_getShadowOffset(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; @@ -12730,32 +12686,76 @@ int lua_ax_ui_Text_setFontSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setFontSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Text:setFontSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setFontSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowOffset'", nullptr); return 0; } - cobj->setFontSize(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getShadowOffset(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setFontSize",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowOffset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setFontSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getShadowBlurRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowBlurRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowBlurRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getShadowBlurRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowBlurRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowBlurRadius'.",&tolua_err); #endif return 0; @@ -12807,7 +12807,7 @@ int lua_ax_ui_Text_getShadowColor(lua_State* tolua_S) return 0; } -int lua_ax_ui_Text_setTextColor(lua_State* tolua_S) +int lua_ax_ui_Text_getOutlineSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; @@ -12827,37 +12827,34 @@ int lua_ax_ui_Text_setTextColor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getOutlineSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:setTextColor"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getOutlineSize'", nullptr); return 0; } - cobj->setTextColor(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getOutlineSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextColor",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getOutlineSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextColor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getOutlineSize'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Text_enableGlow(lua_State* tolua_S) +int lua_ax_ui_Text_getLabelEffectType(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; @@ -12877,32 +12874,76 @@ int lua_ax_ui_Text_enableGlow(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_enableGlow'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getLabelEffectType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableGlow"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableGlow'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getLabelEffectType'", nullptr); return 0; } - cobj->enableGlow(arg0); - lua_settop(tolua_S, 1); + int ret = (int)cobj->getLabelEffectType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:enableGlow",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getLabelEffectType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_enableGlow'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getLabelEffectType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Text_getEffectColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Text* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getEffectColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getEffectColor'", nullptr); + return 0; + } + auto&& ret = cobj->getEffectColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getEffectColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getEffectColor'.",&tolua_err); #endif return 0; @@ -13007,7 +13048,7 @@ int lua_ax_ui_Text_setBlendFunc(lua_State* tolua_S) return 0; } -int lua_ax_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) +int lua_ax_ui_Text_getBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; @@ -13027,7 +13068,7 @@ int lua_ax_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextVerticalAlignment'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getBlendFunc'", nullptr); return 0; } #endif @@ -13037,24 +13078,24 @@ int lua_ax_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextVerticalAlignment'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getBlendFunc'", nullptr); return 0; } - int ret = (int)cobj->getTextVerticalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextVerticalAlignment",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getBlendFunc",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextVerticalAlignment'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getBlendFunc'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Text_getTextAreaSize(lua_State* tolua_S) +int lua_ax_ui_Text_init(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; @@ -13074,81 +13115,74 @@ int lua_ax_ui_Text_getTextAreaSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextAreaSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 3) { + std::string_view arg0; + std::string_view arg1; + double arg2; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:init"); + + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Text:init"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.Text:init"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextAreaSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_init'", nullptr); return 0; } - auto&& ret = cobj->getTextAreaSize(); - vec2_to_luaval(tolua_S, ret); + auto&& ret = cobj->init(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextAreaSize",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:init",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextAreaSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_init'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Text_setTextHorizontalAlignment(lua_State* tolua_S) +int lua_ax_ui_Text_createInstance(lua_State* tolua_S) { int argc = 0; - ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) + if (argc == 0) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextHAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:setTextHorizontalAlignment"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextHorizontalAlignment'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_createInstance'", nullptr); return 0; } - cobj->setTextHorizontalAlignment(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::ui::Text::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextHorizontalAlignment",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Text:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextHorizontalAlignment'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_createInstance'.",&tolua_err); #endif - return 0; } int lua_ax_ui_Text_create(lua_State* tolua_S) @@ -13202,40 +13236,6 @@ int lua_ax_ui_Text_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Text_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::Text::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Text:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_Text_constructor(lua_State* tolua_S) { int argc = 0; @@ -13286,42 +13286,42 @@ int lua_register_ax_ui_Text(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Text"); tolua_function(tolua_S,"new",lua_ax_ui_Text_constructor); - tolua_function(tolua_S,"enableShadow",lua_ax_ui_Text_enableShadow); - tolua_function(tolua_S,"getFontSize",lua_ax_ui_Text_getFontSize); - tolua_function(tolua_S,"getString",lua_ax_ui_Text_getString); - tolua_function(tolua_S,"disableEffect",lua_ax_ui_Text_disableEffect); - tolua_function(tolua_S,"getLabelEffectType",lua_ax_ui_Text_getLabelEffectType); - tolua_function(tolua_S,"getTextColor",lua_ax_ui_Text_getTextColor); - tolua_function(tolua_S,"getBlendFunc",lua_ax_ui_Text_getBlendFunc); - tolua_function(tolua_S,"setTextVerticalAlignment",lua_ax_ui_Text_setTextVerticalAlignment); - tolua_function(tolua_S,"setFontName",lua_ax_ui_Text_setFontName); - tolua_function(tolua_S,"setTouchScaleChangeEnabled",lua_ax_ui_Text_setTouchScaleChangeEnabled); - tolua_function(tolua_S,"getShadowOffset",lua_ax_ui_Text_getShadowOffset); tolua_function(tolua_S,"setString",lua_ax_ui_Text_setString); - tolua_function(tolua_S,"getOutlineSize",lua_ax_ui_Text_getOutlineSize); - tolua_function(tolua_S,"init",lua_ax_ui_Text_init); - tolua_function(tolua_S,"getShadowBlurRadius",lua_ax_ui_Text_getShadowBlurRadius); - tolua_function(tolua_S,"isTouchScaleChangeEnabled",lua_ax_ui_Text_isTouchScaleChangeEnabled); - tolua_function(tolua_S,"getFontName",lua_ax_ui_Text_getFontName); - tolua_function(tolua_S,"setTextAreaSize",lua_ax_ui_Text_setTextAreaSize); + tolua_function(tolua_S,"getString",lua_ax_ui_Text_getString); tolua_function(tolua_S,"getStringLength",lua_ax_ui_Text_getStringLength); - tolua_function(tolua_S,"getAutoRenderSize",lua_ax_ui_Text_getAutoRenderSize); - tolua_function(tolua_S,"enableOutline",lua_ax_ui_Text_enableOutline); - tolua_function(tolua_S,"getEffectColor",lua_ax_ui_Text_getEffectColor); - tolua_function(tolua_S,"getType",lua_ax_ui_Text_getType); - tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_Text_getTextHorizontalAlignment); - tolua_function(tolua_S,"isShadowEnabled",lua_ax_ui_Text_isShadowEnabled); tolua_function(tolua_S,"setFontSize",lua_ax_ui_Text_setFontSize); - tolua_function(tolua_S,"getShadowColor",lua_ax_ui_Text_getShadowColor); - tolua_function(tolua_S,"setTextColor",lua_ax_ui_Text_setTextColor); - tolua_function(tolua_S,"enableGlow",lua_ax_ui_Text_enableGlow); - tolua_function(tolua_S,"getLetter",lua_ax_ui_Text_getLetter); - tolua_function(tolua_S,"setBlendFunc",lua_ax_ui_Text_setBlendFunc); - tolua_function(tolua_S,"getTextVerticalAlignment",lua_ax_ui_Text_getTextVerticalAlignment); + tolua_function(tolua_S,"getFontSize",lua_ax_ui_Text_getFontSize); + tolua_function(tolua_S,"setFontName",lua_ax_ui_Text_setFontName); + tolua_function(tolua_S,"getFontName",lua_ax_ui_Text_getFontName); + tolua_function(tolua_S,"getType",lua_ax_ui_Text_getType); + tolua_function(tolua_S,"setTouchScaleChangeEnabled",lua_ax_ui_Text_setTouchScaleChangeEnabled); + tolua_function(tolua_S,"isTouchScaleChangeEnabled",lua_ax_ui_Text_isTouchScaleChangeEnabled); + tolua_function(tolua_S,"getAutoRenderSize",lua_ax_ui_Text_getAutoRenderSize); + tolua_function(tolua_S,"setTextAreaSize",lua_ax_ui_Text_setTextAreaSize); tolua_function(tolua_S,"getTextAreaSize",lua_ax_ui_Text_getTextAreaSize); tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_Text_setTextHorizontalAlignment); - tolua_function(tolua_S,"create", lua_ax_ui_Text_create); + tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_Text_getTextHorizontalAlignment); + tolua_function(tolua_S,"setTextVerticalAlignment",lua_ax_ui_Text_setTextVerticalAlignment); + tolua_function(tolua_S,"getTextVerticalAlignment",lua_ax_ui_Text_getTextVerticalAlignment); + tolua_function(tolua_S,"setTextColor",lua_ax_ui_Text_setTextColor); + tolua_function(tolua_S,"getTextColor",lua_ax_ui_Text_getTextColor); + tolua_function(tolua_S,"enableShadow",lua_ax_ui_Text_enableShadow); + tolua_function(tolua_S,"enableOutline",lua_ax_ui_Text_enableOutline); + tolua_function(tolua_S,"enableGlow",lua_ax_ui_Text_enableGlow); + tolua_function(tolua_S,"disableEffect",lua_ax_ui_Text_disableEffect); + tolua_function(tolua_S,"isShadowEnabled",lua_ax_ui_Text_isShadowEnabled); + tolua_function(tolua_S,"getShadowOffset",lua_ax_ui_Text_getShadowOffset); + tolua_function(tolua_S,"getShadowBlurRadius",lua_ax_ui_Text_getShadowBlurRadius); + tolua_function(tolua_S,"getShadowColor",lua_ax_ui_Text_getShadowColor); + tolua_function(tolua_S,"getOutlineSize",lua_ax_ui_Text_getOutlineSize); + tolua_function(tolua_S,"getLabelEffectType",lua_ax_ui_Text_getLabelEffectType); + tolua_function(tolua_S,"getEffectColor",lua_ax_ui_Text_getEffectColor); + tolua_function(tolua_S,"getLetter",lua_ax_ui_Text_getLetter); + tolua_function(tolua_S,"setBlendFunc",lua_ax_ui_Text_setBlendFunc); + tolua_function(tolua_S,"getBlendFunc",lua_ax_ui_Text_getBlendFunc); + tolua_function(tolua_S,"init",lua_ax_ui_Text_init); tolua_function(tolua_S,"createInstance", lua_ax_ui_Text_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_Text_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Text).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Text"; @@ -13329,197 +13329,6 @@ int lua_register_ax_ui_Text(lua_State* tolua_S) return 1; } -int lua_ax_ui_TextAtlas_getStringLength(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextAtlas* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getStringLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getStringLength'", nullptr); - return 0; - } - auto&& ret = cobj->getStringLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getStringLength",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getStringLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextAtlas_getString(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextAtlas* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getString'", nullptr); - return 0; - } - auto&& ret = cobj->getString(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getString",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextAtlas_setString(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextAtlas* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextAtlas:setString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_setString'", nullptr); - return 0; - } - cobj->setString(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:setString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextAtlas_getRenderFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextAtlas* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getRenderFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getRenderFile'", nullptr); - return 0; - } - auto&& ret = cobj->getRenderFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getRenderFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getRenderFile'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_TextAtlas_setProperty(lua_State* tolua_S) { int argc = 0; @@ -13582,6 +13391,150 @@ int lua_ax_ui_TextAtlas_setProperty(lua_State* tolua_S) return 0; } +int lua_ax_ui_TextAtlas_setString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextAtlas* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_setString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextAtlas:setString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_setString'", nullptr); + return 0; + } + cobj->setString(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:setString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_setString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextAtlas_getString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextAtlas* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getString'", nullptr); + return 0; + } + auto&& ret = cobj->getString(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getString",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextAtlas_getStringLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextAtlas* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getStringLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getStringLength'", nullptr); + return 0; + } + auto&& ret = cobj->getStringLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getStringLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getStringLength'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_TextAtlas_adaptRenderers(lua_State* tolua_S) { int argc = 0; @@ -13629,6 +13582,87 @@ int lua_ax_ui_TextAtlas_adaptRenderers(lua_State* tolua_S) return 0; } +int lua_ax_ui_TextAtlas_getRenderFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextAtlas* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getRenderFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getRenderFile'", nullptr); + return 0; + } + auto&& ret = cobj->getRenderFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getRenderFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getRenderFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextAtlas_createInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_createInstance'", nullptr); + return 0; + } + auto&& ret = ax::ui::TextAtlas::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextAtlas:createInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_createInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_TextAtlas_create(lua_State* tolua_S) { int argc = 0; @@ -13686,40 +13720,6 @@ int lua_ax_ui_TextAtlas_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_TextAtlas_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::TextAtlas::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextAtlas:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_TextAtlas_constructor(lua_State* tolua_S) { int argc = 0; @@ -13770,14 +13770,14 @@ int lua_register_ax_ui_TextAtlas(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextAtlas"); tolua_function(tolua_S,"new",lua_ax_ui_TextAtlas_constructor); - tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextAtlas_getStringLength); - tolua_function(tolua_S,"getString",lua_ax_ui_TextAtlas_getString); - tolua_function(tolua_S,"setString",lua_ax_ui_TextAtlas_setString); - tolua_function(tolua_S,"getRenderFile",lua_ax_ui_TextAtlas_getRenderFile); tolua_function(tolua_S,"setProperty",lua_ax_ui_TextAtlas_setProperty); + tolua_function(tolua_S,"setString",lua_ax_ui_TextAtlas_setString); + tolua_function(tolua_S,"getString",lua_ax_ui_TextAtlas_getString); + tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextAtlas_getStringLength); tolua_function(tolua_S,"adaptRenderers",lua_ax_ui_TextAtlas_adaptRenderers); - tolua_function(tolua_S,"create", lua_ax_ui_TextAtlas_create); + tolua_function(tolua_S,"getRenderFile",lua_ax_ui_TextAtlas_getRenderFile); tolua_function(tolua_S,"createInstance", lua_ax_ui_TextAtlas_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_TextAtlas_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TextAtlas).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TextAtlas"; @@ -13785,7 +13785,7 @@ int lua_register_ax_ui_TextAtlas(lua_State* tolua_S) return 1; } -int lua_ax_ui_LoadingBar_setPercent(lua_State* tolua_S) +int lua_ax_ui_LoadingBar_setDirection(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; @@ -13805,7 +13805,7 @@ int lua_ax_ui_LoadingBar_setPercent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setPercent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setDirection'", nullptr); return 0; } #endif @@ -13813,24 +13813,71 @@ int lua_ax_ui_LoadingBar_setPercent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::ui::LoadingBar::Direction arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LoadingBar:setPercent"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LoadingBar:setDirection"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setPercent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setDirection'", nullptr); return 0; } - cobj->setPercent(arg0); + cobj->setDirection(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setPercent",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setDirection",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setPercent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LoadingBar_getDirection(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LoadingBar* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getDirection'", nullptr); + return 0; + } + int ret = (int)cobj->getDirection(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getDirection",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getDirection'.",&tolua_err); #endif return 0; @@ -13902,7 +13949,7 @@ int lua_ax_ui_LoadingBar_loadTexture(lua_State* tolua_S) return 0; } -int lua_ax_ui_LoadingBar_setDirection(lua_State* tolua_S) +int lua_ax_ui_LoadingBar_setPercent(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; @@ -13922,7 +13969,7 @@ int lua_ax_ui_LoadingBar_setDirection(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setDirection'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setPercent'", nullptr); return 0; } #endif @@ -13930,29 +13977,29 @@ int lua_ax_ui_LoadingBar_setDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::ui::LoadingBar::Direction arg0; + double arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LoadingBar:setDirection"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LoadingBar:setPercent"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setDirection'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setPercent'", nullptr); return 0; } - cobj->setDirection(arg0); + cobj->setPercent(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setDirection",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setPercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setDirection'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setPercent'.",&tolua_err); #endif return 0; } -int lua_ax_ui_LoadingBar_getRenderFile(lua_State* tolua_S) +int lua_ax_ui_LoadingBar_getPercent(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; @@ -13972,7 +14019,7 @@ int lua_ax_ui_LoadingBar_getRenderFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getRenderFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getPercent'", nullptr); return 0; } #endif @@ -13982,19 +14029,19 @@ int lua_ax_ui_LoadingBar_getRenderFile(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getRenderFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getPercent'", nullptr); return 0; } - auto&& ret = cobj->getRenderFile(); - resourceData_to_luaval(tolua_S, ret); + auto&& ret = cobj->getPercent(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getRenderFile",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getPercent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getRenderFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getPercent'.",&tolua_err); #endif return 0; @@ -14049,6 +14096,53 @@ int lua_ax_ui_LoadingBar_setScale9Enabled(lua_State* tolua_S) return 0; } +int lua_ax_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LoadingBar* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_isScale9Enabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_isScale9Enabled'", nullptr); + return 0; + } + auto&& ret = cobj->isScale9Enabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:isScale9Enabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_isScale9Enabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_LoadingBar_setCapInsets(lua_State* tolua_S) { int argc = 0; @@ -14099,53 +14193,6 @@ int lua_ax_ui_LoadingBar_setCapInsets(lua_State* tolua_S) return 0; } -int lua_ax_ui_LoadingBar_getDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LoadingBar* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getDirection'", nullptr); - return 0; - } - int ret = (int)cobj->getDirection(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getDirection",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getDirection'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_LoadingBar_getCapInsets(lua_State* tolua_S) { int argc = 0; @@ -14193,7 +14240,7 @@ int lua_ax_ui_LoadingBar_getCapInsets(lua_State* tolua_S) return 0; } -int lua_ax_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) +int lua_ax_ui_LoadingBar_getRenderFile(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; @@ -14213,7 +14260,7 @@ int lua_ax_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_isScale9Enabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getRenderFile'", nullptr); return 0; } #endif @@ -14223,68 +14270,55 @@ int lua_ax_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_isScale9Enabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getRenderFile'", nullptr); return 0; } - auto&& ret = cobj->isScale9Enabled(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getRenderFile(); + resourceData_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:isScale9Enabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getRenderFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_isScale9Enabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getRenderFile'.",&tolua_err); #endif return 0; } -int lua_ax_ui_LoadingBar_getPercent(lua_State* tolua_S) +int lua_ax_ui_LoadingBar_createInstance(lua_State* tolua_S) { int argc = 0; - ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getPercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getPercent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_createInstance'", nullptr); return 0; } - auto&& ret = cobj->getPercent(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = ax::ui::LoadingBar::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getPercent",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LoadingBar:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getPercent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_createInstance'.",&tolua_err); #endif - return 0; } int lua_ax_ui_LoadingBar_create(lua_State* tolua_S) @@ -14383,40 +14417,6 @@ int lua_ax_ui_LoadingBar_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_LoadingBar_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::LoadingBar::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LoadingBar:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_LoadingBar_constructor(lua_State* tolua_S) { int argc = 0; @@ -14467,18 +14467,18 @@ int lua_register_ax_ui_LoadingBar(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LoadingBar"); tolua_function(tolua_S,"new",lua_ax_ui_LoadingBar_constructor); - tolua_function(tolua_S,"setPercent",lua_ax_ui_LoadingBar_setPercent); - tolua_function(tolua_S,"loadTexture",lua_ax_ui_LoadingBar_loadTexture); tolua_function(tolua_S,"setDirection",lua_ax_ui_LoadingBar_setDirection); - tolua_function(tolua_S,"getRenderFile",lua_ax_ui_LoadingBar_getRenderFile); - tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_LoadingBar_setScale9Enabled); - tolua_function(tolua_S,"setCapInsets",lua_ax_ui_LoadingBar_setCapInsets); tolua_function(tolua_S,"getDirection",lua_ax_ui_LoadingBar_getDirection); - tolua_function(tolua_S,"getCapInsets",lua_ax_ui_LoadingBar_getCapInsets); - tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_LoadingBar_isScale9Enabled); + tolua_function(tolua_S,"loadTexture",lua_ax_ui_LoadingBar_loadTexture); + tolua_function(tolua_S,"setPercent",lua_ax_ui_LoadingBar_setPercent); tolua_function(tolua_S,"getPercent",lua_ax_ui_LoadingBar_getPercent); - tolua_function(tolua_S,"create", lua_ax_ui_LoadingBar_create); + tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_LoadingBar_setScale9Enabled); + tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_LoadingBar_isScale9Enabled); + tolua_function(tolua_S,"setCapInsets",lua_ax_ui_LoadingBar_setCapInsets); + tolua_function(tolua_S,"getCapInsets",lua_ax_ui_LoadingBar_getCapInsets); + tolua_function(tolua_S,"getRenderFile",lua_ax_ui_LoadingBar_getRenderFile); tolua_function(tolua_S,"createInstance", lua_ax_ui_LoadingBar_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_LoadingBar_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::LoadingBar).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.LoadingBar"; @@ -14486,7 +14486,7 @@ int lua_register_ax_ui_LoadingBar(lua_State* tolua_S) return 1; } -int lua_ax_ui_ScrollView_scrollToTop(lua_State* tolua_S) +int lua_ax_ui_ScrollView_setDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -14506,116 +14506,7 @@ int lua_ax_ui_ScrollView_scrollToTop(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - bool arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTop"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTop"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTop'", nullptr); - return 0; - } - cobj->scrollToTop(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTop",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_scrollToPercentHorizontal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - double arg0; - double arg1; - bool arg2; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToPercentHorizontal"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentHorizontal"); - - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentHorizontal"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'", nullptr); - return 0; - } - cobj->scrollToPercentHorizontal(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentHorizontal",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setDirection'", nullptr); return 0; } #endif @@ -14623,29 +14514,29 @@ int lua_ax_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - uint16_t arg0; + ax::ui::ScrollView::Direction arg0; - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarOpacity"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ScrollView:setDirection"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setDirection'", nullptr); return 0; } - cobj->setScrollBarOpacity(arg0); + cobj->setDirection(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarOpacity",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setDirection",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setDirection'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) +int lua_ax_ui_ScrollView_getDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -14665,57 +14556,7 @@ int lua_ax_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'", nullptr); - return 0; - } - cobj->setScrollBarEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getDirection'", nullptr); return 0; } #endif @@ -14725,19 +14566,207 @@ int lua_ax_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getDirection'", nullptr); return 0; } - auto&& ret = cobj->isInertiaScrollEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + int ret = (int)cobj->getDirection(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isInertiaScrollEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getDirection",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getInnerContainer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainer'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerContainer(); + object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_stopScroll(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopScroll'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopScroll'", nullptr); + return 0; + } + cobj->stopScroll(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopScroll",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopScroll'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_stopAutoScroll(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopAutoScroll'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopAutoScroll'", nullptr); + return 0; + } + cobj->stopAutoScroll(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopAutoScroll",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopAutoScroll'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopOverallScroll'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopOverallScroll'", nullptr); + return 0; + } + cobj->stopOverallScroll(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopOverallScroll",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopOverallScroll'.",&tolua_err); #endif return 0; @@ -14795,7 +14824,7 @@ int lua_ax_ui_ScrollView_scrollToBottom(lua_State* tolua_S) return 0; } -int lua_ax_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_S) +int lua_ax_ui_ScrollView_scrollToTop(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -14815,151 +14844,7 @@ int lua_ax_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); - return 0; - } - auto&& ret = cobj->getScrolledPercentBothDirection(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentBothDirection",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getDirection'", nullptr); - return 0; - } - int ret = (int)cobj->getDirection(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getDirection",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getDirection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarColor'", nullptr); - return 0; - } - cobj->setScrollBarColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTop'", nullptr); return 0; } #endif @@ -14970,1586 +14855,24 @@ int lua_ax_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) double arg0; bool arg1; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottomLeft"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTop"); - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottomLeft"); + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTop"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTop'", nullptr); return 0; } - cobj->scrollToBottomLeft(arg0, arg1); + cobj->scrollToTop(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottomLeft",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTop",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getInnerContainer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainer'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerContainer(); - object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToBottom(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottom'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottom'", nullptr); - return 0; - } - cobj->jumpToBottom(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottom",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottom'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setInnerContainerPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'", nullptr); - return 0; - } - cobj->setInnerContainerPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInnerContainerPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::ScrollView::Direction arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ScrollView:setDirection"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setDirection'", nullptr); - return 0; - } - cobj->setDirection(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setDirection",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setDirection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_scrollToTopLeft(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTopLeft'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - bool arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTopLeft"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTopLeft"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTopLeft'", nullptr); - return 0; - } - cobj->scrollToTopLeft(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTopLeft",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTopLeft'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToTopRight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTopRight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTopRight'", nullptr); - return 0; - } - cobj->jumpToTopRight(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTopRight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTopRight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - ax::Vec2 arg0; - double arg1; - bool arg2; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:scrollToPercentBothDirection"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentBothDirection"); - - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentBothDirection"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'", nullptr); - return 0; - } - cobj->scrollToPercentBothDirection(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentBothDirection",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInnerContainerSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setInnerContainerSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInnerContainerSize'", nullptr); - return 0; - } - cobj->setInnerContainerSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInnerContainerSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInnerContainerSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerContainerPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainerPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToTop(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTop'", nullptr); - return 0; - } - cobj->jumpToTop(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getScrolledPercentVertical(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'", nullptr); - return 0; - } - auto&& ret = cobj->getScrolledPercentVertical(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentVertical",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_isBounceEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isBounceEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isBounceEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isBounceEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isBounceEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isBounceEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToPercentVertical(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:jumpToPercentVertical"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'", nullptr); - return 0; - } - cobj->jumpToPercentVertical(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentVertical",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_addEventListener(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_addEventListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_addEventListener'", nullptr); - return 0; - } - cobj->addEventListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:addEventListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_addEventListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setScrollBarAutoHideTime(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarAutoHideTime"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'", nullptr); - return 0; - } - cobj->setScrollBarAutoHideTime(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarAutoHideTime",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_stopScroll(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopScroll'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopScroll'", nullptr); - return 0; - } - cobj->stopScroll(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopScroll",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopScroll'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarPositionFromCornerForHorizontal"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'", nullptr); - return 0; - } - cobj->setScrollBarPositionFromCornerForHorizontal(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarPositionFromCornerForHorizontal",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setInertiaScrollEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setInertiaScrollEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'", nullptr); - return 0; - } - cobj->setInertiaScrollEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInertiaScrollEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarAutoHideEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'", nullptr); - return 0; - } - cobj->setScrollBarAutoHideEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarAutoHideEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarColor'", nullptr); - return 0; - } - auto&& ret = cobj->getScrollBarColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToTopLeft(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTopLeft'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTopLeft'", nullptr); - return 0; - } - cobj->jumpToTopLeft(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTopLeft",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTopLeft'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_isScrollBarEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isScrollBarEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrollBarEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_isAutoScrolling(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isAutoScrolling'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isAutoScrolling'", nullptr); - return 0; - } - auto&& ret = cobj->isAutoScrolling(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isAutoScrolling",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isAutoScrolling'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToBottomRight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottomRight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottomRight'", nullptr); - return 0; - } - cobj->jumpToBottomRight(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottomRight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottomRight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setTouchTotalTimeThreshold(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setTouchTotalTimeThreshold"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'", nullptr); - return 0; - } - cobj->setTouchTotalTimeThreshold(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setTouchTotalTimeThreshold",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getTouchTotalTimeThreshold(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'", nullptr); - return 0; - } - auto&& ret = cobj->getTouchTotalTimeThreshold(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getTouchTotalTimeThreshold",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); - return 0; - } - auto&& ret = cobj->getScrollBarPositionFromCornerForHorizontal(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarPositionFromCornerForHorizontal",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getScrolledPercentHorizontal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'", nullptr); - return 0; - } - auto&& ret = cobj->getScrolledPercentHorizontal(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentHorizontal",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_setBounceEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setBounceEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setBounceEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setBounceEnabled'", nullptr); - return 0; - } - cobj->setBounceEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setBounceEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setBounceEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_stopAutoScroll(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopAutoScroll'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopAutoScroll'", nullptr); - return 0; - } - cobj->stopAutoScroll(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopAutoScroll",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopAutoScroll'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_scrollToTopRight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTopRight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - bool arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTopRight"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTopRight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTopRight'", nullptr); - return 0; - } - cobj->scrollToTopRight(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTopRight",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTopRight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_isScrolling(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrolling'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrolling'", nullptr); - return 0; - } - auto&& ret = cobj->isScrolling(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrolling",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrolling'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTop'.",&tolua_err); #endif return 0; @@ -16607,7 +14930,7 @@ int lua_ax_ui_ScrollView_scrollToLeft(lua_State* tolua_S) return 0; } -int lua_ax_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) +int lua_ax_ui_ScrollView_scrollToRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -16627,37 +14950,40 @@ int lua_ax_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { - ax::Vec2 arg0; + double arg0; + bool arg1; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:jumpToPercentBothDirection"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToRight"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToRight"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToRight'", nullptr); return 0; } - cobj->jumpToPercentBothDirection(arg0); + cobj->scrollToRight(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentBothDirection",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToRight",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToRight'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) +int lua_ax_ui_ScrollView_scrollToTopLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -16677,29 +15003,194 @@ int lua_ax_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopOverallScroll'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTopLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + double arg0; + bool arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTopLeft"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTopLeft"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopOverallScroll'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTopLeft'", nullptr); return 0; } - cobj->stopOverallScroll(); + cobj->scrollToTopLeft(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopOverallScroll",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTopLeft",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopOverallScroll'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTopLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_scrollToTopRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTopRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + bool arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTopRight"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTopRight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTopRight'", nullptr); + return 0; + } + cobj->scrollToTopRight(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTopRight",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTopRight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + bool arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottomLeft"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottomLeft"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'", nullptr); + return 0; + } + cobj->scrollToBottomLeft(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottomLeft",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottomRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + bool arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottomRight"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottomRight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottomRight'", nullptr); + return 0; + } + cobj->scrollToBottomRight(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottomRight",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottomRight'.",&tolua_err); #endif return 0; @@ -16760,7 +15251,7 @@ int lua_ax_ui_ScrollView_scrollToPercentVertical(lua_State* tolua_S) return 0; } -int lua_ax_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) +int lua_ax_ui_ScrollView_scrollToPercentHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -16780,37 +15271,43 @@ int lua_ax_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarWidth'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 3) { double arg0; + double arg1; + bool arg2; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarWidth"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToPercentHorizontal"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentHorizontal"); + + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentHorizontal"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarWidth'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'", nullptr); return 0; } - cobj->setScrollBarWidth(arg0); + cobj->scrollToPercentHorizontal(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarWidth",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentHorizontal",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarWidth'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) +int lua_ax_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -16830,7 +15327,63 @@ int lua_ax_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ax::Vec2 arg0; + double arg1; + bool arg2; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:scrollToPercentBothDirection"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentBothDirection"); + + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentBothDirection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'", nullptr); + return 0; + } + cobj->scrollToPercentBothDirection(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentBothDirection",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getScrolledPercentVertical(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'", nullptr); return 0; } #endif @@ -16840,24 +15393,24 @@ int lua_ax_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'", nullptr); return 0; } - auto&& ret = cobj->getScrollBarOpacity(); + auto&& ret = cobj->getScrolledPercentVertical(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarOpacity",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentVertical",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) +int lua_ax_ui_ScrollView_getScrolledPercentHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -16877,35 +15430,1141 @@ int lua_ax_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottomRight'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 0) { - double arg0; - bool arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottomRight"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottomRight"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottomRight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'", nullptr); return 0; } - cobj->scrollToBottomRight(arg0, arg1); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getScrolledPercentHorizontal(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottomRight",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentHorizontal",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottomRight'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); + return 0; + } + auto&& ret = cobj->getScrolledPercentBothDirection(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentBothDirection",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToBottom(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottom'", nullptr); + return 0; + } + cobj->jumpToBottom(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottom",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottom'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToTop(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTop'", nullptr); + return 0; + } + cobj->jumpToTop(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToLeft(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToLeft'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToLeft'", nullptr); + return 0; + } + cobj->jumpToLeft(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToLeft",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToRight'", nullptr); + return 0; + } + cobj->jumpToRight(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToRight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToRight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToTopLeft(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTopLeft'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTopLeft'", nullptr); + return 0; + } + cobj->jumpToTopLeft(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTopLeft",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTopLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToTopRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTopRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTopRight'", nullptr); + return 0; + } + cobj->jumpToTopRight(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTopRight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTopRight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'", nullptr); + return 0; + } + cobj->jumpToBottomLeft(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottomLeft",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToBottomRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottomRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottomRight'", nullptr); + return 0; + } + cobj->jumpToBottomRight(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottomRight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottomRight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToPercentVertical(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:jumpToPercentVertical"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'", nullptr); + return 0; + } + cobj->jumpToPercentVertical(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentVertical",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToPercentHorizontal(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:jumpToPercentHorizontal"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'", nullptr); + return 0; + } + cobj->jumpToPercentHorizontal(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentHorizontal",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:jumpToPercentBothDirection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'", nullptr); + return 0; + } + cobj->jumpToPercentBothDirection(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentBothDirection",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInnerContainerSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setInnerContainerSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInnerContainerSize'", nullptr); + return 0; + } + cobj->setInnerContainerSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInnerContainerSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInnerContainerSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainerSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainerSize'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerContainerSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainerSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainerSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setInnerContainerPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'", nullptr); + return 0; + } + cobj->setInnerContainerPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInnerContainerPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getInnerContainerPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainerPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_addEventListener(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_addEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_addEventListener'", nullptr); + return 0; + } + cobj->addEventListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:addEventListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_addEventListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setBounceEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setBounceEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setBounceEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setBounceEnabled'", nullptr); + return 0; + } + cobj->setBounceEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setBounceEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setBounceEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_isBounceEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isBounceEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isBounceEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isBounceEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isBounceEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isBounceEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setInertiaScrollEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setInertiaScrollEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'", nullptr); + return 0; + } + cobj->setInertiaScrollEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInertiaScrollEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isInertiaScrollEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isInertiaScrollEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'", nullptr); + return 0; + } + cobj->setScrollBarEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_isScrollBarEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isScrollBarEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrollBarEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'.",&tolua_err); #endif return 0; @@ -17010,153 +16669,6 @@ int lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_State* to return 0; } -int lua_ax_ui_ScrollView_getScrollBarAutoHideTime(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'", nullptr); - return 0; - } - auto&& ret = cobj->getScrollBarAutoHideTime(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarAutoHideTime",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToLeft(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToLeft'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToLeft'", nullptr); - return 0; - } - cobj->jumpToLeft(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToLeft",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToLeft'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_scrollToRight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToRight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - bool arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToRight"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToRight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToRight'", nullptr); - return 0; - } - cobj->scrollToRight(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToRight",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToRight'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_State* tolua_S) { int argc = 0; @@ -17204,6 +16716,153 @@ int lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_State* to return 0; } +int lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarPositionFromCornerForHorizontal"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'", nullptr); + return 0; + } + cobj->setScrollBarPositionFromCornerForHorizontal(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarPositionFromCornerForHorizontal",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); + return 0; + } + auto&& ret = cobj->getScrollBarPositionFromCornerForHorizontal(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarPositionFromCornerForHorizontal",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarWidth'", nullptr); + return 0; + } + cobj->setScrollBarWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarWidth'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_ScrollView_getScrollBarWidth(lua_State* tolua_S) { int argc = 0; @@ -17251,6 +16910,250 @@ int lua_ax_ui_ScrollView_getScrollBarWidth(lua_State* tolua_S) return 0; } +int lua_ax_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarColor'", nullptr); + return 0; + } + cobj->setScrollBarColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarColor'", nullptr); + return 0; + } + auto&& ret = cobj->getScrollBarColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'", nullptr); + return 0; + } + cobj->setScrollBarOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getScrollBarOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarAutoHideEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'", nullptr); + return 0; + } + cobj->setScrollBarAutoHideEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarAutoHideEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled(lua_State* tolua_S) { int argc = 0; @@ -17298,7 +17201,7 @@ int lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) +int lua_ax_ui_ScrollView_setScrollBarAutoHideTime(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; @@ -17318,148 +17221,7 @@ int lua_ax_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'", nullptr); - return 0; - } - cobj->jumpToBottomLeft(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottomLeft",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToRight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToRight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToRight'", nullptr); - return 0; - } - cobj->jumpToRight(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToRight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToRight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainerSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainerSize'", nullptr); - return 0; - } - auto&& ret = cobj->getInnerContainerSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainerSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainerSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ScrollView_jumpToPercentHorizontal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ScrollView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'", nullptr); return 0; } #endif @@ -17469,58 +17231,262 @@ int lua_ax_ui_ScrollView_jumpToPercentHorizontal(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:jumpToPercentHorizontal"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarAutoHideTime"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'", nullptr); return 0; } - cobj->jumpToPercentHorizontal(arg0); + cobj->setScrollBarAutoHideTime(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentHorizontal",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarAutoHideTime",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ScrollView_create(lua_State* tolua_S) +int lua_ax_ui_ScrollView_getScrollBarAutoHideTime(lua_State* tolua_S) { int argc = 0; + ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif + #if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - argc = lua_gettop(tolua_S) - 1; + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); - if (argc == 0) +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_create'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'", nullptr); return 0; } - auto&& ret = ax::ui::ScrollView::create(); - object_to_luaval(tolua_S, "axui.ScrollView",(ax::ui::ScrollView*)ret); + auto&& ret = cobj->getScrollBarAutoHideTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ScrollView:create",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarAutoHideTime",argc, 0); return 0; + #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_create'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'.",&tolua_err); #endif + + return 0; +} +int lua_ax_ui_ScrollView_setTouchTotalTimeThreshold(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setTouchTotalTimeThreshold"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'", nullptr); + return 0; + } + cobj->setTouchTotalTimeThreshold(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setTouchTotalTimeThreshold",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_getTouchTotalTimeThreshold(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'", nullptr); + return 0; + } + auto&& ret = cobj->getTouchTotalTimeThreshold(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getTouchTotalTimeThreshold",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_isScrolling(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrolling'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrolling'", nullptr); + return 0; + } + auto&& ret = cobj->isScrolling(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrolling",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrolling'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ScrollView_isAutoScrolling(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ScrollView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isAutoScrolling'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isAutoScrolling'", nullptr); + return 0; + } + auto&& ret = cobj->isAutoScrolling(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isAutoScrolling",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isAutoScrolling'.",&tolua_err); +#endif + return 0; } int lua_ax_ui_ScrollView_createInstance(lua_State* tolua_S) @@ -17557,6 +17523,40 @@ int lua_ax_ui_ScrollView_createInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_ui_ScrollView_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_create'", nullptr); + return 0; + } + auto&& ret = ax::ui::ScrollView::create(); + object_to_luaval(tolua_S, "axui.ScrollView",(ax::ui::ScrollView*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ScrollView:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_ScrollView_constructor(lua_State* tolua_S) { int argc = 0; @@ -17607,69 +17607,69 @@ int lua_register_ax_ui_ScrollView(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ScrollView"); tolua_function(tolua_S,"new",lua_ax_ui_ScrollView_constructor); - tolua_function(tolua_S,"scrollToTop",lua_ax_ui_ScrollView_scrollToTop); - tolua_function(tolua_S,"scrollToPercentHorizontal",lua_ax_ui_ScrollView_scrollToPercentHorizontal); - tolua_function(tolua_S,"setScrollBarOpacity",lua_ax_ui_ScrollView_setScrollBarOpacity); - tolua_function(tolua_S,"setScrollBarEnabled",lua_ax_ui_ScrollView_setScrollBarEnabled); - tolua_function(tolua_S,"isInertiaScrollEnabled",lua_ax_ui_ScrollView_isInertiaScrollEnabled); - tolua_function(tolua_S,"scrollToBottom",lua_ax_ui_ScrollView_scrollToBottom); - tolua_function(tolua_S,"getScrolledPercentBothDirection",lua_ax_ui_ScrollView_getScrolledPercentBothDirection); - tolua_function(tolua_S,"getDirection",lua_ax_ui_ScrollView_getDirection); - tolua_function(tolua_S,"setScrollBarColor",lua_ax_ui_ScrollView_setScrollBarColor); - tolua_function(tolua_S,"scrollToBottomLeft",lua_ax_ui_ScrollView_scrollToBottomLeft); - tolua_function(tolua_S,"getInnerContainer",lua_ax_ui_ScrollView_getInnerContainer); - tolua_function(tolua_S,"jumpToBottom",lua_ax_ui_ScrollView_jumpToBottom); - tolua_function(tolua_S,"setInnerContainerPosition",lua_ax_ui_ScrollView_setInnerContainerPosition); tolua_function(tolua_S,"setDirection",lua_ax_ui_ScrollView_setDirection); - tolua_function(tolua_S,"scrollToTopLeft",lua_ax_ui_ScrollView_scrollToTopLeft); - tolua_function(tolua_S,"jumpToTopRight",lua_ax_ui_ScrollView_jumpToTopRight); - tolua_function(tolua_S,"scrollToPercentBothDirection",lua_ax_ui_ScrollView_scrollToPercentBothDirection); - tolua_function(tolua_S,"setInnerContainerSize",lua_ax_ui_ScrollView_setInnerContainerSize); - tolua_function(tolua_S,"getInnerContainerPosition",lua_ax_ui_ScrollView_getInnerContainerPosition); - tolua_function(tolua_S,"jumpToTop",lua_ax_ui_ScrollView_jumpToTop); - tolua_function(tolua_S,"getScrolledPercentVertical",lua_ax_ui_ScrollView_getScrolledPercentVertical); - tolua_function(tolua_S,"isBounceEnabled",lua_ax_ui_ScrollView_isBounceEnabled); - tolua_function(tolua_S,"jumpToPercentVertical",lua_ax_ui_ScrollView_jumpToPercentVertical); - tolua_function(tolua_S,"addEventListener",lua_ax_ui_ScrollView_addEventListener); - tolua_function(tolua_S,"setScrollBarAutoHideTime",lua_ax_ui_ScrollView_setScrollBarAutoHideTime); + tolua_function(tolua_S,"getDirection",lua_ax_ui_ScrollView_getDirection); + tolua_function(tolua_S,"getInnerContainer",lua_ax_ui_ScrollView_getInnerContainer); tolua_function(tolua_S,"stopScroll",lua_ax_ui_ScrollView_stopScroll); - tolua_function(tolua_S,"setScrollBarPositionFromCornerForHorizontal",lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal); - tolua_function(tolua_S,"setInertiaScrollEnabled",lua_ax_ui_ScrollView_setInertiaScrollEnabled); - tolua_function(tolua_S,"setScrollBarAutoHideEnabled",lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled); - tolua_function(tolua_S,"getScrollBarColor",lua_ax_ui_ScrollView_getScrollBarColor); - tolua_function(tolua_S,"jumpToTopLeft",lua_ax_ui_ScrollView_jumpToTopLeft); - tolua_function(tolua_S,"isScrollBarEnabled",lua_ax_ui_ScrollView_isScrollBarEnabled); - tolua_function(tolua_S,"isAutoScrolling",lua_ax_ui_ScrollView_isAutoScrolling); - tolua_function(tolua_S,"jumpToBottomRight",lua_ax_ui_ScrollView_jumpToBottomRight); - tolua_function(tolua_S,"setTouchTotalTimeThreshold",lua_ax_ui_ScrollView_setTouchTotalTimeThreshold); - tolua_function(tolua_S,"getTouchTotalTimeThreshold",lua_ax_ui_ScrollView_getTouchTotalTimeThreshold); - tolua_function(tolua_S,"getScrollBarPositionFromCornerForHorizontal",lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal); - tolua_function(tolua_S,"getScrolledPercentHorizontal",lua_ax_ui_ScrollView_getScrolledPercentHorizontal); - tolua_function(tolua_S,"setBounceEnabled",lua_ax_ui_ScrollView_setBounceEnabled); tolua_function(tolua_S,"stopAutoScroll",lua_ax_ui_ScrollView_stopAutoScroll); - tolua_function(tolua_S,"scrollToTopRight",lua_ax_ui_ScrollView_scrollToTopRight); - tolua_function(tolua_S,"isScrolling",lua_ax_ui_ScrollView_isScrolling); - tolua_function(tolua_S,"scrollToLeft",lua_ax_ui_ScrollView_scrollToLeft); - tolua_function(tolua_S,"jumpToPercentBothDirection",lua_ax_ui_ScrollView_jumpToPercentBothDirection); tolua_function(tolua_S,"stopOverallScroll",lua_ax_ui_ScrollView_stopOverallScroll); - tolua_function(tolua_S,"scrollToPercentVertical",lua_ax_ui_ScrollView_scrollToPercentVertical); - tolua_function(tolua_S,"setScrollBarWidth",lua_ax_ui_ScrollView_setScrollBarWidth); - tolua_function(tolua_S,"getScrollBarOpacity",lua_ax_ui_ScrollView_getScrollBarOpacity); + tolua_function(tolua_S,"scrollToBottom",lua_ax_ui_ScrollView_scrollToBottom); + tolua_function(tolua_S,"scrollToTop",lua_ax_ui_ScrollView_scrollToTop); + tolua_function(tolua_S,"scrollToLeft",lua_ax_ui_ScrollView_scrollToLeft); + tolua_function(tolua_S,"scrollToRight",lua_ax_ui_ScrollView_scrollToRight); + tolua_function(tolua_S,"scrollToTopLeft",lua_ax_ui_ScrollView_scrollToTopLeft); + tolua_function(tolua_S,"scrollToTopRight",lua_ax_ui_ScrollView_scrollToTopRight); + tolua_function(tolua_S,"scrollToBottomLeft",lua_ax_ui_ScrollView_scrollToBottomLeft); tolua_function(tolua_S,"scrollToBottomRight",lua_ax_ui_ScrollView_scrollToBottomRight); + tolua_function(tolua_S,"scrollToPercentVertical",lua_ax_ui_ScrollView_scrollToPercentVertical); + tolua_function(tolua_S,"scrollToPercentHorizontal",lua_ax_ui_ScrollView_scrollToPercentHorizontal); + tolua_function(tolua_S,"scrollToPercentBothDirection",lua_ax_ui_ScrollView_scrollToPercentBothDirection); + tolua_function(tolua_S,"getScrolledPercentVertical",lua_ax_ui_ScrollView_getScrolledPercentVertical); + tolua_function(tolua_S,"getScrolledPercentHorizontal",lua_ax_ui_ScrollView_getScrolledPercentHorizontal); + tolua_function(tolua_S,"getScrolledPercentBothDirection",lua_ax_ui_ScrollView_getScrolledPercentBothDirection); + tolua_function(tolua_S,"jumpToBottom",lua_ax_ui_ScrollView_jumpToBottom); + tolua_function(tolua_S,"jumpToTop",lua_ax_ui_ScrollView_jumpToTop); + tolua_function(tolua_S,"jumpToLeft",lua_ax_ui_ScrollView_jumpToLeft); + tolua_function(tolua_S,"jumpToRight",lua_ax_ui_ScrollView_jumpToRight); + tolua_function(tolua_S,"jumpToTopLeft",lua_ax_ui_ScrollView_jumpToTopLeft); + tolua_function(tolua_S,"jumpToTopRight",lua_ax_ui_ScrollView_jumpToTopRight); + tolua_function(tolua_S,"jumpToBottomLeft",lua_ax_ui_ScrollView_jumpToBottomLeft); + tolua_function(tolua_S,"jumpToBottomRight",lua_ax_ui_ScrollView_jumpToBottomRight); + tolua_function(tolua_S,"jumpToPercentVertical",lua_ax_ui_ScrollView_jumpToPercentVertical); + tolua_function(tolua_S,"jumpToPercentHorizontal",lua_ax_ui_ScrollView_jumpToPercentHorizontal); + tolua_function(tolua_S,"jumpToPercentBothDirection",lua_ax_ui_ScrollView_jumpToPercentBothDirection); + tolua_function(tolua_S,"setInnerContainerSize",lua_ax_ui_ScrollView_setInnerContainerSize); + tolua_function(tolua_S,"getInnerContainerSize",lua_ax_ui_ScrollView_getInnerContainerSize); + tolua_function(tolua_S,"setInnerContainerPosition",lua_ax_ui_ScrollView_setInnerContainerPosition); + tolua_function(tolua_S,"getInnerContainerPosition",lua_ax_ui_ScrollView_getInnerContainerPosition); + tolua_function(tolua_S,"addEventListener",lua_ax_ui_ScrollView_addEventListener); + tolua_function(tolua_S,"setBounceEnabled",lua_ax_ui_ScrollView_setBounceEnabled); + tolua_function(tolua_S,"isBounceEnabled",lua_ax_ui_ScrollView_isBounceEnabled); + tolua_function(tolua_S,"setInertiaScrollEnabled",lua_ax_ui_ScrollView_setInertiaScrollEnabled); + tolua_function(tolua_S,"isInertiaScrollEnabled",lua_ax_ui_ScrollView_isInertiaScrollEnabled); + tolua_function(tolua_S,"setScrollBarEnabled",lua_ax_ui_ScrollView_setScrollBarEnabled); + tolua_function(tolua_S,"isScrollBarEnabled",lua_ax_ui_ScrollView_isScrollBarEnabled); tolua_function(tolua_S,"setScrollBarPositionFromCorner",lua_ax_ui_ScrollView_setScrollBarPositionFromCorner); tolua_function(tolua_S,"setScrollBarPositionFromCornerForVertical",lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical); - tolua_function(tolua_S,"getScrollBarAutoHideTime",lua_ax_ui_ScrollView_getScrollBarAutoHideTime); - tolua_function(tolua_S,"jumpToLeft",lua_ax_ui_ScrollView_jumpToLeft); - tolua_function(tolua_S,"scrollToRight",lua_ax_ui_ScrollView_scrollToRight); tolua_function(tolua_S,"getScrollBarPositionFromCornerForVertical",lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical); + tolua_function(tolua_S,"setScrollBarPositionFromCornerForHorizontal",lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal); + tolua_function(tolua_S,"getScrollBarPositionFromCornerForHorizontal",lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal); + tolua_function(tolua_S,"setScrollBarWidth",lua_ax_ui_ScrollView_setScrollBarWidth); tolua_function(tolua_S,"getScrollBarWidth",lua_ax_ui_ScrollView_getScrollBarWidth); + tolua_function(tolua_S,"setScrollBarColor",lua_ax_ui_ScrollView_setScrollBarColor); + tolua_function(tolua_S,"getScrollBarColor",lua_ax_ui_ScrollView_getScrollBarColor); + tolua_function(tolua_S,"setScrollBarOpacity",lua_ax_ui_ScrollView_setScrollBarOpacity); + tolua_function(tolua_S,"getScrollBarOpacity",lua_ax_ui_ScrollView_getScrollBarOpacity); + tolua_function(tolua_S,"setScrollBarAutoHideEnabled",lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled); tolua_function(tolua_S,"isScrollBarAutoHideEnabled",lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled); - tolua_function(tolua_S,"jumpToBottomLeft",lua_ax_ui_ScrollView_jumpToBottomLeft); - tolua_function(tolua_S,"jumpToRight",lua_ax_ui_ScrollView_jumpToRight); - tolua_function(tolua_S,"getInnerContainerSize",lua_ax_ui_ScrollView_getInnerContainerSize); - tolua_function(tolua_S,"jumpToPercentHorizontal",lua_ax_ui_ScrollView_jumpToPercentHorizontal); - tolua_function(tolua_S,"create", lua_ax_ui_ScrollView_create); + tolua_function(tolua_S,"setScrollBarAutoHideTime",lua_ax_ui_ScrollView_setScrollBarAutoHideTime); + tolua_function(tolua_S,"getScrollBarAutoHideTime",lua_ax_ui_ScrollView_getScrollBarAutoHideTime); + tolua_function(tolua_S,"setTouchTotalTimeThreshold",lua_ax_ui_ScrollView_setTouchTotalTimeThreshold); + tolua_function(tolua_S,"getTouchTotalTimeThreshold",lua_ax_ui_ScrollView_getTouchTotalTimeThreshold); + tolua_function(tolua_S,"isScrolling",lua_ax_ui_ScrollView_isScrolling); + tolua_function(tolua_S,"isAutoScrolling",lua_ax_ui_ScrollView_isAutoScrolling); tolua_function(tolua_S,"createInstance", lua_ax_ui_ScrollView_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_ScrollView_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::ScrollView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.ScrollView"; @@ -17677,7 +17677,7 @@ int lua_register_ax_ui_ScrollView(lua_State* tolua_S) return 1; } -int lua_ax_ui_ListView_setGravity(lua_State* tolua_S) +int lua_ax_ui_ListView_setItemModel(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; @@ -17697,7 +17697,7 @@ int lua_ax_ui_ListView_setGravity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setGravity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setItemModel'", nullptr); return 0; } #endif @@ -17705,24 +17705,224 @@ int lua_ax_ui_ListView_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::ui::ListView::Gravity arg0; + ax::ui::Widget* arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setGravity"); + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:setItemModel"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setGravity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setItemModel'", nullptr); return 0; } - cobj->setGravity(arg0); + cobj->setItemModel(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setGravity",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setItemModel",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setGravity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setItemModel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_pushBackDefaultItem(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_pushBackDefaultItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_pushBackDefaultItem'", nullptr); + return 0; + } + cobj->pushBackDefaultItem(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:pushBackDefaultItem",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_pushBackDefaultItem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_insertDefaultItem(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_insertDefaultItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ssize_t arg0; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:insertDefaultItem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_insertDefaultItem'", nullptr); + return 0; + } + cobj->insertDefaultItem(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:insertDefaultItem",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_insertDefaultItem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_pushBackCustomItem(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_pushBackCustomItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Widget* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:pushBackCustomItem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_pushBackCustomItem'", nullptr); + return 0; + } + cobj->pushBackCustomItem(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:pushBackCustomItem",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_pushBackCustomItem'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_insertCustomItem(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_insertCustomItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::ui::Widget* arg0; + ssize_t arg1; + + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:insertCustomItem"); + + ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "axui.ListView:insertCustomItem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_insertCustomItem'", nullptr); + return 0; + } + cobj->insertCustomItem(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:insertCustomItem",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_insertCustomItem'.",&tolua_err); #endif return 0; @@ -17774,7 +17974,7 @@ int lua_ax_ui_ListView_removeLastItem(lua_State* tolua_S) return 0; } -int lua_ax_ui_ListView_getLeftPadding(lua_State* tolua_S) +int lua_ax_ui_ListView_removeItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; @@ -17794,34 +17994,37 @@ int lua_ax_ui_ListView_getLeftPadding(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getLeftPadding'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + ssize_t arg0; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:removeItem"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getLeftPadding'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeItem'", nullptr); return 0; } - auto&& ret = cobj->getLeftPadding(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->removeItem(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getLeftPadding",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getLeftPadding'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeItem'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) +int lua_ax_ui_ListView_removeAllItems(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; @@ -17841,7 +18044,7 @@ int lua_ax_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeAllItems'", nullptr); return 0; } #endif @@ -17851,24 +18054,74 @@ int lua_ax_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeAllItems'", nullptr); return 0; } - auto&& ret = cobj->getCenterItemInCurrentView(); + cobj->removeAllItems(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeAllItems",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeAllItems'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getItem(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ssize_t arg0; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:getItem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItem'", nullptr); + return 0; + } + auto&& ret = cobj->getItem(arg0); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getCenterItemInCurrentView",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItem'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) +int lua_ax_ui_ListView_getItems(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; @@ -17888,7 +18141,7 @@ int lua_ax_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getCurSelectedIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItems'", nullptr); return 0; } #endif @@ -17898,24 +18151,24 @@ int lua_ax_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getCurSelectedIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItems'", nullptr); return 0; } - auto&& ret = cobj->getCurSelectedIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getItems(); + ccvector_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getCurSelectedIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItems",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getCurSelectedIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItems'.",&tolua_err); #endif return 0; } -int lua_ax_ui_ListView_getScrollDuration(lua_State* tolua_S) +int lua_ax_ui_ListView_getIndex(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; @@ -17935,7 +18188,157 @@ int lua_ax_ui_ListView_getScrollDuration(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getScrollDuration'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Widget* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:getIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getIndex(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setGravity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setGravity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::ListView::Gravity arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setGravity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setGravity'", nullptr); + return 0; + } + cobj->setGravity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setGravity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setGravity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setMagneticType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setMagneticType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::ListView::MagneticType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setMagneticType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setMagneticType'", nullptr); + return 0; + } + cobj->setMagneticType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setMagneticType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setMagneticType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getMagneticType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getMagneticType'", nullptr); return 0; } #endif @@ -17945,19 +18348,69 @@ int lua_ax_ui_ListView_getScrollDuration(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getScrollDuration'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getMagneticType'", nullptr); return 0; } - auto&& ret = cobj->getScrollDuration(); + int ret = (int)cobj->getMagneticType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getScrollDuration",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getMagneticType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getScrollDuration'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getMagneticType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ListView:setMagneticAllowedOutOfBoundary"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'", nullptr); + return 0; + } + cobj->setMagneticAllowedOutOfBoundary(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setMagneticAllowedOutOfBoundary",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'.",&tolua_err); #endif return 0; @@ -18009,6 +18462,56 @@ int lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary(lua_State* tolua_S) return 0; } +int lua_ax_ui_ListView_setItemsMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setItemsMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setItemsMargin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setItemsMargin'", nullptr); + return 0; + } + cobj->setItemsMargin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setItemsMargin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setItemsMargin'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_ListView_getItemsMargin(lua_State* tolua_S) { int argc = 0; @@ -18056,6 +18559,994 @@ int lua_ax_ui_ListView_getItemsMargin(lua_State* tolua_S) return 0; } +int lua_ax_ui_ListView_setPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + double arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setPadding"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ListView:setPadding"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.ListView:setPadding"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "axui.ListView:setPadding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setPadding'", nullptr); + return 0; + } + cobj->setPadding(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setPadding",argc, 4); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setLeftPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setLeftPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setLeftPadding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setLeftPadding'", nullptr); + return 0; + } + cobj->setLeftPadding(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setLeftPadding",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setLeftPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setTopPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setTopPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setTopPadding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setTopPadding'", nullptr); + return 0; + } + cobj->setTopPadding(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setTopPadding",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setTopPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setRightPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setRightPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setRightPadding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setRightPadding'", nullptr); + return 0; + } + cobj->setRightPadding(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setRightPadding",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setRightPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setBottomPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setBottomPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setBottomPadding"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setBottomPadding'", nullptr); + return 0; + } + cobj->setBottomPadding(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setBottomPadding",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setBottomPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getLeftPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getLeftPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getLeftPadding'", nullptr); + return 0; + } + auto&& ret = cobj->getLeftPadding(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getLeftPadding",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getLeftPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getTopPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getTopPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getTopPadding'", nullptr); + return 0; + } + auto&& ret = cobj->getTopPadding(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getTopPadding",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getTopPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getRightPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getRightPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getRightPadding'", nullptr); + return 0; + } + auto&& ret = cobj->getRightPadding(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getRightPadding",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getRightPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getBottomPadding(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getBottomPadding'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getBottomPadding'", nullptr); + return 0; + } + auto&& ret = cobj->getBottomPadding(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getBottomPadding",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getBottomPadding'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_setScrollDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setScrollDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setScrollDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setScrollDuration'", nullptr); + return 0; + } + cobj->setScrollDuration(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setScrollDuration",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setScrollDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getScrollDuration(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getScrollDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getScrollDuration'", nullptr); + return 0; + } + auto&& ret = cobj->getScrollDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getScrollDuration",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getScrollDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_doLayout(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_doLayout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_doLayout'", nullptr); + return 0; + } + cobj->doLayout(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:doLayout",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_doLayout'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getClosestItemToPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ListView:getClosestItemToPosition"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:getClosestItemToPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getClosestItemToPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getClosestItemToPosition(arg0, arg1); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getClosestItemToPosition",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getClosestItemToPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + ax::Vec2 arg0; + ax::Vec2 arg1; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ListView:getClosestItemToPositionInCurrentView"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:getClosestItemToPositionInCurrentView"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); + return 0; + } + auto&& ret = cobj->getClosestItemToPositionInCurrentView(arg0, arg1); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getClosestItemToPositionInCurrentView",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'", nullptr); + return 0; + } + auto&& ret = cobj->getCenterItemInCurrentView(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getCenterItemInCurrentView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'", nullptr); + return 0; + } + auto&& ret = cobj->getLeftmostItemInCurrentView(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getLeftmostItemInCurrentView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'", nullptr); + return 0; + } + auto&& ret = cobj->getRightmostItemInCurrentView(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getRightmostItemInCurrentView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'", nullptr); + return 0; + } + auto&& ret = cobj->getTopmostItemInCurrentView(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getTopmostItemInCurrentView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'", nullptr); + return 0; + } + auto&& ret = cobj->getBottommostItemInCurrentView(); + object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getBottommostItemInCurrentView",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_ListView_jumpToItem(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::ListView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_jumpToItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + ssize_t arg0; + ax::Vec2 arg1; + ax::Vec2 arg2; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:jumpToItem"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:jumpToItem"); + + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.ListView:jumpToItem"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_jumpToItem'", nullptr); + return 0; + } + cobj->jumpToItem(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:jumpToItem",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_jumpToItem'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_ListView_scrollToItem(lua_State* tolua_S) { int argc = 0; @@ -18131,7 +19622,7 @@ int lua_ax_ui_ListView_scrollToItem(lua_State* tolua_S) return 0; } -int lua_ax_ui_ListView_jumpToItem(lua_State* tolua_S) +int lua_ax_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; @@ -18151,188 +19642,29 @@ int lua_ax_ui_ListView_jumpToItem(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_jumpToItem'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getCurSelectedIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 0) { - ssize_t arg0; - ax::Vec2 arg1; - ax::Vec2 arg2; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:jumpToItem"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:jumpToItem"); - - ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.ListView:jumpToItem"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_jumpToItem'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getCurSelectedIndex'", nullptr); return 0; } - cobj->jumpToItem(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:jumpToItem",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_jumpToItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setTopPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setTopPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setTopPadding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setTopPadding'", nullptr); - return 0; - } - cobj->setTopPadding(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setTopPadding",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setTopPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Widget* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:getIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getIndex(arg0); + auto&& ret = cobj->getCurSelectedIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getIndex",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getCurSelectedIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_pushBackCustomItem(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_pushBackCustomItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Widget* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:pushBackCustomItem"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_pushBackCustomItem'", nullptr); - return 0; - } - cobj->pushBackCustomItem(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:pushBackCustomItem",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_pushBackCustomItem'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getCurSelectedIndex'.",&tolua_err); #endif return 0; @@ -18387,156 +19719,6 @@ int lua_ax_ui_ListView_setCurSelectedIndex(lua_State* tolua_S) return 0; } -int lua_ax_ui_ListView_insertDefaultItem(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_insertDefaultItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:insertDefaultItem"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_insertDefaultItem'", nullptr); - return 0; - } - cobj->insertDefaultItem(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:insertDefaultItem",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_insertDefaultItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setMagneticType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setMagneticType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::ListView::MagneticType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setMagneticType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setMagneticType'", nullptr); - return 0; - } - cobj->setMagneticType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setMagneticType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setMagneticType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ListView:setMagneticAllowedOutOfBoundary"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'", nullptr); - return 0; - } - cobj->setMagneticAllowedOutOfBoundary(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setMagneticAllowedOutOfBoundary",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_ListView_addEventListener(lua_State* tolua_S) { int argc = 0; @@ -18591,1186 +19773,38 @@ int lua_ax_ui_ListView_addEventListener(lua_State* tolua_S) return 0; } -int lua_ax_ui_ListView_doLayout(lua_State* tolua_S) +int lua_ax_ui_ListView_createInstance(lua_State* tolua_S) { int argc = 0; - ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_doLayout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_doLayout'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_createInstance'", nullptr); return 0; } - cobj->doLayout(); - lua_settop(tolua_S, 1); + auto&& ret = ax::ui::ListView::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:doLayout",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ListView:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_doLayout'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_createInstance'.",&tolua_err); #endif - - return 0; -} -int lua_ax_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'", nullptr); - return 0; - } - auto&& ret = cobj->getTopmostItemInCurrentView(); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getTopmostItemInCurrentView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - double arg0; - double arg1; - double arg2; - double arg3; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setPadding"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ListView:setPadding"); - - ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.ListView:setPadding"); - - ok &= luaval_to_number(tolua_S, 5,&arg3, "axui.ListView:setPadding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setPadding'", nullptr); - return 0; - } - cobj->setPadding(arg0, arg1, arg2, arg3); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setPadding",argc, 4); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_removeAllItems(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeAllItems'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeAllItems'", nullptr); - return 0; - } - cobj->removeAllItems(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeAllItems",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeAllItems'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getRightPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getRightPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getRightPadding'", nullptr); - return 0; - } - auto&& ret = cobj->getRightPadding(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getRightPadding",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getRightPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'", nullptr); - return 0; - } - auto&& ret = cobj->getBottommostItemInCurrentView(); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getBottommostItemInCurrentView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getItems(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItems'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItems'", nullptr); - return 0; - } - auto&& ret = cobj->getItems(); - ccvector_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItems",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItems'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'", nullptr); - return 0; - } - auto&& ret = cobj->getLeftmostItemInCurrentView(); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getLeftmostItemInCurrentView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setItemsMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setItemsMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setItemsMargin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setItemsMargin'", nullptr); - return 0; - } - cobj->setItemsMargin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setItemsMargin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setItemsMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getMagneticType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getMagneticType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getMagneticType'", nullptr); - return 0; - } - int ret = (int)cobj->getMagneticType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getMagneticType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getMagneticType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getItem(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:getItem"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItem'", nullptr); - return 0; - } - auto&& ret = cobj->getItem(arg0); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItem",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_removeItem(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:removeItem"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeItem'", nullptr); - return 0; - } - cobj->removeItem(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeItem",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getTopPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getTopPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getTopPadding'", nullptr); - return 0; - } - auto&& ret = cobj->getTopPadding(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getTopPadding",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getTopPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_pushBackDefaultItem(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_pushBackDefaultItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_pushBackDefaultItem'", nullptr); - return 0; - } - cobj->pushBackDefaultItem(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:pushBackDefaultItem",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_pushBackDefaultItem'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setLeftPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setLeftPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setLeftPadding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setLeftPadding'", nullptr); - return 0; - } - cobj->setLeftPadding(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setLeftPadding",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setLeftPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getClosestItemToPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ListView:getClosestItemToPosition"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:getClosestItemToPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getClosestItemToPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getClosestItemToPosition(arg0, arg1); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getClosestItemToPosition",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getClosestItemToPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setBottomPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setBottomPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setBottomPadding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setBottomPadding'", nullptr); - return 0; - } - cobj->setBottomPadding(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setBottomPadding",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setBottomPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setScrollDuration(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setScrollDuration'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setScrollDuration"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setScrollDuration'", nullptr); - return 0; - } - cobj->setScrollDuration(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setScrollDuration",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setScrollDuration'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::Vec2 arg0; - ax::Vec2 arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ListView:getClosestItemToPositionInCurrentView"); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:getClosestItemToPositionInCurrentView"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); - return 0; - } - auto&& ret = cobj->getClosestItemToPositionInCurrentView(arg0, arg1); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getClosestItemToPositionInCurrentView",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'", nullptr); - return 0; - } - auto&& ret = cobj->getRightmostItemInCurrentView(); - object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getRightmostItemInCurrentView",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setRightPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setRightPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setRightPadding"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setRightPadding'", nullptr); - return 0; - } - cobj->setRightPadding(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setRightPadding",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setRightPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_setItemModel(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setItemModel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Widget* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:setItemModel"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setItemModel'", nullptr); - return 0; - } - cobj->setItemModel(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setItemModel",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setItemModel'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_getBottomPadding(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getBottomPadding'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getBottomPadding'", nullptr); - return 0; - } - auto&& ret = cobj->getBottomPadding(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getBottomPadding",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getBottomPadding'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_ListView_insertCustomItem(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::ListView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_insertCustomItem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::ui::Widget* arg0; - ssize_t arg1; - - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:insertCustomItem"); - - ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "axui.ListView:insertCustomItem"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_insertCustomItem'", nullptr); - return 0; - } - cobj->insertCustomItem(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:insertCustomItem",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_insertCustomItem'.",&tolua_err); -#endif - return 0; } int lua_ax_ui_ListView_create(lua_State* tolua_S) @@ -19807,40 +19841,6 @@ int lua_ax_ui_ListView_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_ListView_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::ListView::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ListView:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_ListView_constructor(lua_State* tolua_S) { int argc = 0; @@ -19891,50 +19891,50 @@ int lua_register_ax_ui_ListView(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ListView"); tolua_function(tolua_S,"new",lua_ax_ui_ListView_constructor); - tolua_function(tolua_S,"setGravity",lua_ax_ui_ListView_setGravity); - tolua_function(tolua_S,"removeLastItem",lua_ax_ui_ListView_removeLastItem); - tolua_function(tolua_S,"getLeftPadding",lua_ax_ui_ListView_getLeftPadding); - tolua_function(tolua_S,"getCenterItemInCurrentView",lua_ax_ui_ListView_getCenterItemInCurrentView); - tolua_function(tolua_S,"getCurSelectedIndex",lua_ax_ui_ListView_getCurSelectedIndex); - tolua_function(tolua_S,"getScrollDuration",lua_ax_ui_ListView_getScrollDuration); - tolua_function(tolua_S,"getMagneticAllowedOutOfBoundary",lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary); - tolua_function(tolua_S,"getItemsMargin",lua_ax_ui_ListView_getItemsMargin); - tolua_function(tolua_S,"scrollToItem",lua_ax_ui_ListView_scrollToItem); - tolua_function(tolua_S,"jumpToItem",lua_ax_ui_ListView_jumpToItem); - tolua_function(tolua_S,"setTopPadding",lua_ax_ui_ListView_setTopPadding); - tolua_function(tolua_S,"getIndex",lua_ax_ui_ListView_getIndex); - tolua_function(tolua_S,"pushBackCustomItem",lua_ax_ui_ListView_pushBackCustomItem); - tolua_function(tolua_S,"setCurSelectedIndex",lua_ax_ui_ListView_setCurSelectedIndex); - tolua_function(tolua_S,"insertDefaultItem",lua_ax_ui_ListView_insertDefaultItem); - tolua_function(tolua_S,"setMagneticType",lua_ax_ui_ListView_setMagneticType); - tolua_function(tolua_S,"setMagneticAllowedOutOfBoundary",lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary); - tolua_function(tolua_S,"addEventListener",lua_ax_ui_ListView_addEventListener); - tolua_function(tolua_S,"doLayout",lua_ax_ui_ListView_doLayout); - tolua_function(tolua_S,"getTopmostItemInCurrentView",lua_ax_ui_ListView_getTopmostItemInCurrentView); - tolua_function(tolua_S,"setPadding",lua_ax_ui_ListView_setPadding); - tolua_function(tolua_S,"removeAllItems",lua_ax_ui_ListView_removeAllItems); - tolua_function(tolua_S,"getRightPadding",lua_ax_ui_ListView_getRightPadding); - tolua_function(tolua_S,"getBottommostItemInCurrentView",lua_ax_ui_ListView_getBottommostItemInCurrentView); - tolua_function(tolua_S,"getItems",lua_ax_ui_ListView_getItems); - tolua_function(tolua_S,"getLeftmostItemInCurrentView",lua_ax_ui_ListView_getLeftmostItemInCurrentView); - tolua_function(tolua_S,"setItemsMargin",lua_ax_ui_ListView_setItemsMargin); - tolua_function(tolua_S,"getMagneticType",lua_ax_ui_ListView_getMagneticType); - tolua_function(tolua_S,"getItem",lua_ax_ui_ListView_getItem); - tolua_function(tolua_S,"removeItem",lua_ax_ui_ListView_removeItem); - tolua_function(tolua_S,"getTopPadding",lua_ax_ui_ListView_getTopPadding); - tolua_function(tolua_S,"pushBackDefaultItem",lua_ax_ui_ListView_pushBackDefaultItem); - tolua_function(tolua_S,"setLeftPadding",lua_ax_ui_ListView_setLeftPadding); - tolua_function(tolua_S,"getClosestItemToPosition",lua_ax_ui_ListView_getClosestItemToPosition); - tolua_function(tolua_S,"setBottomPadding",lua_ax_ui_ListView_setBottomPadding); - tolua_function(tolua_S,"setScrollDuration",lua_ax_ui_ListView_setScrollDuration); - tolua_function(tolua_S,"getClosestItemToPositionInCurrentView",lua_ax_ui_ListView_getClosestItemToPositionInCurrentView); - tolua_function(tolua_S,"getRightmostItemInCurrentView",lua_ax_ui_ListView_getRightmostItemInCurrentView); - tolua_function(tolua_S,"setRightPadding",lua_ax_ui_ListView_setRightPadding); tolua_function(tolua_S,"setItemModel",lua_ax_ui_ListView_setItemModel); - tolua_function(tolua_S,"getBottomPadding",lua_ax_ui_ListView_getBottomPadding); + tolua_function(tolua_S,"pushBackDefaultItem",lua_ax_ui_ListView_pushBackDefaultItem); + tolua_function(tolua_S,"insertDefaultItem",lua_ax_ui_ListView_insertDefaultItem); + tolua_function(tolua_S,"pushBackCustomItem",lua_ax_ui_ListView_pushBackCustomItem); tolua_function(tolua_S,"insertCustomItem",lua_ax_ui_ListView_insertCustomItem); - tolua_function(tolua_S,"create", lua_ax_ui_ListView_create); + tolua_function(tolua_S,"removeLastItem",lua_ax_ui_ListView_removeLastItem); + tolua_function(tolua_S,"removeItem",lua_ax_ui_ListView_removeItem); + tolua_function(tolua_S,"removeAllItems",lua_ax_ui_ListView_removeAllItems); + tolua_function(tolua_S,"getItem",lua_ax_ui_ListView_getItem); + tolua_function(tolua_S,"getItems",lua_ax_ui_ListView_getItems); + tolua_function(tolua_S,"getIndex",lua_ax_ui_ListView_getIndex); + tolua_function(tolua_S,"setGravity",lua_ax_ui_ListView_setGravity); + tolua_function(tolua_S,"setMagneticType",lua_ax_ui_ListView_setMagneticType); + tolua_function(tolua_S,"getMagneticType",lua_ax_ui_ListView_getMagneticType); + tolua_function(tolua_S,"setMagneticAllowedOutOfBoundary",lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary); + tolua_function(tolua_S,"getMagneticAllowedOutOfBoundary",lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary); + tolua_function(tolua_S,"setItemsMargin",lua_ax_ui_ListView_setItemsMargin); + tolua_function(tolua_S,"getItemsMargin",lua_ax_ui_ListView_getItemsMargin); + tolua_function(tolua_S,"setPadding",lua_ax_ui_ListView_setPadding); + tolua_function(tolua_S,"setLeftPadding",lua_ax_ui_ListView_setLeftPadding); + tolua_function(tolua_S,"setTopPadding",lua_ax_ui_ListView_setTopPadding); + tolua_function(tolua_S,"setRightPadding",lua_ax_ui_ListView_setRightPadding); + tolua_function(tolua_S,"setBottomPadding",lua_ax_ui_ListView_setBottomPadding); + tolua_function(tolua_S,"getLeftPadding",lua_ax_ui_ListView_getLeftPadding); + tolua_function(tolua_S,"getTopPadding",lua_ax_ui_ListView_getTopPadding); + tolua_function(tolua_S,"getRightPadding",lua_ax_ui_ListView_getRightPadding); + tolua_function(tolua_S,"getBottomPadding",lua_ax_ui_ListView_getBottomPadding); + tolua_function(tolua_S,"setScrollDuration",lua_ax_ui_ListView_setScrollDuration); + tolua_function(tolua_S,"getScrollDuration",lua_ax_ui_ListView_getScrollDuration); + tolua_function(tolua_S,"doLayout",lua_ax_ui_ListView_doLayout); + tolua_function(tolua_S,"getClosestItemToPosition",lua_ax_ui_ListView_getClosestItemToPosition); + tolua_function(tolua_S,"getClosestItemToPositionInCurrentView",lua_ax_ui_ListView_getClosestItemToPositionInCurrentView); + tolua_function(tolua_S,"getCenterItemInCurrentView",lua_ax_ui_ListView_getCenterItemInCurrentView); + tolua_function(tolua_S,"getLeftmostItemInCurrentView",lua_ax_ui_ListView_getLeftmostItemInCurrentView); + tolua_function(tolua_S,"getRightmostItemInCurrentView",lua_ax_ui_ListView_getRightmostItemInCurrentView); + tolua_function(tolua_S,"getTopmostItemInCurrentView",lua_ax_ui_ListView_getTopmostItemInCurrentView); + tolua_function(tolua_S,"getBottommostItemInCurrentView",lua_ax_ui_ListView_getBottommostItemInCurrentView); + tolua_function(tolua_S,"jumpToItem",lua_ax_ui_ListView_jumpToItem); + tolua_function(tolua_S,"scrollToItem",lua_ax_ui_ListView_scrollToItem); + tolua_function(tolua_S,"getCurSelectedIndex",lua_ax_ui_ListView_getCurSelectedIndex); + tolua_function(tolua_S,"setCurSelectedIndex",lua_ax_ui_ListView_setCurSelectedIndex); + tolua_function(tolua_S,"addEventListener",lua_ax_ui_ListView_addEventListener); tolua_function(tolua_S,"createInstance", lua_ax_ui_ListView_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_ListView_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::ListView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.ListView"; @@ -19942,7 +19942,7 @@ int lua_register_ax_ui_ListView(lua_State* tolua_S) return 1; } -int lua_ax_ui_Slider_setPercent(lua_State* tolua_S) +int lua_ax_ui_Slider_loadBarTexture(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; @@ -19962,104 +19962,7 @@ int lua_ax_ui_Slider_setPercent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setPercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Slider:setPercent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setPercent'", nullptr); - return 0; - } - cobj->setPercent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setPercent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setPercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getMaxPercent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getMaxPercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getMaxPercent'", nullptr); - return 0; - } - auto&& ret = cobj->getMaxPercent(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getMaxPercent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getMaxPercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); return 0; } #endif @@ -20069,13 +19972,13 @@ int lua_ax_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureNormal"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadBarTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); return 0; } - cobj->loadSlidBallTextureNormal(arg0); + cobj->loadBarTexture(arg0); lua_settop(tolua_S, 1); return 1; } @@ -20084,185 +19987,24 @@ int lua_ax_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) std::string_view arg0; ax::ui::Widget::TextureResType arg1; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureNormal"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadBarTexture"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadSlidBallTextureNormal"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadBarTexture"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); return 0; } - cobj->loadSlidBallTextureNormal(arg0, arg1); + cobj->loadBarTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadSlidBallTextureNormal",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadBarTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadProgressBarTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); - return 0; - } - cobj->loadProgressBarTexture(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadProgressBarTexture"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadProgressBarTexture"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); - return 0; - } - cobj->loadProgressBarTexture(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadProgressBarTexture",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadProgressBarTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getBallNormalFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallNormalFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallNormalFile'", nullptr); - return 0; - } - auto&& ret = cobj->getBallNormalFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallNormalFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallNormalFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getSlidBallDisabledRenderer(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallDisabledRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadBarTexture'.",&tolua_err); #endif return 0; @@ -20317,7 +20059,7 @@ int lua_ax_ui_Slider_setScale9Enabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_Slider_getBallPressedFile(lua_State* tolua_S) +int lua_ax_ui_Slider_isScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; @@ -20337,7 +20079,7 @@ int lua_ax_ui_Slider_getBallPressedFile(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallPressedFile'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_isScale9Enabled'", nullptr); return 0; } #endif @@ -20347,24 +20089,24 @@ int lua_ax_ui_Slider_getBallPressedFile(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallPressedFile'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_isScale9Enabled'", nullptr); return 0; } - auto&& ret = cobj->getBallPressedFile(); - resourceData_to_luaval(tolua_S, ret); + auto&& ret = cobj->isScale9Enabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallPressedFile",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:isScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallPressedFile'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_isScale9Enabled'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Slider_getZoomScale(lua_State* tolua_S) +int lua_ax_ui_Slider_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; @@ -20384,7 +20126,107 @@ int lua_ax_ui_Slider_getZoomScale(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getZoomScale'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsets'", nullptr); + return 0; + } + cobj->setCapInsets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsetsBarRenderer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'", nullptr); + return 0; + } + cobj->setCapInsetsBarRenderer(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsetsBarRenderer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'", nullptr); return 0; } #endif @@ -20394,19 +20236,19 @@ int lua_ax_ui_Slider_getZoomScale(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getZoomScale'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'", nullptr); return 0; } - auto&& ret = cobj->getZoomScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getCapInsetsBarRenderer(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getZoomScale",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getCapInsetsBarRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getZoomScale'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'.",&tolua_err); #endif return 0; @@ -20461,6 +20303,53 @@ int lua_ax_ui_Slider_setCapInsetProgressBarRenderer(lua_State* tolua_S) return 0; } +int lua_ax_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsetsProgressBarRenderer(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getCapInsetsProgressBarRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) { int argc = 0; @@ -20571,7 +20460,7 @@ int lua_ax_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) return 0; } -int lua_ax_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) +int lua_ax_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; @@ -20591,158 +20480,7 @@ int lua_ax_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getSlidBallRenderer(); - object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_addEventListener(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_addEventListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_addEventListener'", nullptr); - return 0; - } - cobj->addEventListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:addEventListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_addEventListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_setMaxPercent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setMaxPercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Slider:setMaxPercent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setMaxPercent'", nullptr); - return 0; - } - cobj->setMaxPercent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setMaxPercent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setMaxPercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_loadBarTexture(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); return 0; } #endif @@ -20752,13 +20490,13 @@ int lua_ax_ui_Slider_loadBarTexture(lua_State* tolua_S) { std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadBarTexture"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureNormal"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); return 0; } - cobj->loadBarTexture(arg0); + cobj->loadSlidBallTextureNormal(arg0); lua_settop(tolua_S, 1); return 1; } @@ -20767,259 +20505,24 @@ int lua_ax_ui_Slider_loadBarTexture(lua_State* tolua_S) std::string_view arg0; ax::ui::Widget::TextureResType arg1; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadBarTexture"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureNormal"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadBarTexture"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadSlidBallTextureNormal"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); return 0; } - cobj->loadBarTexture(arg0, arg1); + cobj->loadSlidBallTextureNormal(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadBarTexture",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadSlidBallTextureNormal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadBarTexture'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getProgressBarFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getProgressBarFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getProgressBarFile'", nullptr); - return 0; - } - auto&& ret = cobj->getProgressBarFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getProgressBarFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getProgressBarFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsetsBarRenderer(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getCapInsetsBarRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_updateVisualSlider(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_updateVisualSlider'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_updateVisualSlider'", nullptr); - return 0; - } - cobj->updateVisualSlider(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:updateVisualSlider",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_updateVisualSlider'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsetsProgressBarRenderer(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getCapInsetsProgressBarRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getSlidBallPressedRenderer(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallPressedRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'.",&tolua_err); #endif return 0; @@ -21091,294 +20594,6 @@ int lua_ax_ui_Slider_loadSlidBallTexturePressed(lua_State* tolua_S) return 0; } -int lua_ax_ui_Slider_getBackFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBackFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBackFile'", nullptr); - return 0; - } - auto&& ret = cobj->getBackFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBackFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBackFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_isScale9Enabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_isScale9Enabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_isScale9Enabled'", nullptr); - return 0; - } - auto&& ret = cobj->isScale9Enabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:isScale9Enabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_isScale9Enabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getBallDisabledFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallDisabledFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallDisabledFile'", nullptr); - return 0; - } - auto&& ret = cobj->getBallDisabledFile(); - resourceData_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallDisabledFile",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallDisabledFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsetsBarRenderer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'", nullptr); - return 0; - } - cobj->setCapInsetsBarRenderer(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsetsBarRenderer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_getPercent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getPercent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getPercent'", nullptr); - return 0; - } - auto&& ret = cobj->getPercent(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getPercent",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getPercent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Slider_setCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Slider* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsets'", nullptr); - return 0; - } - cobj->setCapInsets(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsets",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsets'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) { int argc = 0; @@ -21446,7 +20661,7 @@ int lua_ax_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) +int lua_ax_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; @@ -21466,7 +20681,124 @@ int lua_ax_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadProgressBarTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); + return 0; + } + cobj->loadProgressBarTexture(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadProgressBarTexture"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadProgressBarTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); + return 0; + } + cobj->loadProgressBarTexture(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadProgressBarTexture",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadProgressBarTexture'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_setPercent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setPercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Slider:setPercent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setPercent'", nullptr); + return 0; + } + cobj->setPercent(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setPercent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setPercent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_updateVisualSlider(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_updateVisualSlider'", nullptr); return 0; } #endif @@ -21476,19 +20808,217 @@ int lua_ax_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_updateVisualSlider'", nullptr); return 0; } - auto&& ret = cobj->getSlidBallNormalRenderer(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + cobj->updateVisualSlider(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallNormalRenderer",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:updateVisualSlider",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_updateVisualSlider'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getPercent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getPercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getPercent'", nullptr); + return 0; + } + auto&& ret = cobj->getPercent(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getPercent",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getPercent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_setMaxPercent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setMaxPercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Slider:setMaxPercent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setMaxPercent'", nullptr); + return 0; + } + cobj->setMaxPercent(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setMaxPercent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setMaxPercent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getMaxPercent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getMaxPercent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getMaxPercent'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxPercent(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getMaxPercent",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getMaxPercent'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_addEventListener(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_addEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_addEventListener'", nullptr); + return 0; + } + cobj->addEventListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:addEventListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_addEventListener'.",&tolua_err); #endif return 0; @@ -21543,6 +21073,510 @@ int lua_ax_ui_Slider_setZoomScale(lua_State* tolua_S) return 0; } +int lua_ax_ui_Slider_getZoomScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getZoomScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getZoomScale'", nullptr); + return 0; + } + auto&& ret = cobj->getZoomScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getZoomScale",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getZoomScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getSlidBallNormalRenderer(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallNormalRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getSlidBallPressedRenderer(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallPressedRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getSlidBallDisabledRenderer(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallDisabledRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getSlidBallRenderer(); + object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getBackFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBackFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBackFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBackFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBackFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBackFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getProgressBarFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getProgressBarFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getProgressBarFile'", nullptr); + return 0; + } + auto&& ret = cobj->getProgressBarFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getProgressBarFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getProgressBarFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getBallNormalFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallNormalFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallNormalFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBallNormalFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallNormalFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallNormalFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getBallPressedFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallPressedFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallPressedFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBallPressedFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallPressedFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallPressedFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_getBallDisabledFile(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Slider* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallDisabledFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallDisabledFile'", nullptr); + return 0; + } + auto&& ret = cobj->getBallDisabledFile(); + resourceData_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallDisabledFile",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallDisabledFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Slider_createInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_createInstance'", nullptr); + return 0; + } + auto&& ret = ax::ui::Slider::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Slider:createInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_createInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_Slider_create(lua_State* tolua_S) { int argc = 0; @@ -21610,40 +21644,6 @@ int lua_ax_ui_Slider_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Slider_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::Slider::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Slider:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_Slider_constructor(lua_State* tolua_S) { int argc = 0; @@ -21694,38 +21694,38 @@ int lua_register_ax_ui_Slider(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Slider"); tolua_function(tolua_S,"new",lua_ax_ui_Slider_constructor); - tolua_function(tolua_S,"setPercent",lua_ax_ui_Slider_setPercent); - tolua_function(tolua_S,"getMaxPercent",lua_ax_ui_Slider_getMaxPercent); - tolua_function(tolua_S,"loadSlidBallTextureNormal",lua_ax_ui_Slider_loadSlidBallTextureNormal); - tolua_function(tolua_S,"loadProgressBarTexture",lua_ax_ui_Slider_loadProgressBarTexture); - tolua_function(tolua_S,"getBallNormalFile",lua_ax_ui_Slider_getBallNormalFile); - tolua_function(tolua_S,"getSlidBallDisabledRenderer",lua_ax_ui_Slider_getSlidBallDisabledRenderer); - tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Slider_setScale9Enabled); - tolua_function(tolua_S,"getBallPressedFile",lua_ax_ui_Slider_getBallPressedFile); - tolua_function(tolua_S,"getZoomScale",lua_ax_ui_Slider_getZoomScale); - tolua_function(tolua_S,"setCapInsetProgressBarRenderer",lua_ax_ui_Slider_setCapInsetProgressBarRenderer); - tolua_function(tolua_S,"loadSlidBallTextures",lua_ax_ui_Slider_loadSlidBallTextures); - tolua_function(tolua_S,"getSlidBallRenderer",lua_ax_ui_Slider_getSlidBallRenderer); - tolua_function(tolua_S,"addEventListener",lua_ax_ui_Slider_addEventListener); - tolua_function(tolua_S,"setMaxPercent",lua_ax_ui_Slider_setMaxPercent); tolua_function(tolua_S,"loadBarTexture",lua_ax_ui_Slider_loadBarTexture); - tolua_function(tolua_S,"getProgressBarFile",lua_ax_ui_Slider_getProgressBarFile); - tolua_function(tolua_S,"getCapInsetsBarRenderer",lua_ax_ui_Slider_getCapInsetsBarRenderer); - tolua_function(tolua_S,"updateVisualSlider",lua_ax_ui_Slider_updateVisualSlider); - tolua_function(tolua_S,"getCapInsetsProgressBarRenderer",lua_ax_ui_Slider_getCapInsetsProgressBarRenderer); - tolua_function(tolua_S,"getSlidBallPressedRenderer",lua_ax_ui_Slider_getSlidBallPressedRenderer); - tolua_function(tolua_S,"loadSlidBallTexturePressed",lua_ax_ui_Slider_loadSlidBallTexturePressed); - tolua_function(tolua_S,"getBackFile",lua_ax_ui_Slider_getBackFile); + tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Slider_setScale9Enabled); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Slider_isScale9Enabled); - tolua_function(tolua_S,"getBallDisabledFile",lua_ax_ui_Slider_getBallDisabledFile); - tolua_function(tolua_S,"setCapInsetsBarRenderer",lua_ax_ui_Slider_setCapInsetsBarRenderer); - tolua_function(tolua_S,"getPercent",lua_ax_ui_Slider_getPercent); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Slider_setCapInsets); + tolua_function(tolua_S,"setCapInsetsBarRenderer",lua_ax_ui_Slider_setCapInsetsBarRenderer); + tolua_function(tolua_S,"getCapInsetsBarRenderer",lua_ax_ui_Slider_getCapInsetsBarRenderer); + tolua_function(tolua_S,"setCapInsetProgressBarRenderer",lua_ax_ui_Slider_setCapInsetProgressBarRenderer); + tolua_function(tolua_S,"getCapInsetsProgressBarRenderer",lua_ax_ui_Slider_getCapInsetsProgressBarRenderer); + tolua_function(tolua_S,"loadSlidBallTextures",lua_ax_ui_Slider_loadSlidBallTextures); + tolua_function(tolua_S,"loadSlidBallTextureNormal",lua_ax_ui_Slider_loadSlidBallTextureNormal); + tolua_function(tolua_S,"loadSlidBallTexturePressed",lua_ax_ui_Slider_loadSlidBallTexturePressed); tolua_function(tolua_S,"loadSlidBallTextureDisabled",lua_ax_ui_Slider_loadSlidBallTextureDisabled); - tolua_function(tolua_S,"getSlidBallNormalRenderer",lua_ax_ui_Slider_getSlidBallNormalRenderer); + tolua_function(tolua_S,"loadProgressBarTexture",lua_ax_ui_Slider_loadProgressBarTexture); + tolua_function(tolua_S,"setPercent",lua_ax_ui_Slider_setPercent); + tolua_function(tolua_S,"updateVisualSlider",lua_ax_ui_Slider_updateVisualSlider); + tolua_function(tolua_S,"getPercent",lua_ax_ui_Slider_getPercent); + tolua_function(tolua_S,"setMaxPercent",lua_ax_ui_Slider_setMaxPercent); + tolua_function(tolua_S,"getMaxPercent",lua_ax_ui_Slider_getMaxPercent); + tolua_function(tolua_S,"addEventListener",lua_ax_ui_Slider_addEventListener); tolua_function(tolua_S,"setZoomScale",lua_ax_ui_Slider_setZoomScale); - tolua_function(tolua_S,"create", lua_ax_ui_Slider_create); + tolua_function(tolua_S,"getZoomScale",lua_ax_ui_Slider_getZoomScale); + tolua_function(tolua_S,"getSlidBallNormalRenderer",lua_ax_ui_Slider_getSlidBallNormalRenderer); + tolua_function(tolua_S,"getSlidBallPressedRenderer",lua_ax_ui_Slider_getSlidBallPressedRenderer); + tolua_function(tolua_S,"getSlidBallDisabledRenderer",lua_ax_ui_Slider_getSlidBallDisabledRenderer); + tolua_function(tolua_S,"getSlidBallRenderer",lua_ax_ui_Slider_getSlidBallRenderer); + tolua_function(tolua_S,"getBackFile",lua_ax_ui_Slider_getBackFile); + tolua_function(tolua_S,"getProgressBarFile",lua_ax_ui_Slider_getProgressBarFile); + tolua_function(tolua_S,"getBallNormalFile",lua_ax_ui_Slider_getBallNormalFile); + tolua_function(tolua_S,"getBallPressedFile",lua_ax_ui_Slider_getBallPressedFile); + tolua_function(tolua_S,"getBallDisabledFile",lua_ax_ui_Slider_getBallDisabledFile); tolua_function(tolua_S,"createInstance", lua_ax_ui_Slider_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_Slider_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Slider).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Slider"; @@ -21733,7 +21733,7 @@ int lua_register_ax_ui_Slider(lua_State* tolua_S) return 1; } -int lua_ax_ui_TextField_setAttachWithIME(lua_State* tolua_S) +int lua_ax_ui_TextField_setTouchSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -21753,7 +21753,104 @@ int lua_ax_ui_TextField_setAttachWithIME(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setAttachWithIME'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTouchSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.TextField:setTouchSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTouchSize'", nullptr); + return 0; + } + cobj->setTouchSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTouchSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTouchSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getTouchSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTouchSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTouchSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTouchSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTouchSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTouchSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTouchAreaEnabled'", nullptr); return 0; } #endif @@ -21763,22 +21860,368 @@ int lua_ax_ui_TextField_setAttachWithIME(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setAttachWithIME"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setTouchAreaEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setAttachWithIME'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTouchAreaEnabled'", nullptr); return 0; } - cobj->setAttachWithIME(arg0); + cobj->setTouchAreaEnabled(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setAttachWithIME",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTouchAreaEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setAttachWithIME'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTouchAreaEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setPlaceHolder(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPlaceHolder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setPlaceHolder"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPlaceHolder'", nullptr); + return 0; + } + cobj->setPlaceHolder(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPlaceHolder",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPlaceHolder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getPlaceHolder(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPlaceHolder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPlaceHolder'", nullptr); + return 0; + } + auto&& ret = cobj->getPlaceHolder(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPlaceHolder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPlaceHolder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPlaceHolderColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPlaceHolderColor'", nullptr); + return 0; + } + auto&& ret = cobj->getPlaceHolderColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPlaceHolderColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPlaceHolderColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPlaceHolderColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TextField:setPlaceHolderColor"); + + if (!ok) { break; } + cobj->setPlaceHolderColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.TextField:setPlaceHolderColor"); + + if (!ok) { break; } + cobj->setPlaceHolderColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPlaceHolderColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPlaceHolderColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getTextColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextColor'", nullptr); + return 0; + } + auto&& ret = cobj->getTextColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setTextColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color4B arg0; + + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TextField:setTextColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextColor'", nullptr); + return 0; + } + cobj->setTextColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setFontSize'", nullptr); + return 0; + } + cobj->setFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setFontSize'.",&tolua_err); #endif return 0; @@ -21830,6 +22273,200 @@ int lua_ax_ui_TextField_getFontSize(lua_State* tolua_S) return 0; } +int lua_ax_ui_TextField_setFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setFontName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setFontName'", nullptr); + return 0; + } + cobj->setFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getFontName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_didNotSelectSelf(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_didNotSelectSelf'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_didNotSelectSelf'", nullptr); + return 0; + } + cobj->didNotSelectSelf(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:didNotSelectSelf",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_didNotSelectSelf'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setString'", nullptr); + return 0; + } + cobj->setString(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setString'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_TextField_getString(lua_State* tolua_S) { int argc = 0; @@ -21877,6 +22514,344 @@ int lua_ax_ui_TextField_getString(lua_State* tolua_S) return 0; } +int lua_ax_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setMaxLengthEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setMaxLengthEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setMaxLengthEnabled'", nullptr); + return 0; + } + cobj->setMaxLengthEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setMaxLengthEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setMaxLengthEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_isMaxLengthEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_isMaxLengthEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_isMaxLengthEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isMaxLengthEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:isMaxLengthEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_isMaxLengthEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setMaxLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setMaxLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setMaxLength"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setMaxLength'", nullptr); + return 0; + } + cobj->setMaxLength(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setMaxLength",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setMaxLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getMaxLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getMaxLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getMaxLength'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getMaxLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getMaxLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getStringLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getStringLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getStringLength'", nullptr); + return 0; + } + auto&& ret = cobj->getStringLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getStringLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getStringLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setPasswordEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPasswordEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setPasswordEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPasswordEnabled'", nullptr); + return 0; + } + cobj->setPasswordEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPasswordEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPasswordEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_isPasswordEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_isPasswordEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_isPasswordEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isPasswordEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:isPasswordEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_isPasswordEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_TextField_setPasswordStyleText(lua_State* tolua_S) { int argc = 0; @@ -21927,7 +22902,7 @@ int lua_ax_ui_TextField_setPasswordStyleText(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_getDeleteBackward(lua_State* tolua_S) +int lua_ax_ui_TextField_getPasswordStyleText(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -21947,7 +22922,7 @@ int lua_ax_ui_TextField_getDeleteBackward(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getDeleteBackward'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPasswordStyleText'", nullptr); return 0; } #endif @@ -21957,160 +22932,19 @@ int lua_ax_ui_TextField_getDeleteBackward(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getDeleteBackward'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPasswordStyleText'", nullptr); return 0; } - auto&& ret = cobj->getDeleteBackward(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getDeleteBackward",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getDeleteBackward'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getTextColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextColor'", nullptr); - return 0; - } - auto&& ret = cobj->getTextColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_detachWithIME(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_detachWithIME'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_detachWithIME'", nullptr); - return 0; - } - cobj->detachWithIME(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:detachWithIME",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_detachWithIME'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getPlaceHolder(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPlaceHolder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPlaceHolder'", nullptr); - return 0; - } - auto&& ret = cobj->getPlaceHolder(); + auto&& ret = cobj->getPasswordStyleText(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPlaceHolder",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPasswordStyleText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPlaceHolder'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPasswordStyleText'.",&tolua_err); #endif return 0; @@ -22162,7 +22996,7 @@ int lua_ax_ui_TextField_getAttachWithIME(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_setFontName(lua_State* tolua_S) +int lua_ax_ui_TextField_setAttachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -22182,7 +23016,7 @@ int lua_ax_ui_TextField_setFontName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setFontName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setAttachWithIME'", nullptr); return 0; } #endif @@ -22190,24 +23024,121 @@ int lua_ax_ui_TextField_setFontName(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + bool arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setFontName"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setAttachWithIME"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setFontName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setAttachWithIME'", nullptr); return 0; } - cobj->setFontName(arg0); + cobj->setAttachWithIME(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setFontName",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setAttachWithIME",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setFontName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setAttachWithIME'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_getDetachWithIME(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getDetachWithIME'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getDetachWithIME'", nullptr); + return 0; + } + auto&& ret = cobj->getDetachWithIME(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getDetachWithIME",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getDetachWithIME'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setDetachWithIME(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setDetachWithIME'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setDetachWithIME"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setDetachWithIME'", nullptr); + return 0; + } + cobj->setDetachWithIME(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setDetachWithIME",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setDetachWithIME'.",&tolua_err); #endif return 0; @@ -22309,7 +23240,7 @@ int lua_ax_ui_TextField_setInsertText(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_setString(lua_State* tolua_S) +int lua_ax_ui_TextField_getDeleteBackward(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -22329,57 +23260,7 @@ int lua_ax_ui_TextField_setString(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setString'", nullptr); - return 0; - } - cobj->setString(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getDetachWithIME(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getDetachWithIME'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getDeleteBackward'", nullptr); return 0; } #endif @@ -22389,24 +23270,24 @@ int lua_ax_ui_TextField_getDetachWithIME(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getDetachWithIME'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getDeleteBackward'", nullptr); return 0; } - auto&& ret = cobj->getDetachWithIME(); + auto&& ret = cobj->getDeleteBackward(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getDetachWithIME",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getDeleteBackward",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getDetachWithIME'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getDeleteBackward'.",&tolua_err); #endif return 0; } -int lua_ax_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) +int lua_ax_ui_TextField_setDeleteBackward(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -22426,7 +23307,7 @@ int lua_ax_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextVerticalAlignment'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setDeleteBackward'", nullptr); return 0; } #endif @@ -22434,24 +23315,24 @@ int lua_ax_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::TextVAlignment arg0; + bool arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setTextVerticalAlignment"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setDeleteBackward"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextVerticalAlignment'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setDeleteBackward'", nullptr); return 0; } - cobj->setTextVerticalAlignment(arg0); + cobj->setDeleteBackward(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextVerticalAlignment",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setDeleteBackward",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextVerticalAlignment'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setDeleteBackward'.",&tolua_err); #endif return 0; @@ -22510,7 +23391,7 @@ int lua_ax_ui_TextField_addEventListener(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_didNotSelectSelf(lua_State* tolua_S) +int lua_ax_ui_TextField_getAutoRenderSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -22530,7 +23411,7 @@ int lua_ax_ui_TextField_didNotSelectSelf(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_didNotSelectSelf'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getAutoRenderSize'", nullptr); return 0; } #endif @@ -22540,24 +23421,24 @@ int lua_ax_ui_TextField_didNotSelectSelf(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_didNotSelectSelf'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getAutoRenderSize'", nullptr); return 0; } - cobj->didNotSelectSelf(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAutoRenderSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:didNotSelectSelf",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getAutoRenderSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_didNotSelectSelf'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getAutoRenderSize'.",&tolua_err); #endif return 0; } -int lua_ax_ui_TextField_getFontName(lua_State* tolua_S) +int lua_ax_ui_TextField_attachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -22577,7 +23458,7 @@ int lua_ax_ui_TextField_getFontName(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getFontName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_attachWithIME'", nullptr); return 0; } #endif @@ -22587,19 +23468,66 @@ int lua_ax_ui_TextField_getFontName(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getFontName'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_attachWithIME'", nullptr); return 0; } - auto&& ret = cobj->getFontName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); + cobj->attachWithIME(); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getFontName",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:attachWithIME",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getFontName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_attachWithIME'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_detachWithIME(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_detachWithIME'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_detachWithIME'", nullptr); + return 0; + } + cobj->detachWithIME(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:detachWithIME",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_detachWithIME'.",&tolua_err); #endif return 0; @@ -22654,7 +23582,7 @@ int lua_ax_ui_TextField_setTextAreaSize(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_attachWithIME(lua_State* tolua_S) +int lua_ax_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -22674,148 +23602,7 @@ int lua_ax_ui_TextField_attachWithIME(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_attachWithIME'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_attachWithIME'", nullptr); - return 0; - } - cobj->attachWithIME(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:attachWithIME",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_attachWithIME'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getStringLength(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getStringLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getStringLength'", nullptr); - return 0; - } - auto&& ret = cobj->getStringLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getStringLength",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getStringLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getAutoRenderSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getAutoRenderSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getAutoRenderSize'", nullptr); - return 0; - } - auto&& ret = cobj->getAutoRenderSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getAutoRenderSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getAutoRenderSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setPasswordEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPasswordEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'", nullptr); return 0; } #endif @@ -22823,315 +23610,24 @@ int lua_ax_ui_TextField_setPasswordEnabled(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + ax::TextHAlignment arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setPasswordEnabled"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setTextHorizontalAlignment"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPasswordEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'", nullptr); return 0; } - cobj->setPasswordEnabled(arg0); + cobj->setTextHorizontalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPasswordEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextHorizontalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPasswordEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPlaceHolderColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPlaceHolderColor'", nullptr); - return 0; - } - auto&& ret = cobj->getPlaceHolderColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPlaceHolderColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPlaceHolderColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getPasswordStyleText(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPasswordStyleText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPasswordStyleText'", nullptr); - return 0; - } - auto&& ret = cobj->getPasswordStyleText(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPasswordStyleText",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPasswordStyleText'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setMaxLengthEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setMaxLengthEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setMaxLengthEnabled'", nullptr); - return 0; - } - cobj->setMaxLengthEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setMaxLengthEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setMaxLengthEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_isPasswordEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_isPasswordEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_isPasswordEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isPasswordEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:isPasswordEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_isPasswordEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setDeleteBackward(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setDeleteBackward'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setDeleteBackward"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setDeleteBackward'", nullptr); - return 0; - } - cobj->setDeleteBackward(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setDeleteBackward",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setDeleteBackward'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setCursorPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int arg0; - - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axui.TextField:setCursorPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorPosition'", nullptr); - return 0; - } - cobj->setCursorPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorPosition'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'.",&tolua_err); #endif return 0; @@ -23183,7 +23679,7 @@ int lua_ax_ui_TextField_getTextHorizontalAlignment(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_setFontSize(lua_State* tolua_S) +int lua_ax_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -23203,7 +23699,7 @@ int lua_ax_ui_TextField_setFontSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setFontSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextVerticalAlignment'", nullptr); return 0; } #endif @@ -23211,29 +23707,29 @@ int lua_ax_ui_TextField_setFontSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + ax::TextVAlignment arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setFontSize"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setTextVerticalAlignment"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setFontSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextVerticalAlignment'", nullptr); return 0; } - cobj->setFontSize(arg0); + cobj->setTextVerticalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setFontSize",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextVerticalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setFontSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextVerticalAlignment'.",&tolua_err); #endif return 0; } -int lua_ax_ui_TextField_setPlaceHolder(lua_State* tolua_S) +int lua_ax_ui_TextField_getTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; @@ -23253,7 +23749,54 @@ int lua_ax_ui_TextField_setPlaceHolder(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPlaceHolder'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextVerticalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextVerticalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getTextVerticalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextVerticalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextVerticalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setCursorEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorEnabled'", nullptr); return 0; } #endif @@ -23261,24 +23804,74 @@ int lua_ax_ui_TextField_setPlaceHolder(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string_view arg0; + bool arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setPlaceHolder"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setCursorEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPlaceHolder'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorEnabled'", nullptr); return 0; } - cobj->setPlaceHolder(arg0); + cobj->setCursorEnabled(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPlaceHolder",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPlaceHolder'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextField_setCursorChar(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextField* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorChar'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int32_t arg0; + + ok &= luaval_to_int32(tolua_S, 2,&arg0, "axui.TextField:setCursorChar"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorChar'", nullptr); + return 0; + } + cobj->setCursorChar(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorChar",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorChar'.",&tolua_err); #endif return 0; @@ -23336,647 +23929,38 @@ int lua_ax_ui_TextField_setCursorFromPoint(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) +int lua_ax_ui_TextField_createInstance(lua_State* tolua_S) { int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPlaceHolderColor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Color4B arg0; - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TextField:setPlaceHolderColor"); - - if (!ok) { break; } - cobj->setPlaceHolderColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Color3B arg0; - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.TextField:setPlaceHolderColor"); - - if (!ok) { break; } - cobj->setPlaceHolderColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPlaceHolderColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPlaceHolderColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); + argc = lua_gettop(tolua_S) - 1; -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::TextHAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setTextHorizontalAlignment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'", nullptr); - return 0; - } - cobj->setTextHorizontalAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextHorizontalAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setTextColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color4B arg0; - - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TextField:setTextColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextColor'", nullptr); - return 0; - } - cobj->setTextColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setCursorChar(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorChar'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int32_t arg0; - - ok &= luaval_to_int32(tolua_S, 2,&arg0, "axui.TextField:setCursorChar"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorChar'", nullptr); - return 0; - } - cobj->setCursorChar(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorChar",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorChar'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getMaxLength(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getMaxLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getMaxLength'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_createInstance'", nullptr); return 0; } - auto&& ret = cobj->getMaxLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = ax::ui::TextField::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getMaxLength",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextField:createInstance",argc, 0); return 0; - #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getMaxLength'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_createInstance'.",&tolua_err); #endif - - return 0; -} -int lua_ax_ui_TextField_isMaxLengthEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_isMaxLengthEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_isMaxLengthEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isMaxLengthEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:isMaxLengthEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_isMaxLengthEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setDetachWithIME(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setDetachWithIME'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setDetachWithIME"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setDetachWithIME'", nullptr); - return 0; - } - cobj->setDetachWithIME(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setDetachWithIME",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setDetachWithIME'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getTextVerticalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextVerticalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextVerticalAlignment'", nullptr); - return 0; - } - int ret = (int)cobj->getTextVerticalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextVerticalAlignment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextVerticalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTouchAreaEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setTouchAreaEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTouchAreaEnabled'", nullptr); - return 0; - } - cobj->setTouchAreaEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTouchAreaEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTouchAreaEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setMaxLength(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setMaxLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setMaxLength"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setMaxLength'", nullptr); - return 0; - } - cobj->setMaxLength(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setMaxLength",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setMaxLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setCursorEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setCursorEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorEnabled'", nullptr); - return 0; - } - cobj->setCursorEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_setTouchSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTouchSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.TextField:setTouchSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTouchSize'", nullptr); - return 0; - } - cobj->setTouchSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTouchSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTouchSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextField_getTouchSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextField* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTouchSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTouchSize'", nullptr); - return 0; - } - auto&& ret = cobj->getTouchSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTouchSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTouchSize'.",&tolua_err); -#endif - return 0; } int lua_ax_ui_TextField_create(lua_State* tolua_S) @@ -24030,40 +24014,6 @@ int lua_ax_ui_TextField_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_TextField_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::TextField::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextField:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_TextField_constructor(lua_State* tolua_S) { int argc = 0; @@ -24114,54 +24064,53 @@ int lua_register_ax_ui_TextField(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextField"); tolua_function(tolua_S,"new",lua_ax_ui_TextField_constructor); - tolua_function(tolua_S,"setAttachWithIME",lua_ax_ui_TextField_setAttachWithIME); - tolua_function(tolua_S,"getFontSize",lua_ax_ui_TextField_getFontSize); - tolua_function(tolua_S,"getString",lua_ax_ui_TextField_getString); - tolua_function(tolua_S,"setPasswordStyleText",lua_ax_ui_TextField_setPasswordStyleText); - tolua_function(tolua_S,"getDeleteBackward",lua_ax_ui_TextField_getDeleteBackward); - tolua_function(tolua_S,"getTextColor",lua_ax_ui_TextField_getTextColor); - tolua_function(tolua_S,"detachWithIME",lua_ax_ui_TextField_detachWithIME); - tolua_function(tolua_S,"getPlaceHolder",lua_ax_ui_TextField_getPlaceHolder); - tolua_function(tolua_S,"getAttachWithIME",lua_ax_ui_TextField_getAttachWithIME); - tolua_function(tolua_S,"setFontName",lua_ax_ui_TextField_setFontName); - tolua_function(tolua_S,"getInsertText",lua_ax_ui_TextField_getInsertText); - tolua_function(tolua_S,"setInsertText",lua_ax_ui_TextField_setInsertText); - tolua_function(tolua_S,"setString",lua_ax_ui_TextField_setString); - tolua_function(tolua_S,"getDetachWithIME",lua_ax_ui_TextField_getDetachWithIME); - tolua_function(tolua_S,"setTextVerticalAlignment",lua_ax_ui_TextField_setTextVerticalAlignment); - tolua_function(tolua_S,"addEventListener",lua_ax_ui_TextField_addEventListener); - tolua_function(tolua_S,"didNotSelectSelf",lua_ax_ui_TextField_didNotSelectSelf); - tolua_function(tolua_S,"getFontName",lua_ax_ui_TextField_getFontName); - tolua_function(tolua_S,"setTextAreaSize",lua_ax_ui_TextField_setTextAreaSize); - tolua_function(tolua_S,"attachWithIME",lua_ax_ui_TextField_attachWithIME); - tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextField_getStringLength); - tolua_function(tolua_S,"getAutoRenderSize",lua_ax_ui_TextField_getAutoRenderSize); - tolua_function(tolua_S,"setPasswordEnabled",lua_ax_ui_TextField_setPasswordEnabled); - tolua_function(tolua_S,"getPlaceHolderColor",lua_ax_ui_TextField_getPlaceHolderColor); - tolua_function(tolua_S,"getPasswordStyleText",lua_ax_ui_TextField_getPasswordStyleText); - tolua_function(tolua_S,"setMaxLengthEnabled",lua_ax_ui_TextField_setMaxLengthEnabled); - tolua_function(tolua_S,"isPasswordEnabled",lua_ax_ui_TextField_isPasswordEnabled); - tolua_function(tolua_S,"setDeleteBackward",lua_ax_ui_TextField_setDeleteBackward); - tolua_function(tolua_S,"setCursorPosition",lua_ax_ui_TextField_setCursorPosition); - tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_TextField_getTextHorizontalAlignment); - tolua_function(tolua_S,"setFontSize",lua_ax_ui_TextField_setFontSize); - tolua_function(tolua_S,"setPlaceHolder",lua_ax_ui_TextField_setPlaceHolder); - tolua_function(tolua_S,"setCursorFromPoint",lua_ax_ui_TextField_setCursorFromPoint); - tolua_function(tolua_S,"setPlaceHolderColor",lua_ax_ui_TextField_setPlaceHolderColor); - tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_TextField_setTextHorizontalAlignment); - tolua_function(tolua_S,"setTextColor",lua_ax_ui_TextField_setTextColor); - tolua_function(tolua_S,"setCursorChar",lua_ax_ui_TextField_setCursorChar); - tolua_function(tolua_S,"getMaxLength",lua_ax_ui_TextField_getMaxLength); - tolua_function(tolua_S,"isMaxLengthEnabled",lua_ax_ui_TextField_isMaxLengthEnabled); - tolua_function(tolua_S,"setDetachWithIME",lua_ax_ui_TextField_setDetachWithIME); - tolua_function(tolua_S,"getTextVerticalAlignment",lua_ax_ui_TextField_getTextVerticalAlignment); - tolua_function(tolua_S,"setTouchAreaEnabled",lua_ax_ui_TextField_setTouchAreaEnabled); - tolua_function(tolua_S,"setMaxLength",lua_ax_ui_TextField_setMaxLength); - tolua_function(tolua_S,"setCursorEnabled",lua_ax_ui_TextField_setCursorEnabled); tolua_function(tolua_S,"setTouchSize",lua_ax_ui_TextField_setTouchSize); tolua_function(tolua_S,"getTouchSize",lua_ax_ui_TextField_getTouchSize); - tolua_function(tolua_S,"create", lua_ax_ui_TextField_create); + tolua_function(tolua_S,"setTouchAreaEnabled",lua_ax_ui_TextField_setTouchAreaEnabled); + tolua_function(tolua_S,"setPlaceHolder",lua_ax_ui_TextField_setPlaceHolder); + tolua_function(tolua_S,"getPlaceHolder",lua_ax_ui_TextField_getPlaceHolder); + tolua_function(tolua_S,"getPlaceHolderColor",lua_ax_ui_TextField_getPlaceHolderColor); + tolua_function(tolua_S,"setPlaceHolderColor",lua_ax_ui_TextField_setPlaceHolderColor); + tolua_function(tolua_S,"getTextColor",lua_ax_ui_TextField_getTextColor); + tolua_function(tolua_S,"setTextColor",lua_ax_ui_TextField_setTextColor); + tolua_function(tolua_S,"setFontSize",lua_ax_ui_TextField_setFontSize); + tolua_function(tolua_S,"getFontSize",lua_ax_ui_TextField_getFontSize); + tolua_function(tolua_S,"setFontName",lua_ax_ui_TextField_setFontName); + tolua_function(tolua_S,"getFontName",lua_ax_ui_TextField_getFontName); + tolua_function(tolua_S,"didNotSelectSelf",lua_ax_ui_TextField_didNotSelectSelf); + tolua_function(tolua_S,"setString",lua_ax_ui_TextField_setString); + tolua_function(tolua_S,"getString",lua_ax_ui_TextField_getString); + tolua_function(tolua_S,"setMaxLengthEnabled",lua_ax_ui_TextField_setMaxLengthEnabled); + tolua_function(tolua_S,"isMaxLengthEnabled",lua_ax_ui_TextField_isMaxLengthEnabled); + tolua_function(tolua_S,"setMaxLength",lua_ax_ui_TextField_setMaxLength); + tolua_function(tolua_S,"getMaxLength",lua_ax_ui_TextField_getMaxLength); + tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextField_getStringLength); + tolua_function(tolua_S,"setPasswordEnabled",lua_ax_ui_TextField_setPasswordEnabled); + tolua_function(tolua_S,"isPasswordEnabled",lua_ax_ui_TextField_isPasswordEnabled); + tolua_function(tolua_S,"setPasswordStyleText",lua_ax_ui_TextField_setPasswordStyleText); + tolua_function(tolua_S,"getPasswordStyleText",lua_ax_ui_TextField_getPasswordStyleText); + tolua_function(tolua_S,"getAttachWithIME",lua_ax_ui_TextField_getAttachWithIME); + tolua_function(tolua_S,"setAttachWithIME",lua_ax_ui_TextField_setAttachWithIME); + tolua_function(tolua_S,"getDetachWithIME",lua_ax_ui_TextField_getDetachWithIME); + tolua_function(tolua_S,"setDetachWithIME",lua_ax_ui_TextField_setDetachWithIME); + tolua_function(tolua_S,"getInsertText",lua_ax_ui_TextField_getInsertText); + tolua_function(tolua_S,"setInsertText",lua_ax_ui_TextField_setInsertText); + tolua_function(tolua_S,"getDeleteBackward",lua_ax_ui_TextField_getDeleteBackward); + tolua_function(tolua_S,"setDeleteBackward",lua_ax_ui_TextField_setDeleteBackward); + tolua_function(tolua_S,"addEventListener",lua_ax_ui_TextField_addEventListener); + tolua_function(tolua_S,"getAutoRenderSize",lua_ax_ui_TextField_getAutoRenderSize); + tolua_function(tolua_S,"attachWithIME",lua_ax_ui_TextField_attachWithIME); + tolua_function(tolua_S,"detachWithIME",lua_ax_ui_TextField_detachWithIME); + tolua_function(tolua_S,"setTextAreaSize",lua_ax_ui_TextField_setTextAreaSize); + tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_TextField_setTextHorizontalAlignment); + tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_TextField_getTextHorizontalAlignment); + tolua_function(tolua_S,"setTextVerticalAlignment",lua_ax_ui_TextField_setTextVerticalAlignment); + tolua_function(tolua_S,"getTextVerticalAlignment",lua_ax_ui_TextField_getTextVerticalAlignment); + tolua_function(tolua_S,"setCursorEnabled",lua_ax_ui_TextField_setCursorEnabled); + tolua_function(tolua_S,"setCursorChar",lua_ax_ui_TextField_setCursorChar); + tolua_function(tolua_S,"setCursorFromPoint",lua_ax_ui_TextField_setCursorFromPoint); tolua_function(tolua_S,"createInstance", lua_ax_ui_TextField_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_TextField_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TextField).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TextField"; @@ -24169,7 +24118,7 @@ int lua_register_ax_ui_TextField(lua_State* tolua_S) return 1; } -int lua_ax_ui_TextBMFont_getStringLength(lua_State* tolua_S) +int lua_ax_ui_TextBMFont_setFntFile(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; @@ -24189,76 +24138,32 @@ int lua_ax_ui_TextBMFont_getStringLength(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getStringLength'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_setFntFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextBMFont:setFntFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getStringLength'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_setFntFile'", nullptr); return 0; } - auto&& ret = cobj->getStringLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setFntFile(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getStringLength",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:setFntFile",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getStringLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TextBMFont_getString(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextBMFont* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getString'", nullptr); - return 0; - } - auto&& ret = cobj->getString(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getString",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getString'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_setFntFile'.",&tolua_err); #endif return 0; @@ -24313,6 +24218,100 @@ int lua_ax_ui_TextBMFont_setString(lua_State* tolua_S) return 0; } +int lua_ax_ui_TextBMFont_getString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextBMFont* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getString'", nullptr); + return 0; + } + auto&& ret = cobj->getString(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getString",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TextBMFont_getStringLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TextBMFont* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getStringLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getStringLength'", nullptr); + return 0; + } + auto&& ret = cobj->getStringLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getStringLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getStringLength'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_TextBMFont_getRenderFile(lua_State* tolua_S) { int argc = 0; @@ -24360,56 +24359,6 @@ int lua_ax_ui_TextBMFont_getRenderFile(lua_State* tolua_S) return 0; } -int lua_ax_ui_TextBMFont_setFntFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TextBMFont* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_setFntFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextBMFont:setFntFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_setFntFile'", nullptr); - return 0; - } - cobj->setFntFile(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:setFntFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_setFntFile'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_TextBMFont_resetRender(lua_State* tolua_S) { int argc = 0; @@ -24457,6 +24406,40 @@ int lua_ax_ui_TextBMFont_resetRender(lua_State* tolua_S) return 0; } +int lua_ax_ui_TextBMFont_createInstance(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_createInstance'", nullptr); + return 0; + } + auto&& ret = ax::ui::TextBMFont::createInstance(); + object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextBMFont:createInstance",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_createInstance'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_TextBMFont_create(lua_State* tolua_S) { int argc = 0; @@ -24505,40 +24488,6 @@ int lua_ax_ui_TextBMFont_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_TextBMFont_createInstance(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_createInstance'", nullptr); - return 0; - } - auto&& ret = ax::ui::TextBMFont::createInstance(); - object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextBMFont:createInstance",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_createInstance'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_TextBMFont_constructor(lua_State* tolua_S) { int argc = 0; @@ -24589,14 +24538,14 @@ int lua_register_ax_ui_TextBMFont(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextBMFont"); tolua_function(tolua_S,"new",lua_ax_ui_TextBMFont_constructor); - tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextBMFont_getStringLength); - tolua_function(tolua_S,"getString",lua_ax_ui_TextBMFont_getString); - tolua_function(tolua_S,"setString",lua_ax_ui_TextBMFont_setString); - tolua_function(tolua_S,"getRenderFile",lua_ax_ui_TextBMFont_getRenderFile); tolua_function(tolua_S,"setFntFile",lua_ax_ui_TextBMFont_setFntFile); + tolua_function(tolua_S,"setString",lua_ax_ui_TextBMFont_setString); + tolua_function(tolua_S,"getString",lua_ax_ui_TextBMFont_getString); + tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextBMFont_getStringLength); + tolua_function(tolua_S,"getRenderFile",lua_ax_ui_TextBMFont_getRenderFile); tolua_function(tolua_S,"resetRender",lua_ax_ui_TextBMFont_resetRender); - tolua_function(tolua_S,"create", lua_ax_ui_TextBMFont_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_TextBMFont_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_TextBMFont_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TextBMFont).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TextBMFont"; @@ -24604,7 +24553,7 @@ int lua_register_ax_ui_TextBMFont(lua_State* tolua_S) return 1; } -int lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) +int lua_ax_ui_PageView_addPage(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -24624,7 +24573,7 @@ int lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_addPage'", nullptr); return 0; } #endif @@ -24632,24 +24581,24 @@ int lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + ax::ui::Widget* arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setIndicatorSpaceBetweenIndexNodes"); + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:addPage"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_addPage'", nullptr); return 0; } - cobj->setIndicatorSpaceBetweenIndexNodes(arg0); + cobj->addPage(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSpaceBetweenIndexNodes",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:addPage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_addPage'.",&tolua_err); #endif return 0; @@ -24707,7 +24656,7 @@ int lua_ax_ui_PageView_insertPage(lua_State* tolua_S) return 0; } -int lua_ax_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) +int lua_ax_ui_PageView_removePage(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -24727,7 +24676,7 @@ int lua_ax_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removePage'", nullptr); return 0; } #endif @@ -24735,29 +24684,29 @@ int lua_ax_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - uint16_t arg0; + ax::ui::Widget* arg0; - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesOpacity"); + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:removePage"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removePage'", nullptr); return 0; } - cobj->setIndicatorIndexNodesOpacity(arg0); + cobj->removePage(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesOpacity",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removePage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removePage'.",&tolua_err); #endif return 0; } -int lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S) +int lua_ax_ui_PageView_removePageAtIndex(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -24777,7 +24726,7 @@ int lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removePageAtIndex'", nullptr); return 0; } #endif @@ -24785,24 +24734,24 @@ int lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - uint16_t arg0; + ssize_t arg0; - ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.PageView:setIndicatorSelectedIndexOpacity"); + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:removePageAtIndex"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removePageAtIndex'", nullptr); return 0; } - cobj->setIndicatorSelectedIndexOpacity(arg0); + cobj->removePageAtIndex(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSelectedIndexOpacity",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removePageAtIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removePageAtIndex'.",&tolua_err); #endif return 0; @@ -24854,595 +24803,6 @@ int lua_ax_ui_PageView_removeAllPages(lua_State* tolua_S) return 0; } -int lua_ax_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setAutoScrollStopEpsilon"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'", nullptr); - return 0; - } - cobj->setAutoScrollStopEpsilon(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setAutoScrollStopEpsilon",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'", nullptr); - return 0; - } - cobj->setIndicatorIndexNodesScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesScale",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_setIndicatorEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.PageView:setIndicatorEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorEnabled'", nullptr); - return 0; - } - cobj->setIndicatorEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.PageView:setIndicatorSelectedIndexColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'", nullptr); - return 0; - } - cobj->setIndicatorSelectedIndexColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSelectedIndexColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_addEventListener(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_addEventListener'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::function arg0; - - do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_addEventListener'", nullptr); - return 0; - } - cobj->addEventListener(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:addEventListener",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_addEventListener'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getIndicatorPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_setCurrentPageIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setCurrentPageIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:setCurrentPageIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setCurrentPageIndex'", nullptr); - return 0; - } - cobj->setCurrentPageIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setCurrentPageIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setCurrentPageIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'", nullptr); - return 0; - } - auto&& ret = cobj->getIndicatorIndexNodesColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); - return 0; - } - auto&& ret = cobj->getIndicatorSelectedIndexColor(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSelectedIndexColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'", nullptr); - return 0; - } - auto&& ret = cobj->getIndicatorIndexNodesScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesScale",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_setIndicatorPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.PageView:setIndicatorPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorPosition'", nullptr); - return 0; - } - cobj->setIndicatorPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'", nullptr); - return 0; - } - auto&& ret = cobj->getIndicatorSelectedIndexOpacity(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSelectedIndexOpacity",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_PageView_scrollToPage(lua_State* tolua_S) { int argc = 0; @@ -25502,56 +24862,6 @@ int lua_ax_ui_PageView_scrollToPage(lua_State* tolua_S) return 0; } -int lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.PageView:setIndicatorPositionAsAnchorPoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'", nullptr); - return 0; - } - cobj->setIndicatorPositionAsAnchorPoint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorPositionAsAnchorPoint",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_PageView_scrollToItem(lua_State* tolua_S) { int argc = 0; @@ -25611,7 +24921,7 @@ int lua_ax_ui_PageView_scrollToItem(lua_State* tolua_S) return 0; } -int lua_ax_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) +int lua_ax_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -25631,57 +24941,7 @@ int lua_ax_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.PageView:setIndicatorIndexNodesColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'", nullptr); - return 0; - } - cobj->setIndicatorIndexNodesColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getCurrentPageIndex'", nullptr); return 0; } #endif @@ -25691,19 +24951,270 @@ int lua_ax_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getCurrentPageIndex'", nullptr); return 0; } - auto&& ret = cobj->getIndicatorIndexNodesOpacity(); + auto&& ret = cobj->getCurrentPageIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesOpacity",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getCurrentPageIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getCurrentPageIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setCurrentPageIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setCurrentPageIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ssize_t arg0; + + ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:setCurrentPageIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setCurrentPageIndex'", nullptr); + return 0; + } + cobj->setCurrentPageIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setCurrentPageIndex",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setCurrentPageIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_addEventListener(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_addEventListener'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_addEventListener'", nullptr); + return 0; + } + cobj->addEventListener(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:addEventListener",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_addEventListener'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.PageView:setIndicatorEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorEnabled'", nullptr); + return 0; + } + cobj->setIndicatorEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->getIndicatorEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.PageView:setIndicatorPositionAsAnchorPoint"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'", nullptr); + return 0; + } + cobj->setIndicatorPositionAsAnchorPoint(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorPositionAsAnchorPoint",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'.",&tolua_err); #endif return 0; @@ -25755,7 +25266,7 @@ int lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint(lua_State* tolua_S) return 0; } -int lua_ax_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) +int lua_ax_ui_PageView_setIndicatorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -25775,7 +25286,57 @@ int lua_ax_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getCurrentPageIndex'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.PageView:setIndicatorPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorPosition'", nullptr); + return 0; + } + cobj->setIndicatorPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorPosition'", nullptr); return 0; } #endif @@ -25785,24 +25346,24 @@ int lua_ax_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getCurrentPageIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorPosition'", nullptr); return 0; } - auto&& ret = cobj->getCurrentPageIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getIndicatorPosition(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getCurrentPageIndex",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getCurrentPageIndex'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorPosition'.",&tolua_err); #endif return 0; } -int lua_ax_ui_PageView_removePage(lua_State* tolua_S) +int lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -25822,7 +25383,7 @@ int lua_ax_ui_PageView_removePage(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removePage'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'", nullptr); return 0; } #endif @@ -25830,24 +25391,509 @@ int lua_ax_ui_PageView_removePage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::ui::Widget* arg0; + double arg0; - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:removePage"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setIndicatorSpaceBetweenIndexNodes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removePage'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'", nullptr); return 0; } - cobj->removePage(arg0); + cobj->setIndicatorSpaceBetweenIndexNodes(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removePage",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSpaceBetweenIndexNodes",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removePage'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'", nullptr); + return 0; + } + auto&& ret = cobj->getIndicatorSpaceBetweenIndexNodes(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSpaceBetweenIndexNodes",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.PageView:setIndicatorSelectedIndexColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'", nullptr); + return 0; + } + cobj->setIndicatorSelectedIndexColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSelectedIndexColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); + return 0; + } + auto&& ret = cobj->getIndicatorSelectedIndexColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSelectedIndexColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.PageView:setIndicatorIndexNodesColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'", nullptr); + return 0; + } + cobj->setIndicatorIndexNodesColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'", nullptr); + return 0; + } + auto&& ret = cobj->getIndicatorIndexNodesColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.PageView:setIndicatorSelectedIndexOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'", nullptr); + return 0; + } + cobj->setIndicatorSelectedIndexOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSelectedIndexOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getIndicatorSelectedIndexOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSelectedIndexOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesOpacity"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'", nullptr); + return 0; + } + cobj->setIndicatorIndexNodesOpacity(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesOpacity",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'", nullptr); + return 0; + } + auto&& ret = cobj->getIndicatorIndexNodesOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesOpacity",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::PageView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesScale"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'", nullptr); + return 0; + } + cobj->setIndicatorIndexNodesScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesScale",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'.",&tolua_err); #endif return 0; @@ -25919,7 +25965,7 @@ int lua_ax_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S) return 0; } -int lua_ax_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) +int lua_ax_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -25939,7 +25985,7 @@ int lua_ax_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'", nullptr); return 0; } #endif @@ -25949,121 +25995,24 @@ int lua_ax_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'", nullptr); return 0; } - auto&& ret = cobj->getIndicatorEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_removePageAtIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removePageAtIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ssize_t arg0; - - ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:removePageAtIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removePageAtIndex'", nullptr); - return 0; - } - cobj->removePageAtIndex(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removePageAtIndex",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removePageAtIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::PageView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'", nullptr); - return 0; - } - auto&& ret = cobj->getIndicatorSpaceBetweenIndexNodes(); + auto&& ret = cobj->getIndicatorIndexNodesScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSpaceBetweenIndexNodes",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesScale",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'.",&tolua_err); #endif return 0; } -int lua_ax_ui_PageView_addPage(lua_State* tolua_S) +int lua_ax_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; @@ -26083,7 +26032,7 @@ int lua_ax_ui_PageView_addPage(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_addPage'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'", nullptr); return 0; } #endif @@ -26091,62 +26040,28 @@ int lua_ax_ui_PageView_addPage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::ui::Widget* arg0; + double arg0; - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:addPage"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setAutoScrollStopEpsilon"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_addPage'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'", nullptr); return 0; } - cobj->addPage(arg0); + cobj->setAutoScrollStopEpsilon(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:addPage",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setAutoScrollStopEpsilon",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_addPage'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'.",&tolua_err); #endif return 0; } -int lua_ax_ui_PageView_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_create'", nullptr); - return 0; - } - auto&& ret = ax::ui::PageView::create(); - object_to_luaval(tolua_S, "axui.PageView",(ax::ui::PageView*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.PageView:create",argc, 0); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_create'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_PageView_createInstance(lua_State* tolua_S) { int argc = 0; @@ -26181,6 +26096,40 @@ int lua_ax_ui_PageView_createInstance(lua_State* tolua_S) #endif return 0; } +int lua_ax_ui_PageView_create(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_create'", nullptr); + return 0; + } + auto&& ret = ax::ui::PageView::create(); + object_to_luaval(tolua_S, "axui.PageView",(ax::ui::PageView*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.PageView:create",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_create'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_PageView_constructor(lua_State* tolua_S) { int argc = 0; @@ -26231,38 +26180,38 @@ int lua_register_ax_ui_PageView(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PageView"); tolua_function(tolua_S,"new",lua_ax_ui_PageView_constructor); - tolua_function(tolua_S,"setIndicatorSpaceBetweenIndexNodes",lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes); - tolua_function(tolua_S,"insertPage",lua_ax_ui_PageView_insertPage); - tolua_function(tolua_S,"setIndicatorIndexNodesOpacity",lua_ax_ui_PageView_setIndicatorIndexNodesOpacity); - tolua_function(tolua_S,"setIndicatorSelectedIndexOpacity",lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity); - tolua_function(tolua_S,"removeAllPages",lua_ax_ui_PageView_removeAllPages); - tolua_function(tolua_S,"setAutoScrollStopEpsilon",lua_ax_ui_PageView_setAutoScrollStopEpsilon); - tolua_function(tolua_S,"setIndicatorIndexNodesScale",lua_ax_ui_PageView_setIndicatorIndexNodesScale); - tolua_function(tolua_S,"setIndicatorEnabled",lua_ax_ui_PageView_setIndicatorEnabled); - tolua_function(tolua_S,"setIndicatorSelectedIndexColor",lua_ax_ui_PageView_setIndicatorSelectedIndexColor); - tolua_function(tolua_S,"addEventListener",lua_ax_ui_PageView_addEventListener); - tolua_function(tolua_S,"getIndicatorPosition",lua_ax_ui_PageView_getIndicatorPosition); - tolua_function(tolua_S,"setCurrentPageIndex",lua_ax_ui_PageView_setCurrentPageIndex); - tolua_function(tolua_S,"getIndicatorIndexNodesColor",lua_ax_ui_PageView_getIndicatorIndexNodesColor); - tolua_function(tolua_S,"getIndicatorSelectedIndexColor",lua_ax_ui_PageView_getIndicatorSelectedIndexColor); - tolua_function(tolua_S,"getIndicatorIndexNodesScale",lua_ax_ui_PageView_getIndicatorIndexNodesScale); - tolua_function(tolua_S,"setIndicatorPosition",lua_ax_ui_PageView_setIndicatorPosition); - tolua_function(tolua_S,"getIndicatorSelectedIndexOpacity",lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity); - tolua_function(tolua_S,"scrollToPage",lua_ax_ui_PageView_scrollToPage); - tolua_function(tolua_S,"setIndicatorPositionAsAnchorPoint",lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint); - tolua_function(tolua_S,"scrollToItem",lua_ax_ui_PageView_scrollToItem); - tolua_function(tolua_S,"setIndicatorIndexNodesColor",lua_ax_ui_PageView_setIndicatorIndexNodesColor); - tolua_function(tolua_S,"getIndicatorIndexNodesOpacity",lua_ax_ui_PageView_getIndicatorIndexNodesOpacity); - tolua_function(tolua_S,"getIndicatorPositionAsAnchorPoint",lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint); - tolua_function(tolua_S,"getCurrentPageIndex",lua_ax_ui_PageView_getCurrentPageIndex); - tolua_function(tolua_S,"removePage",lua_ax_ui_PageView_removePage); - tolua_function(tolua_S,"setIndicatorIndexNodesTexture",lua_ax_ui_PageView_setIndicatorIndexNodesTexture); - tolua_function(tolua_S,"getIndicatorEnabled",lua_ax_ui_PageView_getIndicatorEnabled); - tolua_function(tolua_S,"removePageAtIndex",lua_ax_ui_PageView_removePageAtIndex); - tolua_function(tolua_S,"getIndicatorSpaceBetweenIndexNodes",lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes); tolua_function(tolua_S,"addPage",lua_ax_ui_PageView_addPage); - tolua_function(tolua_S,"create", lua_ax_ui_PageView_create); + tolua_function(tolua_S,"insertPage",lua_ax_ui_PageView_insertPage); + tolua_function(tolua_S,"removePage",lua_ax_ui_PageView_removePage); + tolua_function(tolua_S,"removePageAtIndex",lua_ax_ui_PageView_removePageAtIndex); + tolua_function(tolua_S,"removeAllPages",lua_ax_ui_PageView_removeAllPages); + tolua_function(tolua_S,"scrollToPage",lua_ax_ui_PageView_scrollToPage); + tolua_function(tolua_S,"scrollToItem",lua_ax_ui_PageView_scrollToItem); + tolua_function(tolua_S,"getCurrentPageIndex",lua_ax_ui_PageView_getCurrentPageIndex); + tolua_function(tolua_S,"setCurrentPageIndex",lua_ax_ui_PageView_setCurrentPageIndex); + tolua_function(tolua_S,"addEventListener",lua_ax_ui_PageView_addEventListener); + tolua_function(tolua_S,"setIndicatorEnabled",lua_ax_ui_PageView_setIndicatorEnabled); + tolua_function(tolua_S,"getIndicatorEnabled",lua_ax_ui_PageView_getIndicatorEnabled); + tolua_function(tolua_S,"setIndicatorPositionAsAnchorPoint",lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint); + tolua_function(tolua_S,"getIndicatorPositionAsAnchorPoint",lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint); + tolua_function(tolua_S,"setIndicatorPosition",lua_ax_ui_PageView_setIndicatorPosition); + tolua_function(tolua_S,"getIndicatorPosition",lua_ax_ui_PageView_getIndicatorPosition); + tolua_function(tolua_S,"setIndicatorSpaceBetweenIndexNodes",lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes); + tolua_function(tolua_S,"getIndicatorSpaceBetweenIndexNodes",lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes); + tolua_function(tolua_S,"setIndicatorSelectedIndexColor",lua_ax_ui_PageView_setIndicatorSelectedIndexColor); + tolua_function(tolua_S,"getIndicatorSelectedIndexColor",lua_ax_ui_PageView_getIndicatorSelectedIndexColor); + tolua_function(tolua_S,"setIndicatorIndexNodesColor",lua_ax_ui_PageView_setIndicatorIndexNodesColor); + tolua_function(tolua_S,"getIndicatorIndexNodesColor",lua_ax_ui_PageView_getIndicatorIndexNodesColor); + tolua_function(tolua_S,"setIndicatorSelectedIndexOpacity",lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity); + tolua_function(tolua_S,"getIndicatorSelectedIndexOpacity",lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity); + tolua_function(tolua_S,"setIndicatorIndexNodesOpacity",lua_ax_ui_PageView_setIndicatorIndexNodesOpacity); + tolua_function(tolua_S,"getIndicatorIndexNodesOpacity",lua_ax_ui_PageView_getIndicatorIndexNodesOpacity); + tolua_function(tolua_S,"setIndicatorIndexNodesScale",lua_ax_ui_PageView_setIndicatorIndexNodesScale); + tolua_function(tolua_S,"setIndicatorIndexNodesTexture",lua_ax_ui_PageView_setIndicatorIndexNodesTexture); + tolua_function(tolua_S,"getIndicatorIndexNodesScale",lua_ax_ui_PageView_getIndicatorIndexNodesScale); + tolua_function(tolua_S,"setAutoScrollStopEpsilon",lua_ax_ui_PageView_setAutoScrollStopEpsilon); tolua_function(tolua_S,"createInstance", lua_ax_ui_PageView_createInstance); + tolua_function(tolua_S,"create", lua_ax_ui_PageView_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::PageView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.PageView"; @@ -26270,119 +26219,7 @@ int lua_register_ax_ui_PageView(lua_State* tolua_S) return 1; } -int lua_ax_ui_Helper_getSubStringOfUTF8String(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 3) - { - std::string_view arg0; - unsigned int arg1; - unsigned int arg2; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Helper:getSubStringOfUTF8String"); - ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axui.Helper:getSubStringOfUTF8String"); - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axui.Helper:getSubStringOfUTF8String"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_getSubStringOfUTF8String'", nullptr); - return 0; - } - auto&& ret = ax::ui::Helper::getSubStringOfUTF8String(arg0, arg1, arg2); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:getSubStringOfUTF8String",argc, 3); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_getSubStringOfUTF8String'.",&tolua_err); -#endif - return 0; -} -int lua_ax_ui_Helper_convertBoundingBoxToScreen(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - ax::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.Helper:convertBoundingBoxToScreen"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_convertBoundingBoxToScreen'", nullptr); - return 0; - } - auto&& ret = ax::ui::Helper::convertBoundingBoxToScreen(arg0); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:convertBoundingBoxToScreen",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_convertBoundingBoxToScreen'.",&tolua_err); -#endif - return 0; -} -int lua_ax_ui_Helper_changeLayoutSystemActiveState(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 1) - { - bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Helper:changeLayoutSystemActiveState"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_changeLayoutSystemActiveState'", nullptr); - return 0; - } - ax::ui::Helper::changeLayoutSystemActiveState(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:changeLayoutSystemActiveState",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_changeLayoutSystemActiveState'.",&tolua_err); -#endif - return 0; -} -int lua_ax_ui_Helper_seekActionWidgetByActionTag(lua_State* tolua_S) +int lua_ax_ui_Helper_seekWidgetByTag(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -26401,22 +26238,22 @@ int lua_ax_ui_Helper_seekActionWidgetByActionTag(lua_State* tolua_S) { ax::ui::Widget* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekActionWidgetByActionTag"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Helper:seekActionWidgetByActionTag"); + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekWidgetByTag"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Helper:seekWidgetByTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekActionWidgetByActionTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekWidgetByTag'", nullptr); return 0; } - auto&& ret = ax::ui::Helper::seekActionWidgetByActionTag(arg0, arg1); + auto&& ret = ax::ui::Helper::seekWidgetByTag(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekActionWidgetByActionTag",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekWidgetByTag",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekActionWidgetByActionTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekWidgetByTag'.",&tolua_err); #endif return 0; } @@ -26458,7 +26295,7 @@ int lua_ax_ui_Helper_seekWidgetByName(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Helper_seekWidgetByTag(lua_State* tolua_S) +int lua_ax_ui_Helper_seekActionWidgetByActionTag(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -26477,22 +26314,134 @@ int lua_ax_ui_Helper_seekWidgetByTag(lua_State* tolua_S) { ax::ui::Widget* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekWidgetByTag"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Helper:seekWidgetByTag"); + ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekActionWidgetByActionTag"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Helper:seekActionWidgetByActionTag"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekWidgetByTag'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekActionWidgetByActionTag'", nullptr); return 0; } - auto&& ret = ax::ui::Helper::seekWidgetByTag(arg0, arg1); + auto&& ret = ax::ui::Helper::seekActionWidgetByActionTag(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekWidgetByTag",argc, 2); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekActionWidgetByActionTag",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekWidgetByTag'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekActionWidgetByActionTag'.",&tolua_err); +#endif + return 0; +} +int lua_ax_ui_Helper_getSubStringOfUTF8String(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 3) + { + std::string_view arg0; + unsigned int arg1; + unsigned int arg2; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Helper:getSubStringOfUTF8String"); + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axui.Helper:getSubStringOfUTF8String"); + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axui.Helper:getSubStringOfUTF8String"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_getSubStringOfUTF8String'", nullptr); + return 0; + } + auto&& ret = ax::ui::Helper::getSubStringOfUTF8String(arg0, arg1, arg2); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:getSubStringOfUTF8String",argc, 3); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_getSubStringOfUTF8String'.",&tolua_err); +#endif + return 0; +} +int lua_ax_ui_Helper_doLayout(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + ax::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.Helper:doLayout"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_doLayout'", nullptr); + return 0; + } + ax::ui::Helper::doLayout(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:doLayout",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_doLayout'.",&tolua_err); +#endif + return 0; +} +int lua_ax_ui_Helper_changeLayoutSystemActiveState(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + bool arg0; + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Helper:changeLayoutSystemActiveState"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_changeLayoutSystemActiveState'", nullptr); + return 0; + } + ax::ui::Helper::changeLayoutSystemActiveState(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:changeLayoutSystemActiveState",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_changeLayoutSystemActiveState'.",&tolua_err); #endif return 0; } @@ -26534,7 +26483,7 @@ int lua_ax_ui_Helper_restrictCapInsetRect(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Helper_doLayout(lua_State* tolua_S) +int lua_ax_ui_Helper_convertBoundingBoxToScreen(lua_State* tolua_S) { int argc = 0; bool ok = true; @@ -26552,21 +26501,21 @@ int lua_ax_ui_Helper_doLayout(lua_State* tolua_S) if (argc == 1) { ax::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.Helper:doLayout"); + ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.Helper:convertBoundingBoxToScreen"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_doLayout'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_convertBoundingBoxToScreen'", nullptr); return 0; } - ax::ui::Helper::doLayout(arg0); - lua_settop(tolua_S, 1); + auto&& ret = ax::ui::Helper::convertBoundingBoxToScreen(arg0); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:doLayout",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:convertBoundingBoxToScreen",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_doLayout'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_convertBoundingBoxToScreen'.",&tolua_err); #endif return 0; } @@ -26582,14 +26531,14 @@ int lua_register_ax_ui_Helper(lua_State* tolua_S) tolua_cclass(tolua_S,"Helper","axui.Helper","",nullptr); tolua_beginmodule(tolua_S,"Helper"); - tolua_function(tolua_S,"getSubStringOfUTF8String", lua_ax_ui_Helper_getSubStringOfUTF8String); - tolua_function(tolua_S,"convertBoundingBoxToScreen", lua_ax_ui_Helper_convertBoundingBoxToScreen); - tolua_function(tolua_S,"changeLayoutSystemActiveState", lua_ax_ui_Helper_changeLayoutSystemActiveState); - tolua_function(tolua_S,"seekActionWidgetByActionTag", lua_ax_ui_Helper_seekActionWidgetByActionTag); - tolua_function(tolua_S,"seekWidgetByName", lua_ax_ui_Helper_seekWidgetByName); tolua_function(tolua_S,"seekWidgetByTag", lua_ax_ui_Helper_seekWidgetByTag); - tolua_function(tolua_S,"restrictCapInsetRect", lua_ax_ui_Helper_restrictCapInsetRect); + tolua_function(tolua_S,"seekWidgetByName", lua_ax_ui_Helper_seekWidgetByName); + tolua_function(tolua_S,"seekActionWidgetByActionTag", lua_ax_ui_Helper_seekActionWidgetByActionTag); + tolua_function(tolua_S,"getSubStringOfUTF8String", lua_ax_ui_Helper_getSubStringOfUTF8String); tolua_function(tolua_S,"doLayout", lua_ax_ui_Helper_doLayout); + tolua_function(tolua_S,"changeLayoutSystemActiveState", lua_ax_ui_Helper_changeLayoutSystemActiveState); + tolua_function(tolua_S,"restrictCapInsetRect", lua_ax_ui_Helper_restrictCapInsetRect); + tolua_function(tolua_S,"convertBoundingBoxToScreen", lua_ax_ui_Helper_convertBoundingBoxToScreen); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Helper).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Helper"; @@ -26597,56 +26546,6 @@ int lua_register_ax_ui_Helper(lua_State* tolua_S) return 1; } -int lua_ax_ui_RichElement_equalType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichElement* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichElement",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichElement*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElement_equalType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::RichElement::Type arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElement:equalType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_equalType'", nullptr); - return 0; - } - auto&& ret = cobj->equalType(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:equalType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_equalType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_RichElement_init(lua_State* tolua_S) { int argc = 0; @@ -26703,6 +26602,56 @@ int lua_ax_ui_RichElement_init(lua_State* tolua_S) return 0; } +int lua_ax_ui_RichElement_equalType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichElement* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichElement",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichElement*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElement_equalType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::RichElement::Type arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElement:equalType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_equalType'", nullptr); + return 0; + } + auto&& ret = cobj->equalType(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:equalType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_equalType'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_RichElement_setColor(lua_State* tolua_S) { int argc = 0; @@ -26803,8 +26752,8 @@ int lua_register_ax_ui_RichElement(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RichElement"); tolua_function(tolua_S,"new",lua_ax_ui_RichElement_constructor); - tolua_function(tolua_S,"equalType",lua_ax_ui_RichElement_equalType); tolua_function(tolua_S,"init",lua_ax_ui_RichElement_init); + tolua_function(tolua_S,"equalType",lua_ax_ui_RichElement_equalType); tolua_function(tolua_S,"setColor",lua_ax_ui_RichElement_setColor); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElement).name(); // rtti is literal storage @@ -27518,256 +27467,6 @@ int lua_register_ax_ui_RichElementText(lua_State* tolua_S) return 1; } -int lua_ax_ui_RichElementImage_setHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichElementImage* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:setHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setHeight'", nullptr); - return 0; - } - cobj->setHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichElementImage_setScaleY(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichElementImage* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichElementImage:setScaleY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setScaleY'", nullptr); - return 0; - } - cobj->setScaleY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setScaleY",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setScaleY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichElementImage_setScaleX(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichElementImage* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setScaleX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichElementImage:setScaleX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setScaleX'", nullptr); - return 0; - } - cobj->setScaleX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setScaleX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setScaleX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichElementImage_setUrl(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichElementImage* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setUrl'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichElementImage:setUrl"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setUrl'", nullptr); - return 0; - } - cobj->setUrl(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setUrl",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setUrl'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichElementImage_setScale(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichElementImage* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichElementImage:setScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setScale'", nullptr); - return 0; - } - cobj->setScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setScale",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setScale'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_RichElementImage_init(lua_State* tolua_S) { int argc = 0; @@ -27932,6 +27631,256 @@ int lua_ax_ui_RichElementImage_setWidth(lua_State* tolua_S) return 0; } +int lua_ax_ui_RichElementImage_setHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichElementImage* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:setHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setHeight'", nullptr); + return 0; + } + cobj->setHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichElementImage_setScale(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichElementImage* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichElementImage:setScale"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setScale'", nullptr); + return 0; + } + cobj->setScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setScale",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setScale'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichElementImage_setScaleX(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichElementImage* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichElementImage:setScaleX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setScaleX'", nullptr); + return 0; + } + cobj->setScaleX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setScaleX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichElementImage_setScaleY(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichElementImage* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichElementImage:setScaleY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setScaleY'", nullptr); + return 0; + } + cobj->setScaleY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setScaleY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichElementImage_setUrl(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichElementImage* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichElementImage:setUrl"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setUrl'", nullptr); + return 0; + } + cobj->setUrl(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setUrl",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setUrl'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_RichElementImage_create(lua_State* tolua_S) { int argc = 0; @@ -28068,13 +28017,13 @@ int lua_register_ax_ui_RichElementImage(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RichElementImage"); tolua_function(tolua_S,"new",lua_ax_ui_RichElementImage_constructor); - tolua_function(tolua_S,"setHeight",lua_ax_ui_RichElementImage_setHeight); - tolua_function(tolua_S,"setScaleY",lua_ax_ui_RichElementImage_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_ax_ui_RichElementImage_setScaleX); - tolua_function(tolua_S,"setUrl",lua_ax_ui_RichElementImage_setUrl); - tolua_function(tolua_S,"setScale",lua_ax_ui_RichElementImage_setScale); tolua_function(tolua_S,"init",lua_ax_ui_RichElementImage_init); tolua_function(tolua_S,"setWidth",lua_ax_ui_RichElementImage_setWidth); + tolua_function(tolua_S,"setHeight",lua_ax_ui_RichElementImage_setHeight); + tolua_function(tolua_S,"setScale",lua_ax_ui_RichElementImage_setScale); + tolua_function(tolua_S,"setScaleX",lua_ax_ui_RichElementImage_setScaleX); + tolua_function(tolua_S,"setScaleY",lua_ax_ui_RichElementImage_setScaleY); + tolua_function(tolua_S,"setUrl",lua_ax_ui_RichElementImage_setUrl); tolua_function(tolua_S,"create", lua_ax_ui_RichElementImage_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElementImage).name(); // rtti is literal storage @@ -28394,6 +28343,1286 @@ int lua_ax_ui_RichText_insertElement(lua_State* tolua_S) return 0; } +int lua_ax_ui_RichText_pushBackElement(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_pushBackElement'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::RichElement* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:pushBackElement"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_pushBackElement'", nullptr); + return 0; + } + cobj->pushBackElement(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:pushBackElement",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_pushBackElement'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_removeElement(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_removeElement'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::ui::RichElement* arg0; + ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:removeElement"); + + if (!ok) { break; } + cobj->removeElement(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:removeElement"); + + if (!ok) { break; } + cobj->removeElement(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:removeElement",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_removeElement'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setVerticalSpace(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setVerticalSpace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichText:setVerticalSpace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setVerticalSpace'", nullptr); + return 0; + } + cobj->setVerticalSpace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setVerticalSpace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setVerticalSpace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_formatText(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_formatText'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_formatText'", nullptr); + return 0; + } + cobj->formatText(); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:formatText"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_formatText'", nullptr); + return 0; + } + cobj->formatText(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:formatText",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_formatText'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setWrapMode(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setWrapMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::RichText::WrapMode arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:setWrapMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setWrapMode'", nullptr); + return 0; + } + cobj->setWrapMode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setWrapMode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setWrapMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getWrapMode(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getWrapMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getWrapMode'", nullptr); + return 0; + } + int ret = (int)cobj->getWrapMode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getWrapMode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getWrapMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::RichText::HorizontalAlignment arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:setHorizontalAlignment"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setHorizontalAlignment'", nullptr); + return 0; + } + cobj->setHorizontalAlignment(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setHorizontalAlignment",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getHorizontalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getHorizontalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getHorizontalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setFontColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontColor'", nullptr); + return 0; + } + cobj->setFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontColor'", nullptr); + return 0; + } + auto&& ret = cobj->getFontColor(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getFontColor3B(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontColor3B'", nullptr); + return 0; + } + auto&& ret = cobj->getFontColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontColor3B",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichText:setFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontSize'", nullptr); + return 0; + } + cobj->setFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setFontFace(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontFace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setFontFace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontFace'", nullptr); + return 0; + } + cobj->setFontFace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontFace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontFace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getFontFace(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontFace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontFace'", nullptr); + return 0; + } + auto&& ret = cobj->getFontFace(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontFace",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontFace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setAnchorFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setAnchorFontColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorFontColor'", nullptr); + return 0; + } + cobj->setAnchorFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorFontColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getAnchorFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorFontColor'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorFontColor(); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorFontColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorFontColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorFontColor3B'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorFontColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorFontColor3B",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorFontColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setAnchorTextBold(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextBold'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextBold"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextBold'", nullptr); + return 0; + } + cobj->setAnchorTextBold(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextBold",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextBold'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isAnchorTextBoldEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextBoldEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextItalic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextItalic"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextItalic'", nullptr); + return 0; + } + cobj->setAnchorTextItalic(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextItalic",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextItalic'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isAnchorTextItalicEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextItalicEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setAnchorTextDel(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextDel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextDel"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextDel'", nullptr); + return 0; + } + cobj->setAnchorTextDel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextDel",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextDel'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isAnchorTextDelEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextDelEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextUnderline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextUnderline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextUnderline'", nullptr); + return 0; + } + cobj->setAnchorTextUnderline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextUnderline",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextUnderline'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isAnchorTextUnderlineEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextUnderlineEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) { int argc = 0; @@ -28481,7 +29710,7 @@ int lua_ax_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) return 0; } -int lua_ax_ui_RichText_getFontSize(lua_State* tolua_S) +int lua_ax_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; @@ -28501,7 +29730,7 @@ int lua_ax_ui_RichText_getFontSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); return 0; } #endif @@ -28511,213 +29740,113 @@ int lua_ax_ui_RichText_getFontSize(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); return 0; } - auto&& ret = cobj->getFontSize(); + auto&& ret = cobj->isAnchorTextOutlineEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextOutlineEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorTextOutlineColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextOutlineColor3B",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorTextOutlineSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontSize",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextOutlineSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_pushBackElement(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_pushBackElement'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::RichElement* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:pushBackElement"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_pushBackElement'", nullptr); - return 0; - } - cobj->pushBackElement(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:pushBackElement",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_pushBackElement'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setAnchorTextBold(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextBold'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextBold"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextBold'", nullptr); - return 0; - } - cobj->setAnchorTextBold(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextBold",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextBold'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorFontColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorFontColor'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorFontColor(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorFontColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorTextShadowBlurRadius(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowBlurRadius",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'.",&tolua_err); #endif return 0; @@ -28832,7 +29961,7 @@ int lua_ax_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) return 0; } -int lua_ax_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) +int lua_ax_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; @@ -28852,7 +29981,7 @@ int lua_ax_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'", nullptr); return 0; } #endif @@ -28862,24 +29991,24 @@ int lua_ax_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'", nullptr); return 0; } - auto&& ret = cobj->isAnchorTextItalicEnabled(); + auto&& ret = cobj->isAnchorTextShadowEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextItalicEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextShadowEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'.",&tolua_err); #endif return 0; } -int lua_ax_ui_RichText_setAnchorFontColor(lua_State* tolua_S) +int lua_ax_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; @@ -28899,37 +30028,34 @@ int lua_ax_ui_RichText_setAnchorFontColor(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorFontColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setAnchorFontColor"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorFontColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'", nullptr); return 0; } - cobj->setAnchorFontColor(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAnchorTextShadowColor3B(); + color3b_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorFontColor",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorFontColor'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'.",&tolua_err); #endif return 0; } -int lua_ax_ui_RichText_setFontFace(lua_State* tolua_S) +int lua_ax_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; @@ -28949,32 +30075,76 @@ int lua_ax_ui_RichText_setFontFace(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontFace'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setFontFace"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontFace'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'", nullptr); return 0; } - cobj->setFontFace(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getAnchorTextShadowOffset(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontFace",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowOffset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontFace'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); + return 0; + } + auto&& ret = cobj->getAnchorTextShadowBlurRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowBlurRadius",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'.",&tolua_err); #endif return 0; @@ -29046,7 +30216,7 @@ int lua_ax_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) return 0; } -int lua_ax_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) +int lua_ax_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; @@ -29066,7 +30236,7 @@ int lua_ax_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getHorizontalAlignment'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'", nullptr); return 0; } #endif @@ -29076,24 +30246,24 @@ int lua_ax_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getHorizontalAlignment'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'", nullptr); return 0; } - int ret = (int)cobj->getHorizontalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->isAnchorTextGlowEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getHorizontalAlignment",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextGlowEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getHorizontalAlignment'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'.",&tolua_err); #endif return 0; } -int lua_ax_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) +int lua_ax_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; @@ -29113,107 +30283,7 @@ int lua_ax_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::RichText::HorizontalAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:setHorizontalAlignment"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setHorizontalAlignment'", nullptr); - return 0; - } - cobj->setHorizontalAlignment(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setHorizontalAlignment",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setAnchorTextDel(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextDel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextDel"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextDel'", nullptr); - return 0; - } - cobj->setAnchorTextDel(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextDel",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextDel'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'", nullptr); return 0; } #endif @@ -29223,19 +30293,216 @@ int lua_ax_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'", nullptr); return 0; } - auto&& ret = cobj->getAnchorTextOutlineColor3B(); + auto&& ret = cobj->getAnchorTextGlowColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextOutlineColor3B",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextGlowColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_setDefaults(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setDefaults'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ValueMap arg0; + + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "axui.RichText:setDefaults"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setDefaults'", nullptr); + return 0; + } + cobj->setDefaults(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setDefaults",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setDefaults'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_getDefaults(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getDefaults'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getDefaults'", nullptr); + return 0; + } + auto&& ret = cobj->getDefaults(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getDefaults",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getDefaults'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_color3BWithString(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_color3BWithString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:color3BWithString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_color3BWithString'", nullptr); + return 0; + } + auto&& ret = cobj->color3BWithString(arg0); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:color3BWithString",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_color3BWithString'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_RichText_stringWithColor3B(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_stringWithColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.RichText:stringWithColor3B"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_stringWithColor3B'", nullptr); + return 0; + } + auto&& ret = cobj->stringWithColor3B(arg0); + lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:stringWithColor3B",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_stringWithColor3B'.",&tolua_err); #endif return 0; @@ -29290,6 +30557,56 @@ int lua_ax_ui_RichText_stringWithColor4B(lua_State* tolua_S) return 0; } +int lua_ax_ui_RichText_openUrl(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::RichText* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_openUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:openUrl"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_openUrl'", nullptr); + return 0; + } + cobj->openUrl(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:openUrl",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_openUrl'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_RichText_initWithXML(lua_State* tolua_S) { int argc = 0; @@ -29367,1374 +30684,6 @@ int lua_ax_ui_RichText_initWithXML(lua_State* tolua_S) return 0; } -int lua_ax_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorFontColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorFontColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorFontColor3B(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorFontColor3B",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorFontColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_formatText(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_formatText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_formatText'", nullptr); - return 0; - } - cobj->formatText(); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:formatText"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_formatText'", nullptr); - return 0; - } - cobj->formatText(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:formatText",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_formatText'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorTextGlowColor3B(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextGlowColor3B",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_openUrl(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_openUrl'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:openUrl"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_openUrl'", nullptr); - return 0; - } - cobj->openUrl(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:openUrl",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_openUrl'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getFontFace(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontFace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontFace'", nullptr); - return 0; - } - auto&& ret = cobj->getFontFace(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontFace",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontFace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setFontColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontColor'", nullptr); - return 0; - } - cobj->setFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isAnchorTextGlowEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextGlowEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getDefaults(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getDefaults'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getDefaults'", nullptr); - return 0; - } - auto&& ret = cobj->getDefaults(); - ccvaluemap_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getDefaults",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getDefaults'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isAnchorTextUnderlineEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextUnderlineEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontColor'", nullptr); - return 0; - } - auto&& ret = cobj->getFontColor(); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isAnchorTextShadowEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextShadowEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorTextOutlineSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextOutlineSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setVerticalSpace(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setVerticalSpace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichText:setVerticalSpace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setVerticalSpace'", nullptr); - return 0; - } - cobj->setVerticalSpace(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setVerticalSpace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setVerticalSpace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isAnchorTextDelEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextDelEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setDefaults(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setDefaults'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ValueMap arg0; - - ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "axui.RichText:setDefaults"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setDefaults'", nullptr); - return 0; - } - cobj->setDefaults(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setDefaults",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setDefaults'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setWrapMode(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setWrapMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::RichText::WrapMode arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:setWrapMode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setWrapMode'", nullptr); - return 0; - } - cobj->setWrapMode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setWrapMode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setWrapMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichText:setFontSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontSize'", nullptr); - return 0; - } - cobj->setFontSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_removeElement(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_removeElement'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::ui::RichElement* arg0; - ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:removeElement"); - - if (!ok) { break; } - cobj->removeElement(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - int arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:removeElement"); - - if (!ok) { break; } - cobj->removeElement(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:removeElement",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_removeElement'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextItalic'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextItalic"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextItalic'", nullptr); - return 0; - } - cobj->setAnchorTextItalic(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextItalic",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextItalic'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorTextShadowOffset(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowOffset",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isAnchorTextBoldEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextBoldEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorTextShadowColor3B(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowColor3B",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_stringWithColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_stringWithColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.RichText:stringWithColor3B"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_stringWithColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->stringWithColor3B(arg0); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:stringWithColor3B",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_stringWithColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isAnchorTextOutlineEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextOutlineEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getFontColor3B(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontColor3B'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontColor3B'", nullptr); - return 0; - } - auto&& ret = cobj->getFontColor3B(); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontColor3B",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontColor3B'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_getWrapMode(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getWrapMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getWrapMode'", nullptr); - return 0; - } - int ret = (int)cobj->getWrapMode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getWrapMode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getWrapMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextUnderline'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextUnderline"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextUnderline'", nullptr); - return 0; - } - cobj->setAnchorTextUnderline(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextUnderline",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextUnderline'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_RichText_color3BWithString(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::RichText* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_color3BWithString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:color3BWithString"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_color3BWithString'", nullptr); - return 0; - } - auto&& ret = cobj->color3BWithString(arg0); - color3b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:color3BWithString",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_color3BWithString'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_RichText_create(lua_State* tolua_S) { int argc = 0; @@ -30879,51 +30828,51 @@ int lua_register_ax_ui_RichText(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RichText"); tolua_function(tolua_S,"new",lua_ax_ui_RichText_constructor); tolua_function(tolua_S,"insertElement",lua_ax_ui_RichText_insertElement); - tolua_function(tolua_S,"setAnchorTextOutline",lua_ax_ui_RichText_setAnchorTextOutline); - tolua_function(tolua_S,"getFontSize",lua_ax_ui_RichText_getFontSize); tolua_function(tolua_S,"pushBackElement",lua_ax_ui_RichText_pushBackElement); - tolua_function(tolua_S,"setAnchorTextBold",lua_ax_ui_RichText_setAnchorTextBold); - tolua_function(tolua_S,"getAnchorFontColor",lua_ax_ui_RichText_getAnchorFontColor); - tolua_function(tolua_S,"getAnchorTextShadowBlurRadius",lua_ax_ui_RichText_getAnchorTextShadowBlurRadius); - tolua_function(tolua_S,"setAnchorTextShadow",lua_ax_ui_RichText_setAnchorTextShadow); - tolua_function(tolua_S,"isAnchorTextItalicEnabled",lua_ax_ui_RichText_isAnchorTextItalicEnabled); - tolua_function(tolua_S,"setAnchorFontColor",lua_ax_ui_RichText_setAnchorFontColor); - tolua_function(tolua_S,"setFontFace",lua_ax_ui_RichText_setFontFace); - tolua_function(tolua_S,"setAnchorTextGlow",lua_ax_ui_RichText_setAnchorTextGlow); - tolua_function(tolua_S,"getHorizontalAlignment",lua_ax_ui_RichText_getHorizontalAlignment); - tolua_function(tolua_S,"setHorizontalAlignment",lua_ax_ui_RichText_setHorizontalAlignment); - tolua_function(tolua_S,"setAnchorTextDel",lua_ax_ui_RichText_setAnchorTextDel); - tolua_function(tolua_S,"getAnchorTextOutlineColor3B",lua_ax_ui_RichText_getAnchorTextOutlineColor3B); - tolua_function(tolua_S,"stringWithColor4B",lua_ax_ui_RichText_stringWithColor4B); - tolua_function(tolua_S,"initWithXML",lua_ax_ui_RichText_initWithXML); - tolua_function(tolua_S,"getAnchorFontColor3B",lua_ax_ui_RichText_getAnchorFontColor3B); - tolua_function(tolua_S,"formatText",lua_ax_ui_RichText_formatText); - tolua_function(tolua_S,"getAnchorTextGlowColor3B",lua_ax_ui_RichText_getAnchorTextGlowColor3B); - tolua_function(tolua_S,"openUrl",lua_ax_ui_RichText_openUrl); - tolua_function(tolua_S,"getFontFace",lua_ax_ui_RichText_getFontFace); - tolua_function(tolua_S,"setFontColor",lua_ax_ui_RichText_setFontColor); - tolua_function(tolua_S,"isAnchorTextGlowEnabled",lua_ax_ui_RichText_isAnchorTextGlowEnabled); - tolua_function(tolua_S,"getDefaults",lua_ax_ui_RichText_getDefaults); - tolua_function(tolua_S,"isAnchorTextUnderlineEnabled",lua_ax_ui_RichText_isAnchorTextUnderlineEnabled); - tolua_function(tolua_S,"getFontColor",lua_ax_ui_RichText_getFontColor); - tolua_function(tolua_S,"isAnchorTextShadowEnabled",lua_ax_ui_RichText_isAnchorTextShadowEnabled); - tolua_function(tolua_S,"getAnchorTextOutlineSize",lua_ax_ui_RichText_getAnchorTextOutlineSize); - tolua_function(tolua_S,"setVerticalSpace",lua_ax_ui_RichText_setVerticalSpace); - tolua_function(tolua_S,"isAnchorTextDelEnabled",lua_ax_ui_RichText_isAnchorTextDelEnabled); - tolua_function(tolua_S,"setDefaults",lua_ax_ui_RichText_setDefaults); - tolua_function(tolua_S,"setWrapMode",lua_ax_ui_RichText_setWrapMode); - tolua_function(tolua_S,"setFontSize",lua_ax_ui_RichText_setFontSize); tolua_function(tolua_S,"removeElement",lua_ax_ui_RichText_removeElement); - tolua_function(tolua_S,"setAnchorTextItalic",lua_ax_ui_RichText_setAnchorTextItalic); - tolua_function(tolua_S,"getAnchorTextShadowOffset",lua_ax_ui_RichText_getAnchorTextShadowOffset); - tolua_function(tolua_S,"isAnchorTextBoldEnabled",lua_ax_ui_RichText_isAnchorTextBoldEnabled); - tolua_function(tolua_S,"getAnchorTextShadowColor3B",lua_ax_ui_RichText_getAnchorTextShadowColor3B); - tolua_function(tolua_S,"stringWithColor3B",lua_ax_ui_RichText_stringWithColor3B); - tolua_function(tolua_S,"isAnchorTextOutlineEnabled",lua_ax_ui_RichText_isAnchorTextOutlineEnabled); - tolua_function(tolua_S,"getFontColor3B",lua_ax_ui_RichText_getFontColor3B); + tolua_function(tolua_S,"setVerticalSpace",lua_ax_ui_RichText_setVerticalSpace); + tolua_function(tolua_S,"formatText",lua_ax_ui_RichText_formatText); + tolua_function(tolua_S,"setWrapMode",lua_ax_ui_RichText_setWrapMode); tolua_function(tolua_S,"getWrapMode",lua_ax_ui_RichText_getWrapMode); + tolua_function(tolua_S,"setHorizontalAlignment",lua_ax_ui_RichText_setHorizontalAlignment); + tolua_function(tolua_S,"getHorizontalAlignment",lua_ax_ui_RichText_getHorizontalAlignment); + tolua_function(tolua_S,"setFontColor",lua_ax_ui_RichText_setFontColor); + tolua_function(tolua_S,"getFontColor",lua_ax_ui_RichText_getFontColor); + tolua_function(tolua_S,"getFontColor3B",lua_ax_ui_RichText_getFontColor3B); + tolua_function(tolua_S,"setFontSize",lua_ax_ui_RichText_setFontSize); + tolua_function(tolua_S,"getFontSize",lua_ax_ui_RichText_getFontSize); + tolua_function(tolua_S,"setFontFace",lua_ax_ui_RichText_setFontFace); + tolua_function(tolua_S,"getFontFace",lua_ax_ui_RichText_getFontFace); + tolua_function(tolua_S,"setAnchorFontColor",lua_ax_ui_RichText_setAnchorFontColor); + tolua_function(tolua_S,"getAnchorFontColor",lua_ax_ui_RichText_getAnchorFontColor); + tolua_function(tolua_S,"getAnchorFontColor3B",lua_ax_ui_RichText_getAnchorFontColor3B); + tolua_function(tolua_S,"setAnchorTextBold",lua_ax_ui_RichText_setAnchorTextBold); + tolua_function(tolua_S,"isAnchorTextBoldEnabled",lua_ax_ui_RichText_isAnchorTextBoldEnabled); + tolua_function(tolua_S,"setAnchorTextItalic",lua_ax_ui_RichText_setAnchorTextItalic); + tolua_function(tolua_S,"isAnchorTextItalicEnabled",lua_ax_ui_RichText_isAnchorTextItalicEnabled); + tolua_function(tolua_S,"setAnchorTextDel",lua_ax_ui_RichText_setAnchorTextDel); + tolua_function(tolua_S,"isAnchorTextDelEnabled",lua_ax_ui_RichText_isAnchorTextDelEnabled); tolua_function(tolua_S,"setAnchorTextUnderline",lua_ax_ui_RichText_setAnchorTextUnderline); + tolua_function(tolua_S,"isAnchorTextUnderlineEnabled",lua_ax_ui_RichText_isAnchorTextUnderlineEnabled); + tolua_function(tolua_S,"setAnchorTextOutline",lua_ax_ui_RichText_setAnchorTextOutline); + tolua_function(tolua_S,"isAnchorTextOutlineEnabled",lua_ax_ui_RichText_isAnchorTextOutlineEnabled); + tolua_function(tolua_S,"getAnchorTextOutlineColor3B",lua_ax_ui_RichText_getAnchorTextOutlineColor3B); + tolua_function(tolua_S,"getAnchorTextOutlineSize",lua_ax_ui_RichText_getAnchorTextOutlineSize); + tolua_function(tolua_S,"setAnchorTextShadow",lua_ax_ui_RichText_setAnchorTextShadow); + tolua_function(tolua_S,"isAnchorTextShadowEnabled",lua_ax_ui_RichText_isAnchorTextShadowEnabled); + tolua_function(tolua_S,"getAnchorTextShadowColor3B",lua_ax_ui_RichText_getAnchorTextShadowColor3B); + tolua_function(tolua_S,"getAnchorTextShadowOffset",lua_ax_ui_RichText_getAnchorTextShadowOffset); + tolua_function(tolua_S,"getAnchorTextShadowBlurRadius",lua_ax_ui_RichText_getAnchorTextShadowBlurRadius); + tolua_function(tolua_S,"setAnchorTextGlow",lua_ax_ui_RichText_setAnchorTextGlow); + tolua_function(tolua_S,"isAnchorTextGlowEnabled",lua_ax_ui_RichText_isAnchorTextGlowEnabled); + tolua_function(tolua_S,"getAnchorTextGlowColor3B",lua_ax_ui_RichText_getAnchorTextGlowColor3B); + tolua_function(tolua_S,"setDefaults",lua_ax_ui_RichText_setDefaults); + tolua_function(tolua_S,"getDefaults",lua_ax_ui_RichText_getDefaults); tolua_function(tolua_S,"color3BWithString",lua_ax_ui_RichText_color3BWithString); + tolua_function(tolua_S,"stringWithColor3B",lua_ax_ui_RichText_stringWithColor3B); + tolua_function(tolua_S,"stringWithColor4B",lua_ax_ui_RichText_stringWithColor4B); + tolua_function(tolua_S,"openUrl",lua_ax_ui_RichText_openUrl); + tolua_function(tolua_S,"initWithXML",lua_ax_ui_RichText_initWithXML); tolua_function(tolua_S,"create", lua_ax_ui_RichText_create); tolua_function(tolua_S,"createWithXML", lua_ax_ui_RichText_createWithXML); tolua_endmodule(tolua_S); @@ -31395,7 +31344,7 @@ int lua_register_ax_ui_RelativeBox(lua_State* tolua_S) return 1; } -int lua_ax_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; @@ -31411,78 +31360,58 @@ int lua_ax_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_updateWithSprite'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ - if (argc == 6) { - ax::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:updateWithSprite"); + if (argc == 2) { + ax::Rect arg0; + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } - ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:updateWithSprite"); + std::string_view arg1; + ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } - bool arg2; - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:updateWithSprite"); - - if (!ok) { break; } - ax::Vec2 arg3; - ok &= luaval_to_vec2(tolua_S, 5, &arg3, "axui.Scale9Sprite:updateWithSprite"); - - if (!ok) { break; } - ax::Vec2 arg4; - ok &= luaval_to_vec2(tolua_S, 6, &arg4, "axui.Scale9Sprite:updateWithSprite"); - - if (!ok) { break; } - ax::Rect arg5; - ok &= luaval_to_rect(tolua_S, 7, &arg5, "axui.Scale9Sprite:updateWithSprite"); - - if (!ok) { break; } - bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3, arg4, arg5); + bool ret = cobj->initWithFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ - if (argc == 4) { - ax::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:updateWithSprite"); + if (argc == 3) { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:updateWithSprite"); + ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } - bool arg2; - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:updateWithSprite"); + ax::Rect arg2; + ok &= luaval_to_rect(tolua_S, 4, &arg2, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } - ax::Rect arg3; - ok &= luaval_to_rect(tolua_S, 5, &arg3, "axui.Scale9Sprite:updateWithSprite"); - - if (!ok) { break; } - bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3); + bool ret = cobj->initWithFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:updateWithSprite",argc, 4); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithFile",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_updateWithSprite'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithFile'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; @@ -31502,179 +31431,35 @@ int lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { - ax::Rect arg0; + ax::SpriteFrame* arg0; + ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:resizableSpriteWithCapInsets"); + ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "axui.Scale9Sprite:initWithSpriteFrame"); + + ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithSpriteFrame"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'", nullptr); return 0; } - auto&& ret = cobj->resizableSpriteWithCapInsets(arg0); - object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); + auto&& ret = cobj->initWithSpriteFrame(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:resizableSpriteWithCapInsets",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithSpriteFrame",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getCapInsets'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsets(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getCapInsets",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getCapInsets'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_setState(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Scale9Sprite::State arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Scale9Sprite:setState"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setState'", nullptr); - return 0; - } - cobj->setState(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setState",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setState'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_setInsetBottom(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetBottom"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'", nullptr); - return 0; - } - cobj->setInsetBottom(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetBottom",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'.",&tolua_err); #endif return 0; @@ -31732,153 +31517,6 @@ int lua_ax_ui_Scale9Sprite_initWithSpriteFrameName(lua_State* tolua_S) return 0; } -int lua_ax_ui_Scale9Sprite_getSprite(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getSprite'", nullptr); - return 0; - } - auto&& ret = cobj->getSprite(); - object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getSprite",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_setInsetTop(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetTop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetTop"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetTop'", nullptr); - return 0; - } - cobj->setInsetTop(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetTop",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetTop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setRenderingType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Scale9Sprite::RenderingType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Scale9Sprite:setRenderingType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setRenderingType'", nullptr); - return 0; - } - cobj->setRenderingType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setRenderingType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setRenderingType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Scale9Sprite_init(lua_State* tolua_S) { int argc = 0; @@ -31986,7 +31624,7 @@ int lua_ax_ui_Scale9Sprite_init(lua_State* tolua_S) return 0; } -int lua_ax_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; @@ -32006,7 +31644,7 @@ int lua_ax_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); return 0; } #endif @@ -32014,74 +31652,111 @@ int lua_ax_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - ax::Vec2 arg0; + ax::Rect arg0; - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Scale9Sprite:setPreferredSize"); + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:resizableSpriteWithCapInsets"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); return 0; } - cobj->setPreferredSize(arg0); - lua_settop(tolua_S, 1); + auto&& ret = cobj->resizableSpriteWithCapInsets(arg0); + object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setPreferredSize",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:resizableSpriteWithCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Scale9Sprite_copyTo(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; - #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif - #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - #if _AX_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_copyTo'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_updateWithSprite'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::Scale9Sprite* arg0; + do{ + if (argc == 6) { + ax::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:updateWithSprite"); - ok &= luaval_to_object(tolua_S, 2, "axui.Scale9Sprite",&arg0, "axui.Scale9Sprite:copyTo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_copyTo'", nullptr); - return 0; + if (!ok) { break; } + ax::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + ax::Vec2 arg3; + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + ax::Vec2 arg4; + ok &= luaval_to_vec2(tolua_S, 6, &arg4, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + ax::Rect arg5; + ok &= luaval_to_rect(tolua_S, 7, &arg5, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; } - cobj->copyTo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:copyTo",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 4) { + ax::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + ax::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + ax::Rect arg3; + ok &= luaval_to_rect(tolua_S, 5, &arg3, "axui.Scale9Sprite:updateWithSprite"); + + if (!ok) { break; } + bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:updateWithSprite",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_copyTo'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_updateWithSprite'.",&tolua_err); #endif return 0; @@ -32139,6 +31814,56 @@ int lua_ax_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S) return 0; } +int lua_ax_ui_Scale9Sprite_setState(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Scale9Sprite::State arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Scale9Sprite:setState"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setState'", nullptr); + return 0; + } + cobj->setState(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setState",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setState'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Scale9Sprite_getState(lua_State* tolua_S) { int argc = 0; @@ -32186,6 +31911,491 @@ int lua_ax_ui_Scale9Sprite_getState(lua_State* tolua_S) return 0; } +int lua_ax_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'", nullptr); + return 0; + } + auto&& ret = cobj->getOriginalSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getOriginalSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Scale9Sprite:setPreferredSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'", nullptr); + return 0; + } + cobj->setPreferredSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setPreferredSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'", nullptr); + return 0; + } + auto&& ret = cobj->getPreferredSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getPreferredSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_setInsetLeft(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetLeft"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'", nullptr); + return 0; + } + cobj->setInsetLeft(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetLeft",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'", nullptr); + return 0; + } + auto&& ret = cobj->getInsetLeft(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetLeft",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_setInsetTop(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetTop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetTop"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetTop'", nullptr); + return 0; + } + cobj->setInsetTop(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetTop",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetTop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_getInsetTop(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetTop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetTop'", nullptr); + return 0; + } + auto&& ret = cobj->getInsetTop(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetTop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetTop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_setInsetRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetRight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetRight'", nullptr); + return 0; + } + cobj->setInsetRight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetRight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetRight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_getInsetRight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetRight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetRight'", nullptr); + return 0; + } + auto&& ret = cobj->getInsetRight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetRight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetRight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_setInsetBottom(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetBottom"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'", nullptr); + return 0; + } + cobj->setInsetBottom(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetBottom",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_Scale9Sprite_getInsetBottom(lua_State* tolua_S) { int argc = 0; @@ -32330,7 +32540,7 @@ int lua_ax_ui_Scale9Sprite_isScale9Enabled(lua_State* tolua_S) return 0; } -int lua_ax_ui_Scale9Sprite_resetRender(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_getSprite(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; @@ -32350,7 +32560,7 @@ int lua_ax_ui_Scale9Sprite_resetRender(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_resetRender'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getSprite'", nullptr); return 0; } #endif @@ -32360,19 +32570,119 @@ int lua_ax_ui_Scale9Sprite_resetRender(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_resetRender'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getSprite'", nullptr); return 0; } - cobj->resetRender(); - lua_settop(tolua_S, 1); + auto&& ret = cobj->getSprite(); + object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:resetRender",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getSprite",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_resetRender'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_copyTo(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_copyTo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Scale9Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.Scale9Sprite",&arg0, "axui.Scale9Sprite:copyTo"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_copyTo'", nullptr); + return 0; + } + cobj->copyTo(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:copyTo",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_copyTo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::Scale9Sprite* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setRenderingType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::Scale9Sprite::RenderingType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Scale9Sprite:setRenderingType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setRenderingType'", nullptr); + return 0; + } + cobj->setRenderingType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setRenderingType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setRenderingType'.",&tolua_err); #endif return 0; @@ -32424,364 +32734,6 @@ int lua_ax_ui_Scale9Sprite_getRenderingType(lua_State* tolua_S) return 0; } -int lua_ax_ui_Scale9Sprite_getInsetRight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetRight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetRight'", nullptr); - return 0; - } - auto&& ret = cobj->getInsetRight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetRight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetRight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'", nullptr); - return 0; - } - auto&& ret = cobj->getOriginalSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getOriginalSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithFile'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - ax::Rect arg0; - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:initWithFile"); - - if (!ok) { break; } - std::string_view arg1; - ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Scale9Sprite:initWithFile"); - - if (!ok) { break; } - bool ret = cobj->initWithFile(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:initWithFile"); - - if (!ok) { break; } - ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithFile"); - - if (!ok) { break; } - ax::Rect arg2; - ok &= luaval_to_rect(tolua_S, 4, &arg2, "axui.Scale9Sprite:initWithFile"); - - if (!ok) { break; } - bool ret = cobj->initWithFile(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithFile",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithFile'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_getInsetTop(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetTop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetTop'", nullptr); - return 0; - } - auto&& ret = cobj->getInsetTop(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetTop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetTop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_setInsetLeft(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetLeft"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'", nullptr); - return 0; - } - cobj->setInsetLeft(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetLeft",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - ax::SpriteFrame* arg0; - ax::Rect arg1; - - ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "axui.Scale9Sprite:initWithSpriteFrame"); - - ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithSpriteFrame"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'", nullptr); - return 0; - } - auto&& ret = cobj->initWithSpriteFrame(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithSpriteFrame",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::Scale9Sprite* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'", nullptr); - return 0; - } - auto&& ret = cobj->getPreferredSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getPreferredSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) { int argc = 0; @@ -32832,7 +32784,7 @@ int lua_ax_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) return 0; } -int lua_ax_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; @@ -32852,7 +32804,7 @@ int lua_ax_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getCapInsets'", nullptr); return 0; } #endif @@ -32862,24 +32814,24 @@ int lua_ax_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getCapInsets'", nullptr); return 0; } - auto&& ret = cobj->getInsetLeft(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getCapInsets(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetLeft",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getCapInsets",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getCapInsets'.",&tolua_err); #endif return 0; } -int lua_ax_ui_Scale9Sprite_setInsetRight(lua_State* tolua_S) +int lua_ax_ui_Scale9Sprite_resetRender(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; @@ -32899,32 +32851,29 @@ int lua_ax_ui_Scale9Sprite_setInsetRight(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetRight'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_resetRender'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetRight"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetRight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_resetRender'", nullptr); return 0; } - cobj->setInsetRight(arg0); + cobj->resetRender(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetRight",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:resetRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetRight'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_resetRender'.",&tolua_err); #endif return 0; @@ -33025,57 +32974,6 @@ int lua_ax_ui_Scale9Sprite_create(lua_State* tolua_S) #endif return 0; } -int lua_ax_ui_Scale9Sprite_createWithSpriteFrameName(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S)-1; - - do - { - if (argc == 2) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:createWithSpriteFrameName"); - if (!ok) { break; } - ax::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:createWithSpriteFrameName"); - if (!ok) { break; } - ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrameName(arg0, arg1); - object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 1) - { - std::string_view arg0; - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:createWithSpriteFrameName"); - if (!ok) { break; } - ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrameName(arg0); - object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); - return 1; - } - } while (0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Scale9Sprite:createWithSpriteFrameName",argc, 1); - return 0; -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_createWithSpriteFrameName'.",&tolua_err); -#endif - return 0; -} int lua_ax_ui_Scale9Sprite_createWithSpriteFrame(lua_State* tolua_S) { int argc = 0; @@ -33127,6 +33025,57 @@ int lua_ax_ui_Scale9Sprite_createWithSpriteFrame(lua_State* tolua_S) #endif return 0; } +int lua_ax_ui_Scale9Sprite_createWithSpriteFrameName(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S)-1; + + do + { + if (argc == 2) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:createWithSpriteFrameName"); + if (!ok) { break; } + ax::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:createWithSpriteFrameName"); + if (!ok) { break; } + ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrameName(arg0, arg1); + object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); + return 1; + } + } while (0); + ok = true; + do + { + if (argc == 1) + { + std::string_view arg0; + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:createWithSpriteFrameName"); + if (!ok) { break; } + ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrameName(arg0); + object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); + return 1; + } + } while (0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Scale9Sprite:createWithSpriteFrameName",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_createWithSpriteFrameName'.",&tolua_err); +#endif + return 0; +} int lua_ax_ui_Scale9Sprite_constructor(lua_State* tolua_S) { int argc = 0; @@ -33177,38 +33126,38 @@ int lua_register_ax_ui_Scale9Sprite(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Scale9Sprite"); tolua_function(tolua_S,"new",lua_ax_ui_Scale9Sprite_constructor); - tolua_function(tolua_S,"updateWithSprite",lua_ax_ui_Scale9Sprite_updateWithSprite); - tolua_function(tolua_S,"resizableSpriteWithCapInsets",lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets); - tolua_function(tolua_S,"getCapInsets",lua_ax_ui_Scale9Sprite_getCapInsets); - tolua_function(tolua_S,"setState",lua_ax_ui_Scale9Sprite_setState); - tolua_function(tolua_S,"setInsetBottom",lua_ax_ui_Scale9Sprite_setInsetBottom); + tolua_function(tolua_S,"initWithFile",lua_ax_ui_Scale9Sprite_initWithFile); + tolua_function(tolua_S,"initWithSpriteFrame",lua_ax_ui_Scale9Sprite_initWithSpriteFrame); tolua_function(tolua_S,"initWithSpriteFrameName",lua_ax_ui_Scale9Sprite_initWithSpriteFrameName); - tolua_function(tolua_S,"getSprite",lua_ax_ui_Scale9Sprite_getSprite); - tolua_function(tolua_S,"setInsetTop",lua_ax_ui_Scale9Sprite_setInsetTop); - tolua_function(tolua_S,"setRenderingType",lua_ax_ui_Scale9Sprite_setRenderingType); tolua_function(tolua_S,"init",lua_ax_ui_Scale9Sprite_init); - tolua_function(tolua_S,"setPreferredSize",lua_ax_ui_Scale9Sprite_setPreferredSize); - tolua_function(tolua_S,"copyTo",lua_ax_ui_Scale9Sprite_copyTo); + tolua_function(tolua_S,"resizableSpriteWithCapInsets",lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets); + tolua_function(tolua_S,"updateWithSprite",lua_ax_ui_Scale9Sprite_updateWithSprite); tolua_function(tolua_S,"setSpriteFrame",lua_ax_ui_Scale9Sprite_setSpriteFrame); + tolua_function(tolua_S,"setState",lua_ax_ui_Scale9Sprite_setState); tolua_function(tolua_S,"getState",lua_ax_ui_Scale9Sprite_getState); + tolua_function(tolua_S,"getOriginalSize",lua_ax_ui_Scale9Sprite_getOriginalSize); + tolua_function(tolua_S,"setPreferredSize",lua_ax_ui_Scale9Sprite_setPreferredSize); + tolua_function(tolua_S,"getPreferredSize",lua_ax_ui_Scale9Sprite_getPreferredSize); + tolua_function(tolua_S,"setInsetLeft",lua_ax_ui_Scale9Sprite_setInsetLeft); + tolua_function(tolua_S,"getInsetLeft",lua_ax_ui_Scale9Sprite_getInsetLeft); + tolua_function(tolua_S,"setInsetTop",lua_ax_ui_Scale9Sprite_setInsetTop); + tolua_function(tolua_S,"getInsetTop",lua_ax_ui_Scale9Sprite_getInsetTop); + tolua_function(tolua_S,"setInsetRight",lua_ax_ui_Scale9Sprite_setInsetRight); + tolua_function(tolua_S,"getInsetRight",lua_ax_ui_Scale9Sprite_getInsetRight); + tolua_function(tolua_S,"setInsetBottom",lua_ax_ui_Scale9Sprite_setInsetBottom); tolua_function(tolua_S,"getInsetBottom",lua_ax_ui_Scale9Sprite_getInsetBottom); tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Scale9Sprite_setScale9Enabled); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Scale9Sprite_isScale9Enabled); - tolua_function(tolua_S,"resetRender",lua_ax_ui_Scale9Sprite_resetRender); + tolua_function(tolua_S,"getSprite",lua_ax_ui_Scale9Sprite_getSprite); + tolua_function(tolua_S,"copyTo",lua_ax_ui_Scale9Sprite_copyTo); + tolua_function(tolua_S,"setRenderingType",lua_ax_ui_Scale9Sprite_setRenderingType); tolua_function(tolua_S,"getRenderingType",lua_ax_ui_Scale9Sprite_getRenderingType); - tolua_function(tolua_S,"getInsetRight",lua_ax_ui_Scale9Sprite_getInsetRight); - tolua_function(tolua_S,"getOriginalSize",lua_ax_ui_Scale9Sprite_getOriginalSize); - tolua_function(tolua_S,"initWithFile",lua_ax_ui_Scale9Sprite_initWithFile); - tolua_function(tolua_S,"getInsetTop",lua_ax_ui_Scale9Sprite_getInsetTop); - tolua_function(tolua_S,"setInsetLeft",lua_ax_ui_Scale9Sprite_setInsetLeft); - tolua_function(tolua_S,"initWithSpriteFrame",lua_ax_ui_Scale9Sprite_initWithSpriteFrame); - tolua_function(tolua_S,"getPreferredSize",lua_ax_ui_Scale9Sprite_getPreferredSize); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Scale9Sprite_setCapInsets); - tolua_function(tolua_S,"getInsetLeft",lua_ax_ui_Scale9Sprite_getInsetLeft); - tolua_function(tolua_S,"setInsetRight",lua_ax_ui_Scale9Sprite_setInsetRight); + tolua_function(tolua_S,"getCapInsets",lua_ax_ui_Scale9Sprite_getCapInsets); + tolua_function(tolua_S,"resetRender",lua_ax_ui_Scale9Sprite_resetRender); tolua_function(tolua_S,"create", lua_ax_ui_Scale9Sprite_create); - tolua_function(tolua_S,"createWithSpriteFrameName", lua_ax_ui_Scale9Sprite_createWithSpriteFrameName); tolua_function(tolua_S,"createWithSpriteFrame", lua_ax_ui_Scale9Sprite_createWithSpriteFrame); + tolua_function(tolua_S,"createWithSpriteFrameName", lua_ax_ui_Scale9Sprite_createWithSpriteFrameName); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Scale9Sprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Scale9Sprite"; @@ -33216,345 +33165,6 @@ int lua_register_ax_ui_Scale9Sprite(lua_State* tolua_S) return 1; } -int lua_ax_ui_EditBox_getFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_keyboardDidShow(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardDidShow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::IMEKeyboardNotificationInfo arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardDidShow'", nullptr); - return 0; - } - cobj->keyboardDidShow(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardDidShow",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardDidShow'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setMaxLength(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setMaxLength'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setMaxLength"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setMaxLength'", nullptr); - return 0; - } - cobj->setMaxLength(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setMaxLength",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setMaxLength'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_openKeyboard(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_openKeyboard'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_openKeyboard'", nullptr); - return 0; - } - cobj->openKeyboard(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:openKeyboard",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_openKeyboard'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setFontSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFontSize'", nullptr); - return 0; - } - cobj->setFontSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getText(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getText'", nullptr); - return 0; - } - auto&& ret = cobj->getText(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getText",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getText'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getInputMode(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getInputMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getInputMode'", nullptr); - return 0; - } - int ret = (int)cobj->getInputMode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getInputMode",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getInputMode'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) { int argc = 0; @@ -33662,1223 +33272,6 @@ int lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) return 0; } -int lua_ax_ui_EditBox_getPlaceholderFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontName'", nullptr); - return 0; - } - auto&& ret = cobj->getPlaceholderFontName(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_keyboardDidHide(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardDidHide'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::IMEKeyboardNotificationInfo arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardDidHide'", nullptr); - return 0; - } - cobj->keyboardDidHide(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardDidHide",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardDidHide'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setPlaceholderFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceholderFontName"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFontName'", nullptr); - return 0; - } - cobj->setPlaceholderFontName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getPlaceholderFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getPlaceholderFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsetsDisabledRenderer(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsDisabledRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getPlaceHolder(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceHolder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceHolder'", nullptr); - return 0; - } - auto&& ret = cobj->getPlaceHolder(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceHolder",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceHolder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setFontName"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFontName'", nullptr); - return 0; - } - cobj->setFontName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:registerScriptEditBoxHandler"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'", nullptr); - return 0; - } - cobj->registerScriptEditBoxHandler(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:registerScriptEditBoxHandler",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsDisabledRenderer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'", nullptr); - return 0; - } - cobj->setCapInsetsDisabledRenderer(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsDisabledRenderer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setPlaceholderFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setPlaceholderFontSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'", nullptr); - return 0; - } - cobj->setPlaceholderFontSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureDisabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); - return 0; - } - cobj->loadTextureDisabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureDisabled"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTextureDisabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); - return 0; - } - cobj->loadTextureDisabled(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTextureDisabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTextureDisabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setInputMode(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setInputMode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::EditBox::InputMode arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setInputMode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setInputMode'", nullptr); - return 0; - } - cobj->setInputMode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setInputMode",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setInputMode'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'", nullptr); - return 0; - } - cobj->unregisterScriptEditBoxHandler(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:unregisterScriptEditBoxHandler",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_keyboardWillShow(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardWillShow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::IMEKeyboardNotificationInfo arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardWillShow'", nullptr); - return 0; - } - cobj->keyboardWillShow(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardWillShow",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardWillShow'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontColor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Color4B arg0; - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.EditBox:setPlaceholderFontColor"); - - if (!ok) { break; } - cobj->setPlaceholderFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Color3B arg0; - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.EditBox:setPlaceholderFontColor"); - - if (!ok) { break; } - cobj->setPlaceholderFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getReturnType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getReturnType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getReturnType'", nullptr); - return 0; - } - int ret = (int)cobj->getReturnType(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getReturnType",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getReturnType'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontColor'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - ax::Color4B arg0; - ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.EditBox:setFontColor"); - - if (!ok) { break; } - cobj->setFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 1) { - ax::Color3B arg0; - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.EditBox:setFontColor"); - - if (!ok) { break; } - cobj->setFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontColor",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontName'", nullptr); - return 0; - } - auto&& ret = cobj->getFontName(); - tolua_pushstring(tolua_S,(const char*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_keyboardWillHide(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardWillHide'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::IMEKeyboardNotificationInfo arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo - ok = false; - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardWillHide'", nullptr); - return 0; - } - cobj->keyboardWillHide(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardWillHide",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardWillHide'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_closeKeyboard(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_closeKeyboard'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_closeKeyboard'", nullptr); - return 0; - } - cobj->closeKeyboard(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:closeKeyboard",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_closeKeyboard'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsNormalRenderer"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'", nullptr); - return 0; - } - cobj->setCapInsetsNormalRenderer(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsNormalRenderer",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_loadTexturePressed(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTexturePressed"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); - return 0; - } - cobj->loadTexturePressed(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::string_view arg0; - ax::ui::Widget::TextureResType arg1; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTexturePressed"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTexturePressed"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); - return 0; - } - cobj->loadTexturePressed(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTexturePressed",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTexturePressed'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontColor'", nullptr); - return 0; - } - auto&& ret = cobj->getFontColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getInputFlag(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getInputFlag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getInputFlag'", nullptr); - return 0; - } - int ret = (int)cobj->getInputFlag(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getInputFlag",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getInputFlag'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) { int argc = 0; @@ -35001,194 +33394,6 @@ int lua_ax_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) return 0; } -int lua_ax_ui_EditBox_getTextHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'", nullptr); - return 0; - } - int ret = (int)cobj->getTextHorizontalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getTextHorizontalAlignment",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsetsNormalRenderer(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsNormalRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); - return 0; - } - auto&& ret = cobj->getCapInsetsPressedRenderer(); - rect_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsPressedRenderer",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getScriptEditBoxHandler(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'", nullptr); - return 0; - } - auto&& ret = cobj->getScriptEditBoxHandler(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getScriptEditBoxHandler",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_EditBox_loadTextures(lua_State* tolua_S) { int argc = 0; @@ -35285,156 +33490,6 @@ int lua_ax_ui_EditBox_loadTextures(lua_State* tolua_S) return 0; } -int lua_ax_ui_EditBox_setPlaceHolder(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceHolder'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceHolder"); arg0 = arg0_tmp.c_str(); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceHolder'", nullptr); - return 0; - } - cobj->setPlaceHolder(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceHolder",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceHolder'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setInputFlag(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setInputFlag'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::EditBox::InputFlag arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setInputFlag"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setInputFlag'", nullptr); - return 0; - } - cobj->setInputFlag(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setInputFlag",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setInputFlag'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setReturnType(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setReturnType'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::EditBox::KeyboardReturnType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setReturnType"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setReturnType'", nullptr); - return 0; - } - cobj->setReturnType(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setReturnType",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setReturnType'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_EditBox_loadTextureNormal(lua_State* tolua_S) { int argc = 0; @@ -35502,7 +33557,7 @@ int lua_ax_ui_EditBox_loadTextureNormal(lua_State* tolua_S) return 0; } -int lua_ax_ui_EditBox_getMaxLength(lua_State* tolua_S) +int lua_ax_ui_EditBox_loadTexturePressed(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; @@ -35522,7 +33577,241 @@ int lua_ax_ui_EditBox_getMaxLength(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getMaxLength'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTexturePressed"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); + return 0; + } + cobj->loadTexturePressed(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTexturePressed"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTexturePressed"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); + return 0; + } + cobj->loadTexturePressed(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTexturePressed",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTexturePressed'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureDisabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); + return 0; + } + cobj->loadTextureDisabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + std::string_view arg0; + ax::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureDisabled"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTextureDisabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); + return 0; + } + cobj->loadTextureDisabled(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTextureDisabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTextureDisabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setCapInsets(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsets'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsets"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsets'", nullptr); + return 0; + } + cobj->setCapInsets(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsets",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsets'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsNormalRenderer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'", nullptr); + return 0; + } + cobj->setCapInsetsNormalRenderer(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsNormalRenderer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); return 0; } #endif @@ -35532,19 +33821,19 @@ int lua_ax_ui_EditBox_getMaxLength(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getMaxLength'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); return 0; } - auto&& ret = cobj->getMaxLength(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getCapInsetsNormalRenderer(); + rect_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getMaxLength",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsNormalRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getMaxLength'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'.",&tolua_err); #endif return 0; @@ -35599,6 +33888,294 @@ int lua_ax_ui_EditBox_setCapInsetsPressedRenderer(lua_State* tolua_S) return 0; } +int lua_ax_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsetsPressedRenderer(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsPressedRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Rect arg0; + + ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsDisabledRenderer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'", nullptr); + return 0; + } + cobj->setCapInsetsDisabledRenderer(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsDisabledRenderer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); + return 0; + } + auto&& ret = cobj->getCapInsetsDisabledRenderer(); + rect_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsDisabledRenderer",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:registerScriptEditBoxHandler"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'", nullptr); + return 0; + } + cobj->registerScriptEditBoxHandler(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:registerScriptEditBoxHandler",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'", nullptr); + return 0; + } + cobj->unregisterScriptEditBoxHandler(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:unregisterScriptEditBoxHandler",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getScriptEditBoxHandler(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'", nullptr); + return 0; + } + auto&& ret = cobj->getScriptEditBoxHandler(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getScriptEditBoxHandler",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_EditBox_setText(lua_State* tolua_S) { int argc = 0; @@ -35649,7 +34226,7 @@ int lua_ax_ui_EditBox_setText(lua_State* tolua_S) return 0; } -int lua_ax_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) +int lua_ax_ui_EditBox_getText(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; @@ -35669,60 +34246,7 @@ int lua_ax_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFont'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - const char* arg0; - int arg1; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceholderFont"); arg0 = arg0_tmp.c_str(); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:setPlaceholderFont"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFont'", nullptr); - return 0; - } - cobj->setPlaceholderFont(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFont",argc, 2); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFont'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getText'", nullptr); return 0; } #endif @@ -35732,69 +34256,19 @@ int lua_ax_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getText'", nullptr); return 0; } - auto&& ret = cobj->getPlaceholderFontColor(); - color4b_to_luaval(tolua_S, ret); + auto&& ret = cobj->getText(); + tolua_pushstring(tolua_S,(const char*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontColor",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_EditBox_setCapInsets(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::EditBox* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsets'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Rect arg0; - - ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsets"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsets'", nullptr); - return 0; - } - cobj->setCapInsets(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsets",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsets'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getText'.",&tolua_err); #endif return 0; @@ -35852,6 +34326,1136 @@ int lua_ax_ui_EditBox_setFont(lua_State* tolua_S) return 0; } +int lua_ax_ui_EditBox_setFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setFontName"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFontName'", nullptr); + return 0; + } + cobj->setFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getFontName(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFontSize'", nullptr); + return 0; + } + cobj->setFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.EditBox:setFontColor"); + + if (!ok) { break; } + cobj->setFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.EditBox:setFontColor"); + + if (!ok) { break; } + cobj->setFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontColor'", nullptr); + return 0; + } + auto&& ret = cobj->getFontColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFont'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const char* arg0; + int arg1; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceholderFont"); arg0 = arg0_tmp.c_str(); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:setPlaceholderFont"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFont'", nullptr); + return 0; + } + cobj->setPlaceholderFont(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFont",argc, 2); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFont'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setPlaceholderFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceholderFontName"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFontName'", nullptr); + return 0; + } + cobj->setPlaceholderFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getPlaceholderFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getPlaceholderFontName(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setPlaceholderFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setPlaceholderFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'", nullptr); + return 0; + } + cobj->setPlaceholderFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getPlaceholderFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getPlaceholderFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + ax::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.EditBox:setPlaceholderFontColor"); + + if (!ok) { break; } + cobj->setPlaceholderFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + ax::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.EditBox:setPlaceholderFontColor"); + + if (!ok) { break; } + cobj->setPlaceholderFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontColor",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'", nullptr); + return 0; + } + auto&& ret = cobj->getPlaceholderFontColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setPlaceHolder(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceHolder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const char* arg0; + + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceHolder"); arg0 = arg0_tmp.c_str(); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceHolder'", nullptr); + return 0; + } + cobj->setPlaceHolder(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceHolder",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceHolder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getPlaceHolder(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceHolder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceHolder'", nullptr); + return 0; + } + auto&& ret = cobj->getPlaceHolder(); + tolua_pushstring(tolua_S,(const char*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceHolder",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceHolder'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setInputMode(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setInputMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::EditBox::InputMode arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setInputMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setInputMode'", nullptr); + return 0; + } + cobj->setInputMode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setInputMode",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setInputMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getInputMode(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getInputMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getInputMode'", nullptr); + return 0; + } + int ret = (int)cobj->getInputMode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getInputMode",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getInputMode'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setMaxLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setMaxLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setMaxLength"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setMaxLength'", nullptr); + return 0; + } + cobj->setMaxLength(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setMaxLength",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setMaxLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getMaxLength(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getMaxLength'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getMaxLength'", nullptr); + return 0; + } + auto&& ret = cobj->getMaxLength(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getMaxLength",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getMaxLength'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setInputFlag(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setInputFlag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::EditBox::InputFlag arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setInputFlag"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setInputFlag'", nullptr); + return 0; + } + cobj->setInputFlag(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setInputFlag",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setInputFlag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getInputFlag(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getInputFlag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getInputFlag'", nullptr); + return 0; + } + int ret = (int)cobj->getInputFlag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getInputFlag",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getInputFlag'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_setReturnType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setReturnType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::EditBox::KeyboardReturnType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setReturnType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setReturnType'", nullptr); + return 0; + } + cobj->setReturnType(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setReturnType",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setReturnType'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_getReturnType(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getReturnType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getReturnType'", nullptr); + return 0; + } + int ret = (int)cobj->getReturnType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getReturnType",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getReturnType'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_EditBox_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; @@ -35902,6 +35506,351 @@ int lua_ax_ui_EditBox_setTextHorizontalAlignment(lua_State* tolua_S) return 0; } +int lua_ax_ui_EditBox_getTextHorizontalAlignment(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'", nullptr); + return 0; + } + int ret = (int)cobj->getTextHorizontalAlignment(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getTextHorizontalAlignment",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_keyboardWillShow(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardWillShow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::IMEKeyboardNotificationInfo arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardWillShow'", nullptr); + return 0; + } + cobj->keyboardWillShow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardWillShow",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardWillShow'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_keyboardDidShow(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardDidShow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::IMEKeyboardNotificationInfo arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardDidShow'", nullptr); + return 0; + } + cobj->keyboardDidShow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardDidShow",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardDidShow'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_keyboardWillHide(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardWillHide'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::IMEKeyboardNotificationInfo arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardWillHide'", nullptr); + return 0; + } + cobj->keyboardWillHide(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardWillHide",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardWillHide'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_keyboardDidHide(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardDidHide'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::IMEKeyboardNotificationInfo arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardDidHide'", nullptr); + return 0; + } + cobj->keyboardDidHide(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardDidHide",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardDidHide'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_openKeyboard(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_openKeyboard'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_openKeyboard'", nullptr); + return 0; + } + cobj->openKeyboard(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:openKeyboard",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_openKeyboard'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_EditBox_closeKeyboard(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::EditBox* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_closeKeyboard'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_closeKeyboard'", nullptr); + return 0; + } + cobj->closeKeyboard(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:closeKeyboard",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_closeKeyboard'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_EditBox_create(lua_State* tolua_S) { int argc = 0; @@ -36132,56 +36081,56 @@ int lua_register_ax_ui_EditBox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EditBox"); tolua_function(tolua_S,"new",lua_ax_ui_EditBox_constructor); - tolua_function(tolua_S,"getFontSize",lua_ax_ui_EditBox_getFontSize); - tolua_function(tolua_S,"keyboardDidShow",lua_ax_ui_EditBox_keyboardDidShow); - tolua_function(tolua_S,"setMaxLength",lua_ax_ui_EditBox_setMaxLength); - tolua_function(tolua_S,"openKeyboard",lua_ax_ui_EditBox_openKeyboard); - tolua_function(tolua_S,"setFontSize",lua_ax_ui_EditBox_setFontSize); - tolua_function(tolua_S,"getText",lua_ax_ui_EditBox_getText); - tolua_function(tolua_S,"getInputMode",lua_ax_ui_EditBox_getInputMode); tolua_function(tolua_S,"initWithSizeAndBackgroundSprite",lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite); - tolua_function(tolua_S,"getPlaceholderFontName",lua_ax_ui_EditBox_getPlaceholderFontName); - tolua_function(tolua_S,"keyboardDidHide",lua_ax_ui_EditBox_keyboardDidHide); - tolua_function(tolua_S,"setPlaceholderFontName",lua_ax_ui_EditBox_setPlaceholderFontName); - tolua_function(tolua_S,"getPlaceholderFontSize",lua_ax_ui_EditBox_getPlaceholderFontSize); - tolua_function(tolua_S,"getCapInsetsDisabledRenderer",lua_ax_ui_EditBox_getCapInsetsDisabledRenderer); - tolua_function(tolua_S,"getPlaceHolder",lua_ax_ui_EditBox_getPlaceHolder); - tolua_function(tolua_S,"setFontName",lua_ax_ui_EditBox_setFontName); - tolua_function(tolua_S,"registerScriptEditBoxHandler",lua_ax_ui_EditBox_registerScriptEditBoxHandler); - tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_ax_ui_EditBox_setCapInsetsDisabledRenderer); - tolua_function(tolua_S,"setPlaceholderFontSize",lua_ax_ui_EditBox_setPlaceholderFontSize); - tolua_function(tolua_S,"loadTextureDisabled",lua_ax_ui_EditBox_loadTextureDisabled); - tolua_function(tolua_S,"setInputMode",lua_ax_ui_EditBox_setInputMode); - tolua_function(tolua_S,"unregisterScriptEditBoxHandler",lua_ax_ui_EditBox_unregisterScriptEditBoxHandler); - tolua_function(tolua_S,"keyboardWillShow",lua_ax_ui_EditBox_keyboardWillShow); - tolua_function(tolua_S,"setPlaceholderFontColor",lua_ax_ui_EditBox_setPlaceholderFontColor); - tolua_function(tolua_S,"getReturnType",lua_ax_ui_EditBox_getReturnType); - tolua_function(tolua_S,"setFontColor",lua_ax_ui_EditBox_setFontColor); - tolua_function(tolua_S,"getFontName",lua_ax_ui_EditBox_getFontName); - tolua_function(tolua_S,"keyboardWillHide",lua_ax_ui_EditBox_keyboardWillHide); - tolua_function(tolua_S,"closeKeyboard",lua_ax_ui_EditBox_closeKeyboard); - tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_ax_ui_EditBox_setCapInsetsNormalRenderer); - tolua_function(tolua_S,"loadTexturePressed",lua_ax_ui_EditBox_loadTexturePressed); - tolua_function(tolua_S,"getFontColor",lua_ax_ui_EditBox_getFontColor); - tolua_function(tolua_S,"getInputFlag",lua_ax_ui_EditBox_getInputFlag); tolua_function(tolua_S,"initWithSizeAndTexture",lua_ax_ui_EditBox_initWithSizeAndTexture); - tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_EditBox_getTextHorizontalAlignment); - tolua_function(tolua_S,"getCapInsetsNormalRenderer",lua_ax_ui_EditBox_getCapInsetsNormalRenderer); - tolua_function(tolua_S,"getCapInsetsPressedRenderer",lua_ax_ui_EditBox_getCapInsetsPressedRenderer); - tolua_function(tolua_S,"getScriptEditBoxHandler",lua_ax_ui_EditBox_getScriptEditBoxHandler); tolua_function(tolua_S,"loadTextures",lua_ax_ui_EditBox_loadTextures); - tolua_function(tolua_S,"setPlaceHolder",lua_ax_ui_EditBox_setPlaceHolder); - tolua_function(tolua_S,"setInputFlag",lua_ax_ui_EditBox_setInputFlag); - tolua_function(tolua_S,"setReturnType",lua_ax_ui_EditBox_setReturnType); tolua_function(tolua_S,"loadTextureNormal",lua_ax_ui_EditBox_loadTextureNormal); - tolua_function(tolua_S,"getMaxLength",lua_ax_ui_EditBox_getMaxLength); - tolua_function(tolua_S,"setCapInsetsPressedRenderer",lua_ax_ui_EditBox_setCapInsetsPressedRenderer); - tolua_function(tolua_S,"setText",lua_ax_ui_EditBox_setText); - tolua_function(tolua_S,"setPlaceholderFont",lua_ax_ui_EditBox_setPlaceholderFont); - tolua_function(tolua_S,"getPlaceholderFontColor",lua_ax_ui_EditBox_getPlaceholderFontColor); + tolua_function(tolua_S,"loadTexturePressed",lua_ax_ui_EditBox_loadTexturePressed); + tolua_function(tolua_S,"loadTextureDisabled",lua_ax_ui_EditBox_loadTextureDisabled); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_EditBox_setCapInsets); + tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_ax_ui_EditBox_setCapInsetsNormalRenderer); + tolua_function(tolua_S,"getCapInsetsNormalRenderer",lua_ax_ui_EditBox_getCapInsetsNormalRenderer); + tolua_function(tolua_S,"setCapInsetsPressedRenderer",lua_ax_ui_EditBox_setCapInsetsPressedRenderer); + tolua_function(tolua_S,"getCapInsetsPressedRenderer",lua_ax_ui_EditBox_getCapInsetsPressedRenderer); + tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_ax_ui_EditBox_setCapInsetsDisabledRenderer); + tolua_function(tolua_S,"getCapInsetsDisabledRenderer",lua_ax_ui_EditBox_getCapInsetsDisabledRenderer); + tolua_function(tolua_S,"registerScriptEditBoxHandler",lua_ax_ui_EditBox_registerScriptEditBoxHandler); + tolua_function(tolua_S,"unregisterScriptEditBoxHandler",lua_ax_ui_EditBox_unregisterScriptEditBoxHandler); + tolua_function(tolua_S,"getScriptEditBoxHandler",lua_ax_ui_EditBox_getScriptEditBoxHandler); + tolua_function(tolua_S,"setText",lua_ax_ui_EditBox_setText); + tolua_function(tolua_S,"getText",lua_ax_ui_EditBox_getText); tolua_function(tolua_S,"setFont",lua_ax_ui_EditBox_setFont); + tolua_function(tolua_S,"setFontName",lua_ax_ui_EditBox_setFontName); + tolua_function(tolua_S,"getFontName",lua_ax_ui_EditBox_getFontName); + tolua_function(tolua_S,"setFontSize",lua_ax_ui_EditBox_setFontSize); + tolua_function(tolua_S,"getFontSize",lua_ax_ui_EditBox_getFontSize); + tolua_function(tolua_S,"setFontColor",lua_ax_ui_EditBox_setFontColor); + tolua_function(tolua_S,"getFontColor",lua_ax_ui_EditBox_getFontColor); + tolua_function(tolua_S,"setPlaceholderFont",lua_ax_ui_EditBox_setPlaceholderFont); + tolua_function(tolua_S,"setPlaceholderFontName",lua_ax_ui_EditBox_setPlaceholderFontName); + tolua_function(tolua_S,"getPlaceholderFontName",lua_ax_ui_EditBox_getPlaceholderFontName); + tolua_function(tolua_S,"setPlaceholderFontSize",lua_ax_ui_EditBox_setPlaceholderFontSize); + tolua_function(tolua_S,"getPlaceholderFontSize",lua_ax_ui_EditBox_getPlaceholderFontSize); + tolua_function(tolua_S,"setPlaceholderFontColor",lua_ax_ui_EditBox_setPlaceholderFontColor); + tolua_function(tolua_S,"getPlaceholderFontColor",lua_ax_ui_EditBox_getPlaceholderFontColor); + tolua_function(tolua_S,"setPlaceHolder",lua_ax_ui_EditBox_setPlaceHolder); + tolua_function(tolua_S,"getPlaceHolder",lua_ax_ui_EditBox_getPlaceHolder); + tolua_function(tolua_S,"setInputMode",lua_ax_ui_EditBox_setInputMode); + tolua_function(tolua_S,"getInputMode",lua_ax_ui_EditBox_getInputMode); + tolua_function(tolua_S,"setMaxLength",lua_ax_ui_EditBox_setMaxLength); + tolua_function(tolua_S,"getMaxLength",lua_ax_ui_EditBox_getMaxLength); + tolua_function(tolua_S,"setInputFlag",lua_ax_ui_EditBox_setInputFlag); + tolua_function(tolua_S,"getInputFlag",lua_ax_ui_EditBox_getInputFlag); + tolua_function(tolua_S,"setReturnType",lua_ax_ui_EditBox_setReturnType); + tolua_function(tolua_S,"getReturnType",lua_ax_ui_EditBox_getReturnType); tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_EditBox_setTextHorizontalAlignment); + tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_EditBox_getTextHorizontalAlignment); + tolua_function(tolua_S,"keyboardWillShow",lua_ax_ui_EditBox_keyboardWillShow); + tolua_function(tolua_S,"keyboardDidShow",lua_ax_ui_EditBox_keyboardDidShow); + tolua_function(tolua_S,"keyboardWillHide",lua_ax_ui_EditBox_keyboardWillHide); + tolua_function(tolua_S,"keyboardDidHide",lua_ax_ui_EditBox_keyboardDidHide); + tolua_function(tolua_S,"openKeyboard",lua_ax_ui_EditBox_openKeyboard); + tolua_function(tolua_S,"closeKeyboard",lua_ax_ui_EditBox_closeKeyboard); tolua_function(tolua_S,"create", lua_ax_ui_EditBox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::EditBox).name(); // rtti is literal storage @@ -36190,1708 +36139,6 @@ int lua_register_ax_ui_EditBox(lua_State* tolua_S) return 1; } -int lua_ax_ui_LayoutComponent_setStretchWidthEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setStretchWidthEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'", nullptr); - return 0; - } - cobj->setStretchWidthEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setStretchWidthEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPercentWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentWidth'", nullptr); - return 0; - } - cobj->setPercentWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getAnchorPosition(); - point_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getAnchorPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPositionPercentXEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentXEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'", nullptr); - return 0; - } - cobj->setPositionPercentXEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentXEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setStretchHeightEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setStretchHeightEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'", nullptr); - return 0; - } - cobj->setStretchHeightEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setStretchHeightEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setActiveEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setActiveEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'", nullptr); - return 0; - } - cobj->setActiveEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setActiveEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getRightMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getRightMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getRightMargin'", nullptr); - return 0; - } - auto&& ret = cobj->getRightMargin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getRightMargin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getRightMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSize'", nullptr); - return 0; - } - auto&& ret = cobj->getSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Point arg0; - - ok &= luaval_to_point(tolua_S, 2, &arg0, "axui.LayoutComponent:setAnchorPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'", nullptr); - return 0; - } - cobj->setAnchorPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setAnchorPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_refreshLayout(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_refreshLayout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_refreshLayout'", nullptr); - return 0; - } - cobj->refreshLayout(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:refreshLayout",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_refreshLayout'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_isPercentWidthEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isPercentWidthEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPercentWidthEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::LayoutComponent::VerticalEdge arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LayoutComponent:setVerticalEdge"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'", nullptr); - return 0; - } - cobj->setVerticalEdge(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setVerticalEdge",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getTopMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getTopMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getTopMargin'", nullptr); - return 0; - } - auto&& ret = cobj->getTopMargin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getTopMargin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getTopMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setSizeWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSizeWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setSizeWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSizeWidth'", nullptr); - return 0; - } - cobj->setSizeWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSizeWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSizeWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'", nullptr); - return 0; - } - auto&& ret = cobj->getPercentContentSize(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentContentSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getVerticalEdge(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'", nullptr); - return 0; - } - int ret = (int)cobj->getVerticalEdge(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getVerticalEdge",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPercentWidthEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentWidthEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'", nullptr); - return 0; - } - cobj->setPercentWidthEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentWidthEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_isStretchWidthEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isStretchWidthEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isStretchWidthEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setLeftMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setLeftMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setLeftMargin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setLeftMargin'", nullptr); - return 0; - } - cobj->setLeftMargin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setLeftMargin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setLeftMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getSizeWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSizeWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSizeWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getSizeWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSizeWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSizeWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPositionPercentYEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentYEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'", nullptr); - return 0; - } - cobj->setPositionPercentYEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentYEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getSizeHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSizeHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSizeHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getSizeHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSizeHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSizeHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getPositionPercentY(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionPercentY(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPositionPercentY",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getPositionPercentX(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'", nullptr); - return 0; - } - auto&& ret = cobj->getPositionPercentX(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPositionPercentX",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setTopMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setTopMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setTopMargin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setTopMargin'", nullptr); - return 0; - } - cobj->setTopMargin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setTopMargin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setTopMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getPercentHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentHeight'", nullptr); - return 0; - } - auto&& ret = cobj->getPercentHeight(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentHeight",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getUsingPercentContentSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'", nullptr); - return 0; - } - auto&& ret = cobj->getUsingPercentContentSize(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getUsingPercentContentSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPositionPercentY(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'", nullptr); - return 0; - } - cobj->setPositionPercentY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentY",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPositionPercentX(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'", nullptr); - return 0; - } - cobj->setPositionPercentX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentX",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setRightMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setRightMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setRightMargin"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setRightMargin'", nullptr); - return 0; - } - cobj->setRightMargin(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setRightMargin",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setRightMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_isPositionPercentYEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isPositionPercentYEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPositionPercentYEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPercentHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentHeight'", nullptr); - return 0; - } - cobj->setPercentHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPercentOnlyEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentOnlyEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'", nullptr); - return 0; - } - cobj->setPercentOnlyEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentOnlyEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::LayoutComponent::HorizontalEdge arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LayoutComponent:setHorizontalEdge"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'", nullptr); - return 0; - } - cobj->setHorizontalEdge(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setHorizontalEdge",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::Point arg0; - - ok &= luaval_to_point(tolua_S, 2, &arg0, "axui.LayoutComponent:setPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPosition'", nullptr); - return 0; - } - cobj->setPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPosition",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPosition'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_LayoutComponent_setUsingPercentContentSize(lua_State* tolua_S) { int argc = 0; @@ -37942,7 +36189,7 @@ int lua_ax_ui_LayoutComponent_setUsingPercentContentSize(lua_State* tolua_S) return 0; } -int lua_ax_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) +int lua_ax_ui_LayoutComponent_getUsingPercentContentSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; @@ -37962,7 +36209,7 @@ int lua_ax_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getLeftMargin'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'", nullptr); return 0; } #endif @@ -37972,260 +36219,19 @@ int lua_ax_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getLeftMargin'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'", nullptr); return 0; } - auto&& ret = cobj->getLeftMargin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getLeftMargin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getLeftMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getPosition(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPosition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPosition'", nullptr); - return 0; - } - auto&& ret = cobj->getPosition(); - point_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPosition",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPosition'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setSizeHeight(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSizeHeight'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setSizeHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSizeHeight'", nullptr); - return 0; - } - cobj->setSizeHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSizeHeight",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSizeHeight'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_isPositionPercentXEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isPositionPercentXEnabled(); + auto&& ret = cobj->getUsingPercentContentSize(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPositionPercentXEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getUsingPercentContentSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_getBottomMargin(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getBottomMargin'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getBottomMargin'", nullptr); - return 0; - } - auto&& ret = cobj->getBottomMargin(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getBottomMargin",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getBottomMargin'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_LayoutComponent_setPercentHeightEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::LayoutComponent* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentHeightEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'", nullptr); - return 0; - } - cobj->setPercentHeightEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentHeightEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'.",&tolua_err); #endif return 0; @@ -38280,7 +36286,7 @@ int lua_ax_ui_LayoutComponent_setPercentContentSize(lua_State* tolua_S) return 0; } -int lua_ax_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) +int lua_ax_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; @@ -38300,7 +36306,7 @@ int lua_ax_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'", nullptr); return 0; } #endif @@ -38310,24 +36316,24 @@ int lua_ax_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'", nullptr); return 0; } - auto&& ret = cobj->isPercentHeightEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getPercentContentSize(); + vec2_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPercentHeightEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentContentSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'.",&tolua_err); #endif return 0; } -int lua_ax_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) +int lua_ax_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; @@ -38347,7 +36353,7 @@ int lua_ax_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentWidth'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'", nullptr); return 0; } #endif @@ -38357,19 +36363,554 @@ int lua_ax_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentWidth'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'", nullptr); return 0; } - auto&& ret = cobj->getPercentWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + auto&& ret = cobj->getAnchorPosition(); + point_to_luaval(tolua_S, ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentWidth",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getAnchorPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentWidth'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Point arg0; + + ok &= luaval_to_point(tolua_S, 2, &arg0, "axui.LayoutComponent:setAnchorPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'", nullptr); + return 0; + } + cobj->setAnchorPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setAnchorPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPosition'", nullptr); + return 0; + } + auto&& ret = cobj->getPosition(); + point_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPosition",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPosition(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::Point arg0; + + ok &= luaval_to_point(tolua_S, 2, &arg0, "axui.LayoutComponent:setPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPosition'", nullptr); + return 0; + } + cobj->setPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPosition",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_isPositionPercentXEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isPositionPercentXEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPositionPercentXEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPositionPercentXEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentXEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'", nullptr); + return 0; + } + cobj->setPositionPercentXEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentXEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getPositionPercentX(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionPercentX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPositionPercentX",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPositionPercentX(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'", nullptr); + return 0; + } + cobj->setPositionPercentX(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentX",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_isPositionPercentYEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isPositionPercentYEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPositionPercentYEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPositionPercentYEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentYEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'", nullptr); + return 0; + } + cobj->setPositionPercentYEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentYEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getPositionPercentY(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'", nullptr); + return 0; + } + auto&& ret = cobj->getPositionPercentY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPositionPercentY",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPositionPercentY(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'", nullptr); + return 0; + } + cobj->setPositionPercentY(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentY",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'.",&tolua_err); #endif return 0; @@ -38421,7 +36962,7 @@ int lua_ax_ui_LayoutComponent_getHorizontalEdge(lua_State* tolua_S) return 0; } -int lua_ax_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) +int lua_ax_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; @@ -38441,7 +36982,57 @@ int lua_ax_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::LayoutComponent::HorizontalEdge arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LayoutComponent:setHorizontalEdge"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'", nullptr); + return 0; + } + cobj->setHorizontalEdge(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setHorizontalEdge",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getVerticalEdge(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'", nullptr); return 0; } #endif @@ -38451,19 +37042,407 @@ int lua_ax_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'", nullptr); return 0; } - auto&& ret = cobj->isStretchHeightEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + int ret = (int)cobj->getVerticalEdge(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isStretchHeightEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getVerticalEdge",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::LayoutComponent::VerticalEdge arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LayoutComponent:setVerticalEdge"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'", nullptr); + return 0; + } + cobj->setVerticalEdge(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setVerticalEdge",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getLeftMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getLeftMargin'", nullptr); + return 0; + } + auto&& ret = cobj->getLeftMargin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getLeftMargin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getLeftMargin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setLeftMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setLeftMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setLeftMargin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setLeftMargin'", nullptr); + return 0; + } + cobj->setLeftMargin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setLeftMargin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setLeftMargin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getRightMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getRightMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getRightMargin'", nullptr); + return 0; + } + auto&& ret = cobj->getRightMargin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getRightMargin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getRightMargin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setRightMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setRightMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setRightMargin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setRightMargin'", nullptr); + return 0; + } + cobj->setRightMargin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setRightMargin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setRightMargin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getTopMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getTopMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getTopMargin'", nullptr); + return 0; + } + auto&& ret = cobj->getTopMargin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getTopMargin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getTopMargin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setTopMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setTopMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setTopMargin"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setTopMargin'", nullptr); + return 0; + } + cobj->setTopMargin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setTopMargin",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setTopMargin'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getBottomMargin(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getBottomMargin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getBottomMargin'", nullptr); + return 0; + } + auto&& ret = cobj->getBottomMargin(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getBottomMargin",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getBottomMargin'.",&tolua_err); #endif return 0; @@ -38518,6 +37497,53 @@ int lua_ax_ui_LayoutComponent_setBottomMargin(lua_State* tolua_S) return 0; } +int lua_ax_ui_LayoutComponent_getSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSize'", nullptr); + return 0; + } + auto&& ret = cobj->getSize(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSize'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_LayoutComponent_setSize(lua_State* tolua_S) { int argc = 0; @@ -38568,6 +37594,929 @@ int lua_ax_ui_LayoutComponent_setSize(lua_State* tolua_S) return 0; } +int lua_ax_ui_LayoutComponent_isPercentWidthEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isPercentWidthEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPercentWidthEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPercentWidthEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentWidthEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'", nullptr); + return 0; + } + cobj->setPercentWidthEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentWidthEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getSizeWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSizeWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSizeWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getSizeWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSizeWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSizeWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setSizeWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSizeWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setSizeWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSizeWidth'", nullptr); + return 0; + } + cobj->setSizeWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSizeWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSizeWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getPercentWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPercentWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentWidth"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentWidth'", nullptr); + return 0; + } + cobj->setPercentWidth(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentWidth",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isPercentHeightEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPercentHeightEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPercentHeightEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentHeightEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'", nullptr); + return 0; + } + cobj->setPercentHeightEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentHeightEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getSizeHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSizeHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSizeHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getSizeHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSizeHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSizeHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setSizeHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSizeHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setSizeHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSizeHeight'", nullptr); + return 0; + } + cobj->setSizeHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSizeHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSizeHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_getPercentHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentHeight'", nullptr); + return 0; + } + auto&& ret = cobj->getPercentHeight(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentHeight",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPercentHeight(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentHeight'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentHeight'", nullptr); + return 0; + } + cobj->setPercentHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentHeight",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentHeight'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_isStretchWidthEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isStretchWidthEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isStretchWidthEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setStretchWidthEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setStretchWidthEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'", nullptr); + return 0; + } + cobj->setStretchWidthEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setStretchWidthEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isStretchHeightEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isStretchHeightEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setStretchHeightEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setStretchHeightEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'", nullptr); + return 0; + } + cobj->setStretchHeightEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setStretchHeightEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setPercentOnlyEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentOnlyEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'", nullptr); + return 0; + } + cobj->setPercentOnlyEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentOnlyEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_setActiveEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setActiveEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'", nullptr); + return 0; + } + cobj->setActiveEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setActiveEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_LayoutComponent_refreshLayout(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::LayoutComponent* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_refreshLayout'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_refreshLayout'", nullptr); + return 0; + } + cobj->refreshLayout(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:refreshLayout",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_refreshLayout'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_LayoutComponent_create(lua_State* tolua_S) { int argc = 0; @@ -38688,55 +38637,55 @@ int lua_register_ax_ui_LayoutComponent(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LayoutComponent"); tolua_function(tolua_S,"new",lua_ax_ui_LayoutComponent_constructor); - tolua_function(tolua_S,"setStretchWidthEnabled",lua_ax_ui_LayoutComponent_setStretchWidthEnabled); - tolua_function(tolua_S,"setPercentWidth",lua_ax_ui_LayoutComponent_setPercentWidth); - tolua_function(tolua_S,"getAnchorPosition",lua_ax_ui_LayoutComponent_getAnchorPosition); - tolua_function(tolua_S,"setPositionPercentXEnabled",lua_ax_ui_LayoutComponent_setPositionPercentXEnabled); - tolua_function(tolua_S,"setStretchHeightEnabled",lua_ax_ui_LayoutComponent_setStretchHeightEnabled); - tolua_function(tolua_S,"setActiveEnabled",lua_ax_ui_LayoutComponent_setActiveEnabled); - tolua_function(tolua_S,"getRightMargin",lua_ax_ui_LayoutComponent_getRightMargin); - tolua_function(tolua_S,"getSize",lua_ax_ui_LayoutComponent_getSize); - tolua_function(tolua_S,"setAnchorPosition",lua_ax_ui_LayoutComponent_setAnchorPosition); - tolua_function(tolua_S,"refreshLayout",lua_ax_ui_LayoutComponent_refreshLayout); - tolua_function(tolua_S,"isPercentWidthEnabled",lua_ax_ui_LayoutComponent_isPercentWidthEnabled); - tolua_function(tolua_S,"setVerticalEdge",lua_ax_ui_LayoutComponent_setVerticalEdge); - tolua_function(tolua_S,"getTopMargin",lua_ax_ui_LayoutComponent_getTopMargin); - tolua_function(tolua_S,"setSizeWidth",lua_ax_ui_LayoutComponent_setSizeWidth); - tolua_function(tolua_S,"getPercentContentSize",lua_ax_ui_LayoutComponent_getPercentContentSize); - tolua_function(tolua_S,"getVerticalEdge",lua_ax_ui_LayoutComponent_getVerticalEdge); - tolua_function(tolua_S,"setPercentWidthEnabled",lua_ax_ui_LayoutComponent_setPercentWidthEnabled); - tolua_function(tolua_S,"isStretchWidthEnabled",lua_ax_ui_LayoutComponent_isStretchWidthEnabled); - tolua_function(tolua_S,"setLeftMargin",lua_ax_ui_LayoutComponent_setLeftMargin); - tolua_function(tolua_S,"getSizeWidth",lua_ax_ui_LayoutComponent_getSizeWidth); - tolua_function(tolua_S,"setPositionPercentYEnabled",lua_ax_ui_LayoutComponent_setPositionPercentYEnabled); - tolua_function(tolua_S,"getSizeHeight",lua_ax_ui_LayoutComponent_getSizeHeight); - tolua_function(tolua_S,"getPositionPercentY",lua_ax_ui_LayoutComponent_getPositionPercentY); - tolua_function(tolua_S,"getPositionPercentX",lua_ax_ui_LayoutComponent_getPositionPercentX); - tolua_function(tolua_S,"setTopMargin",lua_ax_ui_LayoutComponent_setTopMargin); - tolua_function(tolua_S,"getPercentHeight",lua_ax_ui_LayoutComponent_getPercentHeight); - tolua_function(tolua_S,"getUsingPercentContentSize",lua_ax_ui_LayoutComponent_getUsingPercentContentSize); - tolua_function(tolua_S,"setPositionPercentY",lua_ax_ui_LayoutComponent_setPositionPercentY); - tolua_function(tolua_S,"setPositionPercentX",lua_ax_ui_LayoutComponent_setPositionPercentX); - tolua_function(tolua_S,"setRightMargin",lua_ax_ui_LayoutComponent_setRightMargin); - tolua_function(tolua_S,"isPositionPercentYEnabled",lua_ax_ui_LayoutComponent_isPositionPercentYEnabled); - tolua_function(tolua_S,"setPercentHeight",lua_ax_ui_LayoutComponent_setPercentHeight); - tolua_function(tolua_S,"setPercentOnlyEnabled",lua_ax_ui_LayoutComponent_setPercentOnlyEnabled); - tolua_function(tolua_S,"setHorizontalEdge",lua_ax_ui_LayoutComponent_setHorizontalEdge); - tolua_function(tolua_S,"setPosition",lua_ax_ui_LayoutComponent_setPosition); tolua_function(tolua_S,"setUsingPercentContentSize",lua_ax_ui_LayoutComponent_setUsingPercentContentSize); - tolua_function(tolua_S,"getLeftMargin",lua_ax_ui_LayoutComponent_getLeftMargin); - tolua_function(tolua_S,"getPosition",lua_ax_ui_LayoutComponent_getPosition); - tolua_function(tolua_S,"setSizeHeight",lua_ax_ui_LayoutComponent_setSizeHeight); - tolua_function(tolua_S,"isPositionPercentXEnabled",lua_ax_ui_LayoutComponent_isPositionPercentXEnabled); - tolua_function(tolua_S,"getBottomMargin",lua_ax_ui_LayoutComponent_getBottomMargin); - tolua_function(tolua_S,"setPercentHeightEnabled",lua_ax_ui_LayoutComponent_setPercentHeightEnabled); + tolua_function(tolua_S,"getUsingPercentContentSize",lua_ax_ui_LayoutComponent_getUsingPercentContentSize); tolua_function(tolua_S,"setPercentContentSize",lua_ax_ui_LayoutComponent_setPercentContentSize); - tolua_function(tolua_S,"isPercentHeightEnabled",lua_ax_ui_LayoutComponent_isPercentHeightEnabled); - tolua_function(tolua_S,"getPercentWidth",lua_ax_ui_LayoutComponent_getPercentWidth); + tolua_function(tolua_S,"getPercentContentSize",lua_ax_ui_LayoutComponent_getPercentContentSize); + tolua_function(tolua_S,"getAnchorPosition",lua_ax_ui_LayoutComponent_getAnchorPosition); + tolua_function(tolua_S,"setAnchorPosition",lua_ax_ui_LayoutComponent_setAnchorPosition); + tolua_function(tolua_S,"getPosition",lua_ax_ui_LayoutComponent_getPosition); + tolua_function(tolua_S,"setPosition",lua_ax_ui_LayoutComponent_setPosition); + tolua_function(tolua_S,"isPositionPercentXEnabled",lua_ax_ui_LayoutComponent_isPositionPercentXEnabled); + tolua_function(tolua_S,"setPositionPercentXEnabled",lua_ax_ui_LayoutComponent_setPositionPercentXEnabled); + tolua_function(tolua_S,"getPositionPercentX",lua_ax_ui_LayoutComponent_getPositionPercentX); + tolua_function(tolua_S,"setPositionPercentX",lua_ax_ui_LayoutComponent_setPositionPercentX); + tolua_function(tolua_S,"isPositionPercentYEnabled",lua_ax_ui_LayoutComponent_isPositionPercentYEnabled); + tolua_function(tolua_S,"setPositionPercentYEnabled",lua_ax_ui_LayoutComponent_setPositionPercentYEnabled); + tolua_function(tolua_S,"getPositionPercentY",lua_ax_ui_LayoutComponent_getPositionPercentY); + tolua_function(tolua_S,"setPositionPercentY",lua_ax_ui_LayoutComponent_setPositionPercentY); tolua_function(tolua_S,"getHorizontalEdge",lua_ax_ui_LayoutComponent_getHorizontalEdge); - tolua_function(tolua_S,"isStretchHeightEnabled",lua_ax_ui_LayoutComponent_isStretchHeightEnabled); + tolua_function(tolua_S,"setHorizontalEdge",lua_ax_ui_LayoutComponent_setHorizontalEdge); + tolua_function(tolua_S,"getVerticalEdge",lua_ax_ui_LayoutComponent_getVerticalEdge); + tolua_function(tolua_S,"setVerticalEdge",lua_ax_ui_LayoutComponent_setVerticalEdge); + tolua_function(tolua_S,"getLeftMargin",lua_ax_ui_LayoutComponent_getLeftMargin); + tolua_function(tolua_S,"setLeftMargin",lua_ax_ui_LayoutComponent_setLeftMargin); + tolua_function(tolua_S,"getRightMargin",lua_ax_ui_LayoutComponent_getRightMargin); + tolua_function(tolua_S,"setRightMargin",lua_ax_ui_LayoutComponent_setRightMargin); + tolua_function(tolua_S,"getTopMargin",lua_ax_ui_LayoutComponent_getTopMargin); + tolua_function(tolua_S,"setTopMargin",lua_ax_ui_LayoutComponent_setTopMargin); + tolua_function(tolua_S,"getBottomMargin",lua_ax_ui_LayoutComponent_getBottomMargin); tolua_function(tolua_S,"setBottomMargin",lua_ax_ui_LayoutComponent_setBottomMargin); + tolua_function(tolua_S,"getSize",lua_ax_ui_LayoutComponent_getSize); tolua_function(tolua_S,"setSize",lua_ax_ui_LayoutComponent_setSize); + tolua_function(tolua_S,"isPercentWidthEnabled",lua_ax_ui_LayoutComponent_isPercentWidthEnabled); + tolua_function(tolua_S,"setPercentWidthEnabled",lua_ax_ui_LayoutComponent_setPercentWidthEnabled); + tolua_function(tolua_S,"getSizeWidth",lua_ax_ui_LayoutComponent_getSizeWidth); + tolua_function(tolua_S,"setSizeWidth",lua_ax_ui_LayoutComponent_setSizeWidth); + tolua_function(tolua_S,"getPercentWidth",lua_ax_ui_LayoutComponent_getPercentWidth); + tolua_function(tolua_S,"setPercentWidth",lua_ax_ui_LayoutComponent_setPercentWidth); + tolua_function(tolua_S,"isPercentHeightEnabled",lua_ax_ui_LayoutComponent_isPercentHeightEnabled); + tolua_function(tolua_S,"setPercentHeightEnabled",lua_ax_ui_LayoutComponent_setPercentHeightEnabled); + tolua_function(tolua_S,"getSizeHeight",lua_ax_ui_LayoutComponent_getSizeHeight); + tolua_function(tolua_S,"setSizeHeight",lua_ax_ui_LayoutComponent_setSizeHeight); + tolua_function(tolua_S,"getPercentHeight",lua_ax_ui_LayoutComponent_getPercentHeight); + tolua_function(tolua_S,"setPercentHeight",lua_ax_ui_LayoutComponent_setPercentHeight); + tolua_function(tolua_S,"isStretchWidthEnabled",lua_ax_ui_LayoutComponent_isStretchWidthEnabled); + tolua_function(tolua_S,"setStretchWidthEnabled",lua_ax_ui_LayoutComponent_setStretchWidthEnabled); + tolua_function(tolua_S,"isStretchHeightEnabled",lua_ax_ui_LayoutComponent_isStretchHeightEnabled); + tolua_function(tolua_S,"setStretchHeightEnabled",lua_ax_ui_LayoutComponent_setStretchHeightEnabled); + tolua_function(tolua_S,"setPercentOnlyEnabled",lua_ax_ui_LayoutComponent_setPercentOnlyEnabled); + tolua_function(tolua_S,"setActiveEnabled",lua_ax_ui_LayoutComponent_setActiveEnabled); + tolua_function(tolua_S,"refreshLayout",lua_ax_ui_LayoutComponent_refreshLayout); tolua_function(tolua_S,"create", lua_ax_ui_LayoutComponent_create); tolua_function(tolua_S,"bindLayoutComponent", lua_ax_ui_LayoutComponent_bindLayoutComponent); tolua_endmodule(tolua_S); @@ -38746,341 +38695,6 @@ int lua_register_ax_ui_LayoutComponent(lua_State* tolua_S) return 1; } -int lua_ax_ui_TabHeader_getIndexInTabControl(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getIndexInTabControl'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getIndexInTabControl'", nullptr); - return 0; - } - auto&& ret = cobj->getIndexInTabControl(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getIndexInTabControl",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getIndexInTabControl'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabHeader_getTitleText(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleText'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleText(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleText",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleText'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabHeader_setTitleFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabHeader:setTitleFontSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleFontSize'", nullptr); - return 0; - } - cobj->setTitleFontSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleFontSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabHeader_setTitleFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:setTitleFontName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleFontName'", nullptr); - return 0; - } - cobj->setTitleFontName(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleFontName",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabHeader_getTitleFontSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleFontSize'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleFontSize",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabHeader_getTitleFontName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleFontName'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleFontName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleFontName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabHeader_getTitleColor(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabHeader* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleColor'", nullptr); - return 0; - } - auto&& ret = cobj->getTitleColor(); - color4b_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleColor",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleColor'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_TabHeader_getTitleRenderer(lua_State* tolua_S) { int argc = 0; @@ -39178,6 +38792,53 @@ int lua_ax_ui_TabHeader_setTitleText(lua_State* tolua_S) return 0; } +int lua_ax_ui_TabHeader_getTitleText(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleText'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleText'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleText(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleText",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleText'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_TabHeader_setTitleColor(lua_State* tolua_S) { int argc = 0; @@ -39228,6 +38889,294 @@ int lua_ax_ui_TabHeader_setTitleColor(lua_State* tolua_S) return 0; } +int lua_ax_ui_TabHeader_getTitleColor(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleColor'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleColor(); + color4b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleColor",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleColor'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabHeader_setTitleFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabHeader:setTitleFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleFontSize'", nullptr); + return 0; + } + cobj->setTitleFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleFontSize",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabHeader_getTitleFontSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleFontSize'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleFontSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleFontSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabHeader_setTitleFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string_view arg0; + + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:setTitleFontName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleFontName'", nullptr); + return 0; + } + cobj->setTitleFontName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleFontName",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabHeader_getTitleFontName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleFontName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleFontName'", nullptr); + return 0; + } + auto&& ret = cobj->getTitleFontName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleFontName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleFontName'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabHeader_getIndexInTabControl(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabHeader* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getIndexInTabControl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getIndexInTabControl'", nullptr); + return 0; + } + auto&& ret = cobj->getIndexInTabControl(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getIndexInTabControl",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getIndexInTabControl'.",&tolua_err); +#endif + + return 0; +} int lua_ax_ui_TabHeader_create(lua_State* tolua_S) { int argc = 0; @@ -39372,16 +39321,16 @@ int lua_register_ax_ui_TabHeader(lua_State* tolua_S) tolua_cclass(tolua_S,"TabHeader","axui.TabHeader","axui.AbstractCheckButton",nullptr); tolua_beginmodule(tolua_S,"TabHeader"); - tolua_function(tolua_S,"getIndexInTabControl",lua_ax_ui_TabHeader_getIndexInTabControl); - tolua_function(tolua_S,"getTitleText",lua_ax_ui_TabHeader_getTitleText); - tolua_function(tolua_S,"setTitleFontSize",lua_ax_ui_TabHeader_setTitleFontSize); - tolua_function(tolua_S,"setTitleFontName",lua_ax_ui_TabHeader_setTitleFontName); - tolua_function(tolua_S,"getTitleFontSize",lua_ax_ui_TabHeader_getTitleFontSize); - tolua_function(tolua_S,"getTitleFontName",lua_ax_ui_TabHeader_getTitleFontName); - tolua_function(tolua_S,"getTitleColor",lua_ax_ui_TabHeader_getTitleColor); tolua_function(tolua_S,"getTitleRenderer",lua_ax_ui_TabHeader_getTitleRenderer); tolua_function(tolua_S,"setTitleText",lua_ax_ui_TabHeader_setTitleText); + tolua_function(tolua_S,"getTitleText",lua_ax_ui_TabHeader_getTitleText); tolua_function(tolua_S,"setTitleColor",lua_ax_ui_TabHeader_setTitleColor); + tolua_function(tolua_S,"getTitleColor",lua_ax_ui_TabHeader_getTitleColor); + tolua_function(tolua_S,"setTitleFontSize",lua_ax_ui_TabHeader_setTitleFontSize); + tolua_function(tolua_S,"getTitleFontSize",lua_ax_ui_TabHeader_getTitleFontSize); + tolua_function(tolua_S,"setTitleFontName",lua_ax_ui_TabHeader_setTitleFontName); + tolua_function(tolua_S,"getTitleFontName",lua_ax_ui_TabHeader_getTitleFontName); + tolua_function(tolua_S,"getIndexInTabControl",lua_ax_ui_TabHeader_getIndexInTabControl); tolua_function(tolua_S,"create", lua_ax_ui_TabHeader_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TabHeader).name(); // rtti is literal storage @@ -39390,56 +39339,6 @@ int lua_register_ax_ui_TabHeader(lua_State* tolua_S) return 1; } -int lua_ax_ui_TabControl_setHeaderWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderWidth"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderWidth'", nullptr); - return 0; - } - cobj->setHeaderWidth(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderWidth",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderWidth'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_TabControl_removeTab(lua_State* tolua_S) { int argc = 0; @@ -39490,350 +39389,6 @@ int lua_ax_ui_TabControl_removeTab(lua_State* tolua_S) return 0; } -int lua_ax_ui_TabControl_getTabCount(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabCount'", nullptr); - return 0; - } - auto&& ret = cobj->getTabCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabCount",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabCount'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabControl_getHeaderDockPlace(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderDockPlace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderDockPlace'", nullptr); - return 0; - } - int ret = (int)cobj->getHeaderDockPlace(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderDockPlace",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderDockPlace'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabControl_getSelectedTabIndex(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getSelectedTabIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getSelectedTabIndex'", nullptr); - return 0; - } - auto&& ret = cobj->getSelectedTabIndex(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getSelectedTabIndex",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getSelectedTabIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabControl_insertTab(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_insertTab'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - ax::ui::TabHeader* arg1; - ax::ui::Layout* arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:insertTab"); - - ok &= luaval_to_object(tolua_S, 3, "axui.TabHeader",&arg1, "axui.TabControl:insertTab"); - - ok &= luaval_to_object(tolua_S, 4, "axui.Layout",&arg2, "axui.TabControl:insertTab"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_insertTab'", nullptr); - return 0; - } - cobj->insertTab(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:insertTab",argc, 3); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_insertTab'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabControl_ignoreHeadersTextureSize(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TabControl:ignoreHeadersTextureSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'", nullptr); - return 0; - } - cobj->ignoreHeadersTextureSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:ignoreHeadersTextureSize",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabControl_getHeaderWidth(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderWidth'", nullptr); - return 0; - } - auto&& ret = cobj->getHeaderWidth(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderWidth",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::TabControl* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderDockPlace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::TabControl::Dock arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:setHeaderDockPlace"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderDockPlace'", nullptr); - return 0; - } - cobj->setHeaderDockPlace(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderDockPlace",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderDockPlace'.",&tolua_err); -#endif - - return 0; -} int lua_ax_ui_TabControl_setSelectTab(lua_State* tolua_S) { int argc = 0; @@ -39939,7 +39494,7 @@ int lua_ax_ui_TabControl_getTabHeader(lua_State* tolua_S) return 0; } -int lua_ax_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) +int lua_ax_ui_TabControl_getTabContainer(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; @@ -39959,7 +39514,113 @@ int lua_ax_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabContainer'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:getTabContainer"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabContainer'", nullptr); + return 0; + } + auto&& ret = cobj->getTabContainer(arg0); + object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabContainer",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabContainer'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_insertTab(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_insertTab'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + int arg0; + ax::ui::TabHeader* arg1; + ax::ui::Layout* arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:insertTab"); + + ok &= luaval_to_object(tolua_S, 3, "axui.TabHeader",&arg1, "axui.TabControl:insertTab"); + + ok &= luaval_to_object(tolua_S, 4, "axui.Layout",&arg2, "axui.TabControl:insertTab"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_insertTab'", nullptr); + return 0; + } + cobj->insertTab(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:insertTab",argc, 3); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_insertTab'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_getTabCount(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabCount'", nullptr); return 0; } #endif @@ -39969,19 +39630,116 @@ int lua_ax_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabCount'", nullptr); return 0; } - auto&& ret = cobj->isIgnoreHeadersTextureSize(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getTabCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:isIgnoreHeadersTextureSize",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabCount",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabCount'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_getSelectedTabIndex(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getSelectedTabIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getSelectedTabIndex'", nullptr); + return 0; + } + auto&& ret = cobj->getSelectedTabIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getSelectedTabIndex",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getSelectedTabIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_indexOfTabHeader'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + const ax::ui::TabHeader* arg0; + + ok &= luaval_to_object(tolua_S, 2, "axui.TabHeader",&arg0, "axui.TabControl:indexOfTabHeader"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_indexOfTabHeader'", nullptr); + return 0; + } + auto&& ret = cobj->indexOfTabHeader(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:indexOfTabHeader",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_indexOfTabHeader'.",&tolua_err); #endif return 0; @@ -40040,7 +39798,7 @@ int lua_ax_ui_TabControl_setTabChangedEventListener(lua_State* tolua_S) return 0; } -int lua_ax_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) +int lua_ax_ui_TabControl_setHeaderWidth(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; @@ -40060,7 +39818,7 @@ int lua_ax_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderWidth'", nullptr); return 0; } #endif @@ -40070,22 +39828,69 @@ int lua_ax_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) { double arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderSelectedZoom"); + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderWidth"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderWidth'", nullptr); return 0; } - cobj->setHeaderSelectedZoom(arg0); + cobj->setHeaderWidth(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderSelectedZoom",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderWidth'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_getHeaderWidth(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderWidth'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderWidth'", nullptr); + return 0; + } + auto&& ret = cobj->getHeaderWidth(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderWidth",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderWidth'.",&tolua_err); #endif return 0; @@ -40140,7 +39945,7 @@ int lua_ax_ui_TabControl_setHeaderHeight(lua_State* tolua_S) return 0; } -int lua_ax_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) +int lua_ax_ui_TabControl_getHeaderHeight(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; @@ -40160,37 +39965,34 @@ int lua_ax_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_indexOfTabHeader'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - const ax::ui::TabHeader* arg0; - - ok &= luaval_to_object(tolua_S, 2, "axui.TabHeader",&arg0, "axui.TabControl:indexOfTabHeader"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_indexOfTabHeader'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderHeight'", nullptr); return 0; } - auto&& ret = cobj->indexOfTabHeader(arg0); + auto&& ret = cobj->getHeaderHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:indexOfTabHeader",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderHeight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_indexOfTabHeader'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderHeight'.",&tolua_err); #endif return 0; } -int lua_ax_ui_TabControl_getTabContainer(lua_State* tolua_S) +int lua_ax_ui_TabControl_ignoreHeadersTextureSize(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; @@ -40210,7 +40012,7 @@ int lua_ax_ui_TabControl_getTabContainer(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabContainer'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'", nullptr); return 0; } #endif @@ -40218,24 +40020,121 @@ int lua_ax_ui_TabControl_getTabContainer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - int arg0; + bool arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:getTabContainer"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TabControl:ignoreHeadersTextureSize"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabContainer'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'", nullptr); return 0; } - auto&& ret = cobj->getTabContainer(arg0); - object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); + cobj->ignoreHeadersTextureSize(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabContainer",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:ignoreHeadersTextureSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabContainer'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'", nullptr); + return 0; + } + auto&& ret = cobj->isIgnoreHeadersTextureSize(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:isIgnoreHeadersTextureSize",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderSelectedZoom"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'", nullptr); + return 0; + } + cobj->setHeaderSelectedZoom(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderSelectedZoom",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'.",&tolua_err); #endif return 0; @@ -40287,7 +40186,7 @@ int lua_ax_ui_TabControl_getHeaderSelectedZoom(lua_State* tolua_S) return 0; } -int lua_ax_ui_TabControl_getHeaderHeight(lua_State* tolua_S) +int lua_ax_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; @@ -40307,7 +40206,57 @@ int lua_ax_ui_TabControl_getHeaderHeight(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderHeight'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderDockPlace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::TabControl::Dock arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:setHeaderDockPlace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderDockPlace'", nullptr); + return 0; + } + cobj->setHeaderDockPlace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderDockPlace",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderDockPlace'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_ui_TabControl_getHeaderDockPlace(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::TabControl* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderDockPlace'", nullptr); return 0; } #endif @@ -40317,19 +40266,19 @@ int lua_ax_ui_TabControl_getHeaderHeight(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderHeight'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderDockPlace'", nullptr); return 0; } - auto&& ret = cobj->getHeaderHeight(); + int ret = (int)cobj->getHeaderDockPlace(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderHeight",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderDockPlace",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderHeight'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderDockPlace'.",&tolua_err); #endif return 0; @@ -40380,25 +40329,25 @@ int lua_register_ax_ui_TabControl(lua_State* tolua_S) tolua_cclass(tolua_S,"TabControl","axui.TabControl","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"TabControl"); - tolua_function(tolua_S,"setHeaderWidth",lua_ax_ui_TabControl_setHeaderWidth); tolua_function(tolua_S,"removeTab",lua_ax_ui_TabControl_removeTab); - tolua_function(tolua_S,"getTabCount",lua_ax_ui_TabControl_getTabCount); - tolua_function(tolua_S,"getHeaderDockPlace",lua_ax_ui_TabControl_getHeaderDockPlace); - tolua_function(tolua_S,"getSelectedTabIndex",lua_ax_ui_TabControl_getSelectedTabIndex); - tolua_function(tolua_S,"insertTab",lua_ax_ui_TabControl_insertTab); - tolua_function(tolua_S,"ignoreHeadersTextureSize",lua_ax_ui_TabControl_ignoreHeadersTextureSize); - tolua_function(tolua_S,"getHeaderWidth",lua_ax_ui_TabControl_getHeaderWidth); - tolua_function(tolua_S,"setHeaderDockPlace",lua_ax_ui_TabControl_setHeaderDockPlace); tolua_function(tolua_S,"setSelectTab",lua_ax_ui_TabControl_setSelectTab); tolua_function(tolua_S,"getTabHeader",lua_ax_ui_TabControl_getTabHeader); - tolua_function(tolua_S,"isIgnoreHeadersTextureSize",lua_ax_ui_TabControl_isIgnoreHeadersTextureSize); - tolua_function(tolua_S,"setTabChangedEventListener",lua_ax_ui_TabControl_setTabChangedEventListener); - tolua_function(tolua_S,"setHeaderSelectedZoom",lua_ax_ui_TabControl_setHeaderSelectedZoom); - tolua_function(tolua_S,"setHeaderHeight",lua_ax_ui_TabControl_setHeaderHeight); - tolua_function(tolua_S,"indexOfTabHeader",lua_ax_ui_TabControl_indexOfTabHeader); tolua_function(tolua_S,"getTabContainer",lua_ax_ui_TabControl_getTabContainer); - tolua_function(tolua_S,"getHeaderSelectedZoom",lua_ax_ui_TabControl_getHeaderSelectedZoom); + tolua_function(tolua_S,"insertTab",lua_ax_ui_TabControl_insertTab); + tolua_function(tolua_S,"getTabCount",lua_ax_ui_TabControl_getTabCount); + tolua_function(tolua_S,"getSelectedTabIndex",lua_ax_ui_TabControl_getSelectedTabIndex); + tolua_function(tolua_S,"indexOfTabHeader",lua_ax_ui_TabControl_indexOfTabHeader); + tolua_function(tolua_S,"setTabChangedEventListener",lua_ax_ui_TabControl_setTabChangedEventListener); + tolua_function(tolua_S,"setHeaderWidth",lua_ax_ui_TabControl_setHeaderWidth); + tolua_function(tolua_S,"getHeaderWidth",lua_ax_ui_TabControl_getHeaderWidth); + tolua_function(tolua_S,"setHeaderHeight",lua_ax_ui_TabControl_setHeaderHeight); tolua_function(tolua_S,"getHeaderHeight",lua_ax_ui_TabControl_getHeaderHeight); + tolua_function(tolua_S,"ignoreHeadersTextureSize",lua_ax_ui_TabControl_ignoreHeadersTextureSize); + tolua_function(tolua_S,"isIgnoreHeadersTextureSize",lua_ax_ui_TabControl_isIgnoreHeadersTextureSize); + tolua_function(tolua_S,"setHeaderSelectedZoom",lua_ax_ui_TabControl_setHeaderSelectedZoom); + tolua_function(tolua_S,"getHeaderSelectedZoom",lua_ax_ui_TabControl_getHeaderSelectedZoom); + tolua_function(tolua_S,"setHeaderDockPlace",lua_ax_ui_TabControl_setHeaderDockPlace); + tolua_function(tolua_S,"getHeaderDockPlace",lua_ax_ui_TabControl_getHeaderDockPlace); tolua_function(tolua_S,"create", lua_ax_ui_TabControl_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TabControl).name(); // rtti is literal storage @@ -40413,41 +40362,41 @@ TOLUA_API int register_all_ax_ui(lua_State* tolua_S) tolua_module(tolua_S,"axui",0); tolua_beginmodule(tolua_S,"axui"); - lua_register_ax_ui_Widget(tolua_S); - lua_register_ax_ui_Layout(tolua_S); - lua_register_ax_ui_RelativeBox(tolua_S); - lua_register_ax_ui_AbstractCheckButton(tolua_S); - lua_register_ax_ui_CheckBox(tolua_S); - lua_register_ax_ui_TextAtlas(tolua_S); - lua_register_ax_ui_TextBMFont(tolua_S); - lua_register_ax_ui_LoadingBar(tolua_S); - lua_register_ax_ui_TextField(tolua_S); - lua_register_ax_ui_Scale9Sprite(tolua_S); - lua_register_ax_ui_Slider(tolua_S); - lua_register_ax_ui_RichElement(tolua_S); - lua_register_ax_ui_RichElementCustomNode(tolua_S); - lua_register_ax_ui_VBox(tolua_S); - lua_register_ax_ui_RadioButtonGroup(tolua_S); - lua_register_ax_ui_TabControl(tolua_S); - lua_register_ax_ui_ScrollView(tolua_S); - lua_register_ax_ui_ListView(tolua_S); - lua_register_ax_ui_TabHeader(tolua_S); - lua_register_ax_ui_RichElementNewLine(tolua_S); - lua_register_ax_ui_LayoutComponent(tolua_S); - lua_register_ax_ui_Button(tolua_S); lua_register_ax_ui_LayoutParameter(tolua_S); lua_register_ax_ui_LinearLayoutParameter(tolua_S); + lua_register_ax_ui_RelativeLayoutParameter(tolua_S); + lua_register_ax_ui_Widget(tolua_S); + lua_register_ax_ui_Layout(tolua_S); + lua_register_ax_ui_Button(tolua_S); + lua_register_ax_ui_AbstractCheckButton(tolua_S); + lua_register_ax_ui_CheckBox(tolua_S); lua_register_ax_ui_RadioButton(tolua_S); + lua_register_ax_ui_RadioButtonGroup(tolua_S); lua_register_ax_ui_ImageView(tolua_S); - lua_register_ax_ui_HBox(tolua_S); - lua_register_ax_ui_RichElementText(tolua_S); + lua_register_ax_ui_Text(tolua_S); + lua_register_ax_ui_TextAtlas(tolua_S); + lua_register_ax_ui_LoadingBar(tolua_S); + lua_register_ax_ui_ScrollView(tolua_S); + lua_register_ax_ui_ListView(tolua_S); + lua_register_ax_ui_Slider(tolua_S); + lua_register_ax_ui_TextField(tolua_S); + lua_register_ax_ui_TextBMFont(tolua_S); lua_register_ax_ui_PageView(tolua_S); lua_register_ax_ui_Helper(tolua_S); - lua_register_ax_ui_EditBox(tolua_S); - lua_register_ax_ui_Text(tolua_S); - lua_register_ax_ui_RichText(tolua_S); + lua_register_ax_ui_RichElement(tolua_S); + lua_register_ax_ui_RichElementText(tolua_S); lua_register_ax_ui_RichElementImage(tolua_S); - lua_register_ax_ui_RelativeLayoutParameter(tolua_S); + lua_register_ax_ui_RichElementCustomNode(tolua_S); + lua_register_ax_ui_RichElementNewLine(tolua_S); + lua_register_ax_ui_RichText(tolua_S); + lua_register_ax_ui_HBox(tolua_S); + lua_register_ax_ui_VBox(tolua_S); + lua_register_ax_ui_RelativeBox(tolua_S); + lua_register_ax_ui_Scale9Sprite(tolua_S); + lua_register_ax_ui_EditBox(tolua_S); + lua_register_ax_ui_LayoutComponent(tolua_S); + lua_register_ax_ui_TabHeader(tolua_S); + lua_register_ax_ui_TabControl(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/extensions/scripting/lua-bindings/auto/axlua_ui_auto.hpp b/extensions/scripting/lua-bindings/auto/axlua_ui_auto.hpp index 2191d1b3ba..4e8db69c4e 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_ui_auto.hpp +++ b/extensions/scripting/lua-bindings/auto/axlua_ui_auto.hpp @@ -805,7 +805,6 @@ int register_all_ax_ui(lua_State* tolua_S); - #endif // __ax_ui_h__ diff --git a/extensions/scripting/lua-bindings/auto/axlua_video_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_video_auto.cpp index 1e543298e5..bb9cb2cd25 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_video_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_video_auto.cpp @@ -3,391 +3,6 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_video_VideoPlayer_getFileName(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_getFileName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_getFileName'", nullptr); - return 0; - } - auto&& ret = cobj->getFileName(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:getFileName",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_getFileName'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_getURL(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_getURL'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_getURL'", nullptr); - return 0; - } - auto&& ret = cobj->getURL(); - lua_pushlstring(tolua_S,ret.data(),ret.length()); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:getURL",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_getURL'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_play(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_play'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_play'", nullptr); - return 0; - } - cobj->play(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:play",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_play'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_isUserInputEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isUserInputEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isUserInputEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isUserInputEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isUserInputEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isUserInputEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setKeepAspectRatioEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled'", nullptr); - return 0; - } - cobj->setKeepAspectRatioEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setKeepAspectRatioEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_stop(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_stop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_stop'", nullptr); - return 0; - } - cobj->stop(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:stop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_stop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_setFullScreenEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setFullScreenEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setFullScreenEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setFullScreenEnabled'", nullptr); - return 0; - } - cobj->setFullScreenEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setFullScreenEnabled",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setFullScreenEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_setPlayRate(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setPlayRate'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.VideoPlayer:setPlayRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setPlayRate'", nullptr); - return 0; - } - cobj->setPlayRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setPlayRate",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setPlayRate'.",&tolua_err); -#endif - - return 0; -} int lua_ax_video_VideoPlayer_setFileName(lua_State* tolua_S) { int argc = 0; @@ -438,6 +53,53 @@ int lua_ax_video_VideoPlayer_setFileName(lua_State* tolua_S) return 0; } +int lua_ax_video_VideoPlayer_getFileName(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_getFileName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_getFileName'", nullptr); + return 0; + } + auto&& ret = cobj->getFileName(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:getFileName",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_getFileName'.",&tolua_err); +#endif + + return 0; +} int lua_ax_video_VideoPlayer_setURL(lua_State* tolua_S) { int argc = 0; @@ -488,7 +150,7 @@ int lua_ax_video_VideoPlayer_setURL(lua_State* tolua_S) return 0; } -int lua_ax_video_VideoPlayer_setStyle(lua_State* tolua_S) +int lua_ax_video_VideoPlayer_getURL(lua_State* tolua_S) { int argc = 0; ax::ui::VideoPlayer* cobj = nullptr; @@ -508,107 +170,7 @@ int lua_ax_video_VideoPlayer_setStyle(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setStyle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - ax::ui::VideoPlayer::StyleType arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.VideoPlayer:setStyle"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setStyle'", nullptr); - return 0; - } - cobj->setStyle(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setStyle",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setStyle'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_seekTo(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_seekTo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.VideoPlayer:seekTo"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_seekTo'", nullptr); - return 0; - } - cobj->seekTo(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:seekTo",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_seekTo'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_getURL'", nullptr); return 0; } #endif @@ -618,210 +180,19 @@ int lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_getURL'", nullptr); return 0; } - auto&& ret = cobj->isKeepAspectRatioEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); + auto&& ret = cobj->getURL(); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isKeepAspectRatioEnabled",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:getURL",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_onPlayEvent(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_onPlayEvent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.VideoPlayer:onPlayEvent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_onPlayEvent'", nullptr); - return 0; - } - cobj->onPlayEvent(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:onPlayEvent",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_onPlayEvent'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_isFullScreenEnabled(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isFullScreenEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isFullScreenEnabled'", nullptr); - return 0; - } - auto&& ret = cobj->isFullScreenEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isFullScreenEnabled",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isFullScreenEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_isLooping(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isLooping'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isLooping'", nullptr); - return 0; - } - auto&& ret = cobj->isLooping(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isLooping",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isLooping'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_video_VideoPlayer_isPlaying(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::VideoPlayer* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isPlaying'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isPlaying'", nullptr); - return 0; - } - auto&& ret = cobj->isPlaying(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isPlaying",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isPlaying'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_getURL'.",&tolua_err); #endif return 0; @@ -926,6 +297,635 @@ int lua_ax_video_VideoPlayer_setUserInputEnabled(lua_State* tolua_S) return 0; } +int lua_ax_video_VideoPlayer_setStyle(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setStyle'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + ax::ui::VideoPlayer::StyleType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.VideoPlayer:setStyle"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setStyle'", nullptr); + return 0; + } + cobj->setStyle(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setStyle",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setStyle'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_setPlayRate(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setPlayRate'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.VideoPlayer:setPlayRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setPlayRate'", nullptr); + return 0; + } + cobj->setPlayRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setPlayRate",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setPlayRate'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_play(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_play'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_play'", nullptr); + return 0; + } + cobj->play(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:play",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_play'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_stop(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_stop'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_stop'", nullptr); + return 0; + } + cobj->stop(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:stop",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_stop'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_seekTo(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_seekTo'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.VideoPlayer:seekTo"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_seekTo'", nullptr); + return 0; + } + cobj->seekTo(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:seekTo",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_seekTo'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_isPlaying(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isPlaying'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isPlaying'", nullptr); + return 0; + } + auto&& ret = cobj->isPlaying(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isPlaying",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isPlaying'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_isLooping(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isLooping'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isLooping'", nullptr); + return 0; + } + auto&& ret = cobj->isLooping(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isLooping",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isLooping'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_isUserInputEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isUserInputEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isUserInputEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isUserInputEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isUserInputEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isUserInputEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setKeepAspectRatioEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled'", nullptr); + return 0; + } + cobj->setKeepAspectRatioEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setKeepAspectRatioEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isKeepAspectRatioEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isKeepAspectRatioEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_setFullScreenEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_setFullScreenEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setFullScreenEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_setFullScreenEnabled'", nullptr); + return 0; + } + cobj->setFullScreenEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setFullScreenEnabled",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_setFullScreenEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_isFullScreenEnabled(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_isFullScreenEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_isFullScreenEnabled'", nullptr); + return 0; + } + auto&& ret = cobj->isFullScreenEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isFullScreenEnabled",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_isFullScreenEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_video_VideoPlayer_onPlayEvent(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_video_VideoPlayer_onPlayEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.VideoPlayer:onPlayEvent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_video_VideoPlayer_onPlayEvent'", nullptr); + return 0; + } + cobj->onPlayEvent(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:onPlayEvent",argc, 1); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_video_VideoPlayer_onPlayEvent'.",&tolua_err); +#endif + + return 0; +} int lua_ax_video_VideoPlayer_create(lua_State* tolua_S) { int argc = 0; @@ -1010,25 +1010,25 @@ int lua_register_ax_video_VideoPlayer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"VideoPlayer"); tolua_function(tolua_S,"new",lua_ax_video_VideoPlayer_constructor); - tolua_function(tolua_S,"getFileName",lua_ax_video_VideoPlayer_getFileName); - tolua_function(tolua_S,"getURL",lua_ax_video_VideoPlayer_getURL); - tolua_function(tolua_S,"play",lua_ax_video_VideoPlayer_play); - tolua_function(tolua_S,"isUserInputEnabled",lua_ax_video_VideoPlayer_isUserInputEnabled); - tolua_function(tolua_S,"setKeepAspectRatioEnabled",lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled); - tolua_function(tolua_S,"stop",lua_ax_video_VideoPlayer_stop); - tolua_function(tolua_S,"setFullScreenEnabled",lua_ax_video_VideoPlayer_setFullScreenEnabled); - tolua_function(tolua_S,"setPlayRate",lua_ax_video_VideoPlayer_setPlayRate); tolua_function(tolua_S,"setFileName",lua_ax_video_VideoPlayer_setFileName); + tolua_function(tolua_S,"getFileName",lua_ax_video_VideoPlayer_getFileName); tolua_function(tolua_S,"setURL",lua_ax_video_VideoPlayer_setURL); - tolua_function(tolua_S,"setStyle",lua_ax_video_VideoPlayer_setStyle); - tolua_function(tolua_S,"seekTo",lua_ax_video_VideoPlayer_seekTo); - tolua_function(tolua_S,"isKeepAspectRatioEnabled",lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled); - tolua_function(tolua_S,"onPlayEvent",lua_ax_video_VideoPlayer_onPlayEvent); - tolua_function(tolua_S,"isFullScreenEnabled",lua_ax_video_VideoPlayer_isFullScreenEnabled); - tolua_function(tolua_S,"isLooping",lua_ax_video_VideoPlayer_isLooping); - tolua_function(tolua_S,"isPlaying",lua_ax_video_VideoPlayer_isPlaying); + tolua_function(tolua_S,"getURL",lua_ax_video_VideoPlayer_getURL); tolua_function(tolua_S,"setLooping",lua_ax_video_VideoPlayer_setLooping); tolua_function(tolua_S,"setUserInputEnabled",lua_ax_video_VideoPlayer_setUserInputEnabled); + tolua_function(tolua_S,"setStyle",lua_ax_video_VideoPlayer_setStyle); + tolua_function(tolua_S,"setPlayRate",lua_ax_video_VideoPlayer_setPlayRate); + tolua_function(tolua_S,"play",lua_ax_video_VideoPlayer_play); + tolua_function(tolua_S,"stop",lua_ax_video_VideoPlayer_stop); + tolua_function(tolua_S,"seekTo",lua_ax_video_VideoPlayer_seekTo); + tolua_function(tolua_S,"isPlaying",lua_ax_video_VideoPlayer_isPlaying); + tolua_function(tolua_S,"isLooping",lua_ax_video_VideoPlayer_isLooping); + tolua_function(tolua_S,"isUserInputEnabled",lua_ax_video_VideoPlayer_isUserInputEnabled); + tolua_function(tolua_S,"setKeepAspectRatioEnabled",lua_ax_video_VideoPlayer_setKeepAspectRatioEnabled); + tolua_function(tolua_S,"isKeepAspectRatioEnabled",lua_ax_video_VideoPlayer_isKeepAspectRatioEnabled); + tolua_function(tolua_S,"setFullScreenEnabled",lua_ax_video_VideoPlayer_setFullScreenEnabled); + tolua_function(tolua_S,"isFullScreenEnabled",lua_ax_video_VideoPlayer_isFullScreenEnabled); + tolua_function(tolua_S,"onPlayEvent",lua_ax_video_VideoPlayer_onPlayEvent); tolua_function(tolua_S,"create", lua_ax_video_VideoPlayer_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::VideoPlayer).name(); // rtti is literal storage diff --git a/extensions/scripting/lua-bindings/auto/axlua_webview_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_webview_auto.cpp index 726d035090..b288d8edfc 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_webview_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_webview_auto.cpp @@ -3,7 +3,7 @@ #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S) +int lua_ax_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S) { int argc = 0; ax::ui::WebView* cobj = nullptr; @@ -23,7 +23,7 @@ int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr); return 0; } #endif @@ -31,71 +31,24 @@ int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + std::string_view arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.WebView:setOpacityWebView"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.WebView:setJavascriptInterfaceScheme"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr); return 0; } - cobj->setOpacityWebView(arg0); + cobj->setJavascriptInterfaceScheme(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setOpacityWebView",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setJavascriptInterfaceScheme",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setOpacityWebView'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_webview_WebView_canGoBack(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::WebView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoBack'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoBack'", nullptr); - return 0; - } - auto&& ret = cobj->canGoBack(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoBack",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoBack'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'.",&tolua_err); #endif return 0; @@ -167,200 +120,6 @@ int lua_ax_webview_WebView_loadHTMLString(lua_State* tolua_S) return 0; } -int lua_ax_webview_WebView_goForward(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::WebView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goForward'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goForward'", nullptr); - return 0; - } - cobj->goForward(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goForward",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goForward'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_webview_WebView_goBack(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::WebView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goBack'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goBack'", nullptr); - return 0; - } - cobj->goBack(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goBack",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goBack'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_webview_WebView_setScalesPageToFit(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::WebView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setScalesPageToFit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr); - return 0; - } - cobj->setScalesPageToFit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setScalesPageToFit",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setScalesPageToFit'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_webview_WebView_loadFile(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::WebView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_loadFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.WebView:loadFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_loadFile'", nullptr); - return 0; - } - cobj->loadFile(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:loadFile",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_loadFile'.",&tolua_err); -#endif - - return 0; -} int lua_ax_webview_WebView_loadURL(lua_State* tolua_S) { int argc = 0; @@ -420,7 +179,7 @@ int lua_ax_webview_WebView_loadURL(lua_State* tolua_S) return 0; } -int lua_ax_webview_WebView_setBounces(lua_State* tolua_S) +int lua_ax_webview_WebView_loadFile(lua_State* tolua_S) { int argc = 0; ax::ui::WebView* cobj = nullptr; @@ -440,7 +199,7 @@ int lua_ax_webview_WebView_setBounces(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBounces'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_loadFile'", nullptr); return 0; } #endif @@ -448,24 +207,306 @@ int lua_ax_webview_WebView_setBounces(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - bool arg0; + std::string_view arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setBounces"); + ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.WebView:loadFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBounces'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_loadFile'", nullptr); return 0; } - cobj->setBounces(arg0); + cobj->loadFile(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBounces",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:loadFile",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBounces'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_loadFile'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_webview_WebView_stopLoading(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::WebView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_stopLoading'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_stopLoading'", nullptr); + return 0; + } + cobj->stopLoading(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:stopLoading",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_stopLoading'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_webview_WebView_reload(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::WebView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_reload'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_reload'", nullptr); + return 0; + } + cobj->reload(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:reload",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_reload'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_webview_WebView_canGoBack(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::WebView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoBack'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoBack'", nullptr); + return 0; + } + auto&& ret = cobj->canGoBack(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoBack",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoBack'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_webview_WebView_canGoForward(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::WebView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoForward'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoForward'", nullptr); + return 0; + } + auto&& ret = cobj->canGoForward(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoForward",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoForward'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_webview_WebView_goBack(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::WebView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goBack'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goBack'", nullptr); + return 0; + } + cobj->goBack(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goBack",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goBack'.",&tolua_err); +#endif + + return 0; +} +int lua_ax_webview_WebView_goForward(lua_State* tolua_S) +{ + int argc = 0; + ax::ui::WebView* cobj = nullptr; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if _AX_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if _AX_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goForward'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goForward'", nullptr); + return 0; + } + cobj->goForward(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goForward",argc, 0); + return 0; + +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goForward'.",&tolua_err); #endif return 0; @@ -520,7 +561,7 @@ int lua_ax_webview_WebView_evaluateJS(lua_State* tolua_S) return 0; } -int lua_ax_webview_WebView_setBackgroundTransparent(lua_State* tolua_S) +int lua_ax_webview_WebView_setScalesPageToFit(lua_State* tolua_S) { int argc = 0; ax::ui::WebView* cobj = nullptr; @@ -540,29 +581,32 @@ int lua_ax_webview_WebView_setBackgroundTransparent(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setScalesPageToFit"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr); return 0; } - cobj->setBackgroundTransparent(); + cobj->setScalesPageToFit(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBackgroundTransparent",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setScalesPageToFit",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBackgroundTransparent'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setScalesPageToFit'.",&tolua_err); #endif return 0; @@ -614,7 +658,7 @@ int lua_ax_webview_WebView_getOnJSCallback(lua_State* tolua_S) return 0; } -int lua_ax_webview_WebView_canGoForward(lua_State* tolua_S) +int lua_ax_webview_WebView_setBounces(lua_State* tolua_S) { int argc = 0; ax::ui::WebView* cobj = nullptr; @@ -634,34 +678,37 @@ int lua_ax_webview_WebView_canGoForward(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoForward'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBounces'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setBounces"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoForward'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBounces'", nullptr); return 0; } - auto&& ret = cobj->canGoForward(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setBounces(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoForward",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBounces",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoForward'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBounces'.",&tolua_err); #endif return 0; } -int lua_ax_webview_WebView_stopLoading(lua_State* tolua_S) +int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S) { int argc = 0; ax::ui::WebView* cobj = nullptr; @@ -681,29 +728,32 @@ int lua_ax_webview_WebView_stopLoading(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_stopLoading'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.WebView:setOpacityWebView"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_stopLoading'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr); return 0; } - cobj->stopLoading(); + cobj->setOpacityWebView(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:stopLoading",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setOpacityWebView",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_stopLoading'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setOpacityWebView'.",&tolua_err); #endif return 0; @@ -755,7 +805,7 @@ int lua_ax_webview_WebView_getOpacityWebView(lua_State* tolua_S) return 0; } -int lua_ax_webview_WebView_reload(lua_State* tolua_S) +int lua_ax_webview_WebView_setBackgroundTransparent(lua_State* tolua_S) { int argc = 0; ax::ui::WebView* cobj = nullptr; @@ -775,7 +825,7 @@ int lua_ax_webview_WebView_reload(lua_State* tolua_S) #if _AX_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_reload'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr); return 0; } #endif @@ -785,69 +835,19 @@ int lua_ax_webview_WebView_reload(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_reload'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr); return 0; } - cobj->reload(); + cobj->setBackgroundTransparent(); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:reload",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBackgroundTransparent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_reload'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S) -{ - int argc = 0; - ax::ui::WebView* cobj = nullptr; - bool ok = true; - -#if _AX_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if _AX_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if _AX_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string_view arg0; - - ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.WebView:setJavascriptInterfaceScheme"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr); - return 0; - } - cobj->setJavascriptInterfaceScheme(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setJavascriptInterfaceScheme",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBackgroundTransparent'.",&tolua_err); #endif return 0; @@ -936,23 +936,23 @@ int lua_register_ax_webview_WebView(lua_State* tolua_S) tolua_beginmodule(tolua_S,"WebView"); tolua_function(tolua_S,"new",lua_ax_webview_WebView_constructor); - tolua_function(tolua_S,"setOpacityWebView",lua_ax_webview_WebView_setOpacityWebView); - tolua_function(tolua_S,"canGoBack",lua_ax_webview_WebView_canGoBack); - tolua_function(tolua_S,"loadHTMLString",lua_ax_webview_WebView_loadHTMLString); - tolua_function(tolua_S,"goForward",lua_ax_webview_WebView_goForward); - tolua_function(tolua_S,"goBack",lua_ax_webview_WebView_goBack); - tolua_function(tolua_S,"setScalesPageToFit",lua_ax_webview_WebView_setScalesPageToFit); - tolua_function(tolua_S,"loadFile",lua_ax_webview_WebView_loadFile); - tolua_function(tolua_S,"loadURL",lua_ax_webview_WebView_loadURL); - tolua_function(tolua_S,"setBounces",lua_ax_webview_WebView_setBounces); - tolua_function(tolua_S,"evaluateJS",lua_ax_webview_WebView_evaluateJS); - tolua_function(tolua_S,"setBackgroundTransparent",lua_ax_webview_WebView_setBackgroundTransparent); - tolua_function(tolua_S,"getOnJSCallback",lua_ax_webview_WebView_getOnJSCallback); - tolua_function(tolua_S,"canGoForward",lua_ax_webview_WebView_canGoForward); - tolua_function(tolua_S,"stopLoading",lua_ax_webview_WebView_stopLoading); - tolua_function(tolua_S,"getOpacityWebView",lua_ax_webview_WebView_getOpacityWebView); - tolua_function(tolua_S,"reload",lua_ax_webview_WebView_reload); tolua_function(tolua_S,"setJavascriptInterfaceScheme",lua_ax_webview_WebView_setJavascriptInterfaceScheme); + tolua_function(tolua_S,"loadHTMLString",lua_ax_webview_WebView_loadHTMLString); + tolua_function(tolua_S,"loadURL",lua_ax_webview_WebView_loadURL); + tolua_function(tolua_S,"loadFile",lua_ax_webview_WebView_loadFile); + tolua_function(tolua_S,"stopLoading",lua_ax_webview_WebView_stopLoading); + tolua_function(tolua_S,"reload",lua_ax_webview_WebView_reload); + tolua_function(tolua_S,"canGoBack",lua_ax_webview_WebView_canGoBack); + tolua_function(tolua_S,"canGoForward",lua_ax_webview_WebView_canGoForward); + tolua_function(tolua_S,"goBack",lua_ax_webview_WebView_goBack); + tolua_function(tolua_S,"goForward",lua_ax_webview_WebView_goForward); + tolua_function(tolua_S,"evaluateJS",lua_ax_webview_WebView_evaluateJS); + tolua_function(tolua_S,"setScalesPageToFit",lua_ax_webview_WebView_setScalesPageToFit); + tolua_function(tolua_S,"getOnJSCallback",lua_ax_webview_WebView_getOnJSCallback); + tolua_function(tolua_S,"setBounces",lua_ax_webview_WebView_setBounces); + tolua_function(tolua_S,"setOpacityWebView",lua_ax_webview_WebView_setOpacityWebView); + tolua_function(tolua_S,"getOpacityWebView",lua_ax_webview_WebView_getOpacityWebView); + tolua_function(tolua_S,"setBackgroundTransparent",lua_ax_webview_WebView_setBackgroundTransparent); tolua_function(tolua_S,"create", lua_ax_webview_WebView_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::WebView).name(); // rtti is literal storage