world/source/Quests.cpp
// Deserialize an arbitrary quest map, given its size.
Deserialize an arbitrary quest map, given its size.
Deserialize an arbitrary quest map given its size .
bool Quests::deserialize_quest_map(istream& stream, const size_t num_quests, QuestMap& quest_map)
{
  for (uint i = 0; i < num_quests; i++)
  {
    string quest_id;
    Serialize::read_string(stream, quest_id);
    Quest quest;
    quest.deserialize(stream);
    quest_map[quest_id] = quest;
  }
  return true;
}
bool Quests :: deserialize_quest_map ( istream & stream , const size_t num_quests , QuestMap & quest_map ) { for ( uint i = 0 ; i < num_quests ; i ++ ) { string quest_id ; Serialize :: read_string ( stream , quest_id ) ; Quest quest ; quest . deserialize ( stream ) ; quest_map [ quest_id ] = quest ; } return true ; }
Deserialize an arbitrary quest map, given its size.
Deserialize an arbitrary quest map given its size .