public class WorkingDirectory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WorkingDirectory.OS |
Constructor and Description |
---|
WorkingDirectory() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getMapsFolder() |
static WorkingDirectory.OS |
getPlatform() |
static java.io.File |
getWorkingDirectory() |
static void |
setApplicationName(java.lang.String applicationName)
set a custom name, should be the name of the game
|
static boolean |
unpackMap(java.lang.String foldername,
java.io.InputStream source)
unpacks a map to working directory
|
public static void setApplicationName(java.lang.String applicationName)
applicationName
- the name of the folderpublic static java.io.File getWorkingDirectory()
public static WorkingDirectory.OS getPlatform()
public static java.io.File getMapsFolder()
public static boolean unpackMap(java.lang.String foldername, java.io.InputStream source)
foldername
- the name of the map folder. Will be created if non existend.source
- msut be a zip file without ".foldername" files