ECS/Project/Project/Resources/ResourceManager/GeometryResourceManager/GeometryResourceManager.cpp
//	Add the Geometry Data, under the specified name.
Add the Geometry Data, under the specified name.
Add the Geometry Data under the specified name .
void GeometryResourceManager::addGeometry(std::string newGeometryName, std::shared_ptr<GeometryData> newGeometryData)
{
	auto geometryIterator = mapNameToGeometryData.find(newGeometryName);
	if (geometryIterator != mapNameToGeometryData.end())
	{
	}
	else
	{
		mapNameToGeometryData.insert(std::make_pair(newGeometryName, newGeometryData));
		std::shared_ptr<ResourceEvent> newEvent = std::make_shared<ResourceEvent>(ResourceType::GEOMETRY_RESOURCE, ResourceEventType::RESOURCE_ADDED, ModuleType::GEOMETRY_MANAGER, newGeometryName, newGeometryData);
		getDispatcher()->dispatchToEventQueue(newEvent);
	}
}
void GeometryResourceManager :: addGeometry ( std :: string newGeometryName , std :: shared_ptr < GeometryData > newGeometryData ) { auto geometryIterator = mapNameToGeometryData . find ( newGeometryName ) ; if ( geometryIterator != mapNameToGeometryData . end ( ) ) { } else { mapNameToGeometryData . insert ( std :: make_pair ( newGeometryName , newGeometryData ) ) ; std :: shared_ptr < ResourceEvent > newEvent = std :: make_shared < ResourceEvent > ( ResourceType :: GEOMETRY_RESOURCE , ResourceEventType :: RESOURCE_ADDED , ModuleType :: GEOMETRY_MANAGER , newGeometryName , newGeometryData ) ; getDispatcher ( ) -> dispatchToEventQueue ( newEvent ) ; } }
Add the Geometry Data, under the specified name.
Add the Geometry Data under the specified name .
//	TO DO //	Throw Geometry already present error. //	Insert the GeometryData, under the appropriate name.