示例#1
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    CapLib.Base.CApplication __cl_gen_ret = new CapLib.Base.CApplication();
                    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 CapLib.Base.CApplication constructor!"));
        }
示例#2
0
        static int _m_Init(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            CapLib.Base.CApplication __cl_gen_to_be_invoked = (CapLib.Base.CApplication)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));
            }
        }
示例#3
0
        static int _m_GetGuid(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    long __cl_gen_ret = __cl_gen_to_be_invoked.GetGuid(  );
                    LuaAPI.lua_pushint64(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
示例#4
0
        static int _m_Register(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 t = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    __cl_gen_to_be_invoked.Register(t);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
示例#5
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));
            }
        }