private void OnScienceData(float amount, ScienceSubject subject, ProtoVessel vessel, bool notsure) { Utilities.Log_Debug("Received Science Data from " + vessel != null ? vessel.vesselName : "Unknown Vessel" + " subject=" + subject.id + " amount=" + amount.ToString("000.00") + " bool=" + notsure); bool match = true; foreach (string f in matchFields) { Utilities.Log_Debug("matchFields=" + f); match &= subject.HasPartialIDstring(f); } Utilities.Log_Debug("Match result?=" + match); if (match) { SetComplete(); } }
private void OnScienceData(float amount, ScienceSubject subject, ProtoVessel vessel, bool notsure) { Utilities.Log_Debug("Received Science Data from " + vessel.vesselName + " subject=" + subject.id + " amount=" + amount.ToString("000.00") + " bool=" + notsure); bool match=true; foreach (string f in matchFields) { Utilities.Log_Debug("matchFields=" + f); match &= subject.HasPartialIDstring(f); } Utilities.Log_Debug("Match result?=" + match); if (match) { SetComplete(); } }