Skip to content

Commit fd08114

Browse files
axmol-bothalx99
andauthored
Committing luabindings for commit 5b3d356 (axmolengine#2905)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
1 parent 5b3d356 commit fd08114

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34159,6 +34159,30 @@ int lua_ax_base_EventDispatcher_addCustomEventListener(lua_State* tolua_S)
3415934159
object_to_luaval<ax::EventListenerCustom>(tolua_S, "ax.EventListenerCustom",(ax::EventListenerCustom*)ret);
3416034160
return 1;
3416134161
}
34162+
if (argc == 3)
34163+
{
34164+
std::string_view arg0;
34165+
std::function<void (ax::EventCustom *)> arg1;
34166+
int arg2;
34167+
34168+
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventDispatcher:addCustomEventListener");
34169+
34170+
do {
34171+
// Lambda binding for lua is not supported.
34172+
assert(false);
34173+
} while(0)
34174+
;
34175+
34176+
ok &= luaval_to_int(tolua_S, 4, &arg2, "ax.EventDispatcher:addCustomEventListener");
34177+
if(!ok)
34178+
{
34179+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_EventDispatcher_addCustomEventListener'", nullptr);
34180+
return 0;
34181+
}
34182+
auto&& ret = obj->addCustomEventListener(arg0, arg1, arg2);
34183+
object_to_luaval<ax::EventListenerCustom>(tolua_S, "ax.EventListenerCustom",(ax::EventListenerCustom*)ret);
34184+
return 1;
34185+
}
3416234186
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventDispatcher:addCustomEventListener",argc, 2);
3416334187
return 0;
3416434188

0 commit comments

Comments
 (0)