|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
#include <ArticyDatabase.h>
Public Member Functions | |
| virtual FPrimaryAssetId | GetPrimaryAssetId () const override |
| void | Init () |
| virtual UArticyGlobalVariables * | GetGVs () const |
| virtual UArticyGlobalVariables * | GetRuntimeGVs (UArticyAlternativeGlobalVariables *Asset) const |
| void | UnloadDatabase () |
| void | SetDefaultUserMethodsProvider (UObject *MethodProvider) |
| bool | IsInShadowState () const |
| TArray< FString > | GetImportedPackageNames () const |
| bool | IsPackageDefaultPackage (FString PackageName) |
| virtual void | SetLoadedPackages (const TArray< UArticyPackage * > Packages) |
| virtual void | LoadDefaultPackages () |
| virtual void | LoadAllPackages (bool bDefaultOnly=false) |
| virtual void | LoadPackage (FString PackageName) |
| virtual bool | UnloadPackage (const FString PackageName, const bool bQuickUnload) |
| UArticyObject * | GetObject (FArticyId Id, int32 CloneId=0, TSubclassOf< class UArticyObject > CastTo=NULL) const |
| template<typename T> | |
| T * | GetObject (FArticyId Id, int32 CloneId=0) const |
| UArticyObject * | GetObjectUnshadowed (FArticyId Id, int32 CloneId=0) const |
| UArticyObject * | GetObjectByName (FName TechnicalName, int32 CloneId=0, TSubclassOf< class UArticyObject > CastTo=NULL) const |
| template<typename T> | |
| T * | GetObjectByName (FName TechnicalName, int32 CloneId=0) const |
| UArticyObject * | GetObjectFromStringRepresentation (FString StringID_CloneID, TSubclassOf< class UArticyObject > CastTo=NULL) const |
| template<typename T> | |
| T * | GetObjectFromStringRepresentation (FString StringID_CloneID) const |
| template<typename T> | |
| TArray< T * > | GetObjects (FName TechnicalName, int32 CloneId=0) const |
| TArray< UArticyObject * > | GetObjects (FName TechnicalName, int32 CloneId=0, TSubclassOf< class UArticyObject > CastTo=NULL) const |
| template<typename T> | |
| TArray< T * > | GetObjectsOfClass (int32 CloneId=0) const |
| TArray< UArticyObject * > | GetObjectsOfClass (TSubclassOf< class UArticyObject > Class, int32 CloneId=0) const |
| TArray< UArticyObject * > | GetAllObjects () const |
| template<typename T = UArticyObject> | |
| void | GetObjects (TArray< T * > &Array, FName TechnicalName, int32 CloneId=0) const |
| UArticyObject * | CloneFrom (FArticyId Id, int32 NewCloneId=-1, TSubclassOf< class UArticyObject > CastTo=NULL) |
| template<typename T> | |
| T * | CloneFrom (FArticyId Id, int32 NewCloneId=-1) |
| UArticyObject * | CloneFromByName (FName TechnicalName, int32 NewCloneId=-1, TSubclassOf< class UArticyObject > CastTo=NULL) |
| template<typename T> | |
| T * | CloneFrom (FName TechnicalName, int32 NewCloneId=-1) |
| UArticyObject * | GetOrClone (FArticyId Id, int32 NewCloneId) |
| template<typename T> | |
| T * | GetOrClone (FArticyId Id, int32 NewCloneId) |
| UArticyObject * | GetOrCloneByName (const FName &TechnicalName, int32 NewCloneId) |
| template<typename T> | |
| T * | GetOrClone (const FName &TechnicalName, int32 NewCloneId) |
| UArticyExpressoScripts * | GetExpressoInstance () const |
| void | ChangePackageDefault (FName PackageName, bool bIsDefaultPackage) |
| void | SetExpressoScriptsClass (TSubclassOf< UArticyExpressoScripts > NewClass) |
| Public Member Functions inherited from IShadowStateManager | |
| template<typename LambdaType> | |
| FDelegateHandle | RegisterOnPopState (LambdaType Lambda) |
| void | UnregisterOnPopState (FDelegateHandle Delegate) |
| uint32 | GetShadowLevel () const |
Static Public Member Functions | |
| static void | Initialize (const UObject *WorldContext) |
| static void | Deinitialize (const UObject *WorldContext) |
| static UArticyDatabase * | Get (const UObject *WorldContext) |
| static void | LoadAllObjects () |
| static TWeakObjectPtr< UArticyDatabase > | GetMutableOriginal () |
Protected Member Functions | |
| void | UnloadAllPackages () |
Protected Attributes | |
| TMap< FString, UArticyPackage * > | ImportedPackages |
| TArray< FString > | LoadedPackages |
| TMap< FArticyId, UArticyCloneableObject * > | LoadedObjectsById |
| TMap< FName, FArticyDatabaseObjectArray > | LoadedObjectsByName |
| bool | bIsInitialized = false |
The database is used for accessing or cloning any articy object.
| void UArticyDatabase::ChangePackageDefault | ( | FName | PackageName, |
| bool | bIsDefaultPackage ) |
Changes the default package setting for a specific package.
| PackageName | The name of the package. |
| bIsDefaultPackage | True to mark as default, false otherwise. |
| UArticyObject * UArticyDatabase::CloneFrom | ( | FArticyId | Id, |
| int32 | NewCloneId = -1, | ||
| TSubclassOf< class UArticyObject > | CastTo = NULL ) |
Clone an existing object, and assign the NewCloneId to it. If the clone already exists, nullptr is returned! If NewCloneId is -1, the next free clone Id will be used.
| Id | The ID of the object to clone. |
| NewCloneId | The clone ID for the new instance. |
| CastTo | The class to cast the clone to. |
Clones an Articy object by its ID, creating a new instance with the specified clone ID.
| Id | The ID of the object to clone. |
| NewCloneId | The clone ID for the new instance. |
| CastTo | The class to cast the clone to. |
| UArticyObject * UArticyDatabase::CloneFromByName | ( | FName | TechnicalName, |
| int32 | NewCloneId = -1, | ||
| TSubclassOf< class UArticyObject > | CastTo = NULL ) |
Clone an existing object, and assign the NewCloneId to it. If the clone already exists, nullptr is returned! If NewCloneId is -1, the next free clone Id will be used.
| TechnicalName | The technical name of the object to clone. |
| NewCloneId | The clone ID for the new instance. |
| CastTo | The class to cast the clone to. |
Clones an Articy object by its technical name, creating a new instance with the specified clone ID.
| TechnicalName | The technical name of the object to clone. |
| NewCloneId | The clone ID for the new instance. |
| CastTo | The class to cast the clone to. |
|
static |
Explicit deinitialize.
| WorldContext | any UObject in the target world |
|
static |
Get the static instance of the database.
| WorldContext | The context from which to retrieve the database. |
Retrieves the Articy database instance for the given world context.
| WorldContext | The context from which to retrieve the database. |
| TArray< UArticyObject * > UArticyDatabase::GetAllObjects | ( | ) | const |
Get all objects.
Retrieves all Articy objects currently loaded in the database.
| UArticyExpressoScripts * UArticyDatabase::GetExpressoInstance | ( | ) | const |
Gets a UArticyExpressoScripts instance, which can be used to execute instructions or evaluate conditions.
Retrieves the Expresso scripts instance for script execution.
|
virtual |
Get the current GVs instance.
Retrieves the current global variables instance.
| TArray< FString > UArticyDatabase::GetImportedPackageNames | ( | ) | const |
Retrieves the names of all imported packages.
|
static |
Retrieves a mutable original instance of the Articy database.
| UArticyObject * UArticyDatabase::GetObject | ( | FArticyId | Id, |
| int32 | CloneId = 0, | ||
| TSubclassOf< class UArticyObject > | CastTo = NULL ) const |
Get an object by its Id. If a CloneId other than 0 is provided, a copy of the object with this index must exist. Otherwise a null-pointer is returned.
| Id | The ID of the object to retrieve. |
| CloneId | The clone ID of the object. |
| CastTo | The class to cast the object to. |
Retrieves an Articy object by its ID and clone ID.
| Id | The ID of the object to retrieve. |
| CloneId | The clone ID of the object. |
| CastTo | The class to cast the object to. |
| UArticyObject * UArticyDatabase::GetObjectByName | ( | FName | TechnicalName, |
| int32 | CloneId = 0, | ||
| TSubclassOf< class UArticyObject > | CastTo = NULL ) const |
Get an object by its TechnicalName. If a CloneId other than 0 is provided, a copy of the object with this index must exist, otherwise a null-pointer is returned. Note that the TechnicalName is not unique! This will take the first matching object.
| TechnicalName | The technical name of the object to retrieve. |
| CloneId | The clone ID of the object. |
| CastTo | The class to cast the object to. |
Retrieves an Articy object by its technical name and clone ID.
| TechnicalName | The technical name of the object to retrieve. |
| CloneId | The clone ID of the object. |
| CastTo | The class to cast the object to. |
| UArticyObject * UArticyDatabase::GetObjectFromStringRepresentation | ( | FString | StringID_CloneID, |
| TSubclassOf< class UArticyObject > | CastTo = NULL ) const |
Retrieves an Articy object from a string representation.
| StringID_CloneID | The string representation of the object's ID and clone ID. |
| CastTo | The class to cast the object to. |
| TArray< T * > UArticyDatabase::GetObjects | ( | FName | TechnicalName, |
| int32 | CloneId = 0 ) const |
Get all objects with a given TechnicalName. If a CloneId other than 0 is provided, copies of the objects with this index must exist, otherwise null-pointers are returned instead. Note: this allocates a new TArray, use the other variant if you already have an array to fill the objects with!
| TechnicalName | The technical name of the objects to retrieve. |
| CloneId | The clone ID of the objects. |
| TArray< UArticyObject * > UArticyDatabase::GetObjects | ( | FName | TechnicalName, |
| int32 | CloneId = 0, | ||
| TSubclassOf< class UArticyObject > | CastTo = NULL ) const |
Get all objects with a given TechnicalName. If a CloneId other than 0 is provided, copies of the objects with this index must exist, otherwise null-pointers are returned instead.
| TechnicalName | The technical name of the objects to retrieve. |
| CloneId | The clone ID of the objects. |
| CastTo | The class to cast the objects to. |
Retrieves all Articy objects with a given technical name and clone ID.
| TechnicalName | The technical name of the objects to retrieve. |
| CloneId | The clone ID of the objects. |
| CastTo | The class to cast the objects to. |
| void UArticyDatabase::GetObjects | ( | TArray< T * > & | Array, |
| FName | TechnicalName, | ||
| int32 | CloneId = 0 ) const |
Get all objects with a given TechnicalName. If a CloneId other than 0 is provided, copies of the objects with this index must exist, otherwise null-pointers are returned instead.
| Array | The array to fill with pointers to the Articy objects. |
| TechnicalName | The technical name of the objects to retrieve. |
| CloneId | The clone ID of the objects. |
| TArray< T * > UArticyDatabase::GetObjectsOfClass | ( | int32 | CloneId = 0 | ) | const |
Get all objects with a given Type. If a CloneId other than 0 is provided, copies of the objects with this index must exist, otherwise they will be not added to the result.
| CloneId | The clone ID of the objects. |
| TArray< UArticyObject * > UArticyDatabase::GetObjectsOfClass | ( | TSubclassOf< class UArticyObject > | Type, |
| int32 | CloneId = 0 ) const |
Get all objects with a given Type. If a CloneId other than 0 is provided, copies of the objects with this index must exist, otherwise they will be not added to the result.
| Class | The class type of the objects to retrieve. |
| CloneId | The clone ID of the objects. |
Retrieves all Articy objects of a specified class with a given clone ID.
| Type | The class type of the objects to retrieve. |
| CloneId | The clone ID of the objects. |
| UArticyObject * UArticyDatabase::GetObjectUnshadowed | ( | FArticyId | Id, |
| int32 | CloneId = 0 ) const |
Get an unshadowed copy of an object. Internally used by the flow player to replace nodes with unshadowed ones before returning them via the flow player callbacks.
| Id | The ID of the object to retrieve. |
| CloneId | The clone ID of the object. |
Retrieves an unshadowed version of an Articy object.
| Id | The ID of the object to retrieve. |
| CloneId | The clone ID of the object. |
| UArticyObject * UArticyDatabase::GetOrClone | ( | FArticyId | Id, |
| int32 | NewCloneId ) |
Clone an existing object, and assign the NewCloneId to it.
| Id | The ID of the object to retrieve or clone. |
| NewCloneId | The clone ID for the new instance. |
Retrieves or clones an Articy object by its ID and clone ID.
| Id | The ID of the object to retrieve or clone. |
| NewCloneId | The clone ID for the new instance. |
| UArticyObject * UArticyDatabase::GetOrCloneByName | ( | const FName & | TechnicalName, |
| int32 | NewCloneId ) |
Clone an existing object, and assign the NewCloneId to it.
| TechnicalName | The technical name of the object to retrieve or clone. |
| NewCloneId | The clone ID for the new instance. |
Retrieves or clones an Articy object by its technical name and clone ID.
| TechnicalName | The technical name of the object to retrieve or clone. |
| NewCloneId | The clone ID for the new instance. |
|
inlineoverridevirtual |
Retrieves the primary asset ID for this database.
|
virtual |
Gets the current runtime instance of a set of GVs.
| Asset | The alternative global variables asset. |
Retrieves the runtime global variables associated with an alternative global variables asset.
| Asset | The alternative global variables asset. |
| void UArticyDatabase::Init | ( | ) |
Initializes the Articy database, loading default packages.
|
static |
Explicit initialize.
| WorldContext | any UObject in the target world |
|
inline |
Returns true if the database is in shadow state. Can be used in script methods to determine if the function is called during a flow player branch calculation.
| bool UArticyDatabase::IsPackageDefaultPackage | ( | FString | PackageName | ) |
Determines if a package is a default package.
| PackageName | The name of the package to check. |
|
static |
Load all objects imported from articy, so the UE4 packages are 'fully loaded'. Used internally, so ArticyRef can find the referenced object.
Loads all imported Articy objects, ensuring the packages are fully loaded.
|
virtual |
Load all imported packages.
Loads all imported packages, optionally only loading default packages.
| bDefaultOnly | If true, only default packages are loaded. |
|
virtual |
Load all packages which have the IsDefaultPackage flag set to true.
Loads all packages that are marked as default packages.
|
virtual |
Load a package of a given name.
| PackageName | The name of the package to load. |
Loads a specific package by name.
| PackageName | The name of the package to load. |
| void UArticyDatabase::SetDefaultUserMethodsProvider | ( | UObject * | MethodProvider | ) |
Sets a default method provider, which will be always used whenever scripts get evaluated / executed without a valid method provider.
| MethodProvider | The method provider object. |
Sets the default user methods provider for script execution.
| MethodProvider | The method provider object. |
| void UArticyDatabase::SetExpressoScriptsClass | ( | TSubclassOf< UArticyExpressoScripts > | NewClass | ) |
Sets the Expresso scripts class used for script execution.
| NewClass | The new Expresso scripts class to use. |
|
virtual |
Sets the loaded packages from a provided list of packages.
| Packages | An array of packages to set as loaded. |
|
protected |
Unloads all currently loaded packages, clearing object maps.
| void UArticyDatabase::UnloadDatabase | ( | ) |
Unloads the database, which causes that all changes get removed.
Unloads the database, clearing changes and freeing resources.
|
virtual |
Load a package of a given name.
| PackageName | The name of the package to unload. |
| bQuickUnload | If true, perform a quick unload. |
Unloads a specific package by name.
| PackageName | The name of the package to unload. |
| bQuickUnload | If true, perform a quick unload. |
|
protected |
A list of all packages that were imported from articy:draft.