func saveQuit(a *area.Area, sav *save.Save) { err := sav.Save(*a) if err != nil { log.Println(err) } util.Quit() }
// load loads old information from a save file. func load(sav *save.Save, a *area.Area) (err error) { s, err := sav.Load() if err != nil { return errutil.Err(err) } *a = s.Area creature.Hero = s.Hero return nil }