static int BoolDelegate(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(LuaInterface.LuaFunction))) { LuaFunction arg0 = ToLua.ToLuaFunction(L, 1); UIEventListener.BoolDelegate o = LuaHelper.BoolDelegate(arg0); ToLua.Push(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(LuaInterface.LuaFunction), typeof(LuaInterface.LuaTable))) { LuaFunction arg0 = ToLua.ToLuaFunction(L, 1); LuaTable arg1 = ToLua.ToLuaTable(L, 2); UIEventListener.BoolDelegate o = LuaHelper.BoolDelegate(arg0, arg1); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaHelper.BoolDelegate")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int BoolDelegate(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); LuaFunction arg0 = LuaScriptMgr.GetLuaFunction(L, 1); UIEventListener.BoolDelegate o = LuaHelper.BoolDelegate(arg0); LuaScriptMgr.Push(L, o); return(1); }