| 142 | } |
| 143 | |
| 144 | void UFlowSubsystem::FinishAllRootFlows(UObject* Owner, const EFlowFinishPolicy FinishPolicy) |
| 145 | { |
| 146 | TArray<UFlowAsset*> InstancesToFinish; |
| 147 | |
| 148 | for (TPair<TObjectPtr<UFlowAsset>, TWeakObjectPtr<UObject>>& RootInstance : RootInstances) |
| 149 | { |
| 150 | if (Owner && Owner == RootInstance.Value.Get() && RootInstance.Key) |
| 151 | { |
| 152 | InstancesToFinish.Emplace(RootInstance.Key); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | for (UFlowAsset* InstanceToFinish : InstancesToFinish) |
| 157 | { |
| 158 | RootInstances.Remove(InstanceToFinish); |
| 159 | InstanceToFinish->FinishFlow(FinishPolicy); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | UFlowAsset* UFlowSubsystem::CreateSubFlow(UFlowNode_SubGraph* SubGraphNode, const FString& SavedInstanceName, const bool bPreloading /* = false */) |
| 164 | { |
no test coverage detected