Consistent handling of wz files and their paths

This commit is contained in:
P0nk
2021-07-10 17:49:04 +02:00
parent 2193057fce
commit 14a405adb2
27 changed files with 106 additions and 82 deletions
+35
View File
@@ -0,0 +1,35 @@
package provider.wz;
import java.io.File;
public enum WZFiles {
QUEST("Quest"),
ETC("Etc"),
ITEM("Item"),
CHARACTER("Character"),
STRING("String"),
LIST("List"),
MOB("Mob"),
MAP("Map"),
NPC("Npc"),
REACTOR("Reactor"),
SKILL("Skill"),
SOUND("Sound"),
UI("UI");
public static final String DIRECTORY = "wz";
private final String fileName;
WZFiles(String fileName) {
this.fileName = fileName;
}
public File getFile() {
return new File(getFilePath());
}
public String getFilePath() {
return String.format("%s/%s.wz", DIRECTORY, fileName);
}
}