world/source/Quests.cpp
// Write out all of the in progress and completed quests.
Write out all of the in progress and completed quests.
Write out all of the in progress and completed quests .
bool Quests::serialize(ostream& stream) const
{
  Serialize::write_size_t(stream, in_progress_quest_map.size());
  for (const QuestMap::value_type& pair : in_progress_quest_map)
  {
    Serialize::write_string(stream, pair.first);
    pair.second.serialize(stream);
  }
  Serialize::write_size_t(stream, completed_quest_map.size());
  for (const QuestMap::value_type& pair : completed_quest_map)
  {
    Serialize::write_string(stream, pair.first);
    pair.second.serialize(stream);
  }
  return true;
}
bool Quests :: serialize ( ostream & stream ) const { Serialize :: write_size_t ( stream , in_progress_quest_map . size ( ) ) ; for ( const QuestMap :: value_type & pair : in_progress_quest_map ) { Serialize :: write_string ( stream , pair . first ) ; pair . second . serialize ( stream ) ; } Serialize :: write_size_t ( stream , completed_quest_map . size ( ) ) ; for ( const QuestMap :: value_type & pair : completed_quest_map ) { Serialize :: write_string ( stream , pair . first ) ; pair . second . serialize ( stream ) ; } return true ; }
Write out all of the in progress and completed quests.
Write out all of the in progress and completed quests .