From 2df58aeacbf1177ec01167bdeccfe89d6a8d5804 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 13 二月 2019 14:20:28 +0800
Subject: [PATCH] 3335 配置表读取重构,修改配置表读取接口1

---
 System/MainInterfacePanel/FeatureNoticeModel.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/System/MainInterfacePanel/FeatureNoticeModel.cs b/System/MainInterfacePanel/FeatureNoticeModel.cs
index d6793f2..e1bb0f2 100644
--- a/System/MainInterfacePanel/FeatureNoticeModel.cs
+++ b/System/MainInterfacePanel/FeatureNoticeModel.cs
@@ -89,7 +89,7 @@
             var configs = Config.Instance.GetAllKeys<FunctionForecastConfig>();
             foreach (var key in configs)
             {
-                var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(key);
+                var functionForecastConfig = FunctionForecastConfig.Get(key);
                 if (functionForecastConfig != null && functionForecastConfig.Display == 1)
                 {
                     FunctionList.Add(functionForecastConfig);
@@ -105,7 +105,7 @@
             var configs = Config.Instance.GetAllKeys<FunctionForecastConfig>();
             foreach (var key in configs)
             {
-                var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(key);
+                var functionForecastConfig = FunctionForecastConfig.Get(key);
                 if (!DicAwardItem.ContainsKey(functionForecastConfig.FuncId) && functionForecastConfig.Display == 1)
                 {
                     ImpactRankModel.RankAwardItem _award = new ImpactRankModel.RankAwardItem();
@@ -141,7 +141,7 @@
             var configs = Config.Instance.GetAllKeys<FunctionForecastConfig>();
             foreach (var key in configs)
             {
-                var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(key);
+                var functionForecastConfig = FunctionForecastConfig.Get(key);
                 if (!DicRedPoint.ContainsKey(functionForecastConfig.FuncId) && functionForecastConfig.Display == 1)
                 {
                     int RedPointkey = Redpoint_key1 * 10000 + functionForecastConfig.FuncId;
@@ -191,7 +191,7 @@
         {
             if (!FuncOpen.Instance.IsFuncOpen(FunctionList[i].FuncId))
             {
-                var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(FunctionList[i].FuncId);
+                var functionForecastConfig = FunctionForecastConfig.Get(FunctionList[i].FuncId);
                 if (functionForecastConfig.FrameLevel <= 0)
                 {
                     yield break;
@@ -219,7 +219,7 @@
         {
             if (!FuncOpen.Instance.IsFuncOpen(FunctionList[i].FuncId))
             {
-                var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(FunctionList[i].FuncId);
+                var functionForecastConfig = FunctionForecastConfig.Get(FunctionList[i].FuncId);
                 if (functionForecastConfig.FrameLevel <= 0)
                 {
                     return false;
@@ -238,7 +238,7 @@
     private bool IsDungeon()
     {
         var mapId = PlayerDatas.Instance.baseData.MapID;
-        var mapConfig = Config.Instance.Get<MapConfig>(mapId);
+        var mapConfig = MapConfig.Get(mapId);
         return mapConfig != null && mapConfig.MapFBType != 0;
     }
     List<FunctionForecastConfig> functionForecastValue = new List<FunctionForecastConfig>();

--
Gitblit v1.8.0