From b8d1b0a71f6fa5f026f15cb116f524d0f76351ef Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期日, 30 九月 2018 14:30:58 +0800
Subject: [PATCH] 3335 添加判断是否可以开启小地图界面的接口

---
 System/WorldMap/MapModel.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/System/WorldMap/MapModel.cs b/System/WorldMap/MapModel.cs
index c030045..803fc2b 100644
--- a/System/WorldMap/MapModel.cs
+++ b/System/WorldMap/MapModel.cs
@@ -293,6 +293,21 @@
             return null;
         }
 
+        public bool CanOpenLocalMapWin(int mapId)
+        {
+            var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig();
+            var config = Config.Instance.Get<MapConfig>(mapId);
+            if (string.IsNullOrEmpty(mapResConfig.BigMap)
+                || mapId == FairyLeagueModel.FAIRY_LEAGUE_DUNGEON)
+            {
+                return false;
+            }
+            else
+            {
+                return true;
+            }
+        }
+
         public int GetRecommendHangPoint(int _mapId)
         {
             var eventPoints = new List<int>(GetMapEventPoints(_mapId));

--
Gitblit v1.8.0