/// <summary> /// Saves all the sub-vessel information - breaking up the vessels into the smallest /// pieces possible. /// </summary> /// <param name="vessel">The vessel to break up</param> /// <param name="strength">The strength of the parameter</param> /// <param name="completionTime">The completion time</param> private void SaveSubVesselInfo(Vessel vessel, ParamStrength strength, double completionTime) { foreach (uint hash in vessel.GetHashes()) { if (!dockedVesselInfo.ContainsKey(hash) || dockedVesselInfo[hash].Key < strength) { dockedVesselInfo[hash] = new KeyValuePair <ParamStrength, double>(strength, completionTime); } } }
/// <summary> /// Saves all the sub-vessel information - breaking up the vessels into the smallest /// pieces possible. /// </summary> /// <param name="vessel">The vessel to break up</param> /// <param name="strength">The strength of the parameter</param> /// <param name="completionTime">The completion time</param> private void SaveSubVesselInfo(Vessel vessel, ParamStrength strength, double completionTime) { foreach (uint hash in vessel.GetHashes()) { if (!dockedVesselInfo.ContainsKey(hash) || dockedVesselInfo[hash].Key < strength) { dockedVesselInfo[hash] = new KeyValuePair<ParamStrength, double>(strength, completionTime); } } }