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