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

Function GetNodesInExecutionOrder_Recursive

Source/Flow/Public/FlowAsset.h:200–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 }
199
200protected:
201 template <class T>
202 void GetNodesInExecutionOrder_Recursive(UFlowNode* Node, TSet<TObjectKey<UFlowNode>>& IteratedNodes, TArray<T*>& OutNodes) const
203 {
204 IteratedNodes.Add(Node);
205
206 if (T* NodeOfRequiredType = Cast<T>(Node))
207 {
208 OutNodes.Emplace(NodeOfRequiredType);
209 }
210
211 for (UFlowNode* ConnectedNode : Node->GatherConnectedNodes())
212 {
213 if (ConnectedNode && !IteratedNodes.Contains(ConnectedNode))
214 {
215 GetNodesInExecutionOrder_Recursive(ConnectedNode, IteratedNodes, OutNodes);
216 }
217 }
218 }
219
220public:
221 UFlowNode_CustomInput* TryFindCustomInputNodeByEventName(const FName& EventName) const;

Callers 2

GetNodesInExecutionOrderFunction · 0.85

Calls 1

GatherConnectedNodesMethod · 0.80

Tested by

no test coverage detected