コード例 #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    QP.Framework.CheckForUpdateMgr gen_ret = new QP.Framework.CheckForUpdateMgr();
                    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 QP.Framework.CheckForUpdateMgr constructor!"));
        }
コード例 #2
0
        static int _m_CheckModule(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                QP.Framework.CheckForUpdateMgr gen_to_be_invoked = (QP.Framework.CheckForUpdateMgr)translator.FastGetCSObj(L, 1);



                {
                    string _module = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.CheckModule(_module);



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