Changeset 9799 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/new_resource_manager.cc
- Timestamp:
- Sep 24, 2006, 12:06:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/new_resource_manager.cc
r9798 r9799 68 68 } 69 69 70 void NewResourceManager::unregisterType(Resources::Type* type) 71 { 72 std::vector<Resources::Type*>::iterator it = std::find (this->_resourceTypes.begin(), this->_resourceTypes.end(), type); 73 if (it != this->_resourceTypes.end()) 74 { 75 this->_resourceTypes.erase(it); 76 PRINTF(5)("ResourceType '%s' with ID %d removed\n", type->storedClassName().c_str(), type->id()); 77 } 78 } 79 80 70 81 void NewResourceManager::setMainGlobalPath(const Directory& directory) 71 82 { … … 127 138 } 128 139 129 const std::string& NewResourceManager::getKeepLevel ID(unsigned int keepLevelID) const140 const std::string& NewResourceManager::getKeepLevelName(unsigned int keepLevelID) const 130 141 { 131 142 assert(keepLevelID < this->_keepLevelNames.size());
Note: See TracChangeset
for help on using the changeset viewer.