From eb27e5fd31f73b998a4bbd85511a31e40b8c61b7 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 21 十一月 2025 17:03:47 +0800
Subject: [PATCH] 0312 关闭游戏内日志

---
 Main/System/Battle/BattleManager.cs |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index 211140e..13c35bb 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -147,6 +147,7 @@
         {
             if (!allow)
             {
+                _package.socketType = ServerType.MainFight;
                 packQueue.Enqueue(_package);
             }
         }
@@ -169,6 +170,7 @@
 
         List<GameNetPackBasic> newPackList = ParseBattlePackList(string.Empty, packQueueSnapshot);
 
+#if UNITY_EDITOR
         Action printNewPack = () =>
         {
             string temp = "After AnalysisPackQueueAndDistribute newPackList count: " + newPackList.Count + "\n";
@@ -191,7 +193,7 @@
         };
 
         printNewPack();
-
+#endif
         // HashSet<int> skipIndexes = new HashSet<int>();
 
         // // 杩欓噷宸茬粡鏄寜鐓equeue鐨勯『搴忎簡
@@ -277,11 +279,11 @@
     public static List<GameNetPackBasic> ParseBattlePackList(string guid, List<GameNetPackBasic> packQueueSnapshot)
     {
         var list = CustomHB426CombinePack.CombineToSkillPackFromList(guid, packQueueSnapshot);
-        string str = "ParseBattlePackList \n";
-        for (int i = 0; i < list.Count; i++)
-        {
-            str += "  " + list[i].GetType().Name + "\n";
-        }
+        // string str = "ParseBattlePackList \n";
+        // for (int i = 0; i < list.Count; i++)
+        // {
+        //     str += "  " + list[i].GetType().Name + "\n";
+        // }
         // BattleDebug.LogError(str);
         return list;
 
@@ -663,15 +665,12 @@
 
     public void DestroyAllBattleField()
     {
-        // 鍒涘缓鍓湰杩涜閬嶅巻锛岄伩鍏嶅湪閬嶅巻鏃朵慨鏀瑰師闆嗗悎
         var battleFieldsList = battleFields.Values.ToList();
-
         foreach (var battleField in battleFieldsList)
         {
             if (battleField == null)
                 continue;
-
-            DestroyBattleField(battleField);
+            battleField.Destroy();
         }
     }
 

--
Gitblit v1.8.0