#include <savegame.hpp>
Public Member Functions | |
void | read_file () |
Reads the savefile filename and stores the result in load_config. More... | |
Public Attributes | |
std::shared_ptr< save_index_class > | manager {} |
There may be different instances of the index for different directories. More... | |
std::string | filename = "" |
Name of the savefile to be loaded (not including the directory). More... | |
std::string | difficulty = "" |
The difficulty the save is meant to be loaded with. More... | |
bool | show_replay = false |
State of the "show_replay" checkbox in the load-game dialog. More... | |
bool | cancel_orders = false |
State of the "cancel_orders" checkbox in the load-game dialog. More... | |
bool | select_difficulty = false |
State of the "change_difficulty" checkbox in the load-game dialog. More... | |
config | summary {} |
Summary config of the save selected in the load game dialog. More... | |
config | load_config {} |
Config information of the savefile to be loaded. More... | |
Definition at line 52 of file savegame.hpp.
void savegame::load_game_metadata::read_file | ( | ) |
Reads the savefile filename and stores the result in load_config.
Definition at line 130 of file savegame.cpp.
References _(), savegame::convert_old_saves(), e, filename, load_config, manager, savegame::read_save_file(), and gui2::show_error_message().
bool savegame::load_game_metadata::cancel_orders = false |
State of the "cancel_orders" checkbox in the load-game dialog.
Definition at line 67 of file savegame.hpp.
std::string savegame::load_game_metadata::difficulty = "" |
The difficulty the save is meant to be loaded with.
Definition at line 61 of file savegame.hpp.
std::string savegame::load_game_metadata::filename = "" |
Name of the savefile to be loaded (not including the directory).
Definition at line 58 of file savegame.hpp.
Referenced by read_file().
config savegame::load_game_metadata::load_config {} |
Config information of the savefile to be loaded.
Definition at line 76 of file savegame.hpp.
Referenced by playsingle_controller::hotkey_handler::load_autosave(), and read_file().
std::shared_ptr<save_index_class> savegame::load_game_metadata::manager {} |
There may be different instances of the index for different directories.
Definition at line 55 of file savegame.hpp.
Referenced by read_file().
bool savegame::load_game_metadata::select_difficulty = false |
State of the "change_difficulty" checkbox in the load-game dialog.
Definition at line 70 of file savegame.hpp.
bool savegame::load_game_metadata::show_replay = false |
State of the "show_replay" checkbox in the load-game dialog.
Definition at line 64 of file savegame.hpp.
config savegame::load_game_metadata::summary {} |
Summary config of the save selected in the load game dialog.
Definition at line 73 of file savegame.hpp.