ECS/Project/Project/Resources/ResourceManager/MaterialResourceManager/MaterialResourceManager.cpp
//	Return the Material in the Material Resource Manager, specified by name.
Return the Material in the Material Resource Manager, specified by name.
Return the Material in the Material Resource Manager specified by name .
std::shared_ptr<MaterialData> MaterialResourceManager::getMaterial(std::string currentMaterialName)
{
	auto materialIterator = mapNameToMaterialData.find(currentMaterialName);
	if (materialIterator != mapNameToMaterialData.end())
	{
		return materialIterator->second;
	}
	else
	{
		return NULL;
	}
}
std :: shared_ptr < MaterialData > MaterialResourceManager :: getMaterial ( std :: string currentMaterialName ) { auto materialIterator = mapNameToMaterialData . find ( currentMaterialName ) ; if ( materialIterator != mapNameToMaterialData . end ( ) ) { return materialIterator -> second ; } else { return NULL ; } }
Return the Material in the Material Resource Manager, specified by name.
Return the Material in the Material Resource Manager specified by name .
//	Find the Material. //	TO DO //	Throw did not find MaterialData error.