26 #define ERR_CF LOG_STREAM(err, log_config)
30 if(name ==
"default" || name.empty()) {
32 }
else if(name ==
"cave") {
33 ERR_CF <<
"map/scenario_generation=cave is deprecatd and will be removed soon, use map/scenario_generation=lua with lua/cave_map_generator.lua instead.";
35 }
else if(name ==
"lua") {
49 ss <<
"could not find map generator '" << name <<
"'";
61 ss <<
"could not find map generator '" << name <<
"'";
A config object defines a single node in a WML file, with access to child nodes.
Standard logging facilities (interface).
std::string random_generate_map(const std::string &name, const config &cfg, const config *vars)
config random_generate_scenario(const std::string &name, const config &cfg, const config *vars)
map_generator * create_map_generator(const std::string &name, const config &cfg, const config *vars)
static lg::log_domain log_config("config")
rng * generator
This generator is automatically synced during synced context.