Esempio n. 1
0
        static int _g_get_SizeStr(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                QP.Framework.Module gen_to_be_invoked = (QP.Framework.Module)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.SizeStr);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    QP.Framework.Module gen_ret = new QP.Framework.Module();
                    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.Module constructor!"));
        }
Esempio n. 3
0
        static int _m_JumpScene(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING))
                {
                    string _sceneName = LuaAPI.lua_tostring(L, 2);
                    bool   _isAsync   = LuaAPI.lua_toboolean(L, 3);
                    bool   _isUnloadOtherAssetBundle = LuaAPI.lua_toboolean(L, 4);
                    string _tableName = LuaAPI.lua_tostring(L, 5);

                    gen_to_be_invoked.JumpScene(_sceneName, _isAsync, _isUnloadOtherAssetBundle, _tableName);



                    return(0);
                }
                if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && translator.Assignable <QP.Framework.SceneTable>(L, 5))
                {
                    string _sceneName = LuaAPI.lua_tostring(L, 2);
                    bool   _isAsync   = LuaAPI.lua_toboolean(L, 3);
                    bool   _isUnloadOtherAssetBundle = LuaAPI.lua_toboolean(L, 4);
                    QP.Framework.SceneTable _table   = (QP.Framework.SceneTable)translator.GetObject(L, 5, typeof(QP.Framework.SceneTable));

                    gen_to_be_invoked.JumpScene(_sceneName, _isAsync, _isUnloadOtherAssetBundle, _table);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to QP.Framework.Module.JumpScene!"));
        }
Esempio n. 4
0
        static int _m_StopDownload(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.StopDownload(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 5
0
        static int _m_CheckUpdate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    string _tableName = LuaAPI.lua_tostring(L, 2);
                    bool   _isGetSize = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.CheckUpdate(_tableName, _isGetSize);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <QP.Framework.CheckUpdateTable>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    QP.Framework.CheckUpdateTable _table = (QP.Framework.CheckUpdateTable)translator.GetObject(L, 2, typeof(QP.Framework.CheckUpdateTable));
                    bool _isGetSize = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.CheckUpdate(_table, _isGetSize);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to QP.Framework.Module.CheckUpdate!"));
        }
        static int _m_GetModule(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    QP.Framework.Module gen_ret = gen_to_be_invoked.GetModule(_moduleName);
                    translator.Push(L, gen_ret);



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