Pārlūkot izejas kodu

配置解析优化

guodong 3 gadi atpakaļ
vecāks
revīzija
28aa90ff31

+ 1 - 1
GameClient/Assets/Editor/Excel/Template/ConfigArray.txt

@@ -2,7 +2,7 @@ using System.Collections.Generic;
 
 namespace GFGGame
 {
-    public class {CfgArrayName} : SingletonBase<{CfgArrayName}>
+    public partial class {CfgArrayName} : SingletonBase<{CfgArrayName}>
     {
     
         private Dictionary<{keyType}, {CfgName}> _cfgDic = new Dictionary<{keyType}, {CfgName}>();

+ 1 - 1
GameClient/Assets/Editor/Excel/Template/ConfigArray2.txt

@@ -2,7 +2,7 @@ using System.Collections.Generic;
 
 namespace GFGGame
 {
-    public class {CfgArrayName} : SingletonBase<{CfgArrayName}>
+    public partial class {CfgArrayName} : SingletonBase<{CfgArrayName}>
     {
         private Dictionary<{keyType}, {CfgName}[]> _cfgsDic = new Dictionary<{keyType}, {CfgName}[]>();
 

+ 1 - 1
GameClient/Assets/Game/CSShare

@@ -1 +1 @@
-Subproject commit 73fa584af9006605caa00fba9987d40051ab2a1a
+Subproject commit 94a4fcd2f0935c3c34e719a7c3d67682e2332ff4

+ 0 - 8
GameClient/Assets/Game/HotUpdate/Data/StoryDataManager.cs

@@ -192,14 +192,6 @@ namespace GFGGame
             return true;
         }
 
-        public static bool CheckLevelPass(int chapterId, int levelOrder)
-        {
-            int passChapterOrder = GetPassChapter(chapterId);
-            int passLevelOrder = GetPassLevel(chapterId);
-            return CalculateHelper.CheckLevelPass(chapterId, levelOrder, passChapterOrder, passLevelOrder);
-        }
-
-
         public static bool CheckLevelUnlock(int chapterId, int level)
         {
             int passChapter = GetPassChapter(chapterId);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -111,7 +111,7 @@ namespace GFGGame
 
         private void UpdateList()
         {
-            _chapterCfgs = StoryChapterCfgManager.Instance.GetCfgs(subType);
+            _chapterCfgs = StoryChapterCfgArray.Instance.GetCfgs(subType);
             _ui.m_listChapter.numItems = _chapterCfgs.Length;
             for (int i = 0; i < _ui.m_listChapter.numChildren; i++)
             {

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -103,7 +103,7 @@ namespace GFGGame
             UpdateBonusBoxStatus(_ui.m_bonusBox1, 0);
             UpdateBonusBoxStatus(_ui.m_bonusBox2, 1);
             UpdateBonusBoxStatus(_ui.m_bonusBox3, 2);
-            var list = StoryLevelCfgManager.Instance.GetCfgs(1, 1);
+            var list = StoryLevelCfgArray.Instance.GetCfgs(chapterCfg.type, chapterCfg.subType, chapterCfg.id);
             int endLevel = 0;
             for (int i = 0; i < list.Length; i++)
             {

BIN
GameClient/Assets/ResIn/Config/excelConfig.sqlite.bytes