/// <summary> /// Here when our master's target angle gets modified. /// </summary> /// <param name="host"></param> private static void OnMasterTargetAngleModified(ModuleRoboticSlave host) { host.AdjustSlavedTargetAngle(); }
/// <summary> /// Here when a PAW is popped up in the editor. /// </summary> /// <param name="paw"></param> /// <param name="part"></param> private void OnPartActionUIShown(UIPartActionWindow paw, Part part) { ModuleRoboticSlave.OnPartActionUIShown(paw, part); }
/// <summary> /// Here when the is-motorized or is-motor-engaged status of our servo changes. /// </summary> /// <param name="obj"></param> private static void OnServoMotorizationChanged(ModuleRoboticSlave host) { Logging.Log("Motorization changed for " + ToString(host.part)); PropagateMaster(host.part, host.Master); }
/// <summary> /// Here when a vessel in flight is loaded. /// </summary> /// <param name="data"></param> private void OnVesselLoaded(Vessel vessel) { Logging.Log("Loaded vessel (" + vessel.parts.Count + " parts): " + vessel.vesselName); ModuleRoboticSlave.RefreshFromRoot(vessel.parts[0]); }