UDictSpaceBlueprintLibrary
Blueprint oriented helper functions for creating & inspecting Dict Space InstancedStructs.
This library provides utility functions for creating and manipulating Dictionary Space instances from within Blueprints. These return TInstancedStruct<FDictSpace>.
class UDictSpaceBlueprintLibrary : public UBlueprintFunctionLibraryMethods
MapToDictSpace
static TInstancedStruct<FDictSpace>MapToDictSpace(const TMap<FString, FInstancedStruct> &InSpaces)Converts a map to a dictionary space.
Parameters
InSpaces(const TMap<FString, FInstancedStruct>)
DictSpaceToMap
static TMap<FString, FInstancedStruct>DictSpaceToMap(const TInstancedStruct<FDictSpace> &InDictSpace)Converts a dictionary space to a map of sub-spaces.
Parameters
InDictSpace(const TInstancedStruct<FDictSpace>)
DictSpace_Add
static bool DictSpace_Add(TInstancedStruct<FDictSpace> &InOutDictSpace, const FString &InKey, const FInstancedStruct &InValue)Adds or updates a sub-space inside a dictionary space.
Parameters
-
InOutDictSpace(TInstancedStruct<FDictSpace>) -
InKey(const FString) -
InValue(const FInstancedStruct)
DictSpace_Find
static bool DictSpace_Find(const TInstancedStruct<FDictSpace> &InDictSpace, const FString &InKey, FInstancedStruct &OutValue)Finds a sub-space in a dictionary space by key.
Parameters
-
InDictSpace(const TInstancedStruct<FDictSpace>) -
InKey(const FString) -
OutValue(FInstancedStruct)
DictSpace_Contains
static bool DictSpace_Contains(const TInstancedStruct<FDictSpace> &InDictSpace, const FString &InKey)Checks if a dictionary space contains a specific key.
Parameters
-
InDictSpace(const TInstancedStruct<FDictSpace>) -
InKey(const FString)
DictSpace_Remove
static bool DictSpace_Remove(TInstancedStruct<FDictSpace> &InOutDictSpace, const FString &InKey)Removes a sub-space from a dictionary space by key.
Parameters
-
InOutDictSpace(TInstancedStruct<FDictSpace>) -
InKey(const FString)
DictSpace_Length
static int32 DictSpace_Length(const TInstancedStruct<FDictSpace> &InDictSpace)Gets the number of entries in a dictionary space.
Parameters
InDictSpace(const TInstancedStruct<FDictSpace>)
DictSpace_Clear
static void DictSpace_Clear(TInstancedStruct<FDictSpace> &InOutDictSpace)Removes all entries from a dictionary space.
Parameters
InOutDictSpace(TInstancedStruct<FDictSpace>)
DictSpace_Keys
static void DictSpace_Keys(const TInstancedStruct<FDictSpace> &InDictSpace, TArray<FString> &OutKeys)Gets all keys from a dictionary space.
Parameters
-
InDictSpace(const TInstancedStruct<FDictSpace>) -
OutKeys(TArray<FString>)
DictSpace_Values
static void DictSpace_Values(const TInstancedStruct<FDictSpace> &InDictSpace, TArray<FInstancedStruct> &OutValues)Gets all values from a dictionary space.
Parameters
-
InDictSpace(const TInstancedStruct<FDictSpace>) -
OutValues(TArray<FInstancedStruct>)
Source: Source/Schola/Public/Spaces/Blueprint/DictSpaceBlueprintLibrary.h