80818283848586
final File file = new File(tmxFile); final String filename = file.getAbsolutePath(); final Map map = new XMLMapTransformer().readMap(filename); removeUnusedTilesets(map); new XMLMapWriter().writeMap(map, filename); }
279280281282283284285
final String filename = file.getAbsolutePath(); final Map map = new XMLMapTransformer().readMap(filename); addNewTilesets(map); translateMap(map); removeUnusedTilesets(map); new XMLMapWriter().writeMap(map, filename); }
45464748495051
desc = FILETYPE_TILED; exts = new LinkedList(); exts.add("tmx"); exts.add("tmx.gz"); exts.add("tsx"); pmio = new XMLMapWriter(); }
575859606162636465666768697071727374
if ((filter & FILTER_TMX) != 0) { desc = FILETYPE_TMX; exts.add("tmx"); exts.add("tmx.gz"); pmio = new XMLMapWriter(); } if ((filter & FILTER_TSX) != 0) { desc += FILETYPE_TSX; exts.add("tsx"); if (pmio == null) { pmio = new XMLMapWriter(); } } if (filter == FILTER_EXT) { desc = FILETYPE_EXT;
6162636465666768697071
throws Exception { MapWriter mw; if (filename.endsWith(".tmx") || filename.endsWith(".tmx.gz")) { // Override, so people can't overtake our format mw = new XMLMapWriter(); } else { mw = (MapWriter)pluginLoader.getWriterFor(filename); } if (mw != null) {
93949596979899100101102103
throws Exception { MapWriter mw; if (filename.endsWith(".tsx")) { // Override, so people can't overtake our format mw = new XMLMapWriter(); } else { mw = (MapWriter)pluginLoader.getWriterFor(filename); } if (mw != null) {