#include <game_config_view.hpp>
Public Member Functions | |
game_config_view () | |
config_array_view | child_range (config_key_type key) const |
const config & | find_child (config_key_type key, const std::string &name, const std::string &value) const |
const config & | child (config_key_type key) const |
const config & | child_or_empty (config_key_type key) const |
game_config_view | merged_children_view (config_key_type key) const |
config_array_view & | data () |
Static Public Member Functions | |
static game_config_view | wrap (const config &cfg) |
Private Member Functions | |
game_config_view (const config &cfg) | |
Private Attributes | |
config_array_view | cfgs_ |
Definition at line 25 of file game_config_view.hpp.
|
inline |
Definition at line 29 of file game_config_view.hpp.
Referenced by wrap().
|
inlineexplicitprivate |
Definition at line 55 of file game_config_view.hpp.
References cfgs_.
const config & game_config_view::child | ( | config_key_type | key | ) | const |
Definition at line 64 of file game_config_view.cpp.
References cfgs_, and config::child().
Referenced by child_range(), default_map_generator_job::default_generate_map(), do_gameloop(), game_lua_kernel::extract_preload_scripts(), mp::game_info::game_info(), ai::configuration::init(), ng::create_engine::init_all_levels(), merged_children_view(), unit_type_data::set_config(), ng::connect_engine::start_game_commandline(), and wrap().
const config & game_config_view::child_or_empty | ( | config_key_type | key | ) | const |
Definition at line 76 of file game_config_view.cpp.
References cfgs_.
Referenced by help::generate_contents(), and wrap().
config_array_view game_config_view::child_range | ( | config_key_type | key | ) | const |
Definition at line 28 of file game_config_view.cpp.
References cfgs_, child(), and config::child_range().
Referenced by game_config::add_color_info(), preferences::advanced_manager::advanced_manager(), game_lua_kernel::extract_preload_scripts(), help::generate_era_sections(), ng::create_engine::init_all_levels(), editor::editor_toolkit::init_brushes(), ng::create_engine::init_extras(), editor::context_manager::init_map_generators(), editor::editor_controller::init_music(), init_strings(), init_textdomains(), editor::editor_controller::init_tods(), terrain_type_data::lazy_initialization(), hotkey::load_custom_hotkeys(), hotkey::load_default_hotkeys(), ng::depcheck::manager::manager(), terrain_builder::parse_config(), about::set_about(), unit_type_data::set_config(), theme::set_known_themes(), filesystem::binary_paths_manager::set_paths(), editor::item_palette::setup(), editor::terrain_palette::setup(), savegame::loadgame::show_difficulty_dialog(), and wrap().
|
inline |
Definition at line 48 of file game_config_view.hpp.
References cfgs_.
Referenced by game_config_manager::set_enabled_addon(), and game_config_manager::set_enabled_addon_all().
const config & game_config_view::find_child | ( | config_key_type | key, |
const std::string & | name, | ||
const std::string & | value | ||
) | const |
Definition at line 52 of file game_config_view.cpp.
References cfgs_, config::child(), config::find_child(), and LOG_CONFIG.
Referenced by play_controller::check_next_scenario_is_known(), editor::context_manager::create_default_context(), ng::create_engine::create_engine(), gui2::dialogs::game_load::evaluate_summary_string(), saved_game::expand_scenario(), mp::game_info::game_info(), help::generate_era_topics(), game_lua_kernel::impl_game_config_set(), mp::initial_level_config(), editor::context_manager::new_map(), editor::context_manager::new_scenario(), ng::create_engine::prepare_for_era_and_mods(), saved_game::set_defaults(), mp::start_local_game_commandline(), and wrap().
game_config_view game_config_view::merged_children_view | ( | config_key_type | key | ) | const |
Definition at line 87 of file game_config_view.cpp.
References cfgs_, child(), and config::child_range().
Referenced by test_utils::game_config_manager::game_config_manager(), and wrap().
|
inlinestatic |
Definition at line 32 of file game_config_view.hpp.
References child(), child_or_empty(), child_range(), find_child(), game_config_view(), and merged_children_view().
Referenced by terrain_builder::add_off_map_rule(), unit::apply_builtin_effect(), BOOST_AUTO_TEST_CASE(), unit_type::build_full(), ng::connect_engine::connect_engine(), gui2::dialogs::mp_join_game::fetch_game_config(), gamemap::gamemap(), game_config::load_config(), preferences::load_hotkeys(), terrain_builder::parse_config(), play_controller::play_controller(), and test_gui2_fixture::test_gui2_fixture().
|
private |
Definition at line 60 of file game_config_view.hpp.
Referenced by child(), child_or_empty(), child_range(), data(), find_child(), game_config_view(), and merged_children_view().