CARLA
 
载入中...
搜索中...
未找到
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
12
13#include "QualityLevelUE.generated.h"
14
15#define CARLA_ENUM_FROM_RPC(e) static_cast<uint8>(carla::rpc::QualityLevel:: e)
16
17UENUM(BlueprintType)
18enum 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
30static_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
#define CARLA_ENUM_FROM_RPC(e)