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)
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)
Seting for map generation from opendrive without additional geometry.
The game instance contains elements that must be kept alive in between levels.
This file contains definitions of common data structures used in traffic manager. ...
void NotifyBeginEpisode(UCarlaEpisode &Episode)
const FCarlaServer & GetServer() const
Recorder for the simulation.
UPROPERTY(Category="Quality Settings/Low", BlueprintReadOnly, EditAnywhere, config, DisplayName="Road Materials List for Low Quality") TArray< FStaticMaterial > LowRoadMaterials
Low quality Road Materials.
const UCarlaSettings & GetCarlaSettings() const
FCarlaServer & GetServer()
Global settings for CARLA.
UCarlaSettings & GetCarlaSettings()
const carla::rpc::OpendriveGenerationParameters & GetOpendriveGenerationParameters() const
FCarlaEngine * GetCarlaEngine()
void SetOpendriveGenerationParameters(const carla::rpc::OpendriveGenerationParameters &Parameters)