ECS/Project/Project/Resources/ResourceManager/GeometryResourceManager/GeometryResourceManager.cpp
//	Update the Geometry Data, under the specified name.
Update the Geometry Data, under the specified name.
Update the Geometry Data under the specified name .
void GeometryResourceManager::updateGeometry(std::string currentGeometryName, std::shared_ptr<GeometryData> newGeometryData)
{
	auto geometryIterator = mapNameToGeometryData.find(currentGeometryName);
	if (geometryIterator != mapNameToGeometryData.end())
	{
		geometryIterator->second = newGeometryData;
		std::shared_ptr<ResourceEvent> newEvent = std::make_shared<ResourceEvent>(ResourceType::GEOMETRY_RESOURCE, ResourceEventType::RESOURCE_UPDATED, ModuleType::GEOMETRY_MANAGER, currentGeometryName, newGeometryData);
		getDispatcher()->dispatchToEventQueue(newEvent);
	}
	else
	{
	}
}
void GeometryResourceManager :: updateGeometry ( std :: string currentGeometryName , std :: shared_ptr < GeometryData > newGeometryData ) { auto geometryIterator = mapNameToGeometryData . find ( currentGeometryName ) ; if ( geometryIterator != mapNameToGeometryData . end ( ) ) { geometryIterator -> second = newGeometryData ; std :: shared_ptr < ResourceEvent > newEvent = std :: make_shared < ResourceEvent > ( ResourceType :: GEOMETRY_RESOURCE , ResourceEventType :: RESOURCE_UPDATED , ModuleType :: GEOMETRY_MANAGER , currentGeometryName , newGeometryData ) ; getDispatcher ( ) -> dispatchToEventQueue ( newEvent ) ; } else { } }
Update the Geometry Data, under the specified name.
Update the Geometry Data under the specified name .
//	TO DO //	Throw did not find GeometryData error.