// Copyright Epic Games, Inc.All Rights Reserved. #include "Tests/LyraTestControllerBootTest.h" #include "HAL/PlatformTime.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(GetWorld()->GetGameInstance())) // { // if (GameInstance->GetCurrentState() == ShooterGameInstanceState::WelcomeScreen || // GameInstance->GetCurrentState() == ShooterGameInstanceState::MainMenu) // { // return true; // } // } // } } return false; }