static int _s_set_IsOk(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KEngine.CCoroutineState gen_to_be_invoked = (KEngine.CCoroutineState)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.IsOk = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_Param(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KEngine.CCoroutineState gen_to_be_invoked = (KEngine.CCoroutineState)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.Param);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _s_set_Param(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KEngine.CCoroutineState gen_to_be_invoked = (KEngine.CCoroutineState)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Param = translator.GetObject(L, 2, typeof(object));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
예제 #4
0
        static int _g_get_IsOk(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                KEngine.CCoroutineState __cl_gen_to_be_invoked = (KEngine.CCoroutineState)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsOk);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    KEngine.CCoroutineState gen_ret = new KEngine.CCoroutineState();
                    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.CCoroutineState constructor!"));
        }