module SaveUtil

Extended Modules

Defined in:

engine/save_util.cr

Constant Summary

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

Instance Method Summary

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}


[View source]
def load_state(save_path) : State #

Loads the game State stored in save_path


[View source]
def save_state(state : State) #

Saves the game state to the disk


[View source]