Esempio n. 1
0
        static int _m_Thread(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 == 2 && translator.Assignable <KEngine.KAsync.AsyncThreadDelegate>(L, 2))
                {
                    KEngine.KAsync.AsyncThreadDelegate _threadCalAction = translator.GetDelegate <KEngine.KAsync.AsyncThreadDelegate>(L, 2);

                    KEngine.KAsync gen_ret = gen_to_be_invoked.Thread(_threadCalAction);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Action>(L, 2))
                {
                    System.Action _threadCalAction = translator.GetDelegate <System.Action>(L, 2);

                    KEngine.KAsync gen_ret = gen_to_be_invoked.Thread(_threadCalAction);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <KEngine.KAsync.AsyncThreadDelegateFull>(L, 2) && translator.Assignable <object>(L, 3))
                {
                    KEngine.KAsync.AsyncThreadDelegateFull _threadCalAction = translator.GetDelegate <KEngine.KAsync.AsyncThreadDelegateFull>(L, 2);
                    object _param = translator.GetObject(L, 3, typeof(object));

                    KEngine.KAsync gen_ret = gen_to_be_invoked.Thread(_threadCalAction, _param);
                    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.Thread!"));
        }
        static int _m__Thread(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            KEngine.KAsync __cl_gen_to_be_invoked = (KEngine.KAsync)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <KEngine.KAsync.AsyncThreadDelegateFull>(L, 2) && translator.Assignable <object>(L, 3))
                {
                    KEngine.KAsync.AsyncThreadDelegateFull threadCalAction = translator.GetDelegate <KEngine.KAsync.AsyncThreadDelegateFull>(L, 2);
                    object param = translator.GetObject(L, 3, typeof(object));

                    System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked._Thread(threadCalAction, param);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <KEngine.KAsync.AsyncThreadDelegateFull>(L, 2))
                {
                    KEngine.KAsync.AsyncThreadDelegateFull threadCalAction = translator.GetDelegate <KEngine.KAsync.AsyncThreadDelegateFull>(L, 2);

                    System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked._Thread(threadCalAction);
                    translator.Push(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 KEngine.KAsync._Thread!"));
        }