summaryrefslogtreecommitdiff
path: root/tools/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
commit6c3c9fc4e19ecf24928f3aad5311c590f56a7ac9 (patch)
tree3acfbc2eb8f13cbbba71f6b144427007b8f8e9b2 /tools/tmwcon/src/converter/Main.java
parent3ce337c53e18c882d9f39affeed8c67c575d7024 (diff)
downloadserverdata-6c3c9fc4e19ecf24928f3aad5311c590f56a7ac9.tar.gz
serverdata-6c3c9fc4e19ecf24928f3aad5311c590f56a7ac9.tar.bz2
serverdata-6c3c9fc4e19ecf24928f3aad5311c590f56a7ac9.tar.xz
serverdata-6c3c9fc4e19ecf24928f3aad5311c590f56a7ac9.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 'tools/tmwcon/src/converter/Main.java')
-rw-r--r--tools/tmwcon/src/converter/Main.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/tmwcon/src/converter/Main.java b/tools/tmwcon/src/converter/Main.java
index 081468e3..c48ca286 100644
--- a/tools/tmwcon/src/converter/Main.java
+++ b/tools/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) {