Class UZagalaSpecDefaultChainLink#
Defined in File ZagalaSpecDefaultChainLink.h
Inheritance Relationships#
Base Types#
public UObjectpublic IZagalaSpecChainLink(Class IZagalaSpecChainLink)public IZagalaSpecBroadcaster(Class IZagalaSpecBroadcaster)public IZagalaSpecSubscriber(Class IZagalaSpecSubscriber)
Derived Types#
public UZagalaSpecChainLinkOnChainLink(Class UZagalaSpecChainLinkOnChainLink)public UZagalaSpecDSLStoreWaitTicks(Class UZagalaSpecDSLStoreWaitTicks)public UZagalaSpecDefaultExecutionChainer(Class UZagalaSpecDefaultExecutionChainer)public UZagalaSpecDefaultExecutionStep(Class UZagalaSpecDefaultExecutionStep)public UZagalaSpecPDAddItem(Class UZagalaSpecPDAddItem)public UZagalaSpecPDApplyInputs(Class UZagalaSpecPDApplyInputs)public UZagalaSpecPDAssertAllClientsOneController(Class UZagalaSpecPDAssertAllClientsOneController)public UZagalaSpecPDAssertCheckpointState(Class UZagalaSpecPDAssertCheckpointState)public UZagalaSpecPDAssertInventoryItem(Class UZagalaSpecPDAssertInventoryItem)public UZagalaSpecPDAssertServerHasAllPlayerControllers(Class UZagalaSpecPDAssertServerHasAllPlayerControllers)public UZagalaSpecPDCheckCounterValue(Class UZagalaSpecPDCheckCounterValue)public UZagalaSpecPDDespawnCheckpoint(Class UZagalaSpecPDDespawnCheckpoint)public UZagalaSpecPDDespawnHoverboard(Class UZagalaSpecPDDespawnHoverboard)public UZagalaSpecPDIncrementCounter(Class UZagalaSpecPDIncrementCounter)public UZagalaSpecPDLaunchTriggerSphere(Class UZagalaSpecPDLaunchTriggerSphere)public UZagalaSpecPDQueryHoverboardState(Class UZagalaSpecPDQueryHoverboardState)public UZagalaSpecPDReadCounterValue(Class UZagalaSpecPDReadCounterValue)public UZagalaSpecPDResetCounter(Class UZagalaSpecPDResetCounter)public UZagalaSpecPDResetTriggerSphere(Class UZagalaSpecPDResetTriggerSphere)public UZagalaSpecPDSetCheckpointOriginCoordinates(Class UZagalaSpecPDSetCheckpointOriginCoordinates)public UZagalaSpecPDSetTriggerSphereOriginCoordinates(Class UZagalaSpecPDSetTriggerSphereOriginCoordinates)public UZagalaSpecPDSpawnCheckpoint(Class UZagalaSpecPDSpawnCheckpoint)public UZagalaSpecPDSpawnHoverboard(Class UZagalaSpecPDSpawnHoverboard)public UZagalaSpecPDSpawnTriggerSphereNearCheckpoint(Class UZagalaSpecPDSpawnTriggerSphereNearCheckpoint)public UZagalaSpecPDTriggerSphereToCheckpointCoordinates(Class UZagalaSpecPDTriggerSphereToCheckpointCoordinates)public UZagalaSpecPDWaitForTicks(Class UZagalaSpecPDWaitForTicks)
Class Documentation#
-
class UZagalaSpecDefaultChainLink : public UObject, public IZagalaSpecChainLink, public IZagalaSpecBroadcaster, public IZagalaSpecSubscriber#
Concrete implementation of IZagalaSpecChainLink and IZagalaSpecBroadcaster.
Broadcaster methods are forwarded to an internal UZagalaSpecDefaultBroadcaster.
Subclass and override InternalExecute_Implementation() to implement the link’s work. The base InternalExecute_Implementation() auto-fails to enforce explicit override. Call Teardown() to prepare for reuse.
Subclassed by UZagalaSpecChainLinkOnChainLink, UZagalaSpecDSLStoreWaitTicks, UZagalaSpecDefaultExecutionChainer, UZagalaSpecDefaultExecutionStep, UZagalaSpecPDAddItem, UZagalaSpecPDApplyInputs, UZagalaSpecPDAssertAllClientsOneController, UZagalaSpecPDAssertCheckpointState, UZagalaSpecPDAssertInventoryItem, UZagalaSpecPDAssertServerHasAllPlayerControllers, UZagalaSpecPDCheckCounterValue, UZagalaSpecPDDespawnCheckpoint, UZagalaSpecPDDespawnHoverboard, UZagalaSpecPDIncrementCounter, UZagalaSpecPDLaunchTriggerSphere, UZagalaSpecPDQueryHoverboardState, UZagalaSpecPDReadCounterValue, UZagalaSpecPDResetCounter, UZagalaSpecPDResetTriggerSphere, UZagalaSpecPDSetCheckpointOriginCoordinates, UZagalaSpecPDSetTriggerSphereOriginCoordinates, UZagalaSpecPDSpawnCheckpoint, UZagalaSpecPDSpawnHoverboard, UZagalaSpecPDSpawnTriggerSphereNearCheckpoint, UZagalaSpecPDTriggerSphereToCheckpointCoordinates, UZagalaSpecPDWaitForTicks
IZagalaSpecChainLink
-
virtual void Execute(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher) override#
Executes this link’s work using the supplied context.
- Parameters:
AssignedCacher – The tagged data cacher this link will read from and write to.
-
virtual void Teardown() override#
Call to teardown to a clean state, removing any cached data or resetting internal state.
IZagalaSpecBroadcaster
-
virtual void BroadcastSuccess() override#
Fires a success event, notifying all registered subscribers.
-
virtual void BroadcastFailure(const FString &Reason) override#
Fires a failure event, notifying all registered subscribers with a reason.
- Parameters:
Reason – A human-readable description of why the operation failed.
-
virtual void AddSubscriber(UObject *Subscriber) override#
Registers a subscriber to receive future broadcast events.
The object must implement IZagalaSpecSubscriber; non-implementing objects are silently ignored.
- Parameters:
Subscriber – The UObject implementing IZagalaSpecSubscriber to register.
-
virtual void RemoveSubscriber(UObject *Subscriber) override#
Unregisters a previously added subscriber from all broadcast events.
- Parameters:
Subscriber – The UObject to remove from event notifications.
IZagalaSpecSubscriber
-
virtual void HandleSuccessReceived_Implementation() override#
Called when the broadcaster reports a successful outcome.
-
virtual void HandleFailureReceived_Implementation(const FString &Reason) override#
Called when the broadcaster reports a failure.
- Parameters:
Reason – A human-readable description of why the operation failed.
Public Functions
-
UZagalaSpecDefaultChainLink(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#
-
const UZagalaSpecExecutionState *GetExecutionState() const#
Returns the execution state of this link.
- Returns:
The execution state object owned by this link.
Protected Functions
-
void InternalExecute(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher)#
Called by Execute() to perform the link’s work.
Override InternalExecute_Implementation() in C++ subclasses, or implement the event in Blueprint. The base implementation auto-fails the chain link to enforce explicit override.
- Parameters:
AssignedCacher – The tagged data cache assigned to this link.
-
virtual void InternalExecute_Implementation(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher)#
Native implementation of InternalExecute(); broadcasts a failure unless overridden.
- Parameters:
AssignedCacher – The tagged data cache assigned to this link.
-
void InternalTeardown()#
Called by Teardown() to perform the link’s cleanup for reuse.
Override InternalTeardown_Implementation() in C++ subclasses, or implement the event in Blueprint. Base implementation does nothing.
-
virtual void InternalTeardown_Implementation()#
Native implementation of InternalTeardown(); does nothing by default.
Protected Attributes
-
TObjectPtr<UZagalaSpecDefaultBroadcaster> Broadcaster#
Internal broadcaster that receives forwarded broadcaster calls.
-
TObjectPtr<UZagalaSpecExecutionState> ExecutionState#
Tracks whether this link is inactive, executing, succeeded, or failed.
-
virtual void Execute(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher) override#