diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-21 13:56:40 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-21 13:56:40 +0100 |
commit | a3ad4c8f21ef37bd0c0c6c5989f5b7d43b78a7fa (patch) | |
tree | 59ca1d79d838370d146d7543aa28bcce04a55e42 /core/src/ch/asynk/rustanddust/game/ctrl | |
parent | 677813e7fd80c3f9e3fd9b6db15046c1eea97b29 (diff) | |
download | RustAndDust-a3ad4c8f21ef37bd0c0c6c5989f5b7d43b78a7fa.zip RustAndDust-a3ad4c8f21ef37bd0c0c6c5989f5b7d43b78a7fa.tar.gz |
Battle,Map5Marshal: implements util/Marshal
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/ctrl')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index 2af04d1..77bcc23 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -1,6 +1,7 @@ package ch.asynk.rustanddust.game.ctrl; import ch.asynk.rustanddust.RustAndDust; +import ch.asynk.rustanddust.util.Marshal; import ch.asynk.rustanddust.util.GameRecord; import ch.asynk.rustanddust.game.Ctrl; @@ -26,7 +27,7 @@ public class Solo extends Ctrl battle.initialDeployment(); } else { GameRecord r = game.db.loadGame(gameId); - battle.load(r.turn, r.payload); + battle.load(Marshal.Mode.FULL, r.turn, r.payload); r.dispose(); } } @@ -52,7 +53,7 @@ public class Solo extends Ctrl private void storeGame() { - game.db.storeGame(gameId, battle.getTurnCount(), battle.getPlayer().id, battle.unload(true)); + game.db.storeGame(gameId, battle.getTurnCount(), battle.getPlayer().id, battle.unload(Marshal.Mode.FULL)); } private void storeTurn() |