Skip to content

Commit

Permalink
Committing luabindings for commit 45d302c (axmolengine#1748)
Browse files Browse the repository at this point in the history
Co-authored-by: halx99 <[email protected]>
  • Loading branch information
axmol-bot and halx99 authored Mar 15, 2024
1 parent 45d302c commit c5e0e9f
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 5,172 deletions.
145 changes: 0 additions & 145 deletions extensions/scripting/lua-bindings/auto/axlua_3d_auto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,149 +3,4 @@
#define __ax_3d_h__
#include "tolua++.h"
int register_all_ax_3d(lua_State* tolua_S);
#endif // __ax_3d_h__
















































































































































#endif // __ax_3d_h__
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@
int register_all_ax_audioengine(lua_State* tolua_S);
#endif // __ax_audioengine_h__
#endif //#if AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID || AX_TARGET_PLATFORM == AX_PLATFORM_IOS || AX_TARGET_PLATFORM == AX_PLATFORM_MAC || defined(_WIN32) || AX_TARGET_PLATFORM == AX_PLATFORM_LINUX || AX_TARGET_PLATFORM == AX_PLATFORM_WASM

ET_PLATFORM == AX_PLATFORM_WASM
44 changes: 0 additions & 44 deletions extensions/scripting/lua-bindings/auto/axlua_backend_auto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,4 @@
#define __ax_backend_h__
#include "tolua++.h"
int register_all_ax_backend(lua_State* tolua_S);
#endif // __ax_backend_h__











































#endif // __ax_backend_h__
51 changes: 51 additions & 0 deletions extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10098,6 +10098,56 @@ int lua_ax_base_Node_getWorldPosition(lua_State* tolua_S)

return 0;
}
int lua_ax_base_Node_setWorldPosition(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_setWorldPosition'", 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:setWorldPosition");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Node_setWorldPosition'", nullptr);
return 0;
}
cobj->setWorldPosition(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:setWorldPosition",argc, 1);
return 0;

#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Node_setWorldPosition'.",&tolua_err);
#endif

return 0;
}
int lua_ax_base_Node_getComponent(lua_State* tolua_S)
{
int argc = 0;
Expand Down Expand Up @@ -12195,6 +12245,7 @@ int lua_register_ax_base_Node(lua_State* tolua_S)
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,"setWorldPosition",lua_ax_base_Node_setWorldPosition);
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);
Expand Down
Loading

0 comments on commit c5e0e9f

Please sign in to comment.