Sein Tag Subsystem
Class · USeinTagSubsystem : UWorldSubsystem
#include "Tags/SeinTagSubsystem.h"
Entity tags: designer-authored base tags plus refcounted grants, and an index from each tag to the entities that carry it. Units, players and the match share it. The tags live in the world state; this service is the logic over them.
C++ members (13)
bool HasTag(FSeinEntityHandle Handle, FGameplayTag Tag) const;bool HasAnyTag(FSeinEntityHandle Handle, const FGameplayTagContainer& Tags) const;bool HasAllTags(FSeinEntityHandle Handle, const FGameplayTagContainer& Tags) const;const FGameplayTagContainer& GetEntityTags(FSeinEntityHandle Handle) const;The entity’s present tags (refcount > 0); empty when it has no tag state.const FGameplayTagContainer& GetEntityBaseTags(FSeinEntityHandle Handle) const;The entity’s designer-authored base tags.bool GrantTag(FSeinEntityHandle Handle, FGameplayTag Tag);Acquire one tag reference. False without mutation when the tag is invalid or saturated; callers that release later must keep this result.bool CanGrantTag(FSeinEntityHandle Handle, FGameplayTag Tag) const;Whether one more reference can be acquired.void UngrantTag(FSeinEntityHandle Handle, FGameplayTag Tag);Release one tag reference; no-op for tags never granted.bool AddBaseTag(FSeinEntityHandle Handle, FGameplayTag Tag);Add to base tags and grant. True when base tags changed.bool RemoveBaseTag(FSeinEntityHandle Handle, FGameplayTag Tag);Remove from base tags and ungrant. True when base tags changed.void ReplaceBaseTags(FSeinEntityHandle Handle, const FGameplayTagContainer& NewBaseTags);Replace base tags, granting and ungranting only the difference.TArray<FSeinEntityHandle> GetEntitiesWithTag(FGameplayTag Tag) const;Entities carrying this exact tag (children not included).const TArray<FSeinEntityHandle>* FindEntitiesWithTag(FGameplayTag Tag) const;The index bucket for a tag, or null. C++ only.