void DLGFile::readLinks(const GFFList &list, std::vector<Link> &links) { for (GFFList::const_iterator l = list.begin(); l != list.end(); ++l) { links.push_back(Link()); readLink(**l, links.back()); } }
void DLGFile::readEntries(const GFFList &list, std::vector<Entry> &entries, bool isPC) { for (GFFList::const_iterator e = list.begin(); e != list.end(); ++e) { entries.push_back(Entry()); Entry &entry = entries.back(); entry.isPC = isPC; entry.line.id = entries.size() - 1; readEntry(**e, entry); } }
void GFFVarTable::read(const GFFList &list) { for (GFFList::const_iterator it = list.begin(); it != list.end(); ++it) { GFFVariable *variable = new GFFVariable; Common::UString name; try { variable->read(**it, name); } catch(...) { delete variable; throw; } _variables.insert(std::make_pair(name, variable)); } }