CARLA
QualityLevelUE.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 
10 #include <carla/rpc/QualityLevel.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
static const FString SIZE
#define CARLA_ENUM_FROM_RPC(e)