少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-16 cb48f4f73ccf0264b492b351560f7993c3478d31
5881 【前端】【1.5】蓬莱仙境红点逻辑
6个文件已修改
47 ■■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA326_tagMCNPCIDCollectionCntInfo.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUICrossServerBossModelWrap.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUICrossServerBossModelWrap.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/XLuaGenAutoRegister.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/CrossServer/CrossServerUtility.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/CrossServerBoss/CrossServerBossModel.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HA3_Function/DTCA326_tagMCNPCIDCollectionCntInfo.cs
@@ -19,19 +19,25 @@
        base.Done(vNetPack);
        var package = vNetPack as HA326_tagMCNPCIDCollectionCntInfo;
        var bigBoxCollectCount = 0;
        var smallBoxCollectCount = 0;
        for (int i = 0; i < package.NPCCollCntList.Length; i++)
        {
            var collect = package.NPCCollCntList[i];
            if (collect.NPCID == model.bigBoxNpcId || collect .NPCID == crossServerBossModel.bigBoxNpcId)
            if (collect.NPCID == model.bigBoxNpcId || collect.NPCID == crossServerBossModel.bigBoxNpcId)
            {
                model.bigBoxCollectCount = collect.CollectionCnt;
                bigBoxCollectCount += collect.CollectionCnt;
            }
            if (collect.NPCID == model.smallBoxNpcId)
            if (collect.NPCID == model.smallBoxNpcId || collect.NPCID == crossServerBossModel.smallBoxNpcId)
            {
                model.smallBoxCollectCount = collect.CollectionCnt;
                smallBoxCollectCount += collect.CollectionCnt;
            }
        }
        model.bigBoxCollectCount = bigBoxCollectCount;
        model.smallBoxCollectCount = smallBoxCollectCount;
    }
}
Lua/Gen/SnxxzUICrossServerBossModelWrap.cs
@@ -21,7 +21,7 @@
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            System.Type type = typeof(Snxxz.UI.CrossServerBossModel);
            Utils.BeginObjectRegister(type, L, translator, 0, 24, 10, 8);
            Utils.BeginObjectRegister(type, L, translator, 0, 24, 10, 7);
            
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
@@ -61,7 +61,6 @@
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint);
            
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedBoss", _s_set_selectedBoss);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "smallBoxCollectCount", _s_set_smallBoxCollectCount);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "bigBoxNpcId", _s_set_bigBoxNpcId);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "smallBoxNpcId", _s_set_smallBoxNpcId);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "eliteMonsters", _s_set_eliteMonsters);
@@ -826,21 +825,6 @@
            
                Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.selectedBoss = 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_smallBoxCollectCount(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.smallBoxCollectCount = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
Lua/Gen/SnxxzUICrossServerBossModelWrap.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 8facb82477ba34f4fa26feb912eac0ab
timeCreated: 1547620255
timeCreated: 1547620762
licenseType: Pro
MonoImporter:
  serializedVersion: 2
Lua/Gen/XLuaGenAutoRegister.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 11479d6613f53454b9f092ed34c058f8
timeCreated: 1547620255
timeCreated: 1547620762
licenseType: Pro
MonoImporter:
  serializedVersion: 2
System/CrossServer/CrossServerUtility.cs
@@ -18,8 +18,7 @@
    {
        var oneVsOneCount = CrossServerOneVsOnePKSeason.Instance.isSatisfyMatch
            ? CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum() : 0;
        var crossServerBossCount = GeneralDefine.bossWearyValues[2]
            - ModelCenter.Instance.GetModel<CrossServerBossModel>().wearyValue;
        var crossServerBossCount = ModelCenter.Instance.GetModel<CrossServerBossModel>().redpoint.count;
        var count = oneVsOneCount + crossServerBossCount;
        if (count > 0)
System/CrossServerBoss/CrossServerBossModel.cs
@@ -41,10 +41,8 @@
            get { return dogzDungeonModel.bigBoxCollectCount; }
        }
        int m_SmallBoxCollectCount = 0;
        public int smallBoxCollectCount {
            get { return m_SmallBoxCollectCount; }
            set { m_SmallBoxCollectCount = value; }
            get { return dogzDungeonModel.smallBoxCollectCount; }
        }
        public int wearyValue {
@@ -435,8 +433,8 @@
            else
            {
                var wearyValueLimit = GeneralDefine.bossWearyValues[2];
                redpoint.count = wearyValueLimit - wearyValue;
                var count = (wearyValueLimit - wearyValue) + (GeneralDefine.dogzBoxLimit - bigBoxCollectCount);
                redpoint.count = count;
            }
            redpoint.state = redpoint.count > 0 ? RedPointState.Quantity : RedPointState.None;