public static SupplyPriorityManager GetSupplyPriorityManagerForVessel(Vessel vessel) { if (vessel == null) { return(null); } if (!supply_priority_managers.TryGetValue(vessel, out var manager)) { Debug.Log("[KSPI]: Creating new supply priority manager for " + vessel.GetName()); manager = new SupplyPriorityManager(vessel); supply_priority_managers.Add(vessel, manager); } return(manager); }
private SupplyPriorityManager getSupplyPriorityManager(Vessel vessel) { return(SupplyPriorityManager.GetSupplyPriorityManagerForVessel(vessel)); }