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