MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / AddIdentityTag

Method AddIdentityTag

Source/Flow/Private/FlowComponent.cpp:111–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void UFlowComponent::AddIdentityTag(const FGameplayTag Tag, const EFlowNetMode NetMode /* = EFlowNetMode::Authority*/)
112{
113 if (IsFlowNetMode(NetMode) && Tag.IsValid() && !IdentityTags.HasTagExact(Tag))
114 {
115 IdentityTags.AddTag(Tag);
116#if WITH_PUSH_MODEL
117 if (GetNetMode() < NM_Client)
118 {
119 MARK_PROPERTY_DIRTY_FROM_NAME(UFlowComponent, IdentityTags, this);
120 }
121#endif
122 if (HasBegunPlay())
123 {
124 OnIdentityTagsAdded.Broadcast(this, FGameplayTagContainer(Tag));
125
126 if (UFlowSubsystem* FlowSubsystem = GetFlowSubsystem())
127 {
128 FlowSubsystem->OnIdentityTagAdded(this, Tag);
129 }
130 }
131 }
132}
133
134void UFlowComponent::AddIdentityTags(FGameplayTagContainer Tags, const EFlowNetMode NetMode /* = EFlowNetMode::Authority*/)
135{

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.80
OnIdentityTagAddedMethod · 0.80

Tested by

no test coverage detected