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

#include <ArticyObjectNotificationManager.h>

Inheritance diagram for UArticyObjectNotificationManager:

Public Member Functions

void AddListener (const FString &Filter, FArticyPropertyChangedFunction ChangedFunction)
void AddListener (const FString &Filter, EArticyTypeProperties Flags, FArticyPropertyChangedFunction ChangedFunction)
void AddListener (UArticyBaseObject *Object, FArticyPropertyChangedFunction ChangedFunction)
void RemoveListeners (const FString &Filter)
void RemoveListeners (UArticyBaseObject *Object)

Static Public Member Functions

static UArticyObjectNotificationManagerGet ()

Protected Member Functions

void SplitInstance (const FString &InString, FString &OutName, FString &OutInstanceNumber)

Detailed Description

Manager class for handling notifications about changes in Articy objects.

Member Function Documentation

◆ AddListener() [1/3]

void UArticyObjectNotificationManager::AddListener ( const FString & Filter,
EArticyTypeProperties Flags,
FArticyPropertyChangedFunction ChangedFunction )

Adds a listener for changes to Articy objects matching the given filter and property flags.

Parameters
FilterThe filter string for identifying Articy objects.
FlagsThe types of properties to include in notifications.
ChangedFunctionThe function to call when a property changes.

◆ AddListener() [2/3]

void UArticyObjectNotificationManager::AddListener ( const FString & Filter,
FArticyPropertyChangedFunction ChangedFunction )

Adds a listener for changes to Articy objects matching the given filter.

Parameters
FilterThe filter string for identifying Articy objects.
ChangedFunctionThe function to call when a property changes.

Adds a listener for changes to Articy objects matching the given filter. Resolves the object based on the filter and adds the listener.

Parameters
FilterThe filter string for identifying Articy objects.
ChangedFunctionThe function to call when a property changes.

◆ AddListener() [3/3]

void UArticyObjectNotificationManager::AddListener ( UArticyBaseObject * Object,
FArticyPropertyChangedFunction ChangedFunction )

Adds a listener for changes to a specific Articy object.

Parameters
ObjectThe Articy object to listen to.
ChangedFunctionThe function to call when a property changes.

Adds a listener for changes to a specific Articy object. Registers a lambda function to handle property changes.

Parameters
ObjectThe Articy object to listen to.
ChangedFunctionThe function to call when a property changes.

◆ Get()

UArticyObjectNotificationManager * UArticyObjectNotificationManager::Get ( )
static

Gets the singleton instance of the notification manager.

Returns
Pointer to the singleton instance.

Gets the singleton instance of the notification manager. Creates a new instance if one does not exist.

Returns
Pointer to the singleton instance.

◆ RemoveListeners() [1/2]

void UArticyObjectNotificationManager::RemoveListeners ( const FString & Filter)

Removes listeners for Articy objects matching the given filter.

Parameters
FilterThe filter string for identifying Articy objects.

Removes listeners for Articy objects matching the given filter. Resolves the object based on the filter and removes its listeners.

Parameters
FilterThe filter string for identifying Articy objects.

◆ RemoveListeners() [2/2]

void UArticyObjectNotificationManager::RemoveListeners ( UArticyBaseObject * Object)

Removes listeners from a specific Articy object.

Parameters
ObjectThe Articy object to remove listeners from.

Removes listeners from a specific Articy object. Clears all change notifications for the given object.

Parameters
ObjectThe Articy object to remove listeners from.

◆ SplitInstance()

void UArticyObjectNotificationManager::SplitInstance ( const FString & InString,
FString & OutName,
FString & OutInstanceNumber )
protected

Splits a string into an object name and instance number.

Parameters
InStringThe input string to split.
OutNameThe resulting object name.
OutInstanceNumberThe resulting instance number.

Splits a string into an object name and instance number based on angle brackets.

Parameters
InStringThe input string to split.
OutNameThe resulting object name.
OutInstanceNumberThe resulting instance number.

The documentation for this class was generated from the following files: