RealtimeStyleTransferRuntime/Source/LyraGame/Tests/LyraTestControllerBootTest.cpp

28 lines
818 B
C++

// Copyright Epic Games, Inc.All Rights Reserved.
#include "Tests/LyraTestControllerBootTest.h"
bool ULyraTestControllerBootTest::IsBootProcessComplete() const
{
static double StartTime = FPlatformTime::Seconds();
const double TimeSinceStart = FPlatformTime::Seconds() - StartTime;
if (TimeSinceStart >= TestDelay)
{
return true;
//@TODO: actually do some useful testing here
// if (const UWorld* World = GetWorld())
// {
// if (const ULyraGameInstance* GameInstance = Cast<ULyraGameInstance>(GetWorld()->GetGameInstance()))
// {
// if (GameInstance->GetCurrentState() == ShooterGameInstanceState::WelcomeScreen ||
// GameInstance->GetCurrentState() == ShooterGameInstanceState::MainMenu)
// {
// return true;
// }
// }
// }
}
return false;
}