summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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);
+}