From 677813e7fd80c3f9e3fd9b6db15046c1eea97b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 21 Mar 2016 12:02:32 +0100 Subject: add util/Marshal --- core/src/ch/asynk/rustanddust/util/Marshal.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/src/ch/asynk/rustanddust/util/Marshal.java 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); +} -- cgit v1.1-2-g2b99