|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
#include <ObjectDefinitionsImport.h>
Classes | |
| struct | FClassInfo |
Public Member Functions | |
| void | ImportFromJson (const TArray< TSharedPtr< FJsonValue > > *Json, const UArticyImportData *Data) |
| void | GatherScripts (const FArticyModelDef &Values, UArticyImportData *Data) const |
| void | GatherText (const TSharedPtr< FJsonObject > &Json) |
| void | InitializeModel (UArticyPrimitive *Model, const FArticyModelDef &Values, const UArticyImportData *Data, const FString &PackageName) const |
| FString | GetCppType (const FName &OriginalType, const UArticyImportData *Data, const bool bForProperty) const |
| bool | IsNewFeatureType (const FName &CppType) const |
| TMap< FName, FArticyObjectDef > & | GetTypes () |
| const TMap< FName, FArticyObjectDef > & | GetTypes () const |
| TMap< FString, FArticyTexts > & | GetTexts () |
| const TMap< FString, FArticyTexts > & | GetTexts () const |
| const TMap< FName, FArticyTemplateFeatureDef > | GetFeatures () const |
Static Public Member Functions | |
| static const FString & | GetCppDefaultValue (const FName &OriginalType) |
| static const FClassInfo & | GetDefaultBaseClass (const FName &OriginalType, const UArticyImportData *Data) |
| static const FName & | GetProviderInterface (const FArticyPropertyDef &Property) |
| static void | SetProp (const FName &OriginalType, const FName &Property, PROP_SETTER_PARAMS) |
Represents object definitions in Articy.
| void FArticyObjectDefinitions::GatherScripts | ( | const FArticyModelDef & | Values, |
| UArticyImportData * | Data ) const |
Gather scripts from model definition and adds them to the UArticyImportData.
| Values | The model definition containing the values. |
| Data | A pointer to the UArticyImportData object. |
| void FArticyObjectDefinitions::GatherText | ( | const TSharedPtr< FJsonObject > & | Json | ) |
Gather text definitions from a JSON object.
| Json | A shared pointer to the JSON object containing the text definitions. |
|
static |
Returns the default C++ value for a given type.
| OriginalType | The original type. |
| FString FArticyObjectDefinitions::GetCppType | ( | const FName & | OriginalType, |
| const UArticyImportData * | Data, | ||
| const bool | bForProperty ) const |
Returns the C++ type of an object definition.
| OriginalType | The original type of the object definition. |
| Data | A pointer to the UArticyImportData object. |
| bForProperty | Whether the type is for a property. |
|
static |
Returns the default base class for an object definition.
| OriginalType | The original type of the object definition. |
| Data | A pointer to the UArticyImportData object. |
|
inline |
Returns the feature definitions map.
|
static |
Returns the provider interface name for a given property.
| Property | The property definition. |
|
inline |
Returns the texts map.
|
inline |
Returns the texts map.
|
inline |
Returns the types map.
|
inline |
Returns the types map.
| void FArticyObjectDefinitions::ImportFromJson | ( | const TArray< TSharedPtr< FJsonValue > > * | Json, |
| const UArticyImportData * | Data ) |
Imports object definitions from a JSON array.
| Json | A pointer to the array of JSON values containing the object definitions. |
| Data | A pointer to the UArticyImportData object. |
| void FArticyObjectDefinitions::InitializeModel | ( | UArticyPrimitive * | Model, |
| const FArticyModelDef & | Values, | ||
| 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. |
| bool FArticyObjectDefinitions::IsNewFeatureType | ( | const FName & | CppType | ) | const |
Checks if a feature type is new.
| CppType | The C++ type of the feature. |
|
static |
Sets a property value on a model.
| OriginalType | The original type of the property. |
| Property | The name of the property. |
| PROP_SETTER_PARAMS | Parameters for setting the property. |