engine/XML/source/XMLDeitiesReader.cpp
// Read in the dislikes of a particular deity
Read in the dislikes of a particular deity
Read in the dislikes of a particular deity
void XMLDeitiesReader::parse_dislikes(const XMLNode& dislikes_node, DeityPtr deity)
{
  if (deity && !dislikes_node.is_null())
  {
    vector<XMLNode> dislike_nodes = XMLUtils::get_elements_by_local_name(dislikes_node, "Action");
    for (const XMLNode& dislike_node : dislike_nodes)
    {
      string dislike_action = XMLUtils::get_node_value(dislike_node);
      deity->set_dislike(dislike_action, true);
    }
  }
}
void XMLDeitiesReader :: parse_dislikes ( const XMLNode & dislikes_node , DeityPtr deity ) { if ( deity && ! dislikes_node . is_null ( ) ) { vector < XMLNode > dislike_nodes = XMLUtils :: get_elements_by_local_name ( dislikes_node , " " ) ; for ( const XMLNode & dislike_node : dislike_nodes ) { string dislike_action = XMLUtils :: get_node_value ( dislike_node ) ; deity -> set_dislike ( dislike_action , true ) ; } } }
Read in the dislikes of a particular deity
Read in the dislikes of a particular deity