ECS/Project/Project/Resources/ResourceManager/LightResourceManager/LightResourceManager.cpp
//	Add the Light, under the specified name.
Add the Light, under the specified name.
Add the Light under the specified name .
void LightResourceManager::addLight(std::string newLightName, std::shared_ptr<LightData> newLightData)
{
	auto lightIterator = mapNameToLightData.find(newLightName);
	if (lightIterator != mapNameToLightData.end())
	{
	}
	else
	{
		mapNameToLightData.insert(std::make_pair(newLightName, newLightData));
		std::shared_ptr<ResourceEvent> newEvent = std::make_shared<ResourceEvent>(ResourceType::LIGHT_RESOURCE, ResourceEventType::RESOURCE_ADDED, ModuleType::LIGHT_MANAGER, newLightName, newLightData);
		getDispatcher()->dispatchToEventQueue(newEvent);
	}
}
void LightResourceManager :: addLight ( std :: string newLightName , std :: shared_ptr < LightData > newLightData ) { auto lightIterator = mapNameToLightData . find ( newLightName ) ; if ( lightIterator != mapNameToLightData . end ( ) ) { } else { mapNameToLightData . insert ( std :: make_pair ( newLightName , newLightData ) ) ; std :: shared_ptr < ResourceEvent > newEvent = std :: make_shared < ResourceEvent > ( ResourceType :: LIGHT_RESOURCE , ResourceEventType :: RESOURCE_ADDED , ModuleType :: LIGHT_MANAGER , newLightName , newLightData ) ; getDispatcher ( ) -> dispatchToEventQueue ( newEvent ) ; } }
Add the Light, under the specified name.
Add the Light under the specified name .
//	TO DO //	Throw Light already present error. //	Insert the GeometryData, under the appropriate name.