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

Method NotifyFromGraph

Source/Flow/Private/FlowComponent.cpp:370–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void UFlowComponent::NotifyFromGraph(const FGameplayTagContainer& NotifyTags, const EFlowNetMode NetMode /* = EFlowNetMode::Authority*/)
371{
372 if (IsFlowNetMode(NetMode) && NotifyTags.IsValid() && HasBegunPlay())
373 {
374 FGameplayTagContainer ValidatedTags;
375 for (const FGameplayTag& Tag : NotifyTags)
376 {
377 if (Tag.IsValid())
378 {
379 ValidatedTags.AddTag(Tag);
380 }
381 }
382
383 if (ValidatedTags.Num() > 0)
384 {
385 for (const FGameplayTag& ValidatedTag : ValidatedTags)
386 {
387 ReceiveNotify.Broadcast(nullptr, ValidatedTag);
388 }
389
390 if (IsNetMode(NM_DedicatedServer) || IsNetMode(NM_ListenServer))
391 {
392 NotifyTagsFromGraph = ValidatedTags;
393#if WITH_PUSH_MODEL
394 MARK_PROPERTY_DIRTY_FROM_NAME(UFlowComponent, NotifyTagsFromGraph, this);
395#endif
396 }
397 }
398 }
399}
400
401void UFlowComponent::OnRep_NotifyTagsFromGraph()
402{

Callers 1

ExecuteInputMethod · 0.80

Calls 1

IsValidMethod · 0.80

Tested by

no test coverage detected