General Blueprint utilities Functions + First Implementation of Pursuit Logic
This commit is contained in:
37
Source/DTFluxCoreSubsystem/Public/DTFluxCoreSubsystemTools.h
Normal file
37
Source/DTFluxCoreSubsystem/Public/DTFluxCoreSubsystemTools.h
Normal file
@ -0,0 +1,37 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Kismet/BlueprintFunctionLibrary.h"
|
||||
#include "Types/Enum/DTFluxModelEnums.h"
|
||||
#include "Types/Struct/DTFluxRankingStructs.h"
|
||||
#include "DTFluxCoreSubsystemTools.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class DTFLUXCORESUBSYSTEM_API UDTFluxCoreSubsystemTools : public UBlueprintFunctionLibrary
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||
static void FilterContestRankings(FDTFluxContestRankings& ContestRankings,
|
||||
const EDTFluxSortingRankingType RankingType, TArray<FDTFluxContestRanking>& OutContestRankings, bool bAscendant);
|
||||
|
||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||
static void FilterStageRankings(FDTFluxStageRankings& InStageRankings, const EDTFluxSortingRankingType RankingType, FDTFluxStageRankings& OutStageRankings, bool bAscendant = true);
|
||||
|
||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||
static void FilterSplitRankings(FDTFluxSplitRankings& SplitRankings, const EDTFluxSortingRankingType RankinType, FDTFluxSplitRankings& OutSplitRankings, bool bAscendant = true);
|
||||
|
||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||
static float ConvertTimeStringToSeconds(const FString& TimeString);
|
||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||
static bool CompareTimeString(const FString& A_TimeStr, const FString& B_TimeStr, bool bAscendant = true);
|
||||
|
||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||
static bool CompareSpeed(const FString& A_SpeedStr, const FString& B_SpeedStr, bool bAscendant=true);
|
||||
};
|
||||
Reference in New Issue
Block a user