From 2917e8a4eae31c1a1bc4419a9b6f23be7e4fda3e Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 05 八月 2025 19:24:50 +0800
Subject: [PATCH] update team heros

---
 Main/Config/Configs/HeroSkinConfig.cs |  109 +++++++++++++++++++++++++++++++-----------------------
 1 files changed, 62 insertions(+), 47 deletions(-)

diff --git a/Main/Config/Configs/HeroSkinConfig.cs b/Main/Config/Configs/HeroSkinConfig.cs
index a46d967..b83395d 100644
--- a/Main/Config/Configs/HeroSkinConfig.cs
+++ b/Main/Config/Configs/HeroSkinConfig.cs
@@ -1,36 +1,43 @@
-锘�//--------------------------------------------------------
-//    [Author]:           YYL
-//    [  Date ]:           Friday, June 27, 2025
-//--------------------------------------------------------
-
-using System.Collections.Generic;
-using System.IO;
-using System.Threading;
-using System;
-using UnityEngine;
-using LitJson;
-
-public partial class HeroSkinConfig : ConfigBase<int, HeroSkinConfig>
-{
-
-    public int SkinNPCID;
-	public int[] WearAttrIDList;
-	public int[] WearAttrValueList;
-	public int[] AllBatAttrIDList;
-	public int[] AllBatAttrValueList;
-
-    public override int LoadKey(string _key)
-    {
-        int key = GetKey(_key);
-        return key;
-    }
-
-    public override void LoadConfig(string input)
-    {
-        try {
-        string[] tables = input.Split('\t');
-        int.TryParse(tables[0],out SkinNPCID); 
-
+锘�//--------------------------------------------------------
+//    [Author]:           YYL
+//    [  Date ]:           2025骞�8鏈�5鏃�
+//--------------------------------------------------------
+
+using System.Collections.Generic;
+using System;
+using UnityEngine;
+using LitJson;
+
+public partial class HeroSkinConfig : ConfigBase<int, HeroSkinConfig>
+{
+    static HeroSkinConfig()
+    {
+        // 璁块棶杩囬潤鎬佹瀯閫犲嚱鏁�
+        visit = true; 
+    }
+
+    public int SkinID;
+	public int[] WearAttrIDList;
+	public int[] WearAttrValueList;
+	public int[] AllBatAttrIDList;
+	public int[] AllBatAttrValueList;
+	public string Tachie;
+	public string SquareIcon;
+	public string RectangleIcon;
+	public string SpineRes;
+
+    public override int LoadKey(string _key)
+    {
+        int key = GetKey(_key);
+        return key;
+    }
+
+    public override void LoadConfig(string input)
+    {
+        try {
+        string[] tables = input.Split('\t');
+        int.TryParse(tables[0],out SkinID); 
+
 			if (tables[1].Contains("["))
 			{
 				WearAttrIDList = JsonMapper.ToObject<int[]>(tables[1]);
@@ -43,8 +50,8 @@
 				{
 					 int.TryParse(WearAttrIDListStringArray[i],out WearAttrIDList[i]);
 				}
-			}
-
+			}
+
 			if (tables[2].Contains("["))
 			{
 				WearAttrValueList = JsonMapper.ToObject<int[]>(tables[2]);
@@ -57,8 +64,8 @@
 				{
 					 int.TryParse(WearAttrValueListStringArray[i],out WearAttrValueList[i]);
 				}
-			}
-
+			}
+
 			if (tables[3].Contains("["))
 			{
 				AllBatAttrIDList = JsonMapper.ToObject<int[]>(tables[3]);
@@ -71,8 +78,8 @@
 				{
 					 int.TryParse(AllBatAttrIDListStringArray[i],out AllBatAttrIDList[i]);
 				}
-			}
-
+			}
+
 			if (tables[4].Contains("["))
 			{
 				AllBatAttrValueList = JsonMapper.ToObject<int[]>(tables[4]);
@@ -85,11 +92,19 @@
 				{
 					 int.TryParse(AllBatAttrValueListStringArray[i],out AllBatAttrValueList[i]);
 				}
-			}
-        }
-        catch (Exception exception)
-        {
-            Debug.LogError(exception);
-        }
-    }
-}
+			}
+
+			Tachie = tables[5];
+
+			SquareIcon = tables[6];
+
+			RectangleIcon = tables[7];
+
+			SpineRes = tables[8];
+        }
+        catch (Exception exception)
+        {
+            Debug.LogError(exception);
+        }
+    }
+}

--
Gitblit v1.8.0