14 #include "Containers/Array.h" 15 #include "Templates/Function.h" 17 #include "ActorDispatcher.generated.h" 30 using SpawnFunctionType = TFunction<FActorSpawnResult(const FTransform &, const FActorDescription &)>;
49 TPair<EActorSpawnResultStatus, FCarlaActor*>
SpawnActor(
Base class for Carla actor factories.
TArray< TSubclassOf< AActor > > Classes
A registry of all the Carla actors.
const FActorRegistry & GetActorRegistry() const
Object in charge of binding ActorDefinitions to spawn functions, as well as keeping the registry of a...
TFunction< FActorSpawnResult(const FTransform &, const FActorDescription &)> SpawnFunctionType
FActorRegistry & GetActorRegistry()
A definition of a Carla Actor with all the variation and attributes.
TArray< FActorDefinition > Definitions
carla::SharedPtr< cc::Actor > Actor
A description of a Carla Actor with all its variation.
virtual FActorSpawnResult SpawnActor(const FTransform &SpawnAtTransform, const FActorDescription &ActorDescription)
Spawn an actor based on ActorDescription and Transform.
FCarlaActor::IdType IdType
TArray< SpawnFunctionType > SpawnFunctions
geom::Transform Transform
A view over an actor and its properties.
const TArray< FActorDefinition > & GetActorDefinitions() const