| 29 | #include "PatchCableSource.h" |
| 30 | |
| 31 | void IPulseSource::DispatchPulse(PatchCableSource* destination, double time, float velocity, int flags) |
| 32 | { |
| 33 | if (time == destination->GetLastOnEventTime()) //avoid stack overflow |
| 34 | return; |
| 35 | |
| 36 | const std::vector<IPulseReceiver*>& receivers = destination->GetPulseReceivers(); |
| 37 | destination->AddHistoryEvent(time, true, flags); |
| 38 | destination->AddHistoryEvent(time + 15, false); |
| 39 | for (auto* receiver : receivers) |
| 40 | receiver->OnPulse(time, velocity, flags); |
| 41 | } |
nothing calls this directly
no test coverage detected