#include <RoadPainterWrapper.h>
Public 成员函数 | |
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 属性 | |
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 成员函数 | |
FVector | ReadVectorFromJsonObject (TSharedPtr< FJsonObject > JsonObject) |
Function to read 3D vectors from a JSON file | |
在文件 RoadPainterWrapper.h 第 52 行定义.
ARoadPainterWrapper::ARoadPainterWrapper | ( | ) |
在文件 RoadPainterWrapper.cpp 第 22 行定义.
|
override |
在文件 RoadPainterWrapper.cpp 第 45 行定义.
void ARoadPainterWrapper::ReadConfigFile | ( | const FString & | CurrentMapName, |
const TMap< FString, FString > & | DecalNamesMap ) |
Function for reading the decals configuration file (in JSON format)
在文件 RoadPainterWrapper.cpp 第 51 行定义.
引用了 FDecalsProperties::DecalMaterials, FDecalsProperties::DecalMaxScale, FDecalsProperties::DecalMinScale, FDecalsProperties::DecalNumToSpawn, DecalPropertiesConfig, FDecalsProperties::DecalRandomYaw, FDecalsProperties::DecalScale, FDecalsProperties::FixedDecalOffset, FDecalsProperties::RandomOffset , 以及 ReadVectorFromJsonObject().
|
private |
Function to read 3D vectors from a JSON file
在文件 RoadPainterWrapper.cpp 第 100 行定义.
被这些函数引用 ReadConfigFile().
void ARoadPainterWrapper::SetBlueprintVariables | ( | ) |
Event for setting the necessary variables in blueprint in order to paint the roads
void ARoadPainterWrapper::SpawnDecalsEvent | ( | ) |
Event used for spawning decals via blueprint
void ARoadPainterWrapper::SpawnMeshesEvent | ( | ) |
Event used for spawning meshes via blueprint
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)
在文件 RoadPainterWrapper.h 第 81 行定义.
被这些函数引用 ReadConfigFile().