|
CARLA
|
#include <RoadPainterWrapper.h>
Public Member Functions | |
| ARoadPainterWrapper () | |
| void | BeginPlay () override |
| void | ReadConfigFile (const FString &CurrentMapName, const TMap< FString, FString > &DecalNamesMap) |
| Function for reading the decals configuration file (in JSON format). | |
| void | SetBlueprintVariables () |
| Event for setting the necessary variables in blueprint in order to paint the roads. | |
| void | SpawnDecalsEvent () |
| Event used for spawning decals via blueprint. | |
| void | SpawnMeshesEvent () |
| Event used for spawning meshes via blueprint. | |
Public Attributes | |
| FDecalsProperties | DecalPropertiesConfig |
| Variable used for storing the JSON values of the decals so it can be later used by the blueprint (Road Painter Preset). | |
Private Member Functions | |
| FVector | ReadVectorFromJsonObject (TSharedPtr< FJsonObject > JsonObject) |
| Function to read 3D vectors from a JSON file. | |
Definition at line 55 of file RoadPainterWrapper.h.
| ARoadPainterWrapper::ARoadPainterWrapper | ( | ) |
Definition at line 24 of file RoadPainterWrapper.cpp.
|
override |
Definition at line 47 of file RoadPainterWrapper.cpp.
| void ARoadPainterWrapper::ReadConfigFile | ( | const FString & | CurrentMapName, |
| const TMap< FString, FString > & | DecalNamesMap ) |
Function for reading the decals configuration file (in JSON format).
Definition at line 53 of file RoadPainterWrapper.cpp.
References FDecalsProperties::DecalMaterials, FDecalsProperties::DecalMaxScale, FDecalsProperties::DecalMinScale, FDecalsProperties::DecalNumToSpawn, DecalPropertiesConfig, FDecalsProperties::DecalRandomYaw, FDecalsProperties::DecalScale, FDecalsProperties::FixedDecalOffset, FDecalsProperties::RandomOffset, and ReadVectorFromJsonObject().
Referenced by SetBlueprintVariables().
|
private |
Function to read 3D vectors from a JSON file.
Definition at line 102 of file RoadPainterWrapper.cpp.
Referenced by ReadConfigFile().
| void ARoadPainterWrapper::SetBlueprintVariables | ( | ) |
Event for setting the necessary variables in blueprint in order to paint the roads.
References ReadConfigFile(), and SetBlueprintVariables().
Referenced by SetBlueprintVariables().
| void ARoadPainterWrapper::SpawnDecalsEvent | ( | ) |
Event used for spawning decals via blueprint.
References SpawnDecalsEvent().
Referenced by SpawnDecalsEvent().
| void ARoadPainterWrapper::SpawnMeshesEvent | ( | ) |
Event used for spawning meshes via blueprint.
References SpawnMeshesEvent().
Referenced by SpawnMeshesEvent().
| FDecalsProperties ARoadPainterWrapper::DecalPropertiesConfig |
Variable used for storing the JSON values of the decals so it can be later used by the blueprint (Road Painter Preset).
Definition at line 84 of file RoadPainterWrapper.h.
Referenced by ReadConfigFile().