| 407 | } |
| 408 | |
| 409 | void UFlowComponent::NotifyActor(const FGameplayTag ActorTag, const FGameplayTag NotifyTag, const EFlowNetMode NetMode /* = EFlowNetMode::Authority*/) |
| 410 | { |
| 411 | if (IsFlowNetMode(NetMode) && NotifyTag.IsValid() && HasBegunPlay()) |
| 412 | { |
| 413 | if (const UFlowSubsystem* FlowSubsystem = GetFlowSubsystem()) |
| 414 | { |
| 415 | for (const TWeakObjectPtr<UFlowComponent>& Component : FlowSubsystem->GetComponents<UFlowComponent>(ActorTag)) |
| 416 | { |
| 417 | Component->ReceiveNotify.Broadcast(this, NotifyTag); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | if (IsNetMode(NM_DedicatedServer) || IsNetMode(NM_ListenServer)) |
| 422 | { |
| 423 | NotifyTagsFromAnotherComponent.Empty(); |
| 424 | NotifyTagsFromAnotherComponent.Add(FNotifyTagReplication(ActorTag, NotifyTag)); |
| 425 | #if WITH_PUSH_MODEL |
| 426 | MARK_PROPERTY_DIRTY_FROM_NAME(UFlowComponent, NotifyTagsFromAnotherComponent, this); |
| 427 | #endif |
| 428 | } |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | void UFlowComponent::OnRep_NotifyTagsFromAnotherComponent() |
| 433 | { |
nothing calls this directly
no test coverage detected