Agrarsense
MapUtilities.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Kismet/BlueprintFunctionLibrary.h"
10#include "Engine/ObjectLibrary.h"
11
12#include "MapUtilities.generated.h"
13
17UCLASS()
18class AGRARSENSE_API UMapUtilities : public UBlueprintFunctionLibrary
19{
20 GENERATED_BODY()
21
22public:
23
30 UFUNCTION(BlueprintCallable, Category = "Map Utilities")
31 static TArray<FString> GetAllMapNames(bool onlyAgrarsenseMapFolder = true, bool logResults = false);
32
39 UFUNCTION(BlueprintCallable, Category = "Map Utilities")
40 static TArray<FString> GetAllMapPaths(bool onlyAgrarsenseMapFolder = true, bool logResults = false);
41
47 UFUNCTION(BlueprintCallable, Category = "Map Utilities")
48 static TArray<FAssetData> GetAllMapAssetDatas(bool onlyAgrarsenseMapFolder = true);
49
50private:
51
57 static TArray<FAssetData> GetAssetData(bool onlyAgrarsenseMapFolder);
58};