static int _m_addSecHandler_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action <int> >(L, 2) && translator.Assignable <System.Action <int> >(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int endCount = LuaAPI.xlua_tointeger(L, 1); System.Action <int> eHandler = translator.GetDelegate <System.Action <int> >(L, 2); System.Action <int> cHandler = translator.GetDelegate <System.Action <int> >(L, 3); int interval = LuaAPI.xlua_tointeger(L, 4); long __cl_gen_ret = LuaExtend.addSecHandler(endCount, eHandler, cHandler, interval); LuaAPI.lua_pushint64(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action <int> >(L, 2) && translator.Assignable <System.Action <int> >(L, 3)) { int endCount = LuaAPI.xlua_tointeger(L, 1); System.Action <int> eHandler = translator.GetDelegate <System.Action <int> >(L, 2); System.Action <int> cHandler = translator.GetDelegate <System.Action <int> >(L, 3); long __cl_gen_ret = LuaExtend.addSecHandler(endCount, eHandler, cHandler); LuaAPI.lua_pushint64(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action <int> >(L, 2)) { int endCount = LuaAPI.xlua_tointeger(L, 1); System.Action <int> eHandler = translator.GetDelegate <System.Action <int> >(L, 2); long __cl_gen_ret = LuaExtend.addSecHandler(endCount, eHandler); LuaAPI.lua_pushint64(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaExtend.addSecHandler!")); }
static int addSecHandler(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); System.Action <int> arg1 = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L, 2); long o = LuaExtend.addSecHandler(arg0, arg1); LuaDLL.tolua_pushint64(L, o); return(1); } else if (count == 3) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); System.Action <int> arg1 = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L, 2); System.Action <int> arg2 = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L, 3); long o = LuaExtend.addSecHandler(arg0, arg1, arg2); LuaDLL.tolua_pushint64(L, o); return(1); } else if (count == 4) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); System.Action <int> arg1 = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L, 2); System.Action <int> arg2 = (System.Action <int>)ToLua.CheckDelegate <System.Action <int> >(L, 3); int arg3 = (int)LuaDLL.luaL_checknumber(L, 4); long o = LuaExtend.addSecHandler(arg0, arg1, arg2, arg3); LuaDLL.tolua_pushint64(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaExtend.addSecHandler")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }