Main/Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0418_tagObjInfoRefresh.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB420_tagMCTurnFightState.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Main/System/Battle/BattleField/BattleField.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Main/System/Battle/BattleManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Main/System/Battle/SkillEffect/BulletCurve/BulletCurve.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Main/System/Team/TeamHero.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Main/Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0418_tagObjInfoRefresh.cs
@@ -49,6 +49,7 @@ public static void UpdateBattleField(H0418_tagObjInfoRefresh vNetData) { BattleField battleField = BattleManager.Instance.GetBattleField(vNetData.packUID); battleField.ObjInfoRefresh(vNetData); if (null != battleField) battleField.ObjInfoRefresh(vNetData); } } Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB420_tagMCTurnFightState.cs
@@ -10,13 +10,16 @@ HB420_tagMCTurnFightState vNetData = vNetPack as HB420_tagMCTurnFightState; BattleField battleField = BattleManager.Instance.GetBattleField(vNetPack.packUID); // MapID; // 自定义地图ID,可用于绑定战斗地图场景功能(如主线关卡、主线boss、爬塔、竞技场等) // FuncLineID; // MapID对应的扩展值,如具体某个关卡等 章节*10000+关卡编号*100+第x波,如第一章,第10关卡的boss值 = 11001 // State; // 0-起始状态标记;1-准备完毕;2-战斗中;3-战斗结束;4-结算奖励;5-结束状态标记 // TurnNum; // 当前轮次 // Len; // Msg; //size = Len JsonData extendData = JsonMapper.ToObject(vNetData.Msg); battleField.OnTurnFightState(vNetData.TurnNum, vNetData.State, (int)vNetData.FuncLineID, extendData); // MapID; // 自定义地图ID,可用于绑定战斗地图场景功能(如主线关卡、主线boss、爬塔、竞技场等) // FuncLineID; // MapID对应的扩展值,如具体某个关卡等 章节*10000+关卡编号*100+第x波,如第一章,第10关卡的boss值 = 11001 // State; // 0-起始状态标记;1-准备完毕;2-战斗中;3-战斗结束;4-结算奖励;5-结束状态标记 // TurnNum; // 当前轮次 // Len; // Msg; //size = Len JsonData extendData = JsonMapper.ToObject(vNetData.Msg); if (battleField != null) { battleField.OnTurnFightState(vNetData.TurnNum, vNetData.State, (int)vNetData.FuncLineID, extendData); } } } Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs
@@ -18,6 +18,8 @@ // 战报结果 string guid = UIHelper.ServerStringTrim(vNetData.GUID); Debug.LogError("guid is " + guid); //约定 B430 内容(小包1长度WORD + 包1 + 小包2长度WORD + 包2) try { Main/System/Battle/BattleField/BattleField.cs
@@ -35,6 +35,8 @@ protected set; } public bool rejectNewPackage = false; private bool m_IsPause = false; public bool IsPause @@ -134,6 +136,7 @@ SetSpeedRatio(BattleManager.Instance.speedGear[BattleManager.Instance.speedIndex]); } SetRootNodePosition(); rejectNewPackage = false; } public void SetSpeedRatio(float ratio) @@ -291,6 +294,7 @@ { //已经结束并结算 Debug.Log("战斗结束"); rejectNewPackage = true; OnBattleEnd(turnFightStateData); return; } Main/System/Battle/BattleManager.cs
@@ -380,11 +380,18 @@ { uidList.Add(packUID); } } public BattleField GetBattleField(ulong packUID) { return GetBattleField(GetGUID(packUID)); string guid = GetGUID(packUID); BattleField battleField = GetBattleField(GetGUID(packUID)); if (battleField == null || battleField.rejectNewPackage) { return null; } return battleField; } public BattleField GetBattleField(string guid) @@ -417,6 +424,11 @@ return; } if (queue.Count <= 0) { return; } var pack = queue.Dequeue(); // Debug.LogError("DistributeNextReportPackage for guid : " + guid + " pack type : " + pack.GetType()); @@ -439,11 +451,6 @@ catch (Exception ex) { Debug.LogError("DistributeNextPackage: 分发包异常 " + ex); // 出错时主动移除当前包,防止死循环 if (packQueue.Count > 0) { packQueue.Dequeue(); } } if (queue.Count <= 0) Main/System/Battle/SkillEffect/BulletCurve/BulletCurve.cs
@@ -30,7 +30,7 @@ this.bulletEffect = bulletEffect; this.target = target; this.onHit = onHit; this.bulletTrans = bulletEffect.transform as RectTransform; this.bulletTrans = bulletEffect.rectTrans; this.hurts = hurtList; this.mBulletIndex = bulletIndex; Main/System/Team/TeamHero.cs
@@ -62,6 +62,15 @@ throw new System.Exception("hero id and skin id are both invalid, npc id is invalid too (all <= 0)"); } if (fightObj.NPCID > 0) { NPCConfig npcConfig = NPCConfig.Get((int)fightObj.NPCID); if (null != npcConfig) { modelScale = npcConfig.ModelScale; } } level = (int)fightObj.LV; skinConfig = HeroSkinConfig.Get(SkinID);