CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Util
ActorAttacher.h
Go to the documentation of this file.
1
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include <
compiler/disable-ue4-macros.h
>
10
#include <
carla/rpc/AttachmentType.h
>
11
#include <
compiler/enable-ue4-macros.h
>
12
13
#include "Kismet/BlueprintFunctionLibrary.h"
14
15
#include "ActorAttacher.generated.h"
16
17
#define CARLA_ENUM_FROM_RPC(e) static_cast<uint8>(carla::rpc::AttachmentType:: e)
18
19
UENUM(BlueprintType)
20
enum class
EAttachmentType
: uint8
21
{
22
Null
= 0,
// Workarround for UE4.24 issue with enums
23
Rigid
=
CARLA_ENUM_FROM_RPC
(
Rigid
)
UMETA
(DisplayName =
"Rigid"
),
24
SpringArm
=
CARLA_ENUM_FROM_RPC
(
SpringArm
)
UMETA
(DisplayName =
"SpringArm"
),
25
SpringArmGhost
=
CARLA_ENUM_FROM_RPC
(
SpringArmGhost
)
UMETA
(DisplayName =
"SpringArmGhost"
),
26
27
SIZE
UMETA
(Hidden),
28
INVALID
UMETA
(Hidden)
29
};
30
31
static_assert(
32
static_cast<uint8>(
EAttachmentType::SIZE
) == static_cast<uint8>(
carla::rpc::AttachmentType::SIZE
),
33
"Please keep these two enums in sync."
);
34
35
#undef CARLA_ENUM_FROM_RPC
36
37
UCLASS()
38
class CARLA_API
UActorAttacher
: public
UBlueprintFunctionLibrary
39
{
40
GENERATED_BODY()
41
42
public
:
43
44
UFUNCTION(BlueprintCallable, Category=
"CARLA|Actor Attacher"
)
45
static
void
AttachActors(
AActor
*Child,
AActor
*Parent,
EAttachmentType
AttachmentType
);
46
};
EVehicleInputPriority::INVALID
EAttachmentType::Rigid
carla::rpc::AttachmentType::SIZE
PropAttributes::SIZE
static const FString SIZE
Definition:
CarlaBlueprintRegistry.cpp:26
EAttachmentType
EAttachmentType
Definition:
ActorAttacher.h:20
EActorAttributeType::Null
UActorAttacher
Definition:
ActorAttacher.h:38
AttachmentType.h
AActor
enable-ue4-macros.h
carla::rpc::AttachmentType
AttachmentType
Definition:
AttachmentType.h:16
disable-ue4-macros.h
EActorAttributeType::UMETA
UBlueprintFunctionLibrary
EAttachmentType::SpringArm
EAttachmentType::SpringArmGhost
CARLA_ENUM_FROM_RPC
#define CARLA_ENUM_FROM_RPC(e)
Definition:
ActorAttacher.h:17
Generated by
1.8.13