CARLA
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
CityMapMeshTag Class Reference

Helper class for working with ECityMapMeshTag. More...

#include <CityMapMeshTag.h>

Static Public Member Functions

static ECityMapMeshTag GetBaseMeshTag ()
 Return the base mesh. The base mesh defines the unit tile for map scaling.
 
static constexpr uint8 GetNumberOfTags ()
 Return the number of tags.
 
static uint32 GetRoadIntersectionSize ()
 Get the size in tiles of a road intersection side.
 
Tag conversions
static constexpr uint8 ToUInt (ECityMapMeshTag Tag)
 Convert Tag to an unsigned integer type.
 
static ECityMapMeshTag FromUInt (uint8 Value)
 Convert an unsigned integer to a ECityMapMeshTag.
 
static FString ToString (ECityMapMeshTag Tag)
 Get Tag name as FString.
 
static FString ToString (uint8 Value)
 Convert Value to ECityMapMeshTag and get its name as FString.
 

Detailed Description

Helper class for working with ECityMapMeshTag.

Definition at line 80 of file CityMapMeshTag.h.

Member Function Documentation

◆ FromUInt()

static ECityMapMeshTag CityMapMeshTag::FromUInt ( uint8  Value)
inlinestatic

Convert an unsigned integer to a ECityMapMeshTag.

Definition at line 105 of file CityMapMeshTag.h.

References GetNumberOfTags().

Referenced by ACityMapMeshHolder::ACityMapMeshHolder(), and ToString().

◆ GetBaseMeshTag()

ECityMapMeshTag CityMapMeshTag::GetBaseMeshTag ( )
static

Return the base mesh. The base mesh defines the unit tile for map scaling.

Definition at line 16 of file CityMapMeshTag.cpp.

Referenced by ACityMapMeshHolder::UpdateMapScale().

◆ GetNumberOfTags()

static constexpr uint8 CityMapMeshTag::GetNumberOfTags ( )
inlinestaticconstexpr

Return the number of tags.

Definition at line 85 of file CityMapMeshTag.h.

References ToUInt().

Referenced by FromUInt().

◆ GetRoadIntersectionSize()

uint32 CityMapMeshTag::GetRoadIntersectionSize ( )
static

Get the size in tiles of a road intersection side.

I.e., return N such NxN is the size of a road intersection piece.

Definition at line 21 of file CityMapMeshTag.cpp.

Referenced by ACityMapGenerator::GenerateRoadMap(), and ACityMapGenerator::GenerateRoads().

◆ ToString() [1/2]

FString CityMapMeshTag::ToString ( ECityMapMeshTag  Tag)
static

Get Tag name as FString.

Definition at line 26 of file CityMapMeshTag.cpp.

Referenced by ToString(), and ACityMapMeshHolder::UpdateMapScale().

◆ ToString() [2/2]

static FString CityMapMeshTag::ToString ( uint8  Value)
inlinestatic

Convert Value to ECityMapMeshTag and get its name as FString.

Definition at line 114 of file CityMapMeshTag.h.

References FromUInt(), and ToString().

◆ ToUInt()

static constexpr uint8 CityMapMeshTag::ToUInt ( ECityMapMeshTag  Tag)
inlinestaticconstexpr

Convert Tag to an unsigned integer type.

Definition at line 100 of file CityMapMeshTag.h.

Referenced by GetNumberOfTags().


The documentation for this class was generated from the following files: