Beispiel #1
0
        public GalaxyMap LoadGalaxyMap(string galaxyMapName)
        {
            GalaxyMap galaxyMap = null;

            try
            {
                GalaxyMapLoader mapLoader = new GalaxyMapLoader();
                galaxyMap = mapLoader.LoadGalaxyMap(galaxyMapName, this);
                galaxyMap.Lock();
            }
            catch (XmlException ex)
            {
                throw;
            }
            catch (GalaxyMapBuildingException ex)
            {
                throw;
            }
            return(galaxyMap);
        }
Beispiel #2
0
        public GalaxyMap LoadGalaxyMap(string galaxyMapName)
        {
            logger.Info("Loading map: {0}", galaxyMapName);
            GalaxyMap galaxyMap = null;

            try
            {
                GalaxyMapLoader mapLoader = new GalaxyMapLoader();
                galaxyMap = mapLoader.LoadGalaxyMap(galaxyMapName, this);
                galaxyMap.Lock();
            }
            catch (XmlException ex)
            {
                logger.Fatal("Map loading failed: {0}", ex.Message, ex);
                throw;
            }
            catch (GalaxyMapBuildingException ex)
            {
                logger.Fatal("Map building failed: {0}", ex.Message, ex);
                throw;
            }
            return(galaxyMap);
        }