The Battle for Wesnoth  1.19.15+dev
Public Member Functions | Public Attributes | List of all members
savegame::load_game_metadata Struct Reference

#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_classmanager {}
 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...
 

Detailed Description

Definition at line 52 of file savegame.hpp.

Member Function Documentation

◆ read_file()

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().

Member Data Documentation

◆ cancel_orders

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.

◆ difficulty

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.

◆ filename

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().

◆ load_config

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().

◆ manager

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().

◆ select_difficulty

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.

◆ show_replay

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.

◆ summary

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.


The documentation for this struct was generated from the following files: