|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
#include <ObjectDefinitionsImport.h>
Public Member Functions | |
| void | ImportFromJson (const TSharedPtr< FJsonObject > JsonProperty, const UArticyImportData *Data, const TArray< FArticyTemplateConstraint > *OptionalConstraints=nullptr) |
| void | GenerateCode (CodeFileGenerator &header, const UArticyImportData *Data) const |
| void | GatherScript (const TSharedPtr< FJsonObject > &JsonValue, UArticyImportData *Data) const |
| void | InitializeModel (UArticyBaseObject *Model, const FString &Path, const TSharedPtr< FJsonObject > &JsonValue, const UArticyImportData *Data, const FString &PackageName) const |
| const FName & | GetPropetyName () const |
| const FName & | GetOriginalType () const |
| const FName & | GetOriginalItemType () const |
| FString | GetCppType (const UArticyImportData *Data) const |
Friends | |
| class | UArticyImportData |
Represents a property definition in Articy.
| void FArticyPropertyDef::GatherScript | ( | const TSharedPtr< FJsonObject > & | JsonObject, |
| UArticyImportData * | Data ) const |
Gathers script fragments from JSON and adds them to the UArticyImportData.
| JsonValue | A shared pointer to the JSON object containing the script. |
| Data | A pointer to the UArticyImportData object. |
Gathers script fragments from JSON and adds them to the UArticyImportData.
| JsonObject | A shared pointer to the JSON object containing the script. |
| Data | A pointer to the UArticyImportData object. |
| void FArticyPropertyDef::GenerateCode | ( | CodeFileGenerator & | header, |
| const UArticyImportData * | Data ) const |
Generates code for the property definition using CodeFileGenerator.
| header | A reference to the CodeFileGenerator. |
| Data | A pointer to the UArticyImportData object. |
| FString FArticyPropertyDef::GetCppType | ( | const UArticyImportData * | Data | ) | const |
Returns the C++ type of the property definition.
| Data | A pointer to the UArticyImportData object. |
|
inline |
Returns the original item type of the property.
|
inline |
Returns the original type of the property.
|
inline |
Returns the name of the property.
| void FArticyPropertyDef::ImportFromJson | ( | const TSharedPtr< FJsonObject > | JsonProperty, |
| const UArticyImportData * | Data, | ||
| const TArray< FArticyTemplateConstraint > * | OptionalConstraints = nullptr ) |
Import property definition data from a JSON object.
| JsonProperty | A shared pointer to the JSON object containing the property definition. |
| Data | A pointer to the UArticyImportData object. |
| OptionalConstraints | An optional array of template constraints. |
| void FArticyPropertyDef::InitializeModel | ( | UArticyBaseObject * | Model, |
| const FString & | Path, | ||
| const TSharedPtr< FJsonObject > & | JsonObject, | ||
| const UArticyImportData * | Data, | ||
| const FString & | PackageName ) const |
Initializes a model with data from JSON.
| Model | A pointer to the UArticyBaseObject. |
| Path | The path of the model. |
| JsonValue | A shared pointer to the JSON object containing the data. |
| Data | A pointer to the UArticyImportData object. |
| PackageName | The name of the package. |
Initializes a model with data from JSON.
| Model | A pointer to the UArticyBaseObject. |
| Path | The path of the model. |
| JsonObject | A shared pointer to the JSON object containing the data. |
| Data | A pointer to the UArticyImportData object. |
| PackageName | The name of the package. |