Example #1
0
 public static Enums.MapID GetBorderingMapID(IMap map, IMap targetMap)
 {
     for (int i = 1; i < 9; i++)
     {
         string borderingMapID = MapManager.RetrieveBorderingMapID(map, (Enums.MapID)i);
         //IMap borderingMap = MapManager.RetrieveBorderingMap(map, (Enums.MapID)i, true);
         if (borderingMapID == targetMap.MapID)
         {
             return((Enums.MapID)i);
         }
     }
     return(Enums.MapID.Active);
 }
Example #2
0
        public static bool IsMapSeamless(IMap map, Enums.MapID direction)
        {
            // return false;

            if (map.MapType == Enums.MapType.Standard)
            {
                string borderingMapID = MapManager.RetrieveBorderingMapID(map, direction);
                if (!string.IsNullOrEmpty(borderingMapID))
                {
                    IMap borderingMap = MapManager.RetrieveActiveMap(borderingMapID);
                    if (borderingMap != null)
                    {
                        return(IsMapSeamless(map, borderingMap));
                    }
                }
            }

            return(false);
        }