CARLA
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ALargeMapManager Class Reference

#include <LargeMapManager.h>

+ Inheritance diagram for ALargeMapManager:

Public Types

using TileID = uint64
 

Public Member Functions

void AddActorToUnloadedList (const FCarlaActor &CarlaActor, const FTransform &Transform)
 
 ALargeMapManager ()
 
void ClearWorldAndTiles ()
 
void ConsiderSpectatorAsEgo (bool _SpectatorAsEgo)
 
void GenerateLargeMap ()
 
void GenerateMap (FString InAssetsPath)
 
void GenerateMap (TArray< TPair< FString, FIntVector > > MapPathsIds)
 
void GenerateMap_Editor ()
 
float GetActorStreamingDistance () const
 
FCarlaMapTile & GetCarlaMapTile (FIntVector TileVectorID)
 
FCarlaMapTile * GetCarlaMapTile (FVector Location)
 
FCarlaMapTile * GetCarlaMapTile (TileID TileID)
 
FCarlaMapTile & GetCarlaMapTile (ULevel *InLevel)
 
FCarlaMapTile * GetCarlaMapTilePointer (FIntVector TileVectorID)
 
ACarlaWheeledVehicle * GetHeroVehicle ()
 
float GetLayerStreamingDistance () const
 
int GetNumTiles () const
 
FIntVector GetNumTilesInXY () const
 
FVector GetTile0Offset ()
 
TileID GetTileID (FDVector TileLocation) const
 
TileID GetTileID (FIntVector TileVectorID) const
 
TileID GetTileID (FVector TileLocation) const
 From a given location it retrieves the TileID that covers that area.
 
FVector GetTileLocation (FIntVector TileVectorID) const
 
FVector GetTileLocation (TileID TileID) const
 
FDVector GetTileLocationD (FIntVector TileVectorID) const
 
FDVector GetTileLocationD (TileID TileID) const
 
float GetTileSize ()
 
FIntVector GetTileVectorID (FDVector TileLocation) const
 
FIntVector GetTileVectorID (FVector TileLocation) const
 
FIntVector GetTileVectorID (TileID TileID) const
 
FVector GlobalToLocalLocation (const FVector &InLocation) const
 
FTransform GlobalToLocalTransform (const FTransform &InTransform) const
 
bool IsLevelOfTileLoaded (FIntVector InTileID) const
 
bool IsTileLoaded (FDVector Location) const
 
bool IsTileLoaded (FVector Location) const
 
bool IsTileLoaded (TileID TileId) const
 
FCarlaMapTile & LoadCarlaMapTile (FString TileMapPath, TileID TileId)
 
FVector LocalToGlobalLocation (const FVector &InLocation) const
 
FTransform LocalToGlobalTransform (const FTransform &InTransform) const
 
void OnActorDestroyed (AActor *DestroyedActor)
 
void OnActorSpawned (const FCarlaActor &CarlaActor)
 
void RegisterInitialObjects ()
 
void SetActorStreamingDistance (float Distance)
 
void SetLayerStreamingDistance (float Distance)
 
void SetTile0Offset (const FVector &Offset)
 
void SetTileSize (float Size)
 
void Tick (float DeltaTime) override
 
 ~ALargeMapManager ()
 

Public Attributes

FString LargeMapName = "testmap"
 
FString LargeMapTilePath = "/Game/Carla/Maps/testmap"
 
bool SpectatorAsEgo = false
 

Protected Member Functions

void AdjustSignsHeightToGround ()
 
virtual void BeginPlay () override
 
void CheckActiveActors ()
 
void CheckDormantActors ()
 
void CheckIfRebaseIsNeeded ()
 
void ConvertActiveToDormantActors ()
 
void ConvertDormantToActiveActors ()
 
void DumpTilesTable () const
 
FString GenerateTileName (TileID TileID)
 
void GetTilesThatNeedToChangeState (const TSet< TileID > &InTilesToConsider, TSet< TileID > &OutTilesToBeVisible, TSet< TileID > &OutTilesToHidde)
 
void GetTilesToConsider (const AActor *ActorToConsider, TSet< TileID > &OutTilesToConsider)
 
void OnLevelAddedToWorld (ULevel *InLevel, UWorld *InWorld)
 
void OnLevelRemovedFromWorld (ULevel *InLevel, UWorld *InWorld)
 
void PostWorldOriginOffset (UWorld *InWorld, FIntVector InSrcOrigin, FIntVector InDstOrigin)
 
void PreWorldOriginOffset (UWorld *InWorld, FIntVector InSrcOrigin, FIntVector InDstOrigin)
 
void PrintMapInfo ()
 
void RegisterTilesInWorldComposition ()
 
void RemoveLandscapeCollisionIfHaveTerraMechanics (ULevel *InLevel)
 
void RemovePendingActorsToRemove ()
 
FString TileIDToString (TileID TileID)
 
void UpdateCurrentTilesLoaded (const TSet< TileID > &InTilesToBeVisible, const TSet< TileID > &InTilesToHidde)
 
void UpdateTilesState ()
 
void UpdateTileState (const TSet< TileID > &InTilesToUpdate, bool InShouldBlockOnLoad, bool InShouldBeLoaded, bool InShouldBeVisible)
 

Protected Attributes

TArray< FCarlaActor::IdType > ActiveActors
 
TSet< FCarlaActor::IdType > ActivesToRemove
 
TSet< FCarlaActor::IdType > ActiveToDormantActors
 
TArray< AActor * > ActorsToConsider
 
TSet< AActor * > ActorsToRemove
 
float ActorStreamingDistance = 2.0f * 1000.0f * 100.0f
 
float ActorStreamingDistanceSquared = ActorStreamingDistance * ActorStreamingDistance
 
FString AssetsPath = ""
 
FString BaseTileMapPath = "/Game/Carla/Maps/LargeMap/EmptyTileBase"
 
bool bHasTerramechanics = false
 
bool bPrintErrors = false
 
bool bPrintMapInfo = true
 
const int32 ClientLocMsgIndex = 200
 
FDVector CurrentOriginD
 
FIntVector CurrentOriginInt { 0 }
 
TSet< uint64 > CurrentTilesLoaded
 
TArray< FCarlaActor::IdType > DormantActors
 
TSet< FCarlaActor::IdType > DormantsToRemove
 
TSet< FCarlaActor::IdType > DormantToActiveActors
 
float LayerStreamingDistance = 3.0f * 1000.0f * 100.0f
 
float LayerStreamingDistanceSquared = LayerStreamingDistance * LayerStreamingDistance
 
FVector LocalTileOffset = FVector(0,0,0)
 
TMap< uint64, FCarlaMapTile > MapTiles
 
const int32 MaxClientLocMsgIndex = ClientLocMsgIndex + 10
 
const int32 MaxTilesDistMsgIndex = TilesDistMsgIndex + 10
 
float MsgTime = 1.0f
 
FColor PositonMsgColor = FColor::Purple
 
float RebaseOriginDistance = 2.0f * 1000.0f * 100.0f
 
float RebaseOriginDistanceSquared = RebaseOriginDistance * RebaseOriginDistance
 
bool ShouldTilesBlockOnLoad = false
 
AActor * Spectator = nullptr
 
float TickInterval = 0.0f
 
FVector Tile0Offset = FVector(0,0,0)
 
const int32 TilesDistMsgIndex = 100
 
float TileSide = 2.0f * 1000.0f * 100.0f
 

Detailed Description

Definition at line 61 of file LargeMapManager.h.

Member Typedef Documentation

◆ TileID

using ALargeMapManager::TileID = uint64

Definition at line 67 of file LargeMapManager.h.

Constructor & Destructor Documentation

◆ ALargeMapManager()

ALargeMapManager::ALargeMapManager ( )

Definition at line 40 of file LargeMapManager.cpp.

◆ ~ALargeMapManager()

ALargeMapManager::~ALargeMapManager ( )

Remove delegates

Definition at line 46 of file LargeMapManager.cpp.

Member Function Documentation

◆ AddActorToUnloadedList()

void ALargeMapManager::AddActorToUnloadedList ( const FCarlaActor &  CarlaActor,
const FTransform &  Transform 
)

Definition at line 523 of file LargeMapManager.cpp.

◆ AdjustSignsHeightToGround()

void ALargeMapManager::AdjustSignsHeightToGround ( )
protected

Definition at line 170 of file LargeMapManager.cpp.

Referenced by OnActorSpawned(), and OnLevelAddedToWorld().

◆ BeginPlay()

void ALargeMapManager::BeginPlay ( )
overrideprotectedvirtual

◆ CheckActiveActors()

void ALargeMapManager::CheckActiveActors ( )
protected

◆ CheckDormantActors()

void ALargeMapManager::CheckDormantActors ( )
protected

◆ CheckIfRebaseIsNeeded()

void ALargeMapManager::CheckIfRebaseIsNeeded ( )
protected

◆ ClearWorldAndTiles()

void ALargeMapManager::ClearWorldAndTiles ( )

Definition at line 497 of file LargeMapManager.cpp.

References MapTiles.

Referenced by GenerateMap(), and GenerateMap().

◆ ConsiderSpectatorAsEgo()

void ALargeMapManager::ConsiderSpectatorAsEgo ( bool  _SpectatorAsEgo)

◆ ConvertActiveToDormantActors()

void ALargeMapManager::ConvertActiveToDormantActors ( )
protected

◆ ConvertDormantToActiveActors()

void ALargeMapManager::ConvertDormantToActiveActors ( )
protected

◆ DumpTilesTable()

void ALargeMapManager::DumpTilesTable ( ) const
protected

Definition at line 1078 of file LargeMapManager.cpp.

References AssetsPath, FCarlaMapTile::Location, MapTiles, and FCarlaMapTile::Name.

Referenced by GenerateMap().

◆ GenerateLargeMap()

void ALargeMapManager::GenerateLargeMap ( )

Definition at line 405 of file LargeMapManager.cpp.

References GenerateMap(), and LargeMapTilePath.

Referenced by ACarlaGameModeBase::InitGame().

◆ GenerateMap() [1/2]

void ALargeMapManager::GenerateMap ( FString  InAssetsPath)

Retrive all the assets in the path

Generate tiles based on mesh positions

Definition at line 409 of file LargeMapManager.cpp.

References ActorsToConsider, AssetsPath, ClearWorldAndTiles(), DumpTilesTable(), GenerateMap(), GetTileID(), LM_LOG, LoadCarlaMapTile(), MapTiles, Spectator, and SpectatorAsEgo.

Referenced by GenerateLargeMap(), GenerateMap(), and GenerateMap().

◆ GenerateMap() [2/2]

void ALargeMapManager::GenerateMap ( TArray< TPair< FString, FIntVector > >  MapPathsIds)

◆ GenerateMap_Editor()

void ALargeMapManager::GenerateMap_Editor ( )
inline

Definition at line 112 of file LargeMapManager.h.

◆ GenerateTileName()

FString ALargeMapManager::GenerateTileName ( TileID  TileID)
protected

Definition at line 1064 of file LargeMapManager.cpp.

◆ GetActorStreamingDistance()

float ALargeMapManager::GetActorStreamingDistance ( ) const

Definition at line 343 of file LargeMapManager.cpp.

References ActorStreamingDistance.

Referenced by FCarlaEngine::NotifyBeginEpisode().

◆ GetCarlaMapTile() [1/4]

FCarlaMapTile & ALargeMapManager::GetCarlaMapTile ( FIntVector  TileVectorID)

Definition at line 660 of file LargeMapManager.cpp.

References GetTileID(), and MapTiles.

◆ GetCarlaMapTile() [2/4]

FCarlaMapTile * ALargeMapManager::GetCarlaMapTile ( FVector  Location)

Definition at line 637 of file LargeMapManager.cpp.

References GetCarlaMapTile(), and GetTileID().

Referenced by GetCarlaMapTile(), and OnLevelRemovedFromWorld().

◆ GetCarlaMapTile() [3/4]

FCarlaMapTile * ALargeMapManager::GetCarlaMapTile ( TileID  TileID)

Definition at line 674 of file LargeMapManager.cpp.

References MapTiles.

◆ GetCarlaMapTile() [4/4]

FCarlaMapTile & ALargeMapManager::GetCarlaMapTile ( ULevel *  InLevel)

Definition at line 643 of file LargeMapManager.cpp.

References MapTiles, and FCarlaMapTile::StreamingLevel.

◆ GetCarlaMapTilePointer()

FCarlaMapTile * ALargeMapManager::GetCarlaMapTilePointer ( FIntVector  TileVectorID)

Definition at line 667 of file LargeMapManager.cpp.

References GetTileID(), and MapTiles.

◆ GetHeroVehicle()

ACarlaWheeledVehicle * ALargeMapManager::GetHeroVehicle ( )

Definition at line 278 of file LargeMapManager.cpp.

References ActorsToConsider, and IsValid().

Referenced by AVegetationManager::Tick().

◆ GetLayerStreamingDistance()

float ALargeMapManager::GetLayerStreamingDistance ( ) const

Definition at line 338 of file LargeMapManager.cpp.

References LayerStreamingDistance.

Referenced by FCarlaEngine::NotifyBeginEpisode().

◆ GetNumTiles()

int ALargeMapManager::GetNumTiles ( ) const
inline

Definition at line 123 of file LargeMapManager.h.

Referenced by ACarlaGameModeBase::InitGame().

◆ GetNumTilesInXY()

FIntVector ALargeMapManager::GetNumTilesInXY ( ) const

Definition at line 528 of file LargeMapManager.cpp.

References GetTileVectorID(), and MapTiles.

◆ GetTile0Offset()

FVector ALargeMapManager::GetTile0Offset ( )

Definition at line 319 of file LargeMapManager.cpp.

References Tile0Offset.

◆ GetTileID() [1/3]

ALargeMapManager::TileID ALargeMapManager::GetTileID ( FDVector  TileLocation) const

Definition at line 631 of file LargeMapManager.cpp.

References GetTileID(), and GetTileVectorID().

◆ GetTileID() [2/3]

ALargeMapManager::TileID ALargeMapManager::GetTileID ( FIntVector  TileVectorID) const

Definition at line 618 of file LargeMapManager.cpp.

◆ GetTileID() [3/3]

ALargeMapManager::TileID ALargeMapManager::GetTileID ( FVector  TileLocation) const

◆ GetTileLocation() [1/2]

FVector ALargeMapManager::GetTileLocation ( FIntVector  TileVectorID) const

Definition at line 600 of file LargeMapManager.cpp.

References Tile0Offset, and TileSide.

◆ GetTileLocation() [2/2]

FVector ALargeMapManager::GetTileLocation ( TileID  TileID) const

◆ GetTileLocationD() [1/2]

FDVector ALargeMapManager::GetTileLocationD ( FIntVector  TileVectorID) const

Definition at line 612 of file LargeMapManager.cpp.

References Tile0Offset, TileSide, and FDVector::Y.

◆ GetTileLocationD() [2/2]

FDVector ALargeMapManager::GetTileLocationD ( TileID  TileID) const

Definition at line 606 of file LargeMapManager.cpp.

References GetTileLocationD(), and GetTileVectorID().

Referenced by GetTileLocationD().

◆ GetTileSize()

float ALargeMapManager::GetTileSize ( )

Definition at line 314 of file LargeMapManager.cpp.

References TileSide.

◆ GetTilesThatNeedToChangeState()

void ALargeMapManager::GetTilesThatNeedToChangeState ( const TSet< TileID > &  InTilesToConsider,
TSet< TileID > &  OutTilesToBeVisible,
TSet< TileID > &  OutTilesToHidde 
)
protected

◆ GetTilesToConsider()

void ALargeMapManager::GetTilesToConsider ( const AActor *  ActorToConsider,
TSet< TileID > &  OutTilesToConsider 
)
protected

◆ GetTileVectorID() [1/3]

FIntVector ALargeMapManager::GetTileVectorID ( FDVector  TileLocation) const

Definition at line 575 of file LargeMapManager.cpp.

References LocalTileOffset, Tile0Offset, and TileSide.

◆ GetTileVectorID() [2/3]

FIntVector ALargeMapManager::GetTileVectorID ( FVector  TileLocation) const

◆ GetTileVectorID() [3/3]

FIntVector ALargeMapManager::GetTileVectorID ( TileID  TileID) const

Definition at line 585 of file LargeMapManager.cpp.

◆ GlobalToLocalLocation()

FVector ALargeMapManager::GlobalToLocalLocation ( const FVector &  InLocation) const

◆ GlobalToLocalTransform()

FTransform ALargeMapManager::GlobalToLocalTransform ( const FTransform &  InTransform) const

◆ IsLevelOfTileLoaded()

bool ALargeMapManager::IsLevelOfTileLoaded ( FIntVector  InTileID) const

◆ IsTileLoaded() [1/3]

bool ALargeMapManager::IsTileLoaded ( FDVector  Location) const
inline

Definition at line 141 of file LargeMapManager.h.

◆ IsTileLoaded() [2/3]

bool ALargeMapManager::IsTileLoaded ( FVector  Location) const
inline

Definition at line 136 of file LargeMapManager.h.

◆ IsTileLoaded() [3/3]

bool ALargeMapManager::IsTileLoaded ( TileID  TileId) const
inline

Definition at line 131 of file LargeMapManager.h.

Referenced by CheckActiveActors(), and CheckDormantActors().

◆ LoadCarlaMapTile()

FCarlaMapTile & ALargeMapManager::LoadCarlaMapTile ( FString  TileMapPath,
TileID  TileId 
)

◆ LocalToGlobalLocation()

FVector ALargeMapManager::LocalToGlobalLocation ( const FVector &  InLocation) const

◆ LocalToGlobalTransform()

FTransform ALargeMapManager::LocalToGlobalTransform ( const FTransform &  InTransform) const

◆ OnActorDestroyed()

void ALargeMapManager::OnActorDestroyed ( AActor *  DestroyedActor)

◆ OnActorSpawned()

void ALargeMapManager::OnActorSpawned ( const FCarlaActor &  CarlaActor)

◆ OnLevelAddedToWorld()

void ALargeMapManager::OnLevelAddedToWorld ( ULevel *  InLevel,
UWorld *  InWorld 
)
protected

Definition at line 152 of file LargeMapManager.cpp.

References AdjustSignsHeightToGround(), LM_LOG, and ATagger::TagActorsInLevel().

Referenced by BeginPlay().

◆ OnLevelRemovedFromWorld()

void ALargeMapManager::OnLevelRemovedFromWorld ( ULevel *  InLevel,
UWorld *  InWorld 
)
protected

Definition at line 162 of file LargeMapManager.cpp.

References GetCarlaMapTile(), LM_LOG, and FCarlaMapTile::TilesSpawned.

Referenced by BeginPlay().

◆ PostWorldOriginOffset()

void ALargeMapManager::PostWorldOriginOffset ( UWorld *  InWorld,
FIntVector  InSrcOrigin,
FIntVector  InDstOrigin 
)
protected

◆ PreWorldOriginOffset()

void ALargeMapManager::PreWorldOriginOffset ( UWorld *  InWorld,
FIntVector  InSrcOrigin,
FIntVector  InDstOrigin 
)
protected

Definition at line 113 of file LargeMapManager.cpp.

References LM_LOG.

Referenced by BeginPlay().

◆ PrintMapInfo()

void ALargeMapManager::PrintMapInfo ( )
protected

◆ RegisterInitialObjects()

void ALargeMapManager::RegisterInitialObjects ( )

◆ RegisterTilesInWorldComposition()

void ALargeMapManager::RegisterTilesInWorldComposition ( )
protected

Definition at line 502 of file LargeMapManager.cpp.

References MapTiles.

Referenced by BeginPlay().

◆ RemoveLandscapeCollisionIfHaveTerraMechanics()

void ALargeMapManager::RemoveLandscapeCollisionIfHaveTerraMechanics ( ULevel *  InLevel)
protected

◆ RemovePendingActorsToRemove()

void ALargeMapManager::RemovePendingActorsToRemove ( )
protected

◆ SetActorStreamingDistance()

void ALargeMapManager::SetActorStreamingDistance ( float  Distance)

◆ SetLayerStreamingDistance()

void ALargeMapManager::SetLayerStreamingDistance ( float  Distance)

◆ SetTile0Offset()

void ALargeMapManager::SetTile0Offset ( const FVector &  Offset)

Definition at line 304 of file LargeMapManager.cpp.

References Tile0Offset.

◆ SetTileSize()

void ALargeMapManager::SetTileSize ( float  Size)

Definition at line 309 of file LargeMapManager.cpp.

References TileSide.

◆ Tick()

void ALargeMapManager::Tick ( float  DeltaTime)
override

◆ TileIDToString()

FString ALargeMapManager::TileIDToString ( TileID  TileID)
protected

Definition at line 1071 of file LargeMapManager.cpp.

Referenced by PrintMapInfo().

◆ UpdateCurrentTilesLoaded()

void ALargeMapManager::UpdateCurrentTilesLoaded ( const TSet< TileID > &  InTilesToBeVisible,
const TSet< TileID > &  InTilesToHidde 
)
protected

◆ UpdateTilesState()

void ALargeMapManager::UpdateTilesState ( )
protected

◆ UpdateTileState()

void ALargeMapManager::UpdateTileState ( const TSet< TileID > &  InTilesToUpdate,
bool  InShouldBlockOnLoad,
bool  InShouldBeLoaded,
bool  InShouldBeVisible 
)
protected

Member Data Documentation

◆ ActiveActors

TArray<FCarlaActor::IdType> ALargeMapManager::ActiveActors
protected

◆ ActivesToRemove

TSet<FCarlaActor::IdType> ALargeMapManager::ActivesToRemove
protected

Definition at line 278 of file LargeMapManager.h.

Referenced by CheckActiveActors(), and RemovePendingActorsToRemove().

◆ ActiveToDormantActors

TSet<FCarlaActor::IdType> ALargeMapManager::ActiveToDormantActors
protected

Definition at line 282 of file LargeMapManager.h.

Referenced by CheckActiveActors(), and ConvertActiveToDormantActors().

◆ ActorsToConsider

TArray<AActor*> ALargeMapManager::ActorsToConsider
protected

◆ ActorsToRemove

TSet<AActor*> ALargeMapManager::ActorsToRemove
protected

Definition at line 277 of file LargeMapManager.h.

Referenced by RemovePendingActorsToRemove(), and UpdateTilesState().

◆ ActorStreamingDistance

float ALargeMapManager::ActorStreamingDistance = 2.0f * 1000.0f * 100.0f
protected

◆ ActorStreamingDistanceSquared

float ALargeMapManager::ActorStreamingDistanceSquared = ActorStreamingDistance * ActorStreamingDistance
protected

◆ AssetsPath

FString ALargeMapManager::AssetsPath = ""
protected

Definition at line 334 of file LargeMapManager.h.

Referenced by DumpTilesTable(), and GenerateMap().

◆ BaseTileMapPath

FString ALargeMapManager::BaseTileMapPath = "/Game/Carla/Maps/LargeMap/EmptyTileBase"
protected

Definition at line 336 of file LargeMapManager.h.

◆ bHasTerramechanics

bool ALargeMapManager::bHasTerramechanics = false
protected

Definition at line 356 of file LargeMapManager.h.

Referenced by BeginPlay().

◆ bPrintErrors

bool ALargeMapManager::bPrintErrors = false
protected

Definition at line 353 of file LargeMapManager.h.

Referenced by IsLevelOfTileLoaded().

◆ bPrintMapInfo

bool ALargeMapManager::bPrintMapInfo = true
protected

Definition at line 350 of file LargeMapManager.h.

Referenced by Tick().

◆ ClientLocMsgIndex

const int32 ALargeMapManager::ClientLocMsgIndex = 200
protected

Definition at line 343 of file LargeMapManager.h.

Referenced by PrintMapInfo().

◆ CurrentOriginD

FDVector ALargeMapManager::CurrentOriginD
protected

◆ CurrentOriginInt

FIntVector ALargeMapManager::CurrentOriginInt { 0 }
protected

Definition at line 290 of file LargeMapManager.h.

Referenced by PostWorldOriginOffset(), and PrintMapInfo().

◆ CurrentTilesLoaded

TSet<uint64> ALargeMapManager::CurrentTilesLoaded
protected

◆ DormantActors

TArray<FCarlaActor::IdType> ALargeMapManager::DormantActors
protected

◆ DormantsToRemove

TSet<FCarlaActor::IdType> ALargeMapManager::DormantsToRemove
protected

Definition at line 279 of file LargeMapManager.h.

Referenced by CheckDormantActors(), and RemovePendingActorsToRemove().

◆ DormantToActiveActors

TSet<FCarlaActor::IdType> ALargeMapManager::DormantToActiveActors
protected

Definition at line 283 of file LargeMapManager.h.

Referenced by CheckDormantActors(), and ConvertDormantToActiveActors().

◆ LargeMapName

FString ALargeMapManager::LargeMapName = "testmap"

Definition at line 155 of file LargeMapManager.h.

Referenced by ACarlaGameModeBase::InitGame().

◆ LargeMapTilePath

FString ALargeMapManager::LargeMapTilePath = "/Game/Carla/Maps/testmap"

Definition at line 153 of file LargeMapManager.h.

Referenced by GenerateLargeMap().

◆ LayerStreamingDistance

float ALargeMapManager::LayerStreamingDistance = 3.0f * 1000.0f * 100.0f
protected

◆ LayerStreamingDistanceSquared

float ALargeMapManager::LayerStreamingDistanceSquared = LayerStreamingDistance * LayerStreamingDistance
protected

Definition at line 309 of file LargeMapManager.h.

Referenced by BeginPlay(), and SetLayerStreamingDistance().

◆ LocalTileOffset

FVector ALargeMapManager::LocalTileOffset = FVector(0,0,0)
protected

Definition at line 317 of file LargeMapManager.h.

Referenced by GetTileVectorID(), and GetTileVectorID().

◆ MapTiles

TMap<uint64, FCarlaMapTile> ALargeMapManager::MapTiles
protected

◆ MaxClientLocMsgIndex

const int32 ALargeMapManager::MaxClientLocMsgIndex = ClientLocMsgIndex + 10
protected

Definition at line 344 of file LargeMapManager.h.

Referenced by PrintMapInfo().

◆ MaxTilesDistMsgIndex

const int32 ALargeMapManager::MaxTilesDistMsgIndex = TilesDistMsgIndex + 10
protected

Definition at line 341 of file LargeMapManager.h.

◆ MsgTime

float ALargeMapManager::MsgTime = 1.0f
protected

Definition at line 347 of file LargeMapManager.h.

Referenced by PostWorldOriginOffset(), and PrintMapInfo().

◆ PositonMsgColor

FColor ALargeMapManager::PositonMsgColor = FColor::Purple
protected

Definition at line 338 of file LargeMapManager.h.

Referenced by PostWorldOriginOffset(), and PrintMapInfo().

◆ RebaseOriginDistance

float ALargeMapManager::RebaseOriginDistance = 2.0f * 1000.0f * 100.0f
protected

Definition at line 307 of file LargeMapManager.h.

Referenced by BeginPlay(), and CheckIfRebaseIsNeeded().

◆ RebaseOriginDistanceSquared

float ALargeMapManager::RebaseOriginDistanceSquared = RebaseOriginDistance * RebaseOriginDistance
protected

Definition at line 311 of file LargeMapManager.h.

Referenced by BeginPlay().

◆ ShouldTilesBlockOnLoad

bool ALargeMapManager::ShouldTilesBlockOnLoad = false
protected

Definition at line 320 of file LargeMapManager.h.

Referenced by LoadCarlaMapTile().

◆ Spectator

AActor* ALargeMapManager::Spectator = nullptr
protected

◆ SpectatorAsEgo

bool ALargeMapManager::SpectatorAsEgo = false

◆ TickInterval

float ALargeMapManager::TickInterval = 0.0f
protected

Definition at line 298 of file LargeMapManager.h.

◆ Tile0Offset

FVector ALargeMapManager::Tile0Offset = FVector(0,0,0)
protected

◆ TilesDistMsgIndex

const int32 ALargeMapManager::TilesDistMsgIndex = 100
protected

Definition at line 340 of file LargeMapManager.h.

Referenced by PrintMapInfo().

◆ TileSide

float ALargeMapManager::TileSide = 2.0f * 1000.0f * 100.0f
protected

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