summaryrefslogtreecommitdiff
path: root/tmwcon/src/converter/Main.java
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-11-19 15:02:21 +0000
committerJared Adams <jaxad0127@gmail.com>2008-11-19 15:02:21 +0000
commit9e5aaf087454d52aa8181cfc8f7dcee4b9cf4ace (patch)
tree854cdb18c8ba835b7ad21c192851018d0e88c3e0 /tmwcon/src/converter/Main.java
parent9d9be6ade9ecfaff8f7d003af5f8560b4cc6f836 (diff)
downloadtools-9e5aaf087454d52aa8181cfc8f7dcee4b9cf4ace.tar.gz
tools-9e5aaf087454d52aa8181cfc8f7dcee4b9cf4ace.tar.bz2
tools-9e5aaf087454d52aa8181cfc8f7dcee4b9cf4ace.tar.xz
tools-9e5aaf087454d52aa8181cfc8f7dcee4b9cf4ace.zip
Add more functionality
This tool now generates and import file in each folder that imports every script int he folder and a root import file that imports those. Mob and warp files were renamed to make it more obvious they are being generated.
Diffstat (limited to 'tmwcon/src/converter/Main.java')
-rw-r--r--tmwcon/src/converter/Main.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmwcon/src/converter/Main.java b/tmwcon/src/converter/Main.java
index 081468e..c48ca28 100644
--- a/tmwcon/src/converter/Main.java
+++ b/tmwcon/src/converter/Main.java
@@ -86,18 +86,21 @@ public class Main extends Thread {
folder = new File("tmwdata/maps/");
Collection<File> tmxs = getTMXFiles(folder);
+ Vector<String> folders = new Vector<String>();
String name;
for (File f : tmxs) {
name = getName(folder, f);
System.out.printf("== %s ==\n", name);
if (summary != null) summary.printf("== %s ==\n", name);
- Process.processMap(name, loadMap(f), summary);
+ folders.add(Process.processMap(name, loadMap(f), summary));
}
if (summary != null) {
summary.flush();
summary.close();
}
+
+ Process.writeMasterImport(folders.toArray(new String[0]));
}
public static void main(String[] args) {