Test Synchro
This commit is contained in:
@ -429,7 +429,7 @@ FGuid UDTFluxCoreSubsystem::InitContestRankingsDisplay(const int ContestId)
|
|||||||
{
|
{
|
||||||
if (DataStorage)
|
if (DataStorage)
|
||||||
{
|
{
|
||||||
// no need to request StageRankings;
|
// no need to request ContestRankings;
|
||||||
if (IsContestRankingSealed(ContestId))
|
if (IsContestRankingSealed(ContestId))
|
||||||
{
|
{
|
||||||
const FGuid DisplayRequestId = FGuid::NewGuid();
|
const FGuid DisplayRequestId = FGuid::NewGuid();
|
||||||
@ -444,12 +444,14 @@ FGuid UDTFluxCoreSubsystem::InitContestRankingsDisplay(const int ContestId)
|
|||||||
FDTFluxContestRankings Rankings = FDTFluxContestRankings();
|
FDTFluxContestRankings Rankings = FDTFluxContestRankings();
|
||||||
if (Request.ParsedResponse.IsSet())
|
if (Request.ParsedResponse.IsSet())
|
||||||
{
|
{
|
||||||
|
UE_LOG(logDTFluxCoreSubsystem, Error, TEXT("Request IsSet()"));
|
||||||
TSharedPtr<FDTFluxServerResponse> ResponsePtr = Request.ParsedResponse.GetValue();
|
TSharedPtr<FDTFluxServerResponse> ResponsePtr = Request.ParsedResponse.GetValue();
|
||||||
ResponsePtr->ParseContestRanking(Rankings);
|
ResponsePtr->ParseContestRanking(Rankings);
|
||||||
this->DataStorage->AddContestRanking(Rankings);
|
this->DataStorage->AddContestRanking(Rankings);
|
||||||
this->OnContestRankingDisplayReady.Broadcast(Request.RequestId, true);
|
this->OnContestRankingDisplayReady.Broadcast(Request.RequestId, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
UE_LOG(logDTFluxCoreSubsystem, Error, TEXT("Request IsSet(FALSE)"));
|
||||||
this->OnStageRankingDisplayReady.Broadcast(Request.RequestId, false);
|
this->OnStageRankingDisplayReady.Broadcast(Request.RequestId, false);
|
||||||
});
|
});
|
||||||
FOnDTFluxRequestError OnError = FOnDTFluxRequestError::CreateLambda(
|
FOnDTFluxRequestError OnError = FOnDTFluxRequestError::CreateLambda(
|
||||||
|
|||||||
@ -29,6 +29,7 @@ public:
|
|||||||
|
|
||||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||||
static float ConvertTimeStringToSeconds(const FString& TimeString);
|
static float ConvertTimeStringToSeconds(const FString& TimeString);
|
||||||
|
|
||||||
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools")
|
||||||
static bool CompareTimeString(const FString& A_TimeStr, const FString& B_TimeStr, bool bAscendant = true);
|
static bool CompareTimeString(const FString& A_TimeStr, const FString& B_TimeStr, bool bAscendant = true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user