Class IZagalaSpecExecutionChainer#
Defined in File ZagalaSpecExecutionChainer.h
Inheritance Relationships#
Derived Type#
public UZagalaSpecDefaultExecutionChainer(Class UZagalaSpecDefaultExecutionChainer)
Class Documentation#
-
class IZagalaSpecExecutionChainer#
Interface for objects that manage a chain of IZagalaSpecChainLink objects and drive their execution.
Implementors maintain an ordered list of links and coordinate sequential execution, advancing or failing the chain based on each link’s broadcast outcome.
Subclassed by UZagalaSpecDefaultExecutionChainer
Public Functions
-
virtual void AddLink(UObject *Link) = 0#
Adds a link to the chain.
The object must implement both IZagalaSpecChainLink and IZagalaSpecBroadcaster; objects that do not satisfy both requirements are silently rejected with a warning.
- Parameters:
Link – The UObject implementing IZagalaSpecChainLink and IZagalaSpecBroadcaster to append to the chain.
-
virtual void AddLinkFromClass(TSubclassOf<UObject> LinkClass) = 0#
Creates an instance of the given class and adds it to the chain.
The class must implement both IZagalaSpecChainLink and IZagalaSpecBroadcaster; classes that do not satisfy both requirements are silently rejected with a warning.
- Parameters:
LinkClass – The class to instantiate and append to the chain.
-
virtual void StartChain(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher) = 0#
Starts the chain execution sequentially, passing the supplied cacher to each link.
Only the first link is started immediately; each subsequent link starts when the preceding one succeeds.
- Parameters:
AssignedCacher – The tagged data cacher passed to each link’s Execute() call.
-
virtual const TArray<TObjectPtr<UObject>> &GetLinks() const = 0#
Returns the ordered list of links registered with this chainer.
For C++ callers; use GetLinks_BP() from Blueprint.
- Returns:
A const reference to the ordered link array.
-
virtual TArray<UObject*> GetLinks_BP() const = 0#
Returns the ordered list of links registered with this chainer.
Blueprint-compatible variant of GetLinks().
- Returns:
A copy of the ordered link array.
-
virtual void RemoveLinks() = 0#
Unsubscribes from each link’s broadcaster and removes all links from the chain.
After this call, the link array is empty and the chainer will no longer receive success or failure events from any previously-added link.
-
virtual void AddLink(UObject *Link) = 0#