mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
17
dependencies/reboot/Project Reboot 3.0/GameState.cpp
vendored
Normal file
17
dependencies/reboot/Project Reboot 3.0/GameState.cpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user