RealtimeStyleTransferRuntime/Source/LyraGame/Tests/LyraTestControllerBootTest.cpp

30 lines
851 B
C++
Raw Permalink Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc.All Rights Reserved.
#include "Tests/LyraTestControllerBootTest.h"
2022-09-13 07:18:28 +00:00
#include "HAL/PlatformTime.h"
2022-05-23 18:41:30 +00:00
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;
}