mirror of
https://github.com/ApfelTeeSaft/UnrealEvent.git
synced 2026-08-26 19:33:43 +00:00
25 lines
586 B
C++
25 lines
586 B
C++
#pragma once
|
|
#include "framework.h"
|
|
|
|
namespace Globals
|
|
{
|
|
static bool bPlaylistSetup = false;
|
|
static bool bListening = false;
|
|
static bool bMcp = false;
|
|
static bool bEventScheduled = false; // Guards EventHandler::BeginEvent() against duplicate calls
|
|
|
|
UWorld* GetWorld()
|
|
{
|
|
return UEngine::GetEngine()->GameViewport->World;
|
|
}
|
|
|
|
AFortGameModeAthena* GetGameMode()
|
|
{
|
|
return static_cast<AFortGameModeAthena*>(GetWorld()->AuthorityGameMode);
|
|
}
|
|
|
|
AFortGameStateAthena* GetGameState()
|
|
{
|
|
return static_cast<AFortGameStateAthena*>(GetWorld()->GameState);
|
|
}
|
|
} |