Esempio n. 1
0
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());
	}
}
Esempio n. 2
0
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);
	}
}
Esempio n. 3
0
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));
	}
}