public static SupplyPriorityManager GetSupplyPriorityManagerForVessel(Vessel vessel) { SupplyPriorityManager manager; if (!supply_priority_managers.TryGetValue(vessel, out manager)) { manager = new SupplyPriorityManager(vessel); supply_priority_managers.Add(vessel, manager); } return(manager); }
protected virtual SupplyPriorityManager getSupplyPriorityManager(Vessel vessel) { return(SupplyPriorityManager.GetSupplyPriorityManagerForVessel(vessel)); }