mirror of
https://github.com/nax1800/Athena.git
synced 2026-08-26 19:43:33 +00:00
39 lines
800 B
C++
39 lines
800 B
C++
#pragma once
|
|
#include "framework.h"
|
|
|
|
namespace Globals
|
|
{
|
|
bool bUseBeacons = true;
|
|
bool bUseAccountID = false; // backend communication, etc...
|
|
bool bNoMCP = true;
|
|
bool bSupportMatchmaking = false;
|
|
|
|
bool bIsServerListening = false;
|
|
bool bIsPlaylistSetup = false;
|
|
bool bIsFloorLootSpawned = false;
|
|
|
|
int Port = 7777;
|
|
|
|
int BotsToSpawn = 6;
|
|
|
|
UFortEngine* GetEngine()
|
|
{
|
|
static auto Engine = UObject::FindObject<UFortEngine>("FortEngine Transient.FortEngine_2147482594");
|
|
return Engine;
|
|
}
|
|
|
|
UWorld* GetWorld()
|
|
{
|
|
return GetEngine()->GameViewport->World;
|
|
}
|
|
|
|
AFortGameModeAthena* GetGameMode()
|
|
{
|
|
return static_cast<AFortGameModeAthena*>(GetWorld()->AuthorityGameMode);
|
|
}
|
|
|
|
AFortGameStateAthena* GetGameState()
|
|
{
|
|
return static_cast<AFortGameStateAthena*>(GetWorld()->GameState);
|
|
}
|
|
} |