|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
#include <ObjectDefinitionsImport.h>
Public Member Functions | |
| void | ImportFromJson (const TSharedPtr< FJsonObject > JsonObjDef, const UArticyImportData *Data) |
| bool | IsBaseProperty (FName Property, const UArticyImportData *Data) const |
| void | GenerateCode (CodeFileGenerator &header, const UArticyImportData *Data) const |
| void | GatherScripts (const FArticyModelDef &Values, UArticyImportData *Data) const |
| void | InitializeModel (UArticyPrimitive *Model, const FArticyModelDef &Values, const UArticyImportData *Data, const FString &PackageName) const |
| FString | GetCppType (const UArticyImportData *Data, const bool bForProperty) const |
| FString | GetCppBaseClasses (const UArticyImportData *Data) const |
| const FName & | GetOriginalType () const |
| const TArray< FArticyTemplateFeatureDef > & | GetFeatures () const |
Public Attributes | |
| FArticyType | ArticyType |
Represents an object definition in Articy.
| void FArticyObjectDef::GatherScripts | ( | const FArticyModelDef & | Vals, |
| UArticyImportData * | Data ) const |
Find all script fragments, add them to the UArticyImportData, and replace them with an id.
| Values | The model definition containing the values. |
| Data | A pointer to the UArticyImportData object. |
Gather scripts from model definition and adds them to the UArticyImportData.
| Vals | The model definition containing the values. |
| Data | A pointer to the UArticyImportData object. |
| void FArticyObjectDef::GenerateCode | ( | CodeFileGenerator & | header, |
| const UArticyImportData * | Data ) const |
Generates code for the object definition using CodeFileGenerator.
| header | A reference to the CodeFileGenerator. |
| Data | A pointer to the UArticyImportData object. |
| FString FArticyObjectDef::GetCppBaseClasses | ( | const UArticyImportData * | Data | ) | const |
Returns the C++ base classes of the object definition.
| Data | A pointer to the UArticyImportData object. |
| FString FArticyObjectDef::GetCppType | ( | const UArticyImportData * | Data, |
| const bool | bForProperty ) const |
Returns the C++ type of the object definition.
| Data | A pointer to the UArticyImportData object. |
| bForProperty | Whether the type is for a property. |
| const TArray< FArticyTemplateFeatureDef > & FArticyObjectDef::GetFeatures | ( | ) | const |
Returns the features of the object definition.
|
inline |
Returns the original type of the object definition.
| void FArticyObjectDef::ImportFromJson | ( | const TSharedPtr< FJsonObject > | JsonObjDef, |
| const UArticyImportData * | Data ) |
Imports object definition data from a JSON object.
| JsonObjDef | A shared pointer to the JSON object containing the object definition. |
| Data | A pointer to the UArticyImportData object. |
| void FArticyObjectDef::InitializeModel | ( | UArticyPrimitive * | Model, |
| const FArticyModelDef & | Vals, | ||
| const UArticyImportData * | Data, | ||
| const FString & | PackageName ) const |
Initializes a model with data from the model definition.
| Model | A pointer to the UArticyPrimitive object. |
| Values | The model definition containing the values. |
| Data | A pointer to the UArticyImportData object. |
| PackageName | The name of the package. |
Initializes a model with data from the model definition.
| Model | A pointer to the UArticyPrimitive object. |
| Vals | The model definition containing the values. |
| Data | A pointer to the UArticyImportData object. |
| PackageName | The name of the package. |
| bool FArticyObjectDef::IsBaseProperty | ( | FName | Property, |
| const UArticyImportData * | Data ) const |
Checks if a property is already defined in the base class.
| Property | The name of the property. |
| Data | A pointer to the UArticyImportData object. |