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

Method NotifyActor

Source/Flow/Private/FlowComponent.cpp:409–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void 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
432void UFlowComponent::OnRep_NotifyTagsFromAnotherComponent()
433{

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.80

Tested by

no test coverage detected