lyra_game_ue/Source/LyraGame/Tests/LyraTestControllerBootTest.cpp
Goran Lazarevski 3bcab085f8 Initial commit
2025-03-20 11:06:26 +01:00

32 lines
863 B
C++

// 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;
}