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