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

#include <savegame.hpp>

Public Member Functions

 load_game_metadata (std::shared_ptr< save_index_class > index, const std::string &fname="", const std::string &hard="", bool replay=false, bool stop=false, bool change=false, const config &summary=config(), const config &info=config())
 

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
 State of the "show_replay" checkbox in the load-game dialog. More...
 
bool cancel_orders
 State of the "cancel_orders" checkbox in the load-game dialog. More...
 
bool select_difficulty
 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 51 of file savegame.hpp.

Constructor & Destructor Documentation

◆ load_game_metadata()

savegame::load_game_metadata::load_game_metadata ( std::shared_ptr< save_index_class index,
const std::string &  fname = "",
const std::string &  hard = "",
bool  replay = false,
bool  stop = false,
bool  change = false,
const config summary = config(),
const config info = config() 
)
inlineexplicit

Definition at line 77 of file savegame.hpp.

Member Data Documentation

◆ cancel_orders

bool savegame::load_game_metadata::cancel_orders

State of the "cancel_orders" checkbox in the load-game dialog.

Definition at line 66 of file savegame.hpp.

Referenced by game_launcher::load_game().

◆ difficulty

std::string savegame::load_game_metadata::difficulty

The difficulty the save is meant to be loaded with.

Definition at line 60 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 57 of file savegame.hpp.

Referenced by game_launcher::goto_editor(), 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 75 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 54 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

State of the "change_difficulty" checkbox in the load-game dialog.

Definition at line 69 of file savegame.hpp.

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

◆ show_replay

bool savegame::load_game_metadata::show_replay

State of the "show_replay" checkbox in the load-game dialog.

Definition at line 63 of file savegame.hpp.

Referenced by game_launcher::load_game(), 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 72 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: