mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
17 lines
381 B
C++
17 lines
381 B
C++
#include "GameState.h"
|
|
|
|
#include "GameplayStatics.h"
|
|
|
|
#include "reboot.h"
|
|
|
|
float AGameState::GetServerWorldTimeSeconds()
|
|
{
|
|
UWorld* World = GetWorld();
|
|
if (World)
|
|
{
|
|
static auto ServerWorldTimeSecondsDeltaOffset = this->GetOffset("ServerWorldTimeSecondsDelta");
|
|
return UGameplayStatics::GetTimeSeconds(World) + Get<float>(ServerWorldTimeSecondsDeltaOffset);
|
|
}
|
|
|
|
return 0.f;
|
|
} |