| 368 | } |
| 369 | |
| 370 | void 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 | |
| 401 | void UFlowComponent::OnRep_NotifyTagsFromGraph() |
| 402 | { |