Пример #1
0
 public TransponderInfo(ST_Transponder ponder)
 {
     transponder = ponder;
     name        = ponder.vessel.vesselName;
     altitude    = ponder.vessel.altitude;
     velocity    = 0;                // updated later
 }
 public static void ShowGUI(ST_Transponder xpond)
 {
     xpondInstance = xpond;
     newName = xpond.transponderName;
     if (windowInstance != null) {
         windowInstance.enabled = true;
     }
 }
Пример #3
0
 public static void ShowGUI(ST_Transponder xpond)
 {
     xpondInstance = xpond;
     newName       = xpond.transponderName;
     if (windowInstance != null)
     {
         windowInstance.enabled = true;
     }
 }
Пример #4
0
 public void AddTransponder(ST_Transponder ponder)
 {
     uint id = ponder.part.flightID;
     //Debug.Log (String.Format ("[ST Tracker] AddTransponder: {0}", id));
     if (transponders.ContainsKey (id)) {
         // may have temporarlily lost contact
         transponders[id].transponder = ponder;
         return;
     }
     transponders[id] = new TransponderInfo (ponder);
 }
Пример #5
0
        public void AddTransponder(ST_Transponder ponder)
        {
            uint id = ponder.part.flightID;

            //Debug.Log (String.Format ("[ST Tracker] AddTransponder: {0}", id));
            if (transponders.ContainsKey(id))
            {
                // may have temporarlily lost contact
                transponders[id].transponder = ponder;
                return;
            }
            transponders[id] = new TransponderInfo(ponder);
        }
Пример #6
0
        public void RemoveTransponder(ST_Transponder ponder)
        {
            uint id = ponder.part.flightID;

            Debug.Log(String.Format("[ST Tracker] RemoveTransponder: {0}", id));
            if (!transponders.ContainsKey(id))
            {
                return;
            }
            double UT = Planetarium.GetUniversalTime();

            Debug.Log(String.Format("[ST Tracker] RemoveTransponder: {0} {1}", transponders[id].transponder, UT));
            if (transponders[id].transponder != null)
            {
                transponders[id].transponder = null;
                transponders[id].lostContact = UT;
            }
        }
Пример #7
0
 public void RemoveTransponder(ST_Transponder ponder)
 {
     uint id = ponder.part.flightID;
     Debug.Log (String.Format ("[ST Tracker] RemoveTransponder: {0}", id));
     if (!transponders.ContainsKey (id)) {
         return;
     }
     double UT = Planetarium.GetUniversalTime ();
     Debug.Log (String.Format ("[ST Tracker] RemoveTransponder: {0} {1}", transponders[id].transponder, UT));
     if (transponders[id].transponder != null) {
         transponders[id].transponder = null;
         transponders[id].lostContact = UT;
     }
 }
Пример #8
0
 public TransponderInfo(ST_Transponder ponder)
 {
     transponder = ponder;
     name = ponder.vessel.vesselName;
     altitude = ponder.vessel.altitude;
     velocity = 0;	// updated later
 }