コード例 #1
0
        static int _m_Init(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            CatLib.Contracts.Base.IApplication __cl_gen_to_be_invoked = (CatLib.Contracts.Base.IApplication)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Init(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #2
0
        static int _m_Bootstrap(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            CapLib.Base.CApplication __cl_gen_to_be_invoked = (CapLib.Base.CApplication)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Type[] bootstraps = (System.Type[])translator.GetObject(L, 2, typeof(System.Type[]));

                    CatLib.Contracts.Base.IApplication __cl_gen_ret = __cl_gen_to_be_invoked.Bootstrap(bootstraps);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #3
0
        static int _m_StartCoroutine(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            CatLib.Contracts.Base.IApplication __cl_gen_to_be_invoked = (CatLib.Contracts.Base.IApplication)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.IEnumerator routine = (System.Collections.IEnumerator)translator.GetObject(L, 2, typeof(System.Collections.IEnumerator));

                    UnityEngine.Coroutine __cl_gen_ret = __cl_gen_to_be_invoked.StartCoroutine(routine);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }