14 #include "Kismet/GameplayStatics.h"    15 #include "Kismet/BlueprintFunctionLibrary.h"    17 #include "CarlaStatics.generated.h"    30   UFUNCTION(BlueprintPure, Category=
"CARLA", meta=(WorldContext=
"WorldContextObject"))
    33   UFUNCTION(BlueprintPure, Category=
"CARLA", meta=(WorldContext=
"WorldContextObject"))
    36   UFUNCTION(BlueprintPure, Category=
"CARLA", meta=(WorldContext=
"WorldContextObject"))
    39   UFUNCTION(BlueprintPure, Category=
"CARLA", meta=(WorldContext=
"WorldContextObject"))
    42   UFUNCTION(BlueprintPure, Category=
"CARLA")
    43   static TArray<FString> GetAllMapNames();
    45   UFUNCTION(BlueprintPure, Category=
"CARLA", meta=(WorldContext=
"WorldContextObject"))
    50   UFUNCTION(BlueprintPure, Category=
"CARLA", meta=(WorldContext=
"WorldContextObject"))
    60   return Cast<ACarlaGameModeBase>(UGameplayStatics::GetGameMode(WorldContext));
    65   return Cast<UCarlaGameInstance>(UGameplayStatics::GetGameInstance(WorldContext));
    71   return GameInstance != 
nullptr ? GameInstance->GetCarlaEpisode() : 
nullptr;
    77   return GameInstance != 
nullptr ? GameInstance->GetCARLASettings() : 
nullptr;
    85     return Episode->GetRecorder();
    95     return Episode->GetReplayer();
 
The game instance contains elements that must be kept alive in between levels. 
 
static UCarlaSettings * GetCarlaSettings(const UObject *WorldContextObject)
 
static ACarlaGameModeBase * GetGameMode(const UObject *WorldContextObject)
 
static UCarlaGameInstance * GetGameInstance(const UObject *WorldContextObject)
 
Recorder for the simulation. 
 
Global settings for CARLA. 
 
ALargeMapManager * GetLMManager() const
 
static UCarlaEpisode * GetCurrentEpisode(const UObject *WorldContextObject)
 
static ALargeMapManager * GetLargeMapManager(const UObject *WorldContextObject)
 
static CarlaReplayer * GetReplayer(const UObject *WorldContextObject)
 
Base class for the CARLA Game Mode. 
 
static ACarlaRecorder * GetRecorder(const UObject *WorldContextObject)