engine/XML/source/XMLDeitiesReader.cpp
// Read in the deity's summons (the things it summons when angered).
Read in the deity's summons (the things it summons when angered).
Read in the deity ' s summons ( the things it summons when angered ) .
void XMLDeitiesReader::parse_summons(const XMLNode& summons_node, DeityPtr deity)
{
  if (deity && !summons_node.is_null())
  {
    vector<XMLNode> summon_nodes = XMLUtils::get_elements_by_local_name(summons_node, "Summon");
    vector<string> summons;
    for (const XMLNode& node : summon_nodes)
    {
      string summon = XMLUtils::get_node_value(node);
      summons.push_back(summon);
    }
    deity->set_summons(summons);
  }
}
void XMLDeitiesReader :: parse_summons ( const XMLNode & summons_node , DeityPtr deity ) { if ( deity && ! summons_node . is_null ( ) ) { vector < XMLNode > summon_nodes = XMLUtils :: get_elements_by_local_name ( summons_node , " " ) ; vector < string > summons ; for ( const XMLNode & node : summon_nodes ) { string summon = XMLUtils :: get_node_value ( node ) ; summons . push_back ( summon ) ; } deity -> set_summons ( summons ) ; } }
Read in the deity's summons (the things it summons when angered).
Read in the deity ' s summons ( the things it summons when angered ) .