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


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



                {
                    string _moduleName                = LuaAPI.lua_tostring(L, 2);
                    string _sceneName                 = LuaAPI.lua_tostring(L, 3);
                    bool   _isAsync                   = LuaAPI.lua_toboolean(L, 4);
                    QP.Framework.SceneTable _table    = (QP.Framework.SceneTable)translator.GetObject(L, 5, typeof(QP.Framework.SceneTable));
                    System.Action           _complete = translator.GetDelegate <System.Action>(L, 6);

                    gen_to_be_invoked.Jump(_moduleName, _sceneName, _isAsync, _table, _complete);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 2
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!"));
        }