From 96ac92ee89919defe74e9a4bc981dbf328c8d476 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 13 二月 2019 18:43:26 +0800
Subject: [PATCH] 3335 配置表读取重构。

---
 Core/GameEngine/Model/Config/LoginRewardConfig.cs |   50 ++++++++++++++++++--------------------------------
 1 files changed, 18 insertions(+), 32 deletions(-)

diff --git a/Core/GameEngine/Model/Config/LoginRewardConfig.cs b/Core/GameEngine/Model/Config/LoginRewardConfig.cs
index 1c618db..ec10e6c 100644
--- a/Core/GameEngine/Model/Config/LoginRewardConfig.cs
+++ b/Core/GameEngine/Model/Config/LoginRewardConfig.cs
@@ -6,10 +6,9 @@
 using UnityEngine;
 using System;
 
-namespace TableConfig {
 
     
-	public partial class LoginRewardConfig : ConfigBase {
+	public partial class LoginRewardConfig  {
 
 		public int Id { get ; private set ; }
 		public int ActionType { get ; private set ; }
@@ -17,39 +16,26 @@
 		public int jump { get ; private set ; }
 		public int order { get ; private set ; }
 		public int DailyQusetId { get ; private set ; }
-		public int SpecialDisplayType { get ; private set ; }
-
-		public override string getKey()
-        {
-            return Id.ToString();
+		public int SpecialDisplayType { get ; private set ; }
+
+        public static bool inited;
+
+        public static void Init()
+        {
+
         }
 
-		public override void Parse() {
-			try
-            {
-                Id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
-			
-				ActionType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; 
-			
-				Description = rawContents[2].Trim();
-			
-				jump=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
-			
-				order=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
-			
-				DailyQusetId=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; 
-			
-				SpecialDisplayType=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; 
-            }
-            catch (Exception ex)
-            {
-                DebugEx.Log(ex);
-            }
-		}
-	
-	}
+        public static LoginRewardConfig Get(string id)
+        {
+            return null;
+        }
+
+        public static LoginRewardConfig Get(  int id )
+        {
+            return null;
+        }
+    }
 
-}
 
 
 

--
Gitblit v1.8.0