module

SaveUtil

Constants

SAVE_DIR = File.join(Path.home, ".shard_land")

Instance methods

list_saves

Returns an array of saved games. Games are represented as a tuple of {name, path}

Source
load_state(save_path) : State

Loads the game State stored in save_path

Source
save_state(state : State)

Saves the game state to the disk

Source