The game instance contains elements that must be kept alive in between levels. More...
#include <CarlaGameInstance.h>
Public Member Functions | |
FCarlaEngine * | GetCarlaEngine () |
UCarlaEpisode * | GetCarlaEpisode () |
UCarlaSettings & | GetCarlaSettings () |
const UCarlaSettings & | GetCarlaSettings () const |
UCarlaSettings * | GetCARLASettings () |
int32 | GetCurrentMapLayer () const |
const carla::rpc::OpendriveGenerationParameters & | GetOpendriveGenerationParameters () const |
const FCarlaServer & | GetServer () const |
FCarlaServer & | GetServer () |
void | NotifyBeginEpisode (UCarlaEpisode &Episode) |
void | NotifyEndEpisode () |
void | NotifyInitGame () |
void | SetMapLayer (int32 MapLayer) |
void | SetOpendriveGenerationParameters (const carla::rpc::OpendriveGenerationParameters &Parameters) |
UCarlaGameInstance () | |
~UCarlaGameInstance () | |
Private Attributes | |
FString | _MapPath |
FCarlaEngine | CarlaEngine |
UCarlaSettings * | CarlaSettings = nullptr |
int32 | CurrentMapLayer = static_cast<int32>(carla::rpc::MapLayer::All) |
carla::rpc::OpendriveGenerationParameters | GenerationParameters |
ACarlaRecorder * | Recorder = nullptr |
The game instance contains elements that must be kept alive in between levels.
It is instantiate once per game.
Definition at line 27 of file CarlaGameInstance.h.
UCarlaGameInstance::UCarlaGameInstance | ( | ) |
Definition at line 12 of file CarlaGameInstance.cpp.
References CarlaEngine, CarlaSettings, UCarlaSettings::LoadSettings(), UCarlaSettings::LogSettings(), Recorder, FCarlaEngine::SetRecorder(), and ~UCarlaGameInstance().
|
default |
|
inline |
Definition at line 111 of file CarlaGameInstance.h.
References UCarlaSettings::UPROPERTY().
Referenced by UCarlaEpisode::LoadNewEpisode().
|
inline |
Definition at line 57 of file CarlaGameInstance.h.
Referenced by ASensorFactory::SpawnActor(), and ATriggerFactory::SpawnActor().
|
inline |
Definition at line 37 of file CarlaGameInstance.h.
|
inline |
Definition at line 43 of file CarlaGameInstance.h.
|
inline |
Definition at line 51 of file CarlaGameInstance.h.
|
inline |
Definition at line 106 of file CarlaGameInstance.h.
Referenced by ACarlaGameModeBase::BeginPlay().
|
inline |
Definition at line 94 of file CarlaGameInstance.h.
Referenced by AOpenDriveGenerator::GenerateRoadMesh().
|
inline |
Definition at line 77 of file CarlaGameInstance.h.
Referenced by ASensorFactory::SpawnActor().
|
inline |
Definition at line 82 of file CarlaGameInstance.h.
|
inline |
Definition at line 67 of file CarlaGameInstance.h.
Referenced by ACarlaGameModeBase::BeginPlay().
|
inline |
Definition at line 72 of file CarlaGameInstance.h.
Referenced by ACarlaGameModeBase::EndPlay().
|
inline |
Definition at line 62 of file CarlaGameInstance.h.
Referenced by ACarlaGameModeBase::InitGame().
|
inline |
Definition at line 100 of file CarlaGameInstance.h.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inline |
Definition at line 87 of file CarlaGameInstance.h.
Referenced by UCarlaEpisode::LoadNewOpendriveEpisode().
|
private |
Definition at line 132 of file CarlaGameInstance.h.
|
private |
Definition at line 121 of file CarlaGameInstance.h.
Referenced by UCarlaGameInstance().
|
private |
Definition at line 119 of file CarlaGameInstance.h.
Referenced by UCarlaGameInstance().
|
private |
Definition at line 129 of file CarlaGameInstance.h.
|
private |
Definition at line 126 of file CarlaGameInstance.h.
|
private |
Definition at line 124 of file CarlaGameInstance.h.
Referenced by UCarlaGameInstance().