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

Method OnIdentityTagAdded

Source/Flow/Private/FlowSubsystem.cpp:493–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void 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
508void UFlowSubsystem::OnIdentityTagsAdded(UFlowComponent* Component, const FGameplayTagContainer& AddedTags)
509{

Callers 1

AddIdentityTagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected