CARLA
Public Member Functions | Private Attributes | List of all members
UCarlaGameInstance Class Reference

The game instance contains elements that must be kept alive in between levels. More...

#include <CarlaGameInstance.h>

+ Inheritance diagram for UCarlaGameInstance:
+ Collaboration diagram for UCarlaGameInstance:

Public Member Functions

FCarlaEngineGetCarlaEngine ()
 
UCarlaEpisodeGetCarlaEpisode ()
 
UCarlaSettingsGetCarlaSettings ()
 
const UCarlaSettingsGetCarlaSettings () const
 
UCarlaSettingsGetCARLASettings ()
 
int32 GetCurrentMapLayer () const
 
const carla::rpc::OpendriveGenerationParametersGetOpendriveGenerationParameters () const
 
const FCarlaServerGetServer () const
 
FCarlaServerGetServer ()
 
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
 
UCarlaSettingsCarlaSettings = nullptr
 
int32 CurrentMapLayer = static_cast<int32>(carla::rpc::MapLayer::All)
 
carla::rpc::OpendriveGenerationParameters GenerationParameters
 
ACarlaRecorderRecorder = nullptr
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UCarlaGameInstance()

UCarlaGameInstance::UCarlaGameInstance ( )

Definition at line 12 of file CarlaGameInstance.cpp.

References CarlaEngine, CarlaSettings, UCarlaSettings::LoadSettings(), UCarlaSettings::LogSettings(), Recorder, FCarlaEngine::SetRecorder(), and ~UCarlaGameInstance().

+ Here is the call graph for this function:

◆ ~UCarlaGameInstance()

UCarlaGameInstance::~UCarlaGameInstance ( )
default

Referenced by UCarlaGameInstance().

+ Here is the caller graph for this function:

Member Function Documentation

◆ GetCarlaEngine()

FCarlaEngine* UCarlaGameInstance::GetCarlaEngine ( )
inline

Definition at line 111 of file CarlaGameInstance.h.

References UCarlaSettings::UPROPERTY().

Referenced by UCarlaEpisode::LoadNewEpisode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCarlaEpisode()

UCarlaEpisode* UCarlaGameInstance::GetCarlaEpisode ( )
inline

Definition at line 57 of file CarlaGameInstance.h.

Referenced by ASensorFactory::SpawnActor(), and ATriggerFactory::SpawnActor().

+ Here is the caller graph for this function:

◆ GetCarlaSettings() [1/2]

UCarlaSettings& UCarlaGameInstance::GetCarlaSettings ( )
inline

Definition at line 37 of file CarlaGameInstance.h.

◆ GetCarlaSettings() [2/2]

const UCarlaSettings& UCarlaGameInstance::GetCarlaSettings ( ) const
inline

Definition at line 43 of file CarlaGameInstance.h.

◆ GetCARLASettings()

UCarlaSettings* UCarlaGameInstance::GetCARLASettings ( )
inline

Definition at line 51 of file CarlaGameInstance.h.

◆ GetCurrentMapLayer()

int32 UCarlaGameInstance::GetCurrentMapLayer ( ) const
inline

Definition at line 106 of file CarlaGameInstance.h.

Referenced by ACarlaGameModeBase::BeginPlay().

+ Here is the caller graph for this function:

◆ GetOpendriveGenerationParameters()

const carla::rpc::OpendriveGenerationParameters& UCarlaGameInstance::GetOpendriveGenerationParameters ( ) const
inline

Definition at line 94 of file CarlaGameInstance.h.

Referenced by AOpenDriveGenerator::GenerateRoadMesh().

+ Here is the caller graph for this function:

◆ GetServer() [1/2]

const FCarlaServer& UCarlaGameInstance::GetServer ( ) const
inline

Definition at line 77 of file CarlaGameInstance.h.

Referenced by ASensorFactory::SpawnActor().

+ Here is the caller graph for this function:

◆ GetServer() [2/2]

FCarlaServer& UCarlaGameInstance::GetServer ( )
inline

Definition at line 82 of file CarlaGameInstance.h.

◆ NotifyBeginEpisode()

void UCarlaGameInstance::NotifyBeginEpisode ( UCarlaEpisode Episode)
inline

Definition at line 67 of file CarlaGameInstance.h.

Referenced by ACarlaGameModeBase::BeginPlay().

+ Here is the caller graph for this function:

◆ NotifyEndEpisode()

void UCarlaGameInstance::NotifyEndEpisode ( )
inline

Definition at line 72 of file CarlaGameInstance.h.

Referenced by ACarlaGameModeBase::EndPlay().

+ Here is the caller graph for this function:

◆ NotifyInitGame()

void UCarlaGameInstance::NotifyInitGame ( )
inline

Definition at line 62 of file CarlaGameInstance.h.

Referenced by ACarlaGameModeBase::InitGame().

+ Here is the caller graph for this function:

◆ SetMapLayer()

void UCarlaGameInstance::SetMapLayer ( int32  MapLayer)
inline

Definition at line 100 of file CarlaGameInstance.h.

Referenced by FCarlaServer::FPimpl::BindActions().

+ Here is the caller graph for this function:

◆ SetOpendriveGenerationParameters()

void UCarlaGameInstance::SetOpendriveGenerationParameters ( const carla::rpc::OpendriveGenerationParameters Parameters)
inline

Definition at line 87 of file CarlaGameInstance.h.

Referenced by UCarlaEpisode::LoadNewOpendriveEpisode().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _MapPath

FString UCarlaGameInstance::_MapPath
private

Definition at line 132 of file CarlaGameInstance.h.

◆ CarlaEngine

FCarlaEngine UCarlaGameInstance::CarlaEngine
private

Definition at line 121 of file CarlaGameInstance.h.

Referenced by UCarlaGameInstance().

◆ CarlaSettings

UCarlaSettings* UCarlaGameInstance::CarlaSettings = nullptr
private

Definition at line 119 of file CarlaGameInstance.h.

Referenced by UCarlaGameInstance().

◆ CurrentMapLayer

int32 UCarlaGameInstance::CurrentMapLayer = static_cast<int32>(carla::rpc::MapLayer::All)
private

Definition at line 129 of file CarlaGameInstance.h.

◆ GenerationParameters

carla::rpc::OpendriveGenerationParameters UCarlaGameInstance::GenerationParameters
private

Definition at line 126 of file CarlaGameInstance.h.

◆ Recorder

ACarlaRecorder* UCarlaGameInstance::Recorder = nullptr
private

Definition at line 124 of file CarlaGameInstance.h.

Referenced by UCarlaGameInstance().


The documentation for this class was generated from the following files: