예제 #1
0
 /// <summary>
 /// Here when our master's target angle gets modified.
 /// </summary>
 /// <param name="host"></param>
 private static void OnMasterTargetAngleModified(ModuleRoboticSlave host)
 {
     host.AdjustSlavedTargetAngle();
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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]);
 }