| 1107 | } |
| 1108 | |
| 1109 | void UFlowAsset::TriggerCustomInput(const FName& EventName, IFlowDataPinValueSupplierInterface* DataPinValueSupplier) |
| 1110 | { |
| 1111 | for (UFlowNode_CustomInput* CustomInputNode : CustomInputNodes) |
| 1112 | { |
| 1113 | if (CustomInputNode->EventName == EventName) |
| 1114 | { |
| 1115 | RecordedNodes.Add(CustomInputNode); |
| 1116 | |
| 1117 | // NOTE (gtaylor) Custom Input nodes cannot currently add data pins (like Start or DefineProperties nodes can) |
| 1118 | // but we may want to allow them to source parameters, so I am providing the subgraph node as the |
| 1119 | // IFlowDataPinValueSupplierInterface when triggering the node (even though it's not used at this time). |
| 1120 | |
| 1121 | if (IFlowNodeWithExternalDataPinSupplierInterface* ExternalPinSuppliedNode = Cast<IFlowNodeWithExternalDataPinSupplierInterface>(CustomInputNode)) |
| 1122 | { |
| 1123 | ExternalPinSuppliedNode->SetDataPinValueSupplier(DataPinValueSupplier); |
| 1124 | } |
| 1125 | |
| 1126 | CustomInputNode->ExecuteInput(EventName); |
| 1127 | } |
| 1128 | } |
| 1129 | } |
| 1130 | |
| 1131 | void UFlowAsset::TriggerCustomOutput(const FName& EventName) |
| 1132 | { |
no test coverage detected