| // Copyright Epic Games, Inc.All Rights Reserved. | |
| 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; | |
| } | |