Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectTypes.h |
| Include | #include "GameplayEffectTypes.h" |
Syntax
struct FGameplayTagCountContainer
Remarks
Struct that tracks the number/count of tag applications within it. Explicitly tracks the tags added or removed, while simultaneously tracking the count of parent tags as well. Events/delegates are fired whenever the tag counts of any tag (explicit or parent) are modified.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Fills in ParentTags from GameplayTags | ||
| const FGameplayTagContainer & | Simple accessor to the explicit gameplay tag list | ||
| int32 | GetExplicitTagCount
(
const FGameplayTag& Tag |
Return how many times the exact specified tag has been added to the container (ignores the tag hierarchy) e.g. if A.B & A.C were added, GetExplicitTagCount("A") would return 0, and GetExplicitTagCount("A.B") would return 1. | |
| int32 | GetTagCount
(
const FGameplayTag& Tag |
Return the hierarchical count for a specified tag e.g. if A.B & A.C were added, GetTagCount("A") would return 2. | |
| bool | HasAllMatchingGameplayTags
(
const FGameplayTagContainer& TagContainer |
Check if the count container has gameplay tags that matches against all of the specified tags (expands to include parents of asset tags) | |
| bool | HasAnyMatchingGameplayTags
(
const FGameplayTagContainer& TagContainer |
Check if the count container has gameplay tags that matches against any of the specified tags (expands to include parents of asset tags) | |
| bool | HasMatchingGameplayTag
(
FGameplayTag TagToCheck |
Check if the count container has a gameplay tag that matches against the specified tag (expands to include parents of asset tags) | |
| void | Notify_StackCountChange
(
const FGameplayTag& Tag |
Broadcasts the AnyChange event for this tag. | |
| FOnGameplayEffectTagCountChanged & | RegisterGameplayTagEvent
(
const FGameplayTag& Tag, |
Return delegate that can be bound to for when the specific tag's count changes to or off of zero | |
| FOnGameplayEffectTagCountChanged & | Return delegate that can be bound to for when the any tag's count changes to or off of zero | ||
| void | Reset
(
bool bResetCallbacks |
Removes all of the tags. Does not notify any delegates. | |
| bool | SetTagCount
(
const FGameplayTag& Tag, |
Set the specified tag count to a specific value | |
| void | UpdateTagCount
(
const FGameplayTagContainer& Container, |
Update the specified container of tags by the specified delta, potentially causing an additional or removal from the explicit tag list | |
| bool | UpdateTagCount
(
const FGameplayTag& Tag, |
Update the specified tag by the specified delta, potentially causing an additional or removal from the explicit tag list | |
| bool | UpdateTagCount_DeferredParentRemoval
(
const FGameplayTag& Tag, |
Update the specified tag by the specified delta, potentially causing an additional or removal from the explicit tag list. |