示例#1
0
 public MapParser(string mapName)
 {
     try
     {
         this.mapName = mapName;
         FileStream readStream = new FileStream(Directory.GetCurrentDirectory() + "\\maps\\" + mapName + ".map", FileMode.Open);
         r = new MapReader(readStream);
     }
     catch (FileNotFoundException e)
     {
         throw new Exception("map not found!");
     }
 }
示例#2
0
 public MapParser(string mapName)
 {
     try
     {
         this.mapName = mapName;
         FileStream readStream = new FileStream(Directory.GetCurrentDirectory() + "\\maps\\" + mapName + ".map", FileMode.Open);
         r = new MapReader(readStream);
     }
     catch (FileNotFoundException e)
     {
         throw new Exception("map not found!");
     }
 }