8#include "CoreMinimal.h"
9#include "Engine/DataAsset.h"
12#include "Containers/Map.h"
13#include "SensorMapDataAsset.generated.h"
19UCLASS(Blueprintable, BlueprintType)
25 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Sensor map")
34 UFUNCTION(BlueprintCallable)
39 MatchFound = sensorAsset !=
nullptr;
51 UFUNCTION(BlueprintCallable)
52 USensorDataAsset* GetAssetDataByUniqueIdentifier(const FString& UniqueIdentifier,
bool& MatchFound) {
56 for (
const TPair<ESensorTypes, USensorDataAsset*>& SensorPair :
Sensors)
62 if (SensorUniqueIdentifier == UniqueIdentifier)
66 return SensorPair.Value;