| 915 | } |
| 916 | |
| 917 | TArray<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 | |
| 943 | void UFlowNode::RecursiveFindNodesByClass(UFlowNode* Node, const TSubclassOf<UFlowNode> Class, uint8 Depth, TArray<UFlowNode*>& OutNodes) |
| 944 | { |
no test coverage detected