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

Method GetKnownConnectionsToPin

Source/Flow/Private/Nodes/FlowNode.cpp:917–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915}
916
917TArray<FConnectedPin> UFlowNode::GetKnownConnectionsToPin(const FConnectedPin& Pin) const
918{
919 TArray<FConnectedPin> ConnectedPins;
920
921 if (Pin.NodeGuid == NodeGuid)
922 {
923 const FConnectedPin& Connection = Connections.FindRef(Pin.PinName);
924 if (Connection.NodeGuid.IsValid())
925 {
926 ConnectedPins.Add(Connection);
927 }
928 }
929 else
930 {
931 for (const TPair<FName, FConnectedPin>& Connection : Connections)
932 {
933 if (Connection.Value.NodeGuid == Pin.NodeGuid && Connection.Value.PinName == Pin.PinName)
934 {
935 ConnectedPins.Emplace(NodeGuid, Connection.Key);
936 }
937 }
938 }
939
940 return ConnectedPins;
941}
942
943void UFlowNode::RecursiveFindNodesByClass(UFlowNode* Node, const TSubclassOf<UFlowNode> Class, uint8 Depth, TArray<UFlowNode*>& OutNodes)
944{

Callers 1

Calls 1

IsValidMethod · 0.80

Tested by

no test coverage detected