| 109 | } |
| 110 | |
| 111 | void 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 | |
| 134 | void UFlowComponent::AddIdentityTags(FGameplayTagContainer Tags, const EFlowNetMode NetMode /* = EFlowNetMode::Authority*/) |
| 135 | { |
nothing calls this directly
no test coverage detected