ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
FArticyTemplateFeatureDef Struct Reference

#include <ObjectDefinitionsImport.h>

Public Member Functions

void ImportFromJson (const TSharedPtr< FJsonObject > JsonObject, const UArticyImportData *Data)
void GenerateDefCode (CodeFileGenerator &header, const UArticyImportData *Data) const
void GeneratePropertyCode (CodeFileGenerator &header, const UArticyImportData *Data) const
void GatherScripts (const TSharedPtr< FJsonObject > &Json, UArticyImportData *Data) const
void InitializeModel (UArticyPrimitive *Model, const FString &Path, const TSharedPtr< FJsonObject > &Json, const UArticyImportData *Data, const FString &PackageName) const
FString GetCppType (const UArticyImportData *Data, bool bAsVariable) const
UClass * GetUClass (const UArticyImportData *Data) const
FString GetTechnicalName () const
FString GetDisplayName () const

Detailed Description

Represents a template feature definition in Articy.

Member Function Documentation

◆ GatherScripts()

void FArticyTemplateFeatureDef::GatherScripts ( const TSharedPtr< FJsonObject > & Json,
UArticyImportData * Data ) const

Gather scripts from JSON and adds them to the UArticyImportData.

Parameters
JsonA shared pointer to the JSON object containing the scripts.
DataA pointer to the UArticyImportData object.

◆ GenerateDefCode()

void FArticyTemplateFeatureDef::GenerateDefCode ( CodeFileGenerator & header,
const UArticyImportData * Data ) const

Generates definition code for the template feature using CodeFileGenerator.

Parameters
headerA reference to the CodeFileGenerator.
DataA pointer to the UArticyImportData object.

◆ GeneratePropertyCode()

void FArticyTemplateFeatureDef::GeneratePropertyCode ( CodeFileGenerator & header,
const UArticyImportData * Data ) const

Generates property code for the template feature using CodeFileGenerator.

Parameters
headerA reference to the CodeFileGenerator.
DataA pointer to the UArticyImportData object.

◆ GetCppType()

FString FArticyTemplateFeatureDef::GetCppType ( const UArticyImportData * Data,
bool bAsVariable ) const

Returns the C++ type of the template feature.

Parameters
DataA pointer to the UArticyImportData object.
bAsVariableWhether the type is for a variable.
Returns
The C++ type as a string.

◆ GetDisplayName()

FString FArticyTemplateFeatureDef::GetDisplayName ( ) const
inline

Returns the display name of the template feature.

Returns
The display name as a string.

◆ GetTechnicalName()

FString FArticyTemplateFeatureDef::GetTechnicalName ( ) const
inline

Returns the technical name of the template feature.

Returns
The technical name as a string.

◆ GetUClass()

UClass * FArticyTemplateFeatureDef::GetUClass ( const UArticyImportData * Data) const

Returns the UClass of the template feature.

Parameters
DataA pointer to the UArticyImportData object.
Returns
A pointer to the UClass of the feature.

◆ ImportFromJson()

void FArticyTemplateFeatureDef::ImportFromJson ( const TSharedPtr< FJsonObject > JsonObject,
const UArticyImportData * Data )

Import template feature definition data from a JSON object.

Parameters
JsonObjectA shared pointer to the JSON object containing the feature definition.
DataA pointer to the UArticyImportData object.

◆ InitializeModel()

void FArticyTemplateFeatureDef::InitializeModel ( UArticyPrimitive * Model,
const FString & Path,
const TSharedPtr< FJsonObject > & Json,
const UArticyImportData * Data,
const FString & PackageName ) const

Initializes a model with data from JSON.

Parameters
ModelA pointer to the UArticyPrimitive object.
PathThe path of the model.
JsonA shared pointer to the JSON object containing the data.
DataA pointer to the UArticyImportData object.
PackageNameThe name of the package.

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