Committing genbindings changes

This commit is contained in:
halx99 2023-12-05 09:28:54 +00:00 committed by GitHub Actions
parent 41c65eb28e
commit 057708d7c7
2 changed files with 76 additions and 0 deletions

View File

@ -52773,6 +52773,80 @@ int lua_ax_base_DrawNode_drawSolidCircle(lua_State* tolua_S)
return 0;
}
int lua_ax_base_DrawNode_drawPie(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_drawPie'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 9)
{
ax::Vec2 arg0;
double arg1;
double arg2;
int arg3;
int arg4;
double arg5;
double arg6;
ax::Color4B arg7;
ax::DrawNode::DrawMode arg8;
ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.DrawNode:drawPie");
ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.DrawNode:drawPie");
ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.DrawNode:drawPie");
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ax.DrawNode:drawPie");
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ax.DrawNode:drawPie");
ok &= luaval_to_number(tolua_S, 7,&arg5, "ax.DrawNode:drawPie");
ok &= luaval_to_number(tolua_S, 8,&arg6, "ax.DrawNode:drawPie");
ok &=luaval_to_color4b(tolua_S, 9, &arg7, "ax.DrawNode:drawPie");
ok &= luaval_to_int32(tolua_S, 10,(int *)&arg8, "ax.DrawNode:drawPie");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_DrawNode_drawPie'", nullptr);
return 0;
}
cobj->drawPie(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawPie",argc, 9);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_DrawNode_drawPie'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_DrawNode_drawSegment(lua_State* tolua_S)
{
int argc = 0;
@ -53352,6 +53426,7 @@ int lua_register_ax_base_DrawNode(lua_State* tolua_S)
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,"drawPie",lua_ax_base_DrawNode_drawPie);
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);

View File

@ -2425,6 +2425,7 @@ int register_all_ax_base(lua_State* tolua_S);
#endif // __ax_base_h__