#include <statistics_record.hpp>
Public Member Functions | |
campaign_stats_t ()=default | |
campaign_stats_t (const config &cfg) | |
config | to_config () const |
void | write (config_writer &out) const |
void | read (const config &cfg, bool append=false) |
void | new_scenario (const std::string &scenario_name) |
Adds an entry for anew scenario to wrte to. More... | |
void | clear_current_scenario () |
Delete the current scenario from the stats. More... | |
Public Attributes | |
std::vector< scenario_stats_t > | master_record |
Definition at line 106 of file statistics_record.hpp.
|
default |
|
inlineexplicit |
Definition at line 109 of file statistics_record.hpp.
References read().
void statistics_record::campaign_stats_t::clear_current_scenario | ( | ) |
Delete the current scenario from the stats.
Definition at line 501 of file statistics_record.cpp.
Referenced by game_launcher::load_game(), and playsingle_controller::play_scenario_main_loop().
void statistics_record::campaign_stats_t::new_scenario | ( | const std::string & | scenario_name | ) |
Adds an entry for anew scenario to wrte to.
Definition at line 496 of file statistics_record.cpp.
Referenced by saved_game::expand_carryover().
void statistics_record::campaign_stats_t::read | ( | const config & | cfg, |
bool | append = false |
||
) |
Definition at line 486 of file statistics_record.cpp.
References config::child_range(), and s.
Referenced by campaign_stats_t(), playsingle_controller::play_scenario_main_loop(), and saved_game::set_data().
config statistics_record::campaign_stats_t::to_config | ( | ) | const |
Definition at line 466 of file statistics_record.cpp.
References config::add_child(), and i.
Referenced by saved_game::to_config().
void statistics_record::campaign_stats_t::write | ( | config_writer & | out | ) | const |
Definition at line 477 of file statistics_record.cpp.
References config_writer::close_child(), i, and config_writer::open_child().
Referenced by saved_game::write_general_info().
std::vector<scenario_stats_t> statistics_record::campaign_stats_t::master_record |
Definition at line 122 of file statistics_record.hpp.
Referenced by statistics_t::master_stats().