ECS/Project/Project/Resources/ResourceManager/MaterialResourceManager/MaterialResourceManager.cpp
//	Return the Material in the Material Resource Manager, specified by name. Return a const pointer.
Return the Material in the Material Resource Manager, specified by name. Return a const pointer.
Return the Material in the Material Resource Manager specified by name . Return a const pointer .
std::shared_ptr<const MaterialData> MaterialResourceManager::viewMaterial(std::string currentMaterialName) const
{
	auto materialIterator = mapNameToMaterialData.find(currentMaterialName);
	if (materialIterator != mapNameToMaterialData.end())
	{
		return materialIterator->second;
	}
	else
	{
		return NULL;
	}
}
std :: shared_ptr < const MaterialData > MaterialResourceManager :: viewMaterial ( std :: string currentMaterialName ) const { 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.