summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-21 12:02:32 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-21 12:02:32 +0100
commit677813e7fd80c3f9e3fd9b6db15046c1eea97b29 (patch)
treeff4649d90cfcecfed109cfe8bca47186450056c7
parentd387eef4ef69c4c816a77fa1f828a904e7ea4f55 (diff)
downloadRustAndDust-677813e7fd80c3f9e3fd9b6db15046c1eea97b29.zip
RustAndDust-677813e7fd80c3f9e3fd9b6db15046c1eea97b29.tar.gz
add util/Marshal
-rw-r--r--core/src/ch/asynk/rustanddust/util/Marshal.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/util/Marshal.java b/core/src/ch/asynk/rustanddust/util/Marshal.java
new file mode 100644
index 0000000..513c87b
--- /dev/null
+++ b/core/src/ch/asynk/rustanddust/util/Marshal.java
@@ -0,0 +1,18 @@
+package ch.asynk.rustanddust.util;
+
+import com.badlogic.gdx.utils.Json;
+import com.badlogic.gdx.utils.JsonValue;
+
+public interface Marshal
+{
+ public enum Mode
+ {
+ FULL,
+ STATE,
+ ORDERS
+ }
+
+ public void unload(Mode mode, Json json);
+
+ public void load(Mode mode, JsonValue value);
+}