Package com.csse3200.game.services
Class SaveLoadService
java.lang.Object
com.csse3200.game.services.SaveLoadService
save load service that will extract all information about the current game state and will add it to save file to
be loaded.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
mock game state to store entities. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SaveLoadService.PlayerInfo
load()
Load a save file from local storage and rebuild the area + entities.boolean
Save the current GameArea to local storage (saves/slotX.json).
-
Constructor Details
-
SaveLoadService
public SaveLoadService()
-
-
Method Details
-
save
Save the current GameArea to local storage (saves/slotX.json). -
load
Load a save file from local storage and rebuild the area + entities.
-