void load_manager_for_vessel(Vessel v) { if (v == null) { return; } if (!autopilot_module_lists.ContainsKey(v)) { Log.info("new vessel, creating new module map for {0}", v.vesselName); autopilot_module_lists[v] = new Dictionary <Type, AutopilotModule>(); } if (!autopilot_module_lists[v].ContainsKey(typeof(TopModuleManager))) { autopilot_module_lists[v][typeof(TopModuleManager)] = new TopModuleManager(v); } autopilot_module_lists[v][typeof(TopModuleManager)].Deserialize(); hotkeyManager.Deserialize(); }
public CraftSettingsWindow(TopModuleManager manager) : base("Craft settings", 29414122, new Rect(50.0f, 80.0f, 200.0f, 50.0f)) { owner = manager; }