Changes to return some non-const objects

This commit is contained in:
bernatx 2022-07-21 23:25:51 +02:00 committed by bernat
parent f97575b1f3
commit 55854bfb78
2 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,11 @@ public:
return Server; return Server;
} }
FCarlaServer &GetServer()
{
return Server;
}
UCarlaEpisode *GetCurrentEpisode() UCarlaEpisode *GetCurrentEpisode()
{ {
return CurrentEpisode; return CurrentEpisode;

View File

@ -79,6 +79,11 @@ public:
return CarlaEngine.GetServer(); return CarlaEngine.GetServer();
} }
FCarlaServer &GetServer()
{
return CarlaEngine.GetServer();
}
void SetOpendriveGenerationParameters( void SetOpendriveGenerationParameters(
const carla::rpc::OpendriveGenerationParameters & Parameters) const carla::rpc::OpendriveGenerationParameters & Parameters)
{ {