Example #1
0
 public static void ClearSystemVessels(string oldSeed, string newSeed, Guid doNotFlush)
 {
     Debugger.Log("Flushing vessel cache for seed " + oldSeed + ".");
     // Remove all old vessels
     VesselManager.FlushVesselCache(oldSeed, doNotFlush);
     // Warp any ignored vessels to the new system
     if (doNotFlush != Guid.Empty)
     {
         PersistentVessel currentVessel = VesselManager.GetPersistentVessel(doNotFlush);
         if (currentVessel != null)
         {
             Debugger.Log("Warping " + currentVessel.name + " to seed " + newSeed);
             currentVessel.Warp(newSeed);
         }
     }
     ForceTrackingStationUpdate();
 }