aboutsummaryrefslogtreecommitdiff
path: root/src/esieequest/engine/commands/SaveCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/esieequest/engine/commands/SaveCommand.java')
-rw-r--r--src/esieequest/engine/commands/SaveCommand.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/esieequest/engine/commands/SaveCommand.java b/src/esieequest/engine/commands/SaveCommand.java
index f70dd93..5907fb1 100644
--- a/src/esieequest/engine/commands/SaveCommand.java
+++ b/src/esieequest/engine/commands/SaveCommand.java
@@ -2,7 +2,7 @@ package esieequest.engine.commands;
2 2
3import esieequest.game.Game; 3import esieequest.game.Game;
4import esieequest.game.Text; 4import esieequest.game.Text;
5import esieequest.ui.Viewable; 5import esieequest.ui.View;
6 6
7/** 7/**
8 * Saves the current Game. 8 * Saves the current Game.
@@ -12,7 +12,7 @@ import esieequest.ui.Viewable;
12public class SaveCommand implements Executable { 12public class SaveCommand implements Executable {
13 13
14 @Override 14 @Override
15 public void execute(final String argument, final Game game, final Viewable view) { 15 public void execute(final String argument, final Game game, final View view) {
16 16
17 final String filePath = argument; 17 final String filePath = argument;
18 18
@@ -22,7 +22,7 @@ public class SaveCommand implements Executable {
22 } 22 }
23 23
24 final String serialisedGame = game.serialise().toJSONString(); 24 final String serialisedGame = game.serialise().toJSONString();
25 view.save(filePath, serialisedGame); 25 view.getDataStore().save(filePath, serialisedGame);
26 26
27 } 27 }
28 28