Class UZagalaSpecStepAssertInventoryCountFromCache#

Inheritance Relationships#

Base Type#

Class Documentation#

class UZagalaSpecStepAssertInventoryCountFromCache : public UZagalaSpecChainLinkOnStep#

Execution step that asserts the stock count of the globally focused item.

Runs UZagalaSpecDSLAssertInventoryItem after storing its capture groups in the cache.

Cache contract (AssignedCacher, forwarded from the owning step): Reads: UZagalaSpecDataInventoryRef — required UZagalaSpecDataItemName — required (set by FocusItem) Writes: UZagalaSpecDataInteger — expected quantity from capture group 0

Pattern: ^(?:Then |And )the inventory has (\d+) of that item$ Registered by UZagalaSpecExamplesStepEntryAssertInventoryCountFromCache.

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.