ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
UArticyImportData Class Reference

#include <ArticyImportData.h>

Inheritance diagram for UArticyImportData:

Public Member Functions

void PostInitProperties () override
void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const override
void PostImport ()
bool ImportFromJson (const UArticyArchiveReader &Archive, const TSharedPtr< FJsonObject > RootObject)
const FAdiSettingsGetSettings () const
FAdiSettingsGetSettings ()
const FArticyProjectDefGetProject () const
const FArticyGVInfoGetGlobalVars () const
const FADIHierarchyGetHierarchy () const
const FArticyObjectDefinitionsGetObjectDefs () const
const FArticyPackageDefsGetPackageDefs () const
TArray< TSoftObjectPtr< UArticyPackage > > & GetPackages ()
TArray< UArticyPackage * > GetPackagesDirect ()
const TArray< TSoftObjectPtr< UArticyPackage > > & GetPackages () const
const TArray< FAIDScriptMethod > & GetUserMethods () const
void GatherScripts ()
void AddScriptFragment (const FString &Fragment, const bool bIsInstruction)
const TSet< FArticyExpressoFragment > & GetScriptFragments () const
void AddChildToParentCache (FArticyId Parent, FArticyId Child)
const TMap< FArticyId, FArticyIdArray > & GetParentChildrenCache () const
void BuildCachedVersion ()
void ResolveCachedVersion ()
bool HasCachedVersion () const
void SetInitialImportComplete ()

Static Public Member Functions

static const TWeakObjectPtr< UArticyImportDataGetImportData ()

Public Attributes

class UAssetImportData * ImportData
FArticyLanguages Languages

Protected Attributes

FArticyImportDataStruct CachedData
bool bHasCachedVersion = false

Friends

class FArticyEditorFunctionLibrary

Detailed Description

Main class for handling Articy import data.

Member Function Documentation

◆ AddChildToParentCache()

void UArticyImportData::AddChildToParentCache ( FArticyId Parent,
FArticyId Child )

Adds a child to the parent-child cache.

Parameters
ParentThe parent Articy ID.
ChildThe child Articy ID.

◆ AddScriptFragment()

void UArticyImportData::AddScriptFragment ( const FString & Fragment,
const bool bIsInstruction )

Adds a script fragment to the import data.

Parameters
FragmentThe script fragment to add.
bIsInstructionWhether the fragment is an instruction.

◆ BuildCachedVersion()

void UArticyImportData::BuildCachedVersion ( )

Builds a cached version of the import data.

◆ GatherScripts()

void UArticyImportData::GatherScripts ( )

Gathers scripts from the import data.

◆ GetImportData()

const TWeakObjectPtr< UArticyImportData > UArticyImportData::GetImportData ( )
static

Retrieves the import data object.

Returns
The import data object.

◆ GetPackagesDirect()

TArray< UArticyPackage * > UArticyImportData::GetPackagesDirect ( )

Retrieves the list of packages directly.

Returns
The list of packages.

◆ ImportFromJson()

bool UArticyImportData::ImportFromJson ( const UArticyArchiveReader & Archive,
const TSharedPtr< FJsonObject > RootObject )

Imports data from a JSON object using the specified archive.

Parameters
ArchiveThe archive reader.
RootObjectThe root JSON object.
Returns
True if import was successful, false otherwise.

◆ PostImport()

void UArticyImportData::PostImport ( )

Handles actions to perform after importing data.

◆ PostInitProperties()

void UArticyImportData::PostInitProperties ( )
override

Initializes properties after construction.

◆ ResolveCachedVersion()

void UArticyImportData::ResolveCachedVersion ( )

Resolves the cached version of the import data.


The documentation for this class was generated from the following files:
  • Source/ArticyEditor/Public/ArticyImportData.h
  • Source/ArticyEditor/Private/ArticyImportData.cpp