Exemplo n.º 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!");
     }
 }
Exemplo n.º 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!");
     }
 }