11#include "Containers/Map.h"
17#include <unordered_map>
72 return CarlaActorPtr ? CarlaActorPtr->Get() :
nullptr;
78 return CarlaActorPtr ? CarlaActorPtr->Get() :
nullptr;
130 TMap<AActor *, IdType>
Ids;
A registry of all the Carla actors.
FString GetDescriptionFromStream(carla::streaming::detail::stream_id_type Id)
TMap< AActor *, IdType > Ids
TSharedPtr< FCarlaActor > MakeCarlaActor(IdType Id, AActor &Actor, FActorDescription Description, carla::rpc::ActorState InState) const
TMap< IdType, TSharedPtr< FCarlaActor > > DatabaseType
bool Contains(uint32 Id) const
FCarlaActor::IdType IdType
FCarlaActor * FindCarlaActor(const AActor *Actor)
auto begin() const noexcept
FCarlaActor * Register(AActor &Actor, FActorDescription Description, IdType DesiredId=0)
Register the Actor in the database.
TMap< IdType, AActor * > Actors
TSharedPtr< FCarlaActor > ValueType
const FCarlaActor * FindCarlaActor(const AActor *Actor) const
FCarlaActor MakeFakeActor(AActor &Actor) const
DatabaseType ActorDatabase
void Deregister(IdType Id)
FCarlaActor * FindCarlaActor(IdType Id)
void PutActorToSleep(IdType Id, UCarlaEpisode *CarlaEpisode)
const FCarlaActor * FindCarlaActor(IdType Id) const
auto end() const noexcept
void WakeActorUp(IdType Id, UCarlaEpisode *CarlaEpisode)
A view over an actor and its properties.
A description of a Carla Actor with all its variation.