The Battle for Wesnoth  1.19.15+dev
Functions
gui2::tip_of_the_day Namespace Reference

Functions

std::vector< game_tipload (const config &cfg)
 Loads the tips from a config. More...
 
std::vector< game_tipshuffle (const std::vector< game_tip > &tips)
 Shuffles the tips. More...
 

Function Documentation

◆ load()

std::vector< game_tip > gui2::tip_of_the_day::load ( const config cfg)

Loads the tips from a config.

Parameters
cfgA config with the tips.
Returns
The loaded tips.

Definition at line 37 of file tips.cpp.

References cfg, and config::child_range().

Referenced by ai::lua_candidate_action_wrapper_external::generate_code(), lua_kernel_base::get_attribute_names(), and gui2::dialogs::editor_edit_unit::pre_show().

◆ shuffle()

std::vector< game_tip > gui2::tip_of_the_day::shuffle ( const std::vector< game_tip > &  tips)