diff options
Diffstat (limited to '')
-rw-r--r-- | src/libjtmx/Map.java | 10 | ||||
-rw-r--r-- | src/libjtmx/module-info.java | 3 | ||||
-rw-r--r-- | src/subconscious/MapLoader.java | 6 | ||||
-rw-r--r-- | src/subconscious/module-info.java | 3 |
4 files changed, 17 insertions, 5 deletions
diff --git a/src/libjtmx/Map.java b/src/libjtmx/Map.java new file mode 100644 index 0000000..d9333a8 --- /dev/null +++ b/src/libjtmx/Map.java @@ -0,0 +1,10 @@ +package libjtmx; + +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class Map { + +}
\ No newline at end of file diff --git a/src/libjtmx/module-info.java b/src/libjtmx/module-info.java new file mode 100644 index 0000000..4dc4197 --- /dev/null +++ b/src/libjtmx/module-info.java @@ -0,0 +1,3 @@ +module libjtmx { + requires java.xml.bind; +}
\ No newline at end of file diff --git a/src/subconscious/MapLoader.java b/src/subconscious/MapLoader.java index 6fe1273..67425e5 100644 --- a/src/subconscious/MapLoader.java +++ b/src/subconscious/MapLoader.java @@ -9,8 +9,6 @@ import java.io.IOException; import java.awt.Dimension; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; // TODO: remove import java.lang.UnsupportedOperationException; @@ -21,8 +19,6 @@ public class MapLoader { public static final String MAPS_RESOURCES_PATH = "/subconscious/res/maps/"; - private Gson gson = new GsonBuilder().setPrettyPrinting().create();; - public MapLoader() { } @@ -50,7 +46,7 @@ public class MapLoader { } public Map parse(final String json) { - return this.gson.fromJson(json, Map.class); + throw new UnsupportedOperationException(); } // public void saveMap(Map map) { diff --git a/src/subconscious/module-info.java b/src/subconscious/module-info.java new file mode 100644 index 0000000..a6d22b9 --- /dev/null +++ b/src/subconscious/module-info.java @@ -0,0 +1,3 @@ +module subconscious { + requires java.desktop; +}
\ No newline at end of file |