Skip to content
Snippets Groups Projects
Commit 2ce936b3 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

add more interface calls to USFGameInstance to get the curent and the next codition

parent aa47b693
No related branches found
No related tags found
No related merge requests found
...@@ -762,6 +762,18 @@ int USFGameInstance::GetCurrentConditionsSequenceNumber() const ...@@ -762,6 +762,18 @@ int USFGameInstance::GetCurrentConditionsSequenceNumber() const
return Participant->GetCurrentConditionNumber() + 1; return Participant->GetCurrentConditionNumber() + 1;
} }
USFCondition* USFGameInstance::GetCurrentCondition() const
{
if (!Participant) return nullptr;
return Participant->GetCurrentCondition();
}
USFCondition* USFGameInstance::GetNextCondition() const
{
if (!Participant) return nullptr;
return Participant->GetNextCondition();
}
void USFGameInstance::LogToHUD(FString Text) void USFGameInstance::LogToHUD(FString Text)
{ {
if (GetWorld()->GetFirstPlayerController() && Cast<ASFMasterHUD>(GetWorld()->GetFirstPlayerController()->GetHUD()) && if (GetWorld()->GetFirstPlayerController() && Cast<ASFMasterHUD>(GetWorld()->GetFirstPlayerController()->GetHUD()) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment