17 #ifdef LIBCARLA_INCLUDED_FROM_UE4 21 #endif // LIBCARLA_INCLUDED_FROM_UE4 43 #ifdef LIBCARLA_INCLUDED_FROM_UE4 46 : id(FromFString(Attribute.Id)),
48 value(FromFString(Attribute.Value)),
49 is_modifiable(false) {}
52 :
id(FromFString(Variation.
Id)),
53 type(static_cast<ActorAttributeType>(Variation.
Type)),
58 recommended_values.push_back(FromFString(Item));
60 if (!recommended_values.empty()) {
61 value = recommended_values[0u];
65 #endif // LIBCARLA_INCLUDED_FROM_UE4 67 MSGPACK_DEFINE_ARRAY(
id, type, value, recommended_values, is_modifiable, restrict_to_recommended);
86 #ifdef LIBCARLA_INCLUDED_FROM_UE4 93 Attribute.
Id = ToFString(
id);
95 Attribute.
Value = ToFString(value);
99 #endif // LIBCARLA_INCLUDED_FROM_UE4
EActorAttributeType
List of valid types for actor attributes.
MSGPACK_DEFINE_ARRAY(id, type, value, recommended_values, is_modifiable, restrict_to_recommended)
Definition of an actor variation.
TArray< FString > RecommendedValues
This file contains definitions of common data structures used in traffic manager. ...
bool restrict_to_recommended
ActorAttributeValue(const ActorAttribute &attribute)
std::vector< std::string > recommended_values
bool bRestrictToRecommended
An actor attribute, may be an intrinsic (non-modifiable) attribute of the actor or an user-defined ac...
MSGPACK_ADD_ENUM(carla::rpc::ActorAttributeType)