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/bossSkillTipsConfig.cs |   78 ++++++++++++++++++++-------------------
 1 files changed, 40 insertions(+), 38 deletions(-)

diff --git a/Core/GameEngine/Model/Config/bossSkillTipsConfig.cs b/Core/GameEngine/Model/Config/bossSkillTipsConfig.cs
index 0f8f049..4adbffe 100644
--- a/Core/GameEngine/Model/Config/bossSkillTipsConfig.cs
+++ b/Core/GameEngine/Model/Config/bossSkillTipsConfig.cs
@@ -1,56 +1,58 @@
-锘�//--------------------------------------------------------
-//    [Author]:			绗簩涓栫晫
-//    [  Date ]:		   Wednesday, June 06, 2018
-//--------------------------------------------------------
-
-using UnityEngine;
-using System;
-
-namespace TableConfig {
-
-    
+锘�//--------------------------------------------------------
+//    [Author]:			绗簩涓栫晫
+//    [  Date ]:		   Tuesday, February 12, 2019
+//--------------------------------------------------------
+
+using UnityEngine;
+using System;
+
+namespace TableConfig {
+
+    
 	public partial class bossSkillTipsConfig : ConfigBase {
 
-		public int SkillID { get ; private set ; }
-		public string Content { get ; private set; } 
-		public int time { get ; private set ; }
-		public int type { get ; private set ; }
-		public int mode { get ; private set ; }
-		public string art { get ; private set; } 
+		public int SkillID;
+		public string Content;
+		public int time;
+		public int type;
+		public int mode;
+		public string art;
 		public string[] bossIcon;
-
+
 		public override string getKey()
         {
             return SkillID.ToString();
-        }
-
-		public override void Parse() {
+        }
+
+		public override void Parse(string content) {
 			try
             {
-                SkillID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
+                var contents = content.Split('\t');
+
+                int.TryParse(contents[0],out SkillID);
 			
-				Content = rawContents[1].Trim();
+				Content = contents[1];
 			
-				time=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; 
+				int.TryParse(contents[2],out time);
 			
-				type=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
+				int.TryParse(contents[3],out type);
 			
-				mode=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
+				int.TryParse(contents[4],out mode);
 			
-				art = rawContents[5].Trim();
+				art = contents[5];
 			
-				bossIcon = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+				bossIcon = contents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
             }
             catch (Exception ex)
             {
                 DebugEx.Log(ex);
-            }
-		}
-	
-	}
-
-}
-
-
-
-
+            }
+		}
+	
+	}
+
+}
+
+
+
+

--
Gitblit v1.8.0