unitysamples / LyraStarterGame /Source /LyraGame /Tests /LyraTestControllerBootTest.cpp
Alexhas2's picture
Add files using upload-large-folder tool
7fd553e verified
// Copyright Epic Games, Inc.All Rights Reserved.
#include "Tests/LyraTestControllerBootTest.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(LyraTestControllerBootTest)
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;
}