CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Settings
QualityLevelUE.h
浏览该文件的文档.
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/QualityLevel.h
>
11
#include <
compiler/enable-ue4-macros.h
>
12
13
#include "QualityLevelUE.generated.h"
14
15
#define CARLA_ENUM_FROM_RPC(e) static_cast<uint8>(carla::rpc::QualityLevel:: e)
16
17
UENUM(BlueprintType)
18
enum class
EQualityLevel
: uint8
19
{
20
Null
= 0,
// Workarround for UE4.24 issue with enums
21
Low
=
CARLA_ENUM_FROM_RPC
(
Low
)
UMETA
(DisplayName =
"Low"
),
22
// Medium = CARLA_ENUM_FROM_RPC(Medium) UMETA(DisplayName = "Medium"),
23
// High = CARLA_ENUM_FROM_RPC(High) UMETA(DisplayName = "High"),
24
Epic
=
CARLA_ENUM_FROM_RPC
(
Epic
)
UMETA
(DisplayName =
"Epic"
),
25
26
SIZE
UMETA
(Hidden),
27
INVALID
UMETA
(Hidden)
28
};
29
30
static_assert
(
31
static_cast<
uint8
>
(EQualityLevel::SIZE) ==
static_cast<
uint8
>
(
carla::rpc::QualityLevel::SIZE
),
32
"Please keep these two enums in sync."
);
33
34
#undef CARLA_ENUM_FROM_RPC
EQualityLevel
EQualityLevel
Definition
QualityLevelUE.h:19
EQualityLevel::Low
@ Low
EQualityLevel::UMETA
@ UMETA
EQualityLevel::Null
@ Null
EQualityLevel::Epic
@ Epic
CARLA_ENUM_FROM_RPC
#define CARLA_ENUM_FROM_RPC(e)
Definition
QualityLevelUE.h:15
QualityLevel.h
EVehicleInputPriority::INVALID
@ INVALID
disable-ue4-macros.h
enable-ue4-macros.h
carla::rpc::QualityLevel::SIZE
@ SIZE
制作者
1.10.0