9#include "Engine/GameInstance.h"
20#include "CarlaGameInstance.generated.h"
39 check(CarlaSettings !=
nullptr);
40 return *CarlaSettings;
45 check(CarlaSettings !=
nullptr);
46 return *CarlaSettings;
50 UFUNCTION(BlueprintCallable)
56 UFUNCTION(BlueprintCallable)
59 return CarlaEngine.GetCurrentEpisode();
64 CarlaEngine.NotifyInitGame(GetCarlaSettings());
69 CarlaEngine.NotifyBeginEpisode(Episode);
74 CarlaEngine.NotifyEndEpisode();
79 return CarlaEngine.GetServer();
84 return CarlaEngine.GetServer();
90 GenerationParameters = Parameters;
96 return GenerationParameters;
99 UFUNCTION(Category =
"Carla Game Instance", BlueprintCallable)
100 void SetMapLayer(int32 MapLayer)
102 CurrentMapLayer = MapLayer;
105 UFUNCTION(Category =
"Carla Game Instance", BlueprintCallable)
106 int32 GetCurrentMapLayer()
const
108 return CurrentMapLayer;
118 UPROPERTY(Category =
"CARLA Settings", EditAnywhere)
126 carla::rpc::OpendriveGenerationParameters GenerationParameters;
128 UPROPERTY(Category = "CARLA Game Instance", EditAnywhere)
129 int32 CurrentMapLayer = static_cast<int32>(
carla::rpc::MapLayer::
All);
Recorder for the simulation
The game instance contains elements that must be kept alive in between levels.
const FCarlaServer & GetServer() const
void NotifyBeginEpisode(UCarlaEpisode &Episode)
UCarlaSettings & GetCarlaSettings()
const carla::rpc::OpendriveGenerationParameters & GetOpendriveGenerationParameters() const
FCarlaEngine * GetCarlaEngine()
const UCarlaSettings & GetCarlaSettings() const
FCarlaServer & GetServer()
void SetOpendriveGenerationParameters(const carla::rpc::OpendriveGenerationParameters &Parameters)
Global settings for CARLA.
UPROPERTY(Category="Quality Settings/Low", BlueprintReadOnly, EditAnywhere, config, DisplayName="Road Materials List for Low Quality") TArray< FStaticMaterial > LowRoadMaterials
Low quality Road Materials.
This file contains definitions of common data structures used in traffic manager.
Seting for map generation from opendrive without additional geometry