Example #1
0
        public void unloadMap(string mapName)
        {
            CMap map = null;

            if (mapPool.ContainsKey(mapName))
            {
                map = mapPool[mapName];

                if (map != null)
                {
                    map.Dispose();
                    mapPool.Remove(mapName);
                }
            }
        }
Example #2
0
 public static void Save(CMap map, string path)
 {
     CXMLSerializer<CMap> serializer = new CXMLSerializer<CMap>(map);
     serializer.Serialize(path);
 }
Example #3
0
 public static CMap Read(CMap map, string path)
 {
     CXMLSerializer<CMap> serializer = new CXMLSerializer<CMap>(map);
     return serializer.Load(path);
 }
Example #4
0
 public void swapMap(string mapName)
 {
     _currentMap = mapPool[mapName];
 }
Example #5
0
 public CMapManager()
 {
     _currentMap = null;
     mapPool     = new Dictionary <string, CMap>();
 }
 public void swapMap(string mapName)
 {
     _currentMap = mapPool[mapName];
 }
 public CMapManager()
 {
     _currentMap = null;
     mapPool = new Dictionary<string, CMap>();
 }