void ResourceManager::loadAllResources(const std::string &fileName) { CL_ResourceManager resourceManager = loadResourceFile(fileName); std::vector<CL_String> names = resourceManager.get_resource_names(); for (std::vector<CL_String>::const_iterator it = names.begin(); it != names.end(); ++it) loadResource(*it, fileName); }
std::vector<CL_SharedPtr<Resource> > ResourceManager::createAllResources(const std::string &fileName) { CL_ResourceManager resourceManager = loadResourceFile(fileName); std::vector<CL_String> names = resourceManager.get_resource_names(); std::vector<CL_SharedPtr<Resource> > resources; for (std::vector<CL_String>::const_iterator it = names.begin(); it != names.end(); ++it) resources.push_back(createResource(*it, fileName)); return resources; }