Fix Output BluePrint V2
This commit is contained in:
@ -56,11 +56,12 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
|
||||
UE_LOG(logDTFluxUtilities, Error, TEXT("DTFluxCoreSubsystem not available"));
|
||||
}
|
||||
|
||||
TArray<FDTFluxSplitSensorInfo>& UFTDFluxUtils::SortSplitRankingsByRank(TArray<FDTFluxSplitSensorInfo>& OutRankings)
|
||||
TArray<FDTFluxSplitSensorInfo> UFTDFluxUtils::SortSplitRankingsByRank(const TArray<FDTFluxSplitSensorInfo>& Rankings)
|
||||
{
|
||||
OutRankings.Sort([](const FDTFluxSplitSensorInfo& A, const FDTFluxSplitSensorInfo& B)
|
||||
TArray<FDTFluxSplitSensorInfo> CopyRankings = Rankings;
|
||||
CopyRankings.Sort([](const FDTFluxSplitSensorInfo& A, const FDTFluxSplitSensorInfo& B)
|
||||
{
|
||||
return A.Rank < B.Rank;
|
||||
});
|
||||
return OutRankings;
|
||||
return CopyRankings;
|
||||
}
|
||||
@ -5,7 +5,7 @@
|
||||
#include "CoreMinimal.h"
|
||||
#include "DTFluxCore/Public/Types/Struct/DTFluxTeamListStruct.h"
|
||||
#include "Kismet/BlueprintFunctionLibrary.h"
|
||||
#include "Types/Struct/DTFluxRankingStructs.h"
|
||||
#include "Types/Struct/DTFluxSplitSensor.h"
|
||||
#include "DTFluxUtils.generated.h"
|
||||
|
||||
/**
|
||||
@ -71,7 +71,7 @@ public:
|
||||
static void GetFullName(const int Bib, FText& OutFullName);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category="DTFlux|Utils")
|
||||
static TArray<FDTFluxSplitSensorInfo>& SortSplitRankingsByRank(TArray<FDTFluxSplitSensorInfo>& OutRankings);
|
||||
static TArray<FDTFluxSplitSensorInfo> SortSplitRankingsByRank(const TArray<FDTFluxSplitSensorInfo>& OutRankings);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user