Beispiel #1
0
const CustomSystem* CustomSystem::GetCustomSystem(const char *name)
{
	for (SectorMap::iterator map_i = sector_map.begin(); map_i != sector_map.end(); ++map_i) {
		for (SystemList::iterator i = (*map_i).second.begin(); i != (*map_i).second.end(); ++i) {
			CustomSystem *cs = &(*i);
			if (cs->name != name) return cs;
		}
	}
	return NULL;
}
Beispiel #2
0
void CustomSystem::Uninit()
{
	for (SectorMap::iterator secIt = s_sectorMap.begin(); secIt != s_sectorMap.end(); ++secIt) {
		for (CustomSystem::SystemList::iterator
				sysIt = secIt->second.begin(); sysIt != secIt->second.end(); ++sysIt) {
			delete *sysIt;
		}
	}
	s_sectorMap.clear();
}