Class UZagalaSpecTaggedData#

Inheritance Relationships#

Base Type#

  • public UObject

Derived Types#

Class Documentation#

class UZagalaSpecTaggedData : public UObject#

Base class for tagged data objects stored in a data cache.

Subclass this to define typed data that can be set, retrieved, or removed via UZagalaSpecTaggedDataHandler using the AssignedDataTag as the cache key.

Subclassed by UZagalaSpecDataCheckpointRef, UZagalaSpecDataCounterOpResult, UZagalaSpecDataCounterRef, UZagalaSpecDataFloat, UZagalaSpecDataHoverboardRef, UZagalaSpecDataHoverboardSnapshot, UZagalaSpecDataInteger, UZagalaSpecDataInventoryRef, UZagalaSpecDataItemName, UZagalaSpecDataPlaySessionSettings, UZagalaSpecDataPlaySessionWorld, UZagalaSpecDataString, UZagalaSpecDataTriggerSphereLaunchMagnitude, UZagalaSpecDataTriggerSphereRef, UZagalaSpecDataVector, UZagalaSpecTaggedDataLocalSetupData

Public Functions

virtual void PostInitProperties() override#

It is not guaranteed that Gameplay Tags Manager will have its tags loaded when calling it from object constructors (including CDO).

So, the LoadTag is assigned here to the DataTag if DataTag is invalid (covers the case of TaggedData created from blueprints).

const FGameplayTag &GetAssignedDataTag() const#

Returns the tag currently assigned to this data object.

Returns:

The data tag used as the cache key.

void SetDataTag(FGameplayTag NewTag)#

Sets the tag used as this data object’s cache key.

Parameters:

NewTag – The new data tag.

void ResetDataTag()#

Resets DataTag to the tag retrieved by GetLoadTag().

virtual EDataValidationResult IsDataValid(class FDataValidationContext &Context) const override#

Fails when DataTag is not valid.

Protected Functions

virtual FGameplayTag GetLoadTag() const#

Method used in derived classes to set the gameplay tag that instances will keep as the class default Data tag.

Returns:

The default data tag; the base implementation returns an empty tag.

Protected Attributes

FGameplayTag DataTag#

Gameplay tag used as key for storing and retrieving this data object in a data cache.

Friends

inline friend bool operator==(UZagalaSpecTaggedData const &lhs, UZagalaSpecTaggedData const &rhs)#

Compares the data tags of two tagged data objects for equality.