Class UZagalaSpecDefaultExecutionStep#

Inheritance Relationships#

Base Types#

Derived Types#

Class Documentation#

class UZagalaSpecDefaultExecutionStep : public UZagalaSpecDefaultChainLink, public IZagalaSpecExecutionStep#

Concrete base for all execution steps.

Extends UZagalaSpecDefaultChainLink (providing Execute, Teardown, BroadcastSuccess, BroadcastFailure) and implements IZagalaSpecExecutionStep (providing Setup).

Setup_Implementation() stores the supplied StepData into PendingStepData. Subclasses override Setup_Implementation() — and call Super — to extract capture-group values from PendingStepData.CaptureGroupCustomizer after their text-matching step.

InternalExecute_Implementation() is inherited from UZagalaSpecDefaultChainLink and auto-fails; subclasses override it to perform their async DSL work.

Subclassed by UZagalaSpecCEEmptyInventory, UZagalaSpecCEEnsureTestWorld, UZagalaSpecCEFocusItem, UZagalaSpecCEFreshCounter, UZagalaSpecCELoadDefaultStock, UZagalaSpecCESetTickLimit, UZagalaSpecChainLinkOnStep, UZagalaSpecContextExtensionExamplesIterator, UZagalaSpecStepLastOpFailed

IZagalaSpecExecutionStep

virtual void Setup_Implementation(FZagalaSpecExecutionStepData StepData) override#

Sets up this execution step before it is executed.

Parameters:

StepData – The execution data (e.g. capture group customizer) used to configure this step.

Public Functions

UZagalaSpecDefaultExecutionStep(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#
const FZagalaSpecExecutionStepData &GetPendingStepData() const#

Returns the step data stored by the last Setup() call.

Returns:

The pending step data.

Protected Functions

virtual void InternalExecute_Implementation(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher) override#

Native implementation of InternalExecute(); broadcasts a failure unless overridden.

Parameters:

AssignedCacher – The tagged data cache assigned to this link.

void AddLocalSetupDataToCache(const TScriptInterface<IZagalaSpecTaggedDataCacher> &Cacher)#

Writes UZagalaSpecTaggedDataLocalSetupData into Cacher when a CaptureGroupCustomizer is present.

No-op when either is null.

Parameters:

Cacher – Destination cache for the local setup data.

Protected Attributes

FZagalaSpecExecutionStepData PendingStepData#

Step data stored by Setup() and used during execution.

AddLocalSetupDataToCache uses it to write local setup data into the provided cacher.