static int _m_Until(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); KEngine.KAsync gen_to_be_invoked = (KEngine.KAsync)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <System.Func <bool> >(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { System.Func <bool> _retBool = translator.GetDelegate <System.Func <bool> >(L, 2); float _timeout = (float)LuaAPI.lua_tonumber(L, 3); KEngine.KAsync gen_ret = gen_to_be_invoked.Until(_retBool, _timeout); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <System.Func <bool> >(L, 2)) { System.Func <bool> _retBool = translator.GetDelegate <System.Func <bool> >(L, 2); KEngine.KAsync gen_ret = gen_to_be_invoked.Until(_retBool); translator.Push(L, 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 KEngine.KAsync.Until!")); }