| 491 | } |
| 492 | |
| 493 | void UFlowSubsystem::OnIdentityTagAdded(UFlowComponent* Component, const FGameplayTag& AddedTag) |
| 494 | { |
| 495 | FlowComponentRegistry.Emplace(AddedTag, Component); |
| 496 | |
| 497 | // broadcast OnComponentRegistered only if this component wasn't present in the registry previously |
| 498 | if (Component->IdentityTags.Num() > 1) |
| 499 | { |
| 500 | OnComponentTagAdded.Broadcast(Component, FGameplayTagContainer(AddedTag)); |
| 501 | } |
| 502 | else |
| 503 | { |
| 504 | OnComponentRegistered.Broadcast(Component); |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | void UFlowSubsystem::OnIdentityTagsAdded(UFlowComponent* Component, const FGameplayTagContainer& AddedTags) |
| 509 | { |