Class UZagalaSpecCEFocusItem#
Defined in File ZagalaSpecCEFocusItem.h
Inheritance Relationships#
Base Type#
public UZagalaSpecDefaultExecutionStep(Class UZagalaSpecDefaultExecutionStep)
Class Documentation#
-
class UZagalaSpecCEFocusItem : public UZagalaSpecDefaultExecutionStep#
Context extension step that captures an item name from the step text and stores it as UZagalaSpecDataItemName in the scenario context cache.
This demonstrates the GLOBAL CAPTURE pattern:
The item name is stored in the scenario-level cache by this context extension.
Subsequent execution steps (e.g. UZagalaSpecStepAddItemByAmount, UZagalaSpecStepAssertInventoryCountFromCache) read it from the context cache without re-capturing it in their own regex patterns.
No DSL chain link or protocol driver chain link is needed — the step reads capture group 0 in Setup() and broadcasts success directly after caching the name.
Pattern:
^(?:Given |And )?I focus on item "([^"]+)"$Registered by UZagalaSpecExamplesStepEntryFocusItem.Public Functions
-
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.
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.