diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-06-13 00:06:27 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-06-17 11:16:22 -0600 |
commit | 68e3708f34595523bcec387f5a9587980203403b (patch) | |
tree | 56e67862b187d324516f9c28b62a2816698f0579 /tmwcon/src/converter/WLKInterface.java | |
parent | f49e2ec425912e7c952b9a0b54c3a5cb57e5e5a5 (diff) | |
download | tools-68e3708f34595523bcec387f5a9587980203403b.tar.gz tools-68e3708f34595523bcec387f5a9587980203403b.tar.bz2 tools-68e3708f34595523bcec387f5a9587980203403b.tar.xz tools-68e3708f34595523bcec387f5a9587980203403b.zip |
Adjust tmwcon to skip maps that haven't changed
Diffstat (limited to 'tmwcon/src/converter/WLKInterface.java')
-rw-r--r-- | tmwcon/src/converter/WLKInterface.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tmwcon/src/converter/WLKInterface.java b/tmwcon/src/converter/WLKInterface.java index 36d2b36..b9e0cb2 100644 --- a/tmwcon/src/converter/WLKInterface.java +++ b/tmwcon/src/converter/WLKInterface.java @@ -11,17 +11,12 @@ import tiled.core.*; import tiled.plugins.tmw.*; public class WLKInterface { - private File folder; - public WLKInterface(File folder) { + public WLKInterface() { + // See if the writer is available WLKWriter.class.getName(); - this.folder = folder; - File f = new File("server-data/data"); - f.mkdirs(); } - public void write(String name, Map map) { - File wlk = new File(folder, name + ".wlk"); - + public void write(String name, Map map, File wlk) { try { wlk.createNewFile(); WLKWriter.writeMap(map, new FileOutputStream(wlk)); |