From b0a5d4688f1af73b5ad03ccc2df11c9aac1523a9 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 29 七月 2025 16:56:23 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/Hero/HeroManager.cs |   54 +++++++-----------------------------------------------
 1 files changed, 7 insertions(+), 47 deletions(-)

diff --git a/Main/System/Hero/HeroManager.cs b/Main/System/Hero/HeroManager.cs
index d116aab..e1311d0 100644
--- a/Main/System/Hero/HeroManager.cs
+++ b/Main/System/Hero/HeroManager.cs
@@ -10,8 +10,7 @@
     //鍒濆鍒涘缓锛�0725锛夛紝鍚庣画璺熼殢鑳屽寘浜嬩欢澧炲姞鍒犻櫎  key = guid
     protected Dictionary<string, HeroInfo> heroInfoDict = new Dictionary<string, HeroInfo>();
 
-    //姝﹀皢鍒楄〃鐣岄潰
-    public List<string> heroSortList = new List<string>();
+
 
     //姝﹀皢绾㈢偣
     //MainRedDot.HeroCardRedpoint * 1000 + hero.itemHero.gridIndex;
@@ -41,7 +40,7 @@
 
     void OnBeforePlayerDataInitialize()
     {
-        heroSortList.Clear();
+        
         heroInfoDict.Clear();
     }
 
@@ -91,6 +90,11 @@
     {
         return heroInfoDict.Values.ToList();
     }
+    
+    public List<string> GetHeroGuidList()
+    {
+        return heroInfoDict.Keys.ToList();
+    }
 
     public List<HeroInfo> GetPowerfulHeroList()
     {
@@ -119,52 +123,8 @@
         return retList;
     }
 
-    public bool waitResortHeroList = false;
 
 
-    //鍒锋柊鏃舵満, 鎵撳紑姝﹀皢鐣岄潰 鎴栬�� 鍏抽棴鍔熻兘鐣岄潰
-    public void SortHeroList()
-    {
-        heroSortList = heroInfoDict.Keys.ToList();
-        heroSortList.Sort(CmpHero);
-    }
 
-
-    int CmpHero(string guidA, string guidB)
-    {
-        HeroInfo heroA = heroInfoDict[guidA];
-        HeroInfo heroB = heroInfoDict[guidB];
-        if (heroA == null || heroB == null)
-        {
-            return 0;
-        }
-        // 鎺掑簭瑙勫垯锛氫笂闃�>姝﹀皢绛夌骇锛炵獊鐮寸瓑绾э紴姝﹀皢瑙夐啋闃剁骇锛炴灏嗗搧璐紴姝﹀皢鍚炲櫖鏄熺骇锛炴灏咺D
-        if (heroA.isInMainBattle != heroB.isInMainBattle)
-        {
-            return heroA.isInMainBattle ? -1 : 1;
-        }
-        if (heroA.heroLevel != heroB.heroLevel)
-        {
-            return heroA.heroLevel > heroB.heroLevel ? -1 : 1;
-        }
-        if (heroA.breakLevel != heroB.breakLevel)
-        {
-            return heroA.breakLevel > heroB.breakLevel ? -1 : 1;
-        }
-        if (heroA.awakeLevel != heroB.awakeLevel)
-        {
-            return heroA.awakeLevel > heroB.awakeLevel ? -1 : 1;
-        }
-        if (heroA.Quality != heroB.Quality)
-        {
-            return heroA.Quality > heroB.Quality ? -1 : 1;
-        }
-        if (heroA.heroStar != heroA.heroStar)
-        {
-            return heroA.heroStar > heroB.heroStar ? -1 : 1;
-        }
-
-        return heroA.heroId.CompareTo(heroB.heroId);
-    }
 
 }
\ No newline at end of file

--
Gitblit v1.8.0