module SaveUtil
Extended Modules
Defined in:
engine/save_util.crConstant Summary
-
SAVE_DIR =
File.join(Path.home, ".shard_land")
Instance Method Summary
-
#list_saves : Array(Tuple(String, String))
Returns an array of saved games.
-
#load_state(save_path) : State
Loads the game
State
stored in save_path -
#save_state(state : State)
Saves the game state to the disk
Instance Method Detail
def list_saves : Array(Tuple(String, String))
#
Returns an array of saved games.
Games are represented as a tuple of {name, path}