コード例 #1
0
ファイル: MapParser.cs プロジェクト: gaolufree/cs2d-clientbot
 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
ファイル: MapParser.cs プロジェクト: edwinmrtn/cs2d-clientbot
 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!");
     }
 }