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

#include <PackagesImport.h>

Public Member Functions

void ImportFromJson (const UArticyArchiveReader &Archive, const TArray< TSharedPtr< FJsonValue > > *Json, FAdiSettings &Settings)
bool ValidateImport (const UArticyArchiveReader &Archive, const TArray< TSharedPtr< FJsonValue > > *Json)
void GatherScripts (UArticyImportData *Data) const
void GenerateAssets (UArticyImportData *Data) const
TSet< FString > GetPackageNames () const
TArray< FArticyPackageDefGetPackages () const
void ResetPackages ()

Static Public Member Functions

static TMap< FString, FArticyTextsGetTexts (const FArticyPackageDef &Package)

Detailed Description

Contains information about all imported packages and provides methods for importing, validating, and generating package assets.

Member Function Documentation

◆ GatherScripts()

void FArticyPackageDefs::GatherScripts ( UArticyImportData * Data) const

Gathers scripts from all package definitions and adds them to the ArticyImportData.

Parameters
DataA pointer to the UArticyImportData object.

◆ GenerateAssets()

void FArticyPackageDefs::GenerateAssets ( UArticyImportData * Data) const

Generates assets for all package definitions and stores them in the ArticyImportData.

Parameters
DataA pointer to the UArticyImportData object.

◆ GetPackageNames()

TSet< FString > FArticyPackageDefs::GetPackageNames ( ) const

Gets a set of package names from the package definitions.

Returns
A set of package names.

◆ GetPackages()

TArray< FArticyPackageDef > FArticyPackageDefs::GetPackages ( ) const

Gets an array of package definitions.

Returns
An array of package definitions.

◆ GetTexts()

TMap< FString, FArticyTexts > FArticyPackageDefs::GetTexts ( const FArticyPackageDef & Package)
static

Gets the texts map from a specific package definition.

Parameters
PackageThe package definition to retrieve texts from.
Returns
A map of text data.

◆ ImportFromJson()

void FArticyPackageDefs::ImportFromJson ( const UArticyArchiveReader & Archive,
const TArray< TSharedPtr< FJsonValue > > * Json,
FAdiSettings & Settings )

Imports package definitions from a JSON array.

Parameters
ArchiveA reference to the ArticyArchiveReader object.
JsonA pointer to the JSON array containing the package definitions.
SettingsA reference to the FADISettings object.

◆ ResetPackages()

void FArticyPackageDefs::ResetPackages ( )

Resets the packages array, clearing all package definitions.

◆ ValidateImport()

bool FArticyPackageDefs::ValidateImport ( const UArticyArchiveReader & Archive,
const TArray< TSharedPtr< FJsonValue > > * Json )

Validates the import of package definitions from a JSON array.

Parameters
ArchiveA reference to the ArticyArchiveReader object.
JsonA pointer to the JSON array containing the package definitions.
Returns
True if the import is valid, false otherwise.

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