- const ContainerType* ctype = (*itTask)->type();
- std::map<const Resource *, ResourceLoadInfo>::iterator best_resource;
- best_resource = _resources.end();
- float best_cost = std::numeric_limits<float>::max();
- for(auto itResource = _resources.begin();
- itResource != _resources.end();
- itResource++)
- if(itResource->second.isSupported(ctype))
- {
- if(itResource->second.isAllocPossible(ctype))
+ const ContainerType& ctype = (*itTask)->type();
+ if(ctype.ignoreResources)
+ result.taskFound = true;
+ else
+ {
+ std::list<ResourceLoadInfo>::iterator best_resource;
+ best_resource = _resources.end();
+ float best_cost = std::numeric_limits<float>::max();
+ bool isSupported = false;
+ for(auto itResource = _resources.begin();
+ itResource != _resources.end();
+ itResource++)
+ if(itResource->isSupported(ctype)
+ && (*itTask)->isAccepted(itResource->resource()))