The Battle for Wesnoth  1.17.0-dev
Public Member Functions | Public Attributes | List of all members
mp_game_settings::addon_version_info Struct Reference

#include <mp_game_settings.hpp>

Public Member Functions

 addon_version_info (const config &)
 
void write (config &) const
 

Public Attributes

std::optional< version_infoversion
 
std::optional< version_infomin_version
 
std::string name
 
bool required
 
std::vector< addon_contentcontent
 

Detailed Description

Definition at line 89 of file mp_game_settings.hpp.

Constructor & Destructor Documentation

◆ addon_version_info()

mp_game_settings::addon_version_info::addon_version_info ( const config cfg)
explicit

Definition at line 140 of file mp_game_settings.cpp.

References config::child_range(), content, min_version, and version.

Member Function Documentation

◆ write()

void mp_game_settings::addon_version_info::write ( config cfg) const

Definition at line 158 of file mp_game_settings.cpp.

References config::add_child(), c, content, min_version, name, required, and version.

Member Data Documentation

◆ content

std::vector<addon_content> mp_game_settings::addon_version_info::content

◆ min_version

std::optional<version_info> mp_game_settings::addon_version_info::min_version

◆ name

std::string mp_game_settings::addon_version_info::name

Definition at line 93 of file mp_game_settings.hpp.

Referenced by write().

◆ required

bool mp_game_settings::addon_version_info::required

Definition at line 94 of file mp_game_settings.hpp.

Referenced by mp_game_settings::update_addon_requirements(), and write().

◆ version

std::optional<version_info> mp_game_settings::addon_version_info::version

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