Changeset 9854 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource_manager.cc
- Timestamp:
- Sep 28, 2006, 10:17:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource_manager.cc
r9853 r9854 35 35 */ 36 36 ResourceManager::ResourceManager () 37 : _defaultKeepLevel(0) 37 38 { 38 39 this->registerObject(this, ResourceManager::_objectList); … … 47 48 ResourceManager::~ResourceManager () 48 49 { 49 // deleting the Resources-List50 //this->unloadAllByPriority(RP_GAME);51 52 // if (!this->resourceList.empty())53 // PRINTF(1)("Not removed all Resources, since there are still %d resources registered\n", this->resourceList.size());54 55 50 ResourceManager::_singletonRef = NULL; 56 51 } … … 195 190 * @param loadString the loadString to load in the Type. 196 191 */ 197 void ResourceManager::loadFromLoadString(const std::string& resourceTypeName, const std::string& loadString )192 void ResourceManager::loadFromLoadString(const std::string& resourceTypeName, const std::string& loadString, const KeepLevel& keepLevel) 198 193 { 199 194 std::vector<Resources::Type*>::const_iterator it; … … 202 197 if (*(*it) == resourceTypeName) 203 198 { 204 (*it)->createFromString(loadString );199 (*it)->createFromString(loadString, keepLevel); 205 200 /// TODO check if the resource was allocated!! 206 201 return ;
Note: See TracChangeset
for help on using the changeset viewer.