// transfer data between two vessels public static void transfer(Vessel src, Vessel dst) { // get drives Drive a = DB.Vessel(src).drive; Drive b = DB.Vessel(dst).drive; // get size of data being transfered double amount = a.size(); // if there is data if (amount > double.Epsilon) { // transfer the data a.move(b); // inform the user Message.Post ( Lib.BuildString(Lib.HumanReadableDataSize(amount), " of data transfered"), Lib.BuildString("from <b>", src.vesselName, "</b> to <b>", dst.vesselName, "</b>") ); } }
// transfer data between two vessels public static void transfer(Vessel src, Vessel dst) { // get drives Drive a = DB.Vessel(src).drive; Drive b = DB.Vessel(dst).drive; // get size of data being transfered double amount = a.size(); // if there is data if (amount > double.Epsilon) { // transfer the data a.move(b); // inform the user Message.Post ( Lib.BuildString(Lib.HumanReadableDataSize(amount), " ", Localizer.Format("#KERBALISM_Science_ofdatatransfer")), Lib.BuildString(Localizer.Format("#KERBALISM_Generic_FROM"), " <b>", src.vesselName, "</b> ", Localizer.Format("#KERBALISM_Generic_TO"), " <b>", dst.vesselName, "</b>") ); } }