ECS/Project/Project/GeometryGeneratorSelector/GeometryGeneratorSelector.cpp
//	Load the Geometry from the Planet Ring Maker.
Load the Geometry from the Planet Ring Maker.
Load the Geometry from the Planet Ring Maker .
void GeometryGeneratorSelector::loadGeometryFromPlanetRing(std::vector<std::pair<std::string, std::shared_ptr<GeometryData>>>& geometryList, std::string geometryName, const ResourceDescription & newResourceDescription)
{
	std::string planetRingDivisionsString = "None";
	int planetRingDivisions = 20;
	if (newResourceDescription.findProperty("Planet Ring Divisions", planetRingDivisionsString))
	{
		planetRingDivisions = std::stoi(planetRingDivisionsString);
	}
	PlanetRing planetRing(planetRingDivisions);
	planetRing.generatePlanetRing(geometryList, geometryName);
}
void GeometryGeneratorSelector :: loadGeometryFromPlanetRing ( std :: vector < std :: pair < std :: string , std :: shared_ptr < GeometryData > > > & geometryList , std :: string geometryName , const ResourceDescription & newResourceDescription ) { std :: string planetRingDivisionsString = " " ; int planetRingDivisions = 20 ; if ( newResourceDescription . findProperty ( " " , planetRingDivisionsString ) ) { planetRingDivisions = std :: stoi ( planetRingDivisionsString ) ; } PlanetRing planetRing ( planetRingDivisions ) ; planetRing . generatePlanetRing ( geometryList , geometryName ) ; }
Load the Geometry from the Planet Ring Maker.
Load the Geometry from the Planet Ring Maker .