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

#include <ObjectDefinitionsImport.h>

Public Member Functions

void ImportFromJson (const TSharedPtr< FJsonObject > JsonObject, const UArticyImportData *Data)
void GenerateFeaturesDefs (CodeFileGenerator &header, const UArticyImportData *Data) const
void GenerateProperties (CodeFileGenerator &header, const UArticyImportData *Data) const
void GatherScripts (const TSharedPtr< FJsonObject > Values, UArticyImportData *Data) const
void InitializeModel (UArticyPrimitive *Model, const FString &Path, const TSharedPtr< FJsonObject > Values, const UArticyImportData *Data, const FString &PackageName) const
FString GetDisplayName () const
const TArray< FArticyTemplateFeatureDef > & GetFeatures () const

Public Attributes

FArticyType ArticyType

Detailed Description

Represents a template definition in Articy.

Member Function Documentation

◆ GatherScripts()

void FArticyTemplateDef::GatherScripts ( const TSharedPtr< FJsonObject > Values,
UArticyImportData * Data ) const

Gather scripts from JSON values and adds them to the ArticyImportData.

Parameters
ValuesA shared pointer to the JSON object containing the values.
DataA pointer to the UArticyImportData object.

◆ GenerateFeaturesDefs()

void FArticyTemplateDef::GenerateFeaturesDefs ( CodeFileGenerator & header,
const UArticyImportData * Data ) const

Generates feature definitions in the header file using CodeFileGenerator.

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

◆ GenerateProperties()

void FArticyTemplateDef::GenerateProperties ( CodeFileGenerator & header,
const UArticyImportData * Data ) const

Generates property definitions in the header file using CodeFileGenerator.

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

◆ GetDisplayName()

FString FArticyTemplateDef::GetDisplayName ( ) const
inline

Returns the display name of the template.

Returns
The display name as a string.

◆ GetFeatures()

const TArray< FArticyTemplateFeatureDef > & FArticyTemplateDef::GetFeatures ( ) const
inline

Returns the features of the template.

Returns
A constant reference to the array of features.

◆ ImportFromJson()

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

Import template definition data from a JSON object.

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

◆ InitializeModel()

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

Initializes a model with data from JSON values.

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

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