Added Events OnDisplayRankings to launch Display of rankings in BluePrints.
This commit is contained in:
@ -89,4 +89,13 @@ public:
|
||||
|
||||
UFUNCTION(BlueprintCallable, CallInEditor, Category="DTFlux|Participant")
|
||||
bool GetParticipantByBib(int Bib, FDTFluxParticipant& OutParticipant);
|
||||
|
||||
UFUNCTION()
|
||||
bool IsStageFinished(FDTFluxStageKey StageKey);
|
||||
|
||||
private:
|
||||
UPROPERTY()
|
||||
TMap<FDTFluxStageKey, bool /*bIsFinished*/> FinishedStagesCache;
|
||||
UFUNCTION()
|
||||
bool CheckStageIsFinished(FDTFluxStageKey StageKey);
|
||||
};
|
||||
|
||||
@ -51,6 +51,7 @@ public:
|
||||
FDateTime EndTime;
|
||||
UPROPERTY(BlueprintReadWrite, Category="DTFlux|model", EditAnywhere)
|
||||
FDateTime CutOff;
|
||||
bool IsFinished() const;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -98,4 +99,4 @@ public:
|
||||
UPROPERTY()
|
||||
// ReSharper disable once IdentifierTypo
|
||||
TArray<FDTFluxContest> Datas;
|
||||
};
|
||||
};
|
||||
|
||||
@ -8,6 +8,18 @@
|
||||
#include "DTFluxRankingStructs.generated.h"
|
||||
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct DTFLUXCORE_API FDTFluxBaseRankings
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UPROPERTY(BlueprintReadOnly, Category="DTFlux|Model", VisibleAnywhere)
|
||||
FDateTime ReceivedAt = FDateTime::Now();
|
||||
|
||||
bool IsSealed(const FDateTime EndTime) const;
|
||||
};
|
||||
|
||||
/**
|
||||
* @struct FDTFluxContestRanking
|
||||
* Representing a contest ranking for a participant
|
||||
@ -37,7 +49,7 @@ public:
|
||||
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct FDTFluxContestRankings
|
||||
struct FDTFluxContestRankings : public FDTFluxBaseRankings
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
@ -94,7 +106,7 @@ public:
|
||||
};
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct FDTFluxDetailedRankings
|
||||
struct FDTFluxDetailedRankings : public FDTFluxBaseRankings
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user