Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
This is the struct that does the actual translation. It lives on the GameplayCueManager and encapsulates all translation logic.
| Name | FGameplayCueTranslationManager |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayCueTranslator.h |
| Include Path | #include "GameplayCueTranslator.h" |
Syntax
USTRUCT ()
struct FGameplayCueTranslationManager
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllNameSwaps | TArray< FNameSwapData > | All name swpa rules we have gathered | GameplayCueTranslator.h | |
| TagManager | TObjectPtr< UGameplayTagsManager > | Cached reference to tag manager | GameplayCueTranslator.h | |
| TotalNumTheoreticalTranslations | int32 | GameplayCueTranslator.h | ||
| TotalNumTranslations | int32 | Only used in debug printing/stats. | GameplayCueTranslator.h | |
| TranslationLUT | TArray< FGameplayCueTranslatorNode > | The Look Up Table | GameplayCueTranslator.h | |
| TranslationNameToIndexMap | TMap< FName, FGameplayCueTranslatorNodeIndex > | Acceleration map from gameplay tag name to index into TranslationLUT | GameplayCueTranslator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildTagTranslationTable () |
Builds all our translation tables. | GameplayCueTranslator.h | |
void BuildTagTranslationTable_Forward () |
Builds all possible translation tables. | GameplayCueTranslator.h | |
| GameplayCueTranslator.h | |||
| GameplayCueTranslator.h | |||
const TArray< FNameSwapData > & GetNameSwapData() |
GameplayCueTranslator.h | ||
bool GetTranslatedTags
(
const FName& ParentTag, |
Used by the GC editor to enumerate possible translation tags. Never called at runtime. | GameplayCueTranslator.h | |
void PrintTranslationTable() |
GameplayCueTranslator.h | ||
void PrintTranslationTable_r
(
FGameplayCueTranslatorNode& Node, |
GameplayCueTranslator.h | ||
void RefreshNameSwaps() |
Refresh our name swap rules. Called internally by the manager and externally by GC tool | GameplayCueTranslator.h | |
| Searches, slowly, to see if the passed in tag can be translated from something else. | GameplayCueTranslator.h | ||
void TranslateTag
(
FGameplayTag& Tag, |
This is the runtime function that translates the tag (if necessary) | GameplayCueTranslator.h |