summaryrefslogtreecommitdiff
path: root/outdated/tmwcon/src/converter/WLKInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'outdated/tmwcon/src/converter/WLKInterface.java')
-rw-r--r--outdated/tmwcon/src/converter/WLKInterface.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/outdated/tmwcon/src/converter/WLKInterface.java b/outdated/tmwcon/src/converter/WLKInterface.java
new file mode 100644
index 0000000..b9e0cb2
--- /dev/null
+++ b/outdated/tmwcon/src/converter/WLKInterface.java
@@ -0,0 +1,29 @@
+/*
+ * TMWServ to eAthena Converter (c) 2008 Jared Adams
+ * License: GPL, v2 or later
+ */
+
+package converter;
+
+import java.io.*;
+
+import tiled.core.*;
+import tiled.plugins.tmw.*;
+
+public class WLKInterface {
+ public WLKInterface() {
+ // See if the writer is available
+ WLKWriter.class.getName();
+ }
+
+ public void write(String name, Map map, File wlk) {
+ try {
+ wlk.createNewFile();
+ WLKWriter.writeMap(map, new FileOutputStream(wlk));
+ System.out.println("WLK written");
+ } catch (Exception e) {
+ System.out.println("Prolem writing WLK file:");
+ e.printStackTrace();
+ }
+ }
+}