#include <VegetationManager.h>
|
float | PoolTranslationTimer {30.0f} |
|
FTransform | InactivePoolTransform { FQuat(1.0f, 1.0f, 1.0f, 1.0f), FVector(1.0f, 1.0f, 1.0f), FVector(1.0f, 1.0f, 1.0f)} |
|
ALargeMapManager * | LargeMap {nullptr} |
|
ACarlaWheeledVehicle * | HeroVehicle {nullptr} |
|
TMap< FString, FFoliageBlueprint > | FoliageBlueprintCache {} |
|
TMap< FString, FTileData > | TileCache {} |
|
TMap< FString, TArray< FPooledActor > > | ActorPool {} |
|
FTimerHandle | UpdatePoolInactiveTransformTimer |
|
virtual void | BeginPlay () override |
|
virtual void | Tick (float DeltaTime) override |
|
bool | IsFoliageTypeEnabled (const FString &Path) const |
|
bool | CheckForNewTiles () const |
|
TArray< FString > | GetTilesInUse () |
|
void | UpdateMaterials (FTileData *Tile) |
|
TArray< FElementsToSpawn > | GetElementsToSpawn (FTileData *Tile) |
|
void | SpawnSkeletalFoliages (TArray< FElementsToSpawn > &ElementsToSpawn) |
|
void | DestroySkeletalFoliages () |
|
void | ActivePooledActors () |
|
bool | EnableActorFromPool (const FTransform &Transform, int32 Index, std::shared_ptr< FTileMeshComponent > &TileMeshComponent, TArray< FPooledActor > &Pool) |
|
void | CreateOrUpdateTileCache (ULevel *InLevel) |
|
void | UpdateFoliageBlueprintCache (ULevel *InLevel) |
|
void | SetTileDataInternals (FTileData &TileData) |
|
void | SetInstancedStaticMeshComponentCache (FTileData &TileData) |
|
void | SetMaterialCache (FTileData &TileData) |
|
void | FreeTileCache (ULevel *InLevel) |
|
void | OnLevelAddedToWorld (ULevel *InLevel, UWorld *InWorld) |
|
void | OnLevelRemovedFromWorld (ULevel *InLevel, UWorld *InWorld) |
|
void | PostWorldOriginOffset (UWorld *, FIntVector, FIntVector InDstOrigin) |
|
void | CreatePoolForBPClass (const FFoliageBlueprint &BP) |
|
AActor * | CreateFoliage (const FFoliageBlueprint &BP, const FTransform &Transform) const |
|
void | GetSketalTemplates () |
|
Definition at line 89 of file VegetationManager.h.
◆ ActivePooledActors()
void AVegetationManager::ActivePooledActors |
( |
| ) |
|
|
private |
◆ AddVehicle()
◆ BeginPlay()
void AVegetationManager::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ CheckForNewTiles()
bool AVegetationManager::CheckForNewTiles |
( |
| ) |
const |
|
private |
◆ CreateFoliage()
◆ CreateOrUpdateTileCache()
void AVegetationManager::CreateOrUpdateTileCache |
( |
ULevel * |
InLevel | ) |
|
|
private |
◆ CreatePoolForBPClass()
◆ DestroySkeletalFoliages()
void AVegetationManager::DestroySkeletalFoliages |
( |
| ) |
|
|
private |
◆ EnableActorFromPool()
bool AVegetationManager::EnableActorFromPool |
( |
const FTransform & |
Transform, |
|
|
int32 |
Index, |
|
|
std::shared_ptr< FTileMeshComponent > & |
TileMeshComponent, |
|
|
TArray< FPooledActor > & |
Pool |
|
) |
| |
|
private |
◆ FreeTileCache()
void AVegetationManager::FreeTileCache |
( |
ULevel * |
InLevel | ) |
|
|
private |
◆ GetElementsToSpawn()
◆ GetSketalTemplates()
void AVegetationManager::GetSketalTemplates |
( |
| ) |
|
|
private |
◆ GetTilesInUse()
TArray< FString > AVegetationManager::GetTilesInUse |
( |
| ) |
|
|
private |
◆ IsFoliageTypeEnabled()
bool AVegetationManager::IsFoliageTypeEnabled |
( |
const FString & |
Path | ) |
const |
|
private |
◆ OnLevelAddedToWorld()
void AVegetationManager::OnLevelAddedToWorld |
( |
ULevel * |
InLevel, |
|
|
UWorld * |
InWorld |
|
) |
| |
|
private |
◆ OnLevelRemovedFromWorld()
void AVegetationManager::OnLevelRemovedFromWorld |
( |
ULevel * |
InLevel, |
|
|
UWorld * |
InWorld |
|
) |
| |
|
private |
◆ PostWorldOriginOffset()
void AVegetationManager::PostWorldOriginOffset |
( |
UWorld * |
, |
|
|
FIntVector |
, |
|
|
FIntVector |
InDstOrigin |
|
) |
| |
|
private |
◆ RemoveVehicle()
◆ SetInstancedStaticMeshComponentCache()
void AVegetationManager::SetInstancedStaticMeshComponentCache |
( |
FTileData & |
TileData | ) |
|
|
private |
◆ SetMaterialCache()
void AVegetationManager::SetMaterialCache |
( |
FTileData & |
TileData | ) |
|
|
private |
◆ SetTileDataInternals()
void AVegetationManager::SetTileDataInternals |
( |
FTileData & |
TileData | ) |
|
|
private |
◆ SpawnSkeletalFoliages()
void AVegetationManager::SpawnSkeletalFoliages |
( |
TArray< FElementsToSpawn > & |
ElementsToSpawn | ) |
|
|
private |
◆ Tick()
void AVegetationManager::Tick |
( |
float |
DeltaTime | ) |
|
|
overrideprotectedvirtual |
◆ UpdateFoliageBlueprintCache()
void AVegetationManager::UpdateFoliageBlueprintCache |
( |
ULevel * |
InLevel | ) |
|
|
private |
◆ UpdateMaterials()
void AVegetationManager::UpdateMaterials |
( |
FTileData * |
Tile | ) |
|
|
private |
◆ UpdatePoolBasePosition()
void AVegetationManager::UpdatePoolBasePosition |
( |
| ) |
|
◆ ActiveActorDistance
float AVegetationManager::ActiveActorDistance {500.0f} |
◆ ActorPool
TMap<FString, TArray<FPooledActor> > AVegetationManager::ActorPool {} |
|
private |
◆ DebugMaterials
bool AVegetationManager::DebugMaterials {false} |
◆ FoliageBlueprintCache
◆ HeroVehicle
◆ HideMaterialDistance
float AVegetationManager::HideMaterialDistance {500.0f} |
◆ InactivePoolTransform
FTransform AVegetationManager::InactivePoolTransform { FQuat(1.0f, 1.0f, 1.0f, 1.0f), FVector(1.0f, 1.0f, 1.0f), FVector(1.0f, 1.0f, 1.0f)} |
|
private |
◆ InitialPoolSize
int32 AVegetationManager::InitialPoolSize {10} |
◆ LargeMap
◆ PoolTranslationTimer
float AVegetationManager::PoolTranslationTimer {30.0f} |
|
private |
◆ SpawnBushes
bool AVegetationManager::SpawnBushes {true} |
◆ SpawnPlants
bool AVegetationManager::SpawnPlants {true} |
◆ SpawnRocks
bool AVegetationManager::SpawnRocks {true} |
◆ SpawnScale
float AVegetationManager::SpawnScale {1.0f} |
◆ SpawnTrees
bool AVegetationManager::SpawnTrees {true} |
◆ TileCache
TMap<FString, FTileData> AVegetationManager::TileCache {} |
|
private |
◆ UpdatePoolInactiveTransformTimer
FTimerHandle AVegetationManager::UpdatePoolInactiveTransformTimer |
|
private |
The documentation for this class was generated from the following files: