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;
void Deregister(IdType Id)
TMap< IdType, AActor * > Actors
auto end() const noexcept
TMap< IdType, TSharedPtr< FCarlaActor > > DatabaseType
A registry of all the Carla actors.
FCarlaActor * FindCarlaActor(const AActor *Actor)
void PutActorToSleep(IdType Id, UCarlaEpisode *CarlaEpisode)
DatabaseType ActorDatabase
TSharedPtr< FCarlaActor > ValueType
auto begin() const noexcept
FCarlaActor MakeFakeActor(AActor &Actor) const
TMap< AActor *, IdType > Ids
void WakeActorUp(IdType Id, UCarlaEpisode *CarlaEpisode)
carla::SharedPtr< cc::Actor > Actor
TSharedPtr< FCarlaActor > MakeCarlaActor(IdType Id, AActor &Actor, FActorDescription Description, carla::rpc::ActorState InState) const
bool Contains(uint32 Id) const
FString GetDescriptionFromStream(carla::streaming::detail::stream_id_type Id)
const FCarlaActor * FindCarlaActor(const AActor *Actor) const
A description of a Carla Actor with all its variation.
FCarlaActor::IdType IdType
FCarlaActor * Register(AActor &Actor, FActorDescription Description, IdType DesiredId=0)
Register the Actor in the database.
FCarlaActor * FindCarlaActor(IdType Id)
A view over an actor and its properties.
const FCarlaActor * FindCarlaActor(IdType Id) const