Unreal/CarlaUE4/Plugins/RoadRunnerImporter/Source/RoadRunnerImporter/Private/RoadRunnerImporter.cpp
////////////////////////////////////////////////////////////////////////////////
// Load the Junctions into the array.
Load the Junctions into the array.
Load the Junctions into the array .
TArray<FJunction> LoadSignalJunctions(FXmlNode* xmlSignalData, const std::unordered_map<FString, USCS_Node*, FStringHash>& uuidToComponentMap, const std::unordered_map<FString, FSignalAsset, FStringHash>& uuidToSignalAssetMap)
	{
		TArray<FJunction> ret = TArray<FJunction>();
		if (!xmlSignalData)
			return ret;
		for (const auto& signalDataProperty : xmlSignalData->GetChildrenNodes())
		{
			const FString& tag = signalDataProperty->GetTag();
			if (tag.Equals(TEXT("Junction"), ESearchCase::CaseSensitive))
			{
				FJunction junction = LoadJunction(signalDataProperty, uuidToComponentMap, uuidToSignalAssetMap);
				ret.Add(junction);
			}
		}
		return ret;
	}
TArray < FJunction > LoadSignalJunctions ( FXmlNode * xmlSignalData , const std :: unordered_map < FString , USCS_Node * , FStringHash > & uuidToComponentMap , const std :: unordered_map < FString , FSignalAsset , FStringHash > & uuidToSignalAssetMap ) { TArray < FJunction > ret = TArray < FJunction > ( ) ; if ( ! xmlSignalData ) return ret ; for ( const auto & signalDataProperty : xmlSignalData -> GetChildrenNodes ( ) ) { const FString & tag = signalDataProperty -> GetTag ( ) ; if ( tag . Equals ( TEXT ( " " ) , ESearchCase :: CaseSensitive ) ) { FJunction junction = LoadJunction ( signalDataProperty , uuidToComponentMap , uuidToSignalAssetMap ) ; ret . Add ( junction ) ; } } return ret ; }
Load the Junctions into the array.
Load the Junctions into the array .
// "SignalData" has multiple Junction elements under it