16 #ifdef LIBCARLA_INCLUDED_FROM_UE4 20 #endif // LIBCARLA_INCLUDED_FROM_UE4 36 #ifdef LIBCARLA_INCLUDED_FROM_UE4 39 : uid(Description.UId),
40 id(FromFString(Description.Id)) {
41 attributes.reserve(Description.
Variations.Num());
42 for (
const auto &Item : Description.
Variations) {
43 attributes.emplace_back(Item.Value);
50 Description.
Id = ToFString(
id);
51 Description.
Variations.Reserve(attributes.size());
52 for (
const auto &item : attributes) {
53 Description.
Variations.Emplace(ToFString(item.id), item);
58 #endif // LIBCARLA_INCLUDED_FROM_UE4
This file contains definitions of common data structures used in traffic manager. ...
TMap< FString, FActorAttribute > Variations
User selected variations of the actor.
ActorDescription()=default
FString Id
Display ID that identifies the actor.
A description of a Carla Actor with all its variation.
MSGPACK_DEFINE_ARRAY(uid, id, attributes)
uint32 UId
UId of the definition in which this description was based.
std::vector< ActorAttributeValue > attributes