Added Sorting SplitRanking By Rank Helper
This commit is contained in:
@ -83,3 +83,12 @@ FString UDTFluxModelHelper::GetCurrentStageName(UDTFluxDataStorage* DataStorage)
|
||||
}
|
||||
return Name;
|
||||
}
|
||||
|
||||
void UDTFluxModelHelper::SortByRank(TArray<FDTFluxSplitRanking>& SplitRankingArray)
|
||||
{
|
||||
|
||||
SplitRankingArray.Sort([](const FDTFluxSplitRanking A, const FDTFluxSplitRanking B )
|
||||
{
|
||||
return A.Rank < B.Rank;
|
||||
});
|
||||
}
|
||||
|
||||
@ -129,6 +129,8 @@ public:
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category="DTFlux|Model|Helpers")
|
||||
static FString GetCurrentStageName(UDTFluxDataStorage* DataStorage);
|
||||
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category="DTFlux|Model|Helpers")
|
||||
static void SortByRank(TArray<FDTFluxSplitRanking>& SplitRankingArray);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user