engine/generators/source/CustomAreaGenerator.cpp
// Overlay custom areas onto the world map.
//
// Read in and set the tiles, and run any necessary scripts: delegate this
// task to the XMLWorldMapReader.
Overlay custom areas onto the world map.
Read in and set the tiles, and run any necessary scripts: delegate this
task to the XMLWorldMapReader.
Overlay custom areas onto the world map . Read in and set the tiles and run any necessary scripts : delegate this task to the XMLWorldMapReader .
void CustomAreaGenerator::overlay_custom_areas(MapPtr map)
{
  XMLFileReader reader;
  XMLNode root = reader.get_xml_from_file("data/maps/world/WorldMapAreas.xml");
  string xmlns = XMLUtils::get_attribute_value(root, "xmlns");
  XML::set_namespace(xmlns); 
  XMLWorldMapReader wmr;
  wmr.read_world_map(map, root);
}
void CustomAreaGenerator :: overlay_custom_areas ( MapPtr map ) { XMLFileReader reader ; XMLNode root = reader . get_xml_from_file ( " " ) ; string xmlns = XMLUtils :: get_attribute_value ( root , " " ) ; XML :: set_namespace ( xmlns ) ; XMLWorldMapReader wmr ; wmr . read_world_map ( map , root ) ; }
Overlay custom areas onto the world map.
Overlay custom areas onto the world map .
// these use a different ns than the default.