少年修仙传客户端代码仓库
client_linchunjie
2019-04-23 44dc64803f449a3b6374859ca24080068b575a3c
3335 删除宗门试炼兑换逻辑
14个文件已删除
6个文件已修改
2221 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/TrialExchangeConfig.cs 225 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/TrialExchangeConfig.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUITrialDungeonModelWrap.cs 553 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/TrialExchangeConfigWrap.cs 402 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/TrialExchangeConfigWrap.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/XLuaGenAutoRegister.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/DailyQuest/DailyQuestBehaviour.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialDungeonModel.cs 392 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeBehaviour.cs 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeBehaviour.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeCell.cs 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeCell.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeTitleCell.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeTitleCell.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeWin.cs 299 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialExchangeWin.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialSelectClassBehaviour.cs 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialSelectClassBehaviour.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowJump/WindowJumpMgr.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/ConfigInitiator.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/TrialExchangeConfig.cs
File was deleted
Core/GameEngine/Model/Config/TrialExchangeConfig.cs.meta
File was deleted
Lua/Gen/SnxxzUITrialDungeonModelWrap.cs
@@ -27,37 +27,12 @@
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTrialTokenCount", _m_GetTrialTokenCount);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "LineToTokenClass", _m_LineToTokenClass);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetTrialExchanges", _m_TryGetTrialExchanges);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetTrialRewards", _m_TryGetTrialRewards);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTotalClass", _m_GetTotalClass);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrialSendExchange", _m_TrialSendExchange);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessTrialError", _m_ProcessTrialError);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompleteTrialFloor", _m_CompleteTrialFloor);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessOpenTrialExchangeError", _m_ProcessOpenTrialExchangeError);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "EquipCompare", _m_EquipCompare);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetExchangeItemByJob", _m_GetExchangeItemByJob);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDungeonRequirePetHorseLevel", _m_GetDungeonRequirePetHorseLevel);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetHorseLevel", _m_GetPetHorseLevel);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSatisfyExchange", _m_TryGetSatisfyExchange);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyExchangeBetter", _m_SatisfyExchangeBetter);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAnySatisfyExchangeBetterEquip", _m_IsAnySatisfyExchangeBetterEquip);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAnySatisfyExchangeBetter", _m_IsAnySatisfyExchangeBetter);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "SelectEquipClassEvent", _e_SelectEquipClassEvent);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialExchangeRemindLevel", _g_get_trialExchangeRemindLevel);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialSweepGradeLimit", _g_get_trialSweepGradeLimit);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectEquipClass", _g_get_selectEquipClass);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "openFromTask", _g_get_openFromTask);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialClassTokens", _g_get_trialClassTokens);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialTokens", _g_get_trialTokens);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectEquipClass", _s_set_selectEquipClass);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "openFromTask", _s_set_openFromTask);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "trialClassTokens", _s_set_trialClassTokens);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "trialTokens", _s_set_trialTokens);
            
            
            Utils.EndObjectRegister(type, L, translator, null, null,
@@ -214,96 +189,6 @@
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetTrialTokenCount(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int _itemId = LuaAPI.xlua_tointeger(L, 2);
                        int gen_ret = gen_to_be_invoked.GetTrialTokenCount( _itemId );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LineToTokenClass(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int _line = LuaAPI.xlua_tointeger(L, 2);
                        int gen_ret = gen_to_be_invoked.LineToTokenClass( _line );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_TryGetTrialExchanges(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int _lv = LuaAPI.xlua_tointeger(L, 2);
                    System.Collections.Generic.List<TrialExchangeConfig> _list;
                        bool gen_ret = gen_to_be_invoked.TryGetTrialExchanges( _lv, out _list );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.Push(L, _list);
                    return 2;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_TryGetTrialRewards(RealStatePtr L)
        {
            try {
@@ -323,66 +208,6 @@
                        bool gen_ret = gen_to_be_invoked.TryGetTrialRewards( _lineId, _grade, out _rewards );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.Push(L, _rewards);
                    return 2;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetTotalClass(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                        System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetTotalClass(  );
                        translator.Push(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_TrialSendExchange(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int __id = LuaAPI.xlua_tointeger(L, 2);
                    int _error;
                        bool gen_ret = gen_to_be_invoked.TrialSendExchange( __id, out _error );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    LuaAPI.xlua_pushinteger(L, _error);
                        
                    
                    
@@ -454,91 +279,6 @@
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ProcessOpenTrialExchangeError(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    gen_to_be_invoked.ProcessOpenTrialExchangeError(  );
                    return 0;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EquipCompare(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int __itemId = LuaAPI.xlua_tointeger(L, 2);
                        int gen_ret = gen_to_be_invoked.EquipCompare( __itemId );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetExchangeItemByJob(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    TrialExchangeConfig _config = (TrialExchangeConfig)translator.GetObject(L, 2, typeof(TrialExchangeConfig));
                        int gen_ret = gen_to_be_invoked.GetExchangeItemByJob( _config );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetDungeonRequirePetHorseLevel(RealStatePtr L)
        {
            try {
@@ -595,143 +335,6 @@
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_TryGetSatisfyExchange(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int _maxClass;
                        bool gen_ret = gen_to_be_invoked.TryGetSatisfyExchange( out _maxClass );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    LuaAPI.xlua_pushinteger(L, _maxClass);
                    return 2;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SatisfyExchangeBetter(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int __id = LuaAPI.xlua_tointeger(L, 2);
                        bool gen_ret = gen_to_be_invoked.SatisfyExchangeBetter( __id );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsAnySatisfyExchangeBetterEquip(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int __class = LuaAPI.xlua_tointeger(L, 2);
                    int __id;
                        bool gen_ret = gen_to_be_invoked.IsAnySatisfyExchangeBetterEquip( __class, out __id );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    LuaAPI.xlua_pushinteger(L, __id);
                    return 2;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsAnySatisfyExchangeBetter(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                {
                    int __itemId = LuaAPI.xlua_tointeger(L, 2);
                        bool gen_ret = gen_to_be_invoked.IsAnySatisfyExchangeBetter( __itemId );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_trialExchangeRemindLevel(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.trialExchangeRemindLevel);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_trialSweepGradeLimit(RealStatePtr L)
@@ -747,161 +350,5 @@
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_selectEquipClass(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectEquipClass);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_openFromTask(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.openFromTask);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_trialClassTokens(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.trialClassTokens);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_trialTokens(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.trialTokens);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_selectEquipClass(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.selectEquipClass = LuaAPI.xlua_tointeger(L, 2);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_openFromTask(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.openFromTask = LuaAPI.lua_toboolean(L, 2);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_trialClassTokens(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.trialClassTokens = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_trialTokens(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.trialTokens = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _e_SelectEquipClassEvent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                int gen_param_count = LuaAPI.lua_gettop(L);
            Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1);
                System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
                if (gen_delegate == null) {
                    return LuaAPI.luaL_error(L, "#3 need System.Action!");
                }
                if (gen_param_count == 3)
                {
                    if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
                        gen_to_be_invoked.SelectEquipClassEvent += gen_delegate;
                        return 0;
                    }
                    if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
                        gen_to_be_invoked.SelectEquipClassEvent -= gen_delegate;
                        return 0;
                    }
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.TrialDungeonModel.SelectEquipClassEvent!");
            return 0;
        }
    }
}
Lua/Gen/TrialExchangeConfigWrap.cs
File was deleted
Lua/Gen/TrialExchangeConfigWrap.cs.meta
File was deleted
Lua/Gen/XLuaGenAutoRegister.cs
@@ -617,9 +617,6 @@
            translator.DelayWrapLoader(typeof(TreasureUpConfig), TreasureUpConfigWrap.__Register);
        
        
            translator.DelayWrapLoader(typeof(TrialExchangeConfig), TrialExchangeConfigWrap.__Register);
            translator.DelayWrapLoader(typeof(TrialRewardsConfig), TrialRewardsConfigWrap.__Register);
        
        
System/DailyQuest/DailyQuestBehaviour.cs
@@ -151,17 +151,6 @@
        {
            if (data != null)
            {
                switch ((DailyQuestType)data.id)
                {
                    case DailyQuestType.Trial:
                        if (!trialDungeonModel.CompleteTrialFloor(0))
                        {
                            trialDungeonModel.ProcessOpenTrialExchangeError();
                            return;
                        }
                        WindowCenter.Instance.Open<TrialExchangeWin>();
                        break;
                }
            }
        }
System/Dungeon/TrialDungeonModel.cs
@@ -9,48 +9,24 @@
    [XLua.LuaCallCSharp]
    public class TrialDungeonModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
    {
        Dictionary<int, List<TrialExchangeConfig>> trialTokenExchangeDict = new Dictionary<int, List<TrialExchangeConfig>>();
        Dictionary<int, int> lineToTokenClassDict;
        Dictionary<int, Dictionary<int, Item[]>> trialRewardDict = new Dictionary<int, Dictionary<int, Item[]>>();
        Dictionary<int, int> trialDungeonPetHorseLevels = null;
        public Dictionary<int, List<int>> trialClassTokens = new Dictionary<int, List<int>>();
        public List<int> trialTokens = new List<int>();
        PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } }
        DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
        PetModel petModel { get { return ModelCenter.Instance.GetModel<PetModel>(); } }
        MountModel horseModel { get { return ModelCenter.Instance.GetModel<MountModel>(); } }
        public event Action SelectEquipClassEvent;
        bool serverInited = false;
        public const int TRIALEXCHANGE_GUIDE = 91;
        public const int TRIALDUNGOEN_MAPID = 60010;
        int m_TrialExchangeRemindLevel = 250;
        public int trialExchangeRemindLevel
        {
            get { return m_TrialExchangeRemindLevel; }
        }
        public int trialSweepGradeLimit { get; private set; }
        public override void Init()
        {
            ParseConfig();
            packModel.refreshItemCountEvent += RefreshItemCountAct;
            FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
            dungeonModel.dungeonRecordChangeEvent += DungeonRecordChangeEvent;
            PlayerDatas.Instance.playerDataRefreshEvent += PlayerDataRefreshInfoEvent;
        }
        private void DungeonRecordChangeEvent(int _dungeonId)
        {
            if (_dungeonId == 60010)
            {
                UpdateRedpoint();
            }
        }
        public void OnBeforePlayerDataInitialize()
@@ -61,40 +37,10 @@
        public void OnPlayerLoginOk()
        {
            serverInited = true;
            UpdateRedpoint();
        }
        void ParseConfig()
        {
            var configs = TrialExchangeConfig.GetValues();
            for (int i = 0; i < configs.Count; i++)
            {
                List<TrialExchangeConfig> list;
                var itemConfig = ItemConfig.Get(configs[i].tokenId);
                if (!trialTokenExchangeDict.TryGetValue(itemConfig.LV, out list))
                {
                    list = new List<TrialExchangeConfig>();
                    trialTokenExchangeDict.Add(itemConfig.LV, list);
                }
                list.Add(configs[i]);
                if (!trialTokens.Contains(configs[i].tokenId))
                {
                    trialTokens.Add(configs[i].tokenId);
                    List<int> _tokens;
                    if (!trialClassTokens.TryGetValue(itemConfig.LV, out _tokens))
                    {
                        _tokens = new List<int>();
                        trialClassTokens.Add(itemConfig.LV, _tokens);
                    }
                    if (!_tokens.Contains(configs[i].tokenId))
                    {
                        _tokens.Add(configs[i].tokenId);
                    }
                }
            }
            var funcConfig = FuncConfigConfig.Get("LineToItemStage");
            lineToTokenClassDict = ConfigParse.GetDic<int, int>(funcConfig.Numerical1);
            var trialRewards = TrialRewardsConfig.GetValues();
            for (int i = 0; i < trialRewards.Count; i++)
            {
@@ -120,13 +66,7 @@
                }
            }
            funcConfig = FuncConfigConfig.Get("MunekadoRedPoint");
            if (funcConfig != null)
            {
                m_TrialExchangeRemindLevel = int.Parse(funcConfig.Numerical1);
            }
            funcConfig = FuncConfigConfig.Get("TrialSweepGradeLimit");
            var funcConfig = FuncConfigConfig.Get("TrialSweepGradeLimit");
            if (funcConfig != null)
            {
                trialSweepGradeLimit = int.Parse(funcConfig.Numerical1);
@@ -138,83 +78,6 @@
        public override void UnInit()
        {
            PlayerDatas.Instance.playerDataRefreshEvent -= PlayerDataRefreshInfoEvent;
        }
        private void PlayerDataRefreshInfoEvent(PlayerDataType refreshType)
        {
            if (refreshType == PlayerDataType.LV ||
                refreshType == PlayerDataType.LV2 ||
                refreshType == PlayerDataType.LVEx)
            {
                UpdateRedpoint();
            }
        }
        private void RefreshItemCountAct(PackType packType, int arg2, int itemId)
        {
            var config = ItemConfig.Get(itemId);
            if (config == null)
            {
                return;
            }
            if (packType == PackType.Item)
            {
                if (trialTokens.Contains(itemId) || config.EquipPlace > 0)
                {
                    UpdateRedpoint();
                }
            }
            else if (packType == PackType.Equip)
            {
                UpdateRedpoint();
            }
        }
        private void OnFuncStateChangeEvent(int _id)
        {
            if (_id == 88)
            {
                UpdateRedpoint();
            }
        }
        int m_SelectEquipClass = 0;//1-全部阶数
        public int selectEquipClass
        {
            get { return m_SelectEquipClass; }
            set
            {
                if (m_SelectEquipClass != value && SelectEquipClassEvent != null)
                {
                    m_SelectEquipClass = value;
                    SelectEquipClassEvent();
                }
                m_SelectEquipClass = value;
            }
        }
        public bool openFromTask { get; set; }
        public int GetTrialTokenCount(int itemId)
        {
            var count = 0;
            count += packModel.GetSinglePack(PackType.Item).GetCountById(itemId);
            return count;
        }
        public int LineToTokenClass(int line)
        {
            if (lineToTokenClassDict != null && lineToTokenClassDict.ContainsKey(line))
            {
                return lineToTokenClassDict[line];
            }
            return lineToTokenClassDict != null ? lineToTokenClassDict.Values.Last() : 0;
        }
        public bool TryGetTrialExchanges(int lv, out List<TrialExchangeConfig> list)
        {
            return trialTokenExchangeDict.TryGetValue(lv, out list);
        }
        public bool TryGetTrialRewards(int lineId, int grade, out Item[] rewards)
@@ -229,48 +92,6 @@
                }
            }
            return false;
        }
        public List<int> GetTotalClass()
        {
            return trialTokenExchangeDict.Keys.ToList();
        }
        public bool TrialSendExchange(int _id, out int error)
        {
            error = 0;
            if (!FuncOpen.Instance.IsFuncOpen(88))
            {
                error = 2;
                return false;
            }
            var config = TrialExchangeConfig.Get(_id);
            if (config == null)
            {
                return false;
            }
            var count = GetTrialTokenCount(config.tokenId);
            if (count < config.tokenCount)
            {
                error = 1;
                return false;
            }
            //if (!NewBieCenter.Instance.completeGuidesBuf.Contains(TRIALEXCHANGE_GUIDE))
            //{
            //    NewBieCenter.Instance.RemoveNewBieGuide(TRIALEXCHANGE_GUIDE);
            //}
            //var tokenConfig = ItemConfig.Get(config.tokenId);
            //ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),
            //    Language.Get("TokenUseConfirm", config.tokenCount, tokenConfig.ItemName, config.description), (bool isOk) =>
            //       {
            //           if (isOk)
            //           {
            CA32F_tagCMTrialExchange pak = new CA32F_tagCMTrialExchange();
            pak.ID = (uint)_id;
            GameNetSystem.Instance.SendInfo(pak);
            //           }
            //       });
            return true;
        }
        public void ProcessTrialError(int error)
@@ -298,102 +119,6 @@
                }
            }
            return false;
        }
        public void ProcessOpenTrialExchangeError()
        {
            SysNotifyMgr.Instance.ShowTip("TrialExchangeLimit");
        }
        public int EquipCompare(int _itemId)
        {
            var config = ItemConfig.Get(_itemId);
            var equipPlace = config.EquipPlace;
            if (equipPlace == 0)
            {
                return 0;
            }
            var singlepack = packModel.GetSinglePack(PackType.Item);
            if (singlepack != null)
            {
                var dict = singlepack.GetAllItems();
                if (dict != null)
                {
                    var badCompare = 1;
                    foreach (var itemModel in dict.Values)
                    {
                        if (itemModel.config.EquipPlace == config.EquipPlace
                            && ItemLogicUtility.Instance.IsJobCompatibleItem(itemModel.itemId)
                            && !ItemLogicUtility.Instance.IsOverdue(itemModel.guid))
                        {
                            var compare = EquipCompare(itemModel, config);
                            if (compare == 0)
                            {
                                badCompare = compare;
                            }
                            if (compare == -1)
                            {
                                return compare;
                            }
                        }
                    }
                    if (badCompare == 0)
                    {
                        return badCompare;
                    }
                }
            }
            singlepack = packModel.GetSinglePack(PackType.Equip);
            if (singlepack == null)
            {
                return 1;
            }
            var equipItem = singlepack.GetItemByIndex(equipPlace);
            if (equipItem == null)
            {
                return 1;
            }
            return EquipCompare(equipItem, config);
        }
        int EquipCompare(ItemModel compareItem, ItemConfig config)
        {
            var compareConfig = ItemConfig.Get(compareItem.itemId);
            if (compareConfig == null)
            {
                return 1;
            }
            if (compareConfig.ItemColor != config.ItemColor)
            {
                return compareConfig.ItemColor > config.ItemColor ? -1 : 1;
            }
            if (compareConfig.StarLevel != config.StarLevel)
            {
                return compareConfig.StarLevel > config.StarLevel ? -1 : 1;
            }
            if (compareConfig.LV != config.LV)
            {
                return compareConfig.LV > config.LV ? -1 : 1;
            }
            return 0;
        }
        public int GetExchangeItemByJob(TrialExchangeConfig config)
        {
            if (config == null)
            {
                return 0;
            }
            if (config.exchangeItemID.Length == 1)
            {
                return config.exchangeItemID[0];
            }
            var job = PlayerDatas.Instance.baseData.Job;
            if (job - 1 < config.exchangeItemID.Length && job - 1 >= 0)
            {
                return config.exchangeItemID[job - 1];
            }
            return config.exchangeItemID[0];
        }
        public int GetDungeonRequirePetHorseLevel(int lineId)
@@ -424,121 +149,6 @@
            }
            return level;
        }
        #region 红点
        void UpdateRedpoint()
        {
            //dailyQuestModel.trialExchangeRedpoint.state = RedPointState.None;
            //if (!FuncOpen.Instance.IsFuncOpen(88) ||
            //    PlayerDatas.Instance.baseData.LV >= trialExchangeRemindLevel)
            //{
            //    return;
            //}
            //var maxClass = 0;
            //if (TryGetSatisfyExchange(out maxClass))
            //{
            //    dailyQuestModel.trialExchangeRedpoint.state = RedPointState.Simple;
            //}
        }
        public bool TryGetSatisfyExchange(out int maxClass)
        {
            maxClass = 0;
            foreach (var _class in trialTokenExchangeDict.Keys)
            {
                List<TrialExchangeConfig> list;
                if (TryGetTrialExchanges(_class, out list))
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        if (SatisfyExchangeBetter(list[i].id))
                        {
                            var itemConfig = ItemConfig.Get(list[i].tokenId);
                            if (itemConfig.LV > maxClass)
                            {
                                maxClass = itemConfig.LV;
                            }
                            break;
                        }
                    }
                }
            }
            return maxClass != 0;
        }
        public bool SatisfyExchangeBetter(int _id)
        {
            if (!CompleteTrialFloor(0))
            {
                return false;
            }
            var config = TrialExchangeConfig.Get(_id);
            if (config == null)
            {
                return false;
            }
            var count = GetTrialTokenCount(config.tokenId);
            if (count < config.tokenCount)
            {
                return false;
            }
            var exchangeItemConfig = ItemConfig.Get(GetExchangeItemByJob(config));
            if (exchangeItemConfig.EquipPlace == 0)
            {
                return true;
            }
            if (EquipCompare(GetExchangeItemByJob(config)) == 1)
            {
                return true;
            }
            return false;
        }
        public bool IsAnySatisfyExchangeBetterEquip(int _class, out int _id)
        {
            _id = -1;
            List<TrialExchangeConfig> list;
            if (TryGetTrialExchanges(_class, out list))
            {
                for (int i = 0; i < list.Count; i++)
                {
                    var itemConfig = ItemConfig.Get(GetExchangeItemByJob(list[i]));
                    if (SatisfyExchangeBetter(list[i].id) && itemConfig.EquipPlace != 0)
                    {
                        _id = list[i].id;
                        return true;
                    }
                }
            }
            return false;
        }
        public bool IsAnySatisfyExchangeBetter(int _itemId)
        {
            return false;
            if (PlayerDatas.Instance.baseData.LV >= trialExchangeRemindLevel)
            {
                return false;
            }
            if (!trialTokens.Contains(_itemId))
            {
                return false;
            }
            var config = ItemConfig.Get(_itemId);
            List<TrialExchangeConfig> list;
            if (TryGetTrialExchanges(config.LV, out list))
            {
                for (int i = 0; i < list.Count; i++)
                {
                    if (list[i].tokenId == _itemId && SatisfyExchangeBetter(list[i].id))
                    {
                        return true;
                    }
                }
            }
            return false;
        }
        #endregion
    }
}
System/Dungeon/TrialExchangeBehaviour.cs
File was deleted
System/Dungeon/TrialExchangeBehaviour.cs.meta
File was deleted
System/Dungeon/TrialExchangeCell.cs
File was deleted
System/Dungeon/TrialExchangeCell.cs.meta
File was deleted
System/Dungeon/TrialExchangeTitleCell.cs
File was deleted
System/Dungeon/TrialExchangeTitleCell.cs.meta
File was deleted
System/Dungeon/TrialExchangeWin.cs
File was deleted
System/Dungeon/TrialExchangeWin.cs.meta
File was deleted
System/Dungeon/TrialSelectClassBehaviour.cs
File was deleted
System/Dungeon/TrialSelectClassBehaviour.cs.meta
File was deleted
System/WindowJump/WindowJumpMgr.cs
@@ -606,13 +606,6 @@
            case JumpUIType.XBWarehouseType2:
                SetJumpLogic<HappyXBWin>(_tagWinSearchModel.TABID);
                break;
            case JumpUIType.TrialExchange:
                SetJumpLogic<TrialExchangeWin>(_tagWinSearchModel.TABID);
                break;
            case JumpUIType.TrialExchange2:
                ModelCenter.Instance.GetModel<TrialDungeonModel>().openFromTask = true;
                SetJumpLogic<TrialExchangeWin>(_tagWinSearchModel.TABID);
                break;
            case JumpUIType.ComposeTicketFairy:
            case JumpUIType.ComposeTicketGod:
            case JumpUIType.ComposeTicketIce:
@@ -838,12 +831,7 @@
                break;
            case JumpUIType.TrialExchange:
            case JumpUIType.TrialExchange2:
                if (!trialDungeonModel.CompleteTrialFloor(0))
                {
                    trialDungeonModel.ProcessOpenTrialExchangeError();
                    return false;
                }
                break;
                return false;
            case JumpUIType.Kylin:
            case JumpUIType.Kylin1:
            case JumpUIType.Kylin2:
Utility/ConfigInitiator.cs
@@ -187,7 +187,6 @@
        normalTasks.Add(new ConfigInitTask("TreasureRefineConfig", () => { TreasureRefineConfig.Init(); }, () => { return TreasureRefineConfig.inited; }));
        normalTasks.Add(new ConfigInitTask("TreasureSkillConfig", () => { TreasureSkillConfig.Init(); }, () => { return TreasureSkillConfig.inited; }));
        normalTasks.Add(new ConfigInitTask("TreasureUpConfig", () => { TreasureUpConfig.Init(); }, () => { return TreasureUpConfig.inited; }));
        normalTasks.Add(new ConfigInitTask("TrialExchangeConfig", () => { TrialExchangeConfig.Init(); }, () => { return TrialExchangeConfig.inited; }));
        normalTasks.Add(new ConfigInitTask("TrialRewardsConfig", () => { TrialRewardsConfig.Init(); }, () => { return TrialRewardsConfig.inited; }));
        normalTasks.Add(new ConfigInitTask("UnionLivenConfig", () => { UnionLivenConfig.Init(); }, () => { return UnionLivenConfig.inited; }));
        normalTasks.Add(new ConfigInitTask("ViewRoleFuncConfig", () => { ViewRoleFuncConfig.Init(); }, () => { return ViewRoleFuncConfig.inited; }));