18 #include "formula/callable_objects.hpp"
37 if (
auto ai_vars =
ai.get_deprecated_child(
"vars",
"unit][ai",
DEP_LEVEL::FOR_REMOVAL,
"FormulaAI will be removed in 1.17"))
39 formula_vars_ = std::make_shared<wfl::map_formula_callable>();
69 config &ai_vars =
ai.add_child(
"vars");
74 str =
i->second.serialize_to_string();
77 ai_vars[
i->first] = str;
A config object defines a single node in a WML file, with access to child nodes.
attribute_map::value_type attribute
config & add_child(config_key_type key)
void serialize_from_string(const std::string &str)
Standard logging facilities (interface).
A small explanation about what's going on here: Each action has access to two game_info objects First...
std::shared_ptr< map_formula_callable > map_formula_callable_ptr