diff --git a/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp index 6f7e475a6172..a22fcf19babe 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp @@ -172,376 +172,6 @@ int lua_register_ax_base_Ref(lua_State* tolua_S) return 1; } -int lua_ax_base_Console_listenOnTCP(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_listenOnTCP'", 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:listenOnTCP"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_listenOnTCP'", nullptr); - return 0; - } - auto&& ret = cobj->listenOnTCP(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:listenOnTCP",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_listenOnTCP'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Console_listenOnFileDescriptor(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_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_stop(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_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_Console_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.Console:stop",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_stop'.",&tolua_err); -#endif - - return 0; -} -int lua_ax_base_Console_delCommand(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_delCommand'", 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:delCommand"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_delCommand'", nullptr); - return 0; - } - 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:delCommand",argc, 1); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_delCommand'.",&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); - 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; - 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_isIpv6Server'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Console_isIpv6Server'", nullptr); - return 0; - } - auto&& ret = cobj->isIpv6Server(); - 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:isIpv6Server",argc, 0); - return 0; - -#if _AX_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Console_isIpv6Server'.",&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; -} -static int lua_ax_base_Console_finalize(lua_State* tolua_S) -{ - printf("luabindings: finalizing LUA object (Console)"); - return 0; -} - -int lua_register_ax_base_Console(lua_State* tolua_S) -{ - tolua_usertype(tolua_S,"ax.Console"); - tolua_cclass(tolua_S,"Console","ax.Console","ax.Ref",nullptr); - - tolua_beginmodule(tolua_S,"Console"); - tolua_function(tolua_S,"listenOnTCP",lua_ax_base_Console_listenOnTCP); - tolua_function(tolua_S,"listenOnFileDescriptor",lua_ax_base_Console_listenOnFileDescriptor); - tolua_function(tolua_S,"stop",lua_ax_base_Console_stop); - tolua_function(tolua_S,"delCommand",lua_ax_base_Console_delCommand); - 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"; - g_typeCast[typeName] = "ax.Console"; - return 1; -} - int lua_ax_base_EventListener_checkAvailable(lua_State* tolua_S) { int argc = 0; @@ -17467,53 +17097,6 @@ int lua_ax_base_Director_getRenderer(lua_State* tolua_S) 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; @@ -18288,7 +17871,6 @@ int lua_register_ax_base_Director(lua_State* tolua_S) 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); @@ -112658,7 +112240,6 @@ 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_Console(tolua_S); lua_register_ax_base_EventListener(tolua_S); lua_register_ax_base_EventListenerCustom(tolua_S); lua_register_ax_base_ShaderCache(tolua_S);