Class UZagalaSpecTaggedDataCache#
Defined in File ZagalaSpecTaggedDataCache.h
Inheritance Relationships#
Base Types#
public UObjectpublic IZagalaSpecTaggedDataCacher(Class IZagalaSpecTaggedDataCacher)
Class Documentation#
-
class UZagalaSpecTaggedDataCache : public UObject, public IZagalaSpecTaggedDataCacher#
Standalone tagged data cache.
Owns a TMap<FGameplayTag, TObjectPtr<UZagalaSpecTaggedData>> and implements IZagalaSpecTaggedDataCacher, making it compatible with UZagalaSpecTaggedDataHandler helpers.
Use CopyFrom() to bulk-copy all entries from any other IZagalaSpecTaggedDataCacher into this cache. On tag collision the incoming value overwrites the existing one.
IZagalaSpecTaggedDataCacher
-
virtual const TMap<FGameplayTag, TObjectPtr<UZagalaSpecTaggedData>> &GetTaggedDataCache() const override#
Returns a const reference to the tagged data cache owned by this object.
- Returns:
A const reference to the tag-to-data cache map.
-
virtual TMap<FGameplayTag, TObjectPtr<UZagalaSpecTaggedData>> &GetTaggedDataCache() override#
Returns a non-const reference to the tagged data cache owned by this object.
- Returns:
A mutable reference to the tag-to-data cache map.
Public Functions
-
UZagalaSpecTaggedDataCache(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#
-
virtual const TMap<FGameplayTag, TObjectPtr<UZagalaSpecTaggedData>> &GetTaggedDataCache() const override#