Class SaveLoadService

java.lang.Object
com.csse3200.game.services.SaveLoadService

public class SaveLoadService extends Object
save load service that will extract all information about the current game state and will add it to save file to be loaded.
  • Constructor Details

    • SaveLoadService

      public SaveLoadService()
  • Method Details

    • save

      public boolean save(String slot, GameArea gameArea)
      Save the current GameArea to local storage (saves/slotX.json).
    • load

      public static SaveLoadService.PlayerInfo load()
      Load a save file from local storage and rebuild the area + entities.