少年修仙传客户端代码仓库
client_linchunjie
2019-05-20 a1ca992e322db3af152575d3df48e3a2b17078a0
3335 缥缈仙域优化
5个文件已修改
28 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/HazyRegionConfig.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/HazyRegionConfig.cs.meta 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/HazyRegionConfigWrap.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionIncidentBehaviour.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionModel.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/HazyRegionConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           Fish
//    [  Date ]:           Wednesday, May 15, 2019
//    [  Date ]:           Monday, May 20, 2019
//--------------------------------------------------------
using System.Collections.Generic;
@@ -19,7 +19,7 @@
    public readonly int dungeonId;
    public readonly int lineId;
    public readonly int npcId;
    public readonly int crossServer;
    public readonly int dungeonType;
    public readonly int point;
    public readonly int alchemyLevel;
    public readonly int[] reward;
@@ -48,7 +48,7 @@
            int.TryParse(tables[5],out npcId); 
            int.TryParse(tables[6],out crossServer);
            int.TryParse(tables[6],out dungeonType);
            int.TryParse(tables[7],out point); 
@@ -152,7 +152,6 @@
            path = AssetVersionUtility.GetAssetFilePath("config/HazyRegion.txt");
        }
        configs.Clear();
        var tempConfig = new HazyRegionConfig();
        var preParse = tempConfig is IConfigPostProcess;
Core/GameEngine/Model/Config/HazyRegionConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 3404c0f308cb2174bb7b93e12c3110bd
timeCreated: 1557892243
timeCreated: 1558343195
licenseType: Pro
MonoImporter:
  serializedVersion: 2
Lua/Gen/HazyRegionConfigWrap.cs
@@ -31,7 +31,6 @@
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonId", _g_get_dungeonId);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineId", _g_get_lineId);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "npcId", _g_get_npcId);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServer", _g_get_crossServer);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyLevel", _g_get_alchemyLevel);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "reward", _g_get_reward);
@@ -362,20 +361,6 @@
            
                HazyRegionConfig gen_to_be_invoked = (HazyRegionConfig)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.npcId);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_crossServer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                HazyRegionConfig gen_to_be_invoked = (HazyRegionConfig)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.crossServer);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
System/HazyRegion/HazyRegionIncidentBehaviour.cs
@@ -145,7 +145,7 @@
            m_Icon.SetSprite(config.PortraitID);
            m_Icon.SetNativeSize();
            m_Icon.material = m_SmoothMask.imageMaterials[0];
            m_ContainerCrossServer.gameObject.SetActive(!model.InFakeHazyRegion && config.crossServer == 1);
            m_ContainerCrossServer.gameObject.SetActive(!model.InFakeHazyRegion && config.dungeonType == 2);
            m_ContainerMustSign.gameObject.SetActive(false);
        }
System/HazyRegion/HazyRegionModel.cs
@@ -514,7 +514,7 @@
        void SendGotoIncidentDungeon(HazyRegionConfig config)
        {
            if (config.crossServer == 1)
            if (config.dungeonType == 2)
            {
                var pak = new CC105_tagCMEnterCrossServer();
                pak.DataMapID = (uint)config.dungeonId;