The Battle for Wesnoth  1.19.0-dev
Public Attributes | List of all members
savegame::load_game_metadata Struct Reference

#include <savegame.hpp>

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

Referenced by savegame::loadgame::load_game(), and savegame::loadgame::show_difficulty_dialog().

◆ 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 savegame::loadgame::load_game(), savegame::loadgame::load_game_ingame(), and savegame::loadgame::load_multiplayer_game().

◆ 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 savegame::loadgame::load_game(), savegame::loadgame::load_multiplayer_game(), and savegame::loadgame::set_gamestate().

◆ 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 savegame::loadgame::load_game(), savegame::loadgame::load_game_ingame(), and savegame::loadgame::load_multiplayer_game().

◆ 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.

Referenced by savegame::loadgame::load_game(), savegame::loadgame::load_game_ingame(), and savegame::loadgame::show_difficulty_dialog().

◆ 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.

Referenced by savegame::loadgame::load_game(), savegame::loadgame::load_game_ingame(), and savegame::loadgame::load_multiplayer_game().

◆ 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.

Referenced by savegame::loadgame::load_game(), savegame::loadgame::load_game_ingame(), savegame::loadgame::load_multiplayer_game(), and savegame::loadgame::show_difficulty_dialog().


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