8#include "ROSIntegration/Classes/ROSIntegrationGameInstance.h"
22#include "Engine/GameViewportClient.h"
23#include "Engine/Engine.h"
24#include "Engine/World.h"
28 return Cast<AAgrarsenseGameModeBase>(UGameplayStatics::GetGameMode(WorldContextObject));
33 return Cast<UAgrarsenseGameInstance>(UGameplayStatics::GetGameInstance(WorldContextObject));
38 return Cast<UROSIntegrationGameInstance>(UGameplayStatics::GetGameInstance(WorldContextObject));
50 return GameMode !=
nullptr ? GameMode->
GetROSHandle() :
nullptr;
68 return GameMode !=
nullptr ? GameMode->
GetSpectator() :
nullptr;
79 UWorld* World =
nullptr;
80 if (GEngine && GEngine->GameViewport)
82 World = GEngine->GameViewport->GetWorld();
ASimulationLevelManager * GetSimulationLevelManager()
ASpectator * GetSpectator()
AInstancedRenderer * GetInstancedRenderer()
ALidarManager * GetLidarManager()
UROSHandler * GetROSHandle()
AWeather * GetWeatherActor()
static UAgrarsenseSettings * GetAgrarsenseSettings()
static USensorManager * GetSensorManager()
static ASpectator * GetSpectator(const UObject *WorldContextObject)
static UAgrarsenseSettings * GetAgrarsenseSettings()
static AAgrarsenseGameModeBase * GetGameMode(const UObject *WorldContextObject)
static AWeather * GetWeatherActor(const UObject *WorldContextObject)
static AInstancedRenderer * GetInstancedRenderer(const UObject *WorldContextObject)
static UROSIntegrationGameInstance * GetROSGameInstance(const UObject *WorldContextObject)
static ALidarManager * GetLidarManager(const UObject *WorldContextObject)
static UAgrarsenseGameInstance * GetGameInstance(const UObject *WorldContextObject)
static ASimulationLevelManager * GetSimulationLevelManager(const UObject *WorldContextObject)
static UWorld * GetWorldStatic()
static UROSHandler * GetROSHandle(const UObject *WorldContextObject)
static USensorManager * Get()