From 9bc43b44cb607c380fa861313f78aac16692a3a7 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 18 四月 2019 15:03:35 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Core/GameEngine/Model/Config/AlchemyConfig.cs |  439 +++++++++++++++++++++++++++---------------------------
 1 files changed, 220 insertions(+), 219 deletions(-)

diff --git a/Core/GameEngine/Model/Config/AlchemyConfig.cs b/Core/GameEngine/Model/Config/AlchemyConfig.cs
index a8ef2cc..ed7224b 100644
--- a/Core/GameEngine/Model/Config/AlchemyConfig.cs
+++ b/Core/GameEngine/Model/Config/AlchemyConfig.cs
@@ -1,234 +1,235 @@
-锘�//--------------------------------------------------------
-//    [Author]:           Fish
-//    [  Date ]:           Thursday, February 14, 2019
-//--------------------------------------------------------
-
-using System.Collections.Generic;
-using System.IO;
-using System.Threading;
-using System;
-using UnityEngine;
-
-[XLua.LuaCallCSharp]
-public partial class AlchemyConfig
-{
-
-    public readonly int AlchemyID;
+锘�//--------------------------------------------------------
+//    [Author]:           Fish
+//    [  Date ]:           Wednesday, April 17, 2019
+//--------------------------------------------------------
+
+using System.Collections.Generic;
+using System.IO;
+using System.Threading;
+using System;
+using UnityEngine;
+
+[XLua.LuaCallCSharp]
+public partial class AlchemyConfig
+{
+
+    public readonly int ID;
 	public readonly string AlchemName;
+	public readonly int AlchemItemID;
+	public readonly int AlchemType;
 	public readonly int AlchemyQuality;
-	public readonly string MaterialAll;
-	public readonly int AlchemyEXP;
-	public readonly string AlchemyItem;
-	public readonly int[] SpecialItem;
-	public readonly string AlchemyIUp;
-	public readonly string AlchemPreviewItem;
-	public readonly int BlastFurnaceLV;
-	public readonly string ICONID;
-
-	public AlchemyConfig()
-    {
-    }
-
-    public AlchemyConfig(string input)
-    {
-        try
-        {
-            var tables = input.Split('\t');
-
-            int.TryParse(tables[0],out AlchemyID); 
+	public readonly int LearnNeedItemID;
+	public readonly int LearnNeedAlchemLV;
+	public readonly int LearnNeedLuck;
+	public readonly int NeedTime;
+	public readonly int AlchemyExp;
+	public readonly string Material;
+	public readonly int drugPromoteType;
+	public readonly string description;
+
+	public AlchemyConfig()
+    {
+    }
+
+    public AlchemyConfig(string input)
+    {
+        try
+        {
+            var tables = input.Split('\t');
+
+            int.TryParse(tables[0],out ID); 
 
 			AlchemName = tables[1];
 
-			int.TryParse(tables[2],out AlchemyQuality); 
+			int.TryParse(tables[2],out AlchemItemID); 
 
-			MaterialAll = tables[3];
+			int.TryParse(tables[3],out AlchemType); 
 
-			int.TryParse(tables[4],out AlchemyEXP); 
+			int.TryParse(tables[4],out AlchemyQuality); 
 
-			AlchemyItem = tables[5];
+			int.TryParse(tables[5],out LearnNeedItemID); 
 
-			string[] SpecialItemStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
-			SpecialItem = new int[SpecialItemStringArray.Length];
-			for (int i=0;i<SpecialItemStringArray.Length;i++)
-			{
-				 int.TryParse(SpecialItemStringArray[i],out SpecialItem[i]);
-			}
+			int.TryParse(tables[6],out LearnNeedAlchemLV); 
 
-			AlchemyIUp = tables[7];
+			int.TryParse(tables[7],out LearnNeedLuck); 
 
-			AlchemPreviewItem = tables[8];
+			int.TryParse(tables[8],out NeedTime); 
 
-			int.TryParse(tables[9],out BlastFurnaceLV); 
+			int.TryParse(tables[9],out AlchemyExp); 
 
-			ICONID = tables[10];
-        }
-        catch (Exception ex)
-        {
-            DebugEx.Log(ex);
-        }
-    }
+			Material = tables[10];
 
-    static Dictionary<string, AlchemyConfig> configs = new Dictionary<string, AlchemyConfig>();
-    public static AlchemyConfig Get(string id)
-    {   
-		if (!inited)
-        {
-            Debug.Log("AlchemyConfig 杩樻湭瀹屾垚鍒濆鍖栥��");
-            return null;
-        }
-		
-        if (configs.ContainsKey(id))
-        {
-            return configs[id];
-        }
+			int.TryParse(tables[11],out drugPromoteType); 
 
-        AlchemyConfig config = null;
-        if (rawDatas.ContainsKey(id))
-        {
-            config = configs[id] = new AlchemyConfig(rawDatas[id]);
-            rawDatas.Remove(id);
-        }
-
-        return config;
-    }
-
-	public static AlchemyConfig Get(int id)
-    {
-        return Get(id.ToString());
-    }
-
-    public static List<string> GetKeys()
-    {
-        var keys = new List<string>();
-        keys.AddRange(configs.Keys);
-        keys.AddRange(rawDatas.Keys);
-        return keys;
-    }
-
-    public static List<AlchemyConfig> GetValues()
-    {
-        var values = new List<AlchemyConfig>();
-        values.AddRange(configs.Values);
-
-        var keys = new List<string>(rawDatas.Keys);
-        foreach (var key in keys)
-        {
-            values.Add(Get(key));
-        }
-
-        return values;
-    }
-
-	public static bool Has(string id)
-    {
-        return configs.ContainsKey(id) || rawDatas.ContainsKey(id);
-    }
-
-	public static bool Has(int id)
-    {
-        return Has(id.ToString());
-    }
-
-	public static bool inited { get; private set; }
-    protected static Dictionary<string, string> rawDatas = new Dictionary<string, string>();
-    public static void Init(bool sync=false)
-    {
-	    inited = false;
-		var path = string.Empty;
-        if (AssetSource.refdataFromEditor)
-        {
-            path = ResourcesPath.CONFIG_FODLER +"/Alchemy.txt";
-        }
-        else
-        {
-            path = AssetVersionUtility.GetAssetFilePath("config/Alchemy.txt");
-        }
-
-		var tempConfig = new AlchemyConfig();
-        var preParse = tempConfig is IConfigPostProcess;
-
-        if (sync)
-        {
-            var lines = File.ReadAllLines(path);
-            if (!preParse)
-            {
-                rawDatas = new Dictionary<string, string>(lines.Length - 3);
-            }
-            for (int i = 3; i < lines.Length; i++)
-            {
-				try 
-				{
-					var line = lines[i];
-					var index = line.IndexOf("\t");
-					if (index == -1)
-					{
-						continue;
-					}
-					var id = line.Substring(0, index);
-
-					if (preParse)
-					{
-						var config = new AlchemyConfig(line);
-						configs[id] = config;
-						(config as IConfigPostProcess).OnConfigParseCompleted();
-					}
-					else
-					{
-						rawDatas[id] = line;
-					}
-				}
-				catch (System.Exception ex)
-                {
-                    Debug.LogError(ex);
-                }
-            }
-			inited = true;
-        }
-        else
-        {
-            ThreadPool.QueueUserWorkItem((object _object) =>
-            {
-                var lines = File.ReadAllLines(path);
-				if (!preParse)
-				{
-					rawDatas = new Dictionary<string, string>(lines.Length - 3);
-				}
-                for (int i = 3; i < lines.Length; i++)
-                {
-					try 
-					{
-					   var line = lines[i];
-						var index = line.IndexOf("\t");
-						if (index == -1)
-						{
-							continue;
-						}
-						var id = line.Substring(0, index);
-
-						if (preParse)
-						{
-							var config = new AlchemyConfig(line);
-							configs[id] = config;
-							(config as IConfigPostProcess).OnConfigParseCompleted();
-						}
-						else
-						{
-							rawDatas[id] = line;
-						}
-					}
-					catch (System.Exception ex)
-                    {
-                        Debug.LogError(ex);
-                    }
-                }
-
-                inited = true;
-            });
-        }
-    }
-
-}
-
-
-
-
+			description = tables[12];
+        }
+        catch (Exception ex)
+        {
+            DebugEx.Log(ex);
+        }
+    }
+
+    static Dictionary<string, AlchemyConfig> configs = new Dictionary<string, AlchemyConfig>();
+    public static AlchemyConfig Get(string id)
+    {   
+		if (!inited)
+        {
+            Debug.Log("AlchemyConfig 杩樻湭瀹屾垚鍒濆鍖栥��");
+            return null;
+        }
+		
+        if (configs.ContainsKey(id))
+        {
+            return configs[id];
+        }
+
+        AlchemyConfig config = null;
+        if (rawDatas.ContainsKey(id))
+        {
+            config = configs[id] = new AlchemyConfig(rawDatas[id]);
+            rawDatas.Remove(id);
+        }
+
+        return config;
+    }
+
+	public static AlchemyConfig Get(int id)
+    {
+        return Get(id.ToString());
+    }
+
+    public static List<string> GetKeys()
+    {
+        var keys = new List<string>();
+        keys.AddRange(configs.Keys);
+        keys.AddRange(rawDatas.Keys);
+        return keys;
+    }
+
+    public static List<AlchemyConfig> GetValues()
+    {
+        var values = new List<AlchemyConfig>();
+        values.AddRange(configs.Values);
+
+        var keys = new List<string>(rawDatas.Keys);
+        foreach (var key in keys)
+        {
+            values.Add(Get(key));
+        }
+
+        return values;
+    }
+
+	public static bool Has(string id)
+    {
+        return configs.ContainsKey(id) || rawDatas.ContainsKey(id);
+    }
+
+	public static bool Has(int id)
+    {
+        return Has(id.ToString());
+    }
+
+	public static bool inited { get; private set; }
+    protected static Dictionary<string, string> rawDatas = new Dictionary<string, string>();
+    public static void Init(bool sync=false)
+    {
+	    inited = false;
+		var path = string.Empty;
+        if (AssetSource.refdataFromEditor)
+        {
+            path = ResourcesPath.CONFIG_FODLER +"/Alchemy.txt";
+        }
+        else
+        {
+            path = AssetVersionUtility.GetAssetFilePath("config/Alchemy.txt");
+        }
+
+		var tempConfig = new AlchemyConfig();
+        var preParse = tempConfig is IConfigPostProcess;
+
+        if (sync)
+        {
+            var lines = File.ReadAllLines(path);
+            if (!preParse)
+            {
+                rawDatas = new Dictionary<string, string>(lines.Length - 3);
+            }
+            for (int i = 3; i < lines.Length; i++)
+            {
+				try 
+				{
+					var line = lines[i];
+					var index = line.IndexOf("\t");
+					if (index == -1)
+					{
+						continue;
+					}
+					var id = line.Substring(0, index);
+
+					if (preParse)
+					{
+						var config = new AlchemyConfig(line);
+						configs[id] = config;
+						(config as IConfigPostProcess).OnConfigParseCompleted();
+					}
+					else
+					{
+						rawDatas[id] = line;
+					}
+				}
+				catch (System.Exception ex)
+                {
+                    Debug.LogError(ex);
+                }
+            }
+			inited = true;
+        }
+        else
+        {
+            ThreadPool.QueueUserWorkItem((object _object) =>
+            {
+                var lines = File.ReadAllLines(path);
+				if (!preParse)
+				{
+					rawDatas = new Dictionary<string, string>(lines.Length - 3);
+				}
+                for (int i = 3; i < lines.Length; i++)
+                {
+					try 
+					{
+					   var line = lines[i];
+						var index = line.IndexOf("\t");
+						if (index == -1)
+						{
+							continue;
+						}
+						var id = line.Substring(0, index);
+
+						if (preParse)
+						{
+							var config = new AlchemyConfig(line);
+							configs[id] = config;
+							(config as IConfigPostProcess).OnConfigParseCompleted();
+						}
+						else
+						{
+							rawDatas[id] = line;
+						}
+					}
+					catch (System.Exception ex)
+                    {
+                        Debug.LogError(ex);
+                    }
+                }
+
+                inited = true;
+            });
+        }
+    }
+
+}
+
+
+
+

--
Gitblit v1.8.0