18 #include "formula/callable_objects.hpp" 39 formula_vars_ = std::make_shared<wfl::map_formula_callable>();
74 str =
i->second.serialize_to_string();
77 ai_vars[
i->first] = str;
attribute_map::value_type attribute
Definitions for the interface to Wesnoth Markup Language (WML).
A small explanation about what's going on here: Each action has access to two game_info objects First...
void serialize_from_string(const std::string &str)
utils::optional_reference< const config > get_deprecated_child(config_key_type old_key, const std::string &in_tag, DEP_LEVEL level, const std::string &message) const
Get a deprecated child and log a deprecation message.
config & add_child(config_key_type key)
Standard logging facilities (interface).
A config object defines a single node in a WML file, with access to child nodes.
std::shared_ptr< map_formula_callable > map_formula_callable_ptr
const attribute_value & get_deprecated_attribute(config_key_type old_key, const std::string &in_tag, DEP_LEVEL level, const std::string &message) const
Get a deprecated attribute without a direct substitute, and log a deprecation message.
std::string str(const std::string &fallback="") const