The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
statistics_record::scenario_stats_t Struct Reference

#include <statistics_record.hpp>

Public Member Functions

 scenario_stats_t (const std::string &name)
 
 scenario_stats_t (const config &cfg)
 
config write () const
 
void write (config_writer &out) const
 

Public Attributes

team_stats_t team_stats
 
std::string scenario_name
 

Detailed Description

Definition at line 90 of file statistics_record.hpp.

Constructor & Destructor Documentation

◆ scenario_stats_t() [1/2]

statistics_record::scenario_stats_t::scenario_stats_t ( const std::string &  name)
inlineexplicit

Definition at line 92 of file statistics_record.hpp.

◆ scenario_stats_t() [2/2]

statistics_record::scenario_stats_t::scenario_stats_t ( const config cfg)
explicit

Definition at line 425 of file statistics_record.cpp.

References config::child_range(), and team_stats.

Member Function Documentation

◆ write() [1/2]

config statistics_record::scenario_stats_t::write ( ) const

Definition at line 434 of file statistics_record.cpp.

References config::add_child(), i, scenario_name, and team_stats.

◆ write() [2/2]

void statistics_record::scenario_stats_t::write ( config_writer out) const

Member Data Documentation

◆ scenario_name

std::string statistics_record::scenario_stats_t::scenario_name

Definition at line 103 of file statistics_record.hpp.

Referenced by write().

◆ team_stats

team_stats_t statistics_record::scenario_stats_t::team_stats

Definition at line 102 of file statistics_record.hpp.

Referenced by scenario_stats_t(), and write().


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