From 1aeb815836d84ecfddf761a47862efebbba0ad03 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 12 二月 2019 21:55:16 +0800
Subject: [PATCH] 3335 配置表读取重构。

---
 Core/GameEngine/Model/Config/GatherSoulPropertyConfig.cs |  102 ++++++++++++++++++++++++++-------------------------
 1 files changed, 52 insertions(+), 50 deletions(-)

diff --git a/Core/GameEngine/Model/Config/GatherSoulPropertyConfig.cs b/Core/GameEngine/Model/Config/GatherSoulPropertyConfig.cs
index aed139c..9c36840 100644
--- a/Core/GameEngine/Model/Config/GatherSoulPropertyConfig.cs
+++ b/Core/GameEngine/Model/Config/GatherSoulPropertyConfig.cs
@@ -1,56 +1,58 @@
-锘�//--------------------------------------------------------
-//    [Author]:			绗簩涓栫晫
-//    [  Date ]:		   Friday, January 04, 2019
-//--------------------------------------------------------
-
-using UnityEngine;
-using System;
-
-namespace TableConfig {
-
-    
-	public partial class GatherSoulPropertyConfig : ConfigBase {
-
-		public int AttrType { get ; private set ; }
-		public string AttrInfo1 { get ; private set; } 
-		public string AttrInfo2 { get ; private set; } 
-		public string AttrInfo3 { get ; private set; } 
-		public string AttrInfo4 { get ; private set; } 
-		public string AttrInfo5 { get ; private set; } 
-		public string sort { get ; private set; } 
-
-		public override string getKey()
-        {
-            return AttrType.ToString();
-        }
-
-		public override void Parse() {
-			try
-            {
-                AttrType=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
+锘�//--------------------------------------------------------
+//    [Author]:			绗簩涓栫晫
+//    [  Date ]:		   Tuesday, February 12, 2019
+//--------------------------------------------------------
+
+using UnityEngine;
+using System;
+
+namespace TableConfig {
+
+    
+	public partial class GatherSoulPropertyConfig : ConfigBase {
+
+		public int AttrType;
+		public string AttrInfo1;
+		public string AttrInfo2;
+		public string AttrInfo3;
+		public string AttrInfo4;
+		public string AttrInfo5;
+		public string sort;
+
+		public override string getKey()
+        {
+            return AttrType.ToString();
+        }
+
+		public override void Parse(string content) {
+			try
+            {
+                var contents = content.Split('\t');
+
+                int.TryParse(contents[0],out AttrType);
 			
-				AttrInfo1 = rawContents[1].Trim();
+				AttrInfo1 = contents[1];
 			
-				AttrInfo2 = rawContents[2].Trim();
+				AttrInfo2 = contents[2];
 			
-				AttrInfo3 = rawContents[3].Trim();
+				AttrInfo3 = contents[3];
 			
-				AttrInfo4 = rawContents[4].Trim();
+				AttrInfo4 = contents[4];
 			
-				AttrInfo5 = rawContents[5].Trim();
+				AttrInfo5 = contents[5];
 			
-				sort = rawContents[6].Trim();
-            }
-            catch (Exception ex)
-            {
-                DebugEx.Log(ex);
-            }
-		}
-	
-	}
-
-}
-
-
-
-
+				sort = contents[6];
+            }
+            catch (Exception ex)
+            {
+                DebugEx.Log(ex);
+            }
+		}
+	
+	}
+
+}
+
+
+
+

--
Gitblit v1.8.0