Esempio n. 1
0
 public ISatellite this[Guid guid]
 {
     get
     {
         return(RTCore.Instance.Satellites[guid] ??
                ((guid == ActiveVesselGuid) ? RTCore.Instance.Satellites[FlightGlobals.ActiveVessel] : null) ??
                (GroundStations.ContainsKey(guid) ? GroundStations[guid] : null));
     }
 }
Esempio n. 2
0
        public ISatellite this[Guid guid]
        {
            get
            {
                Vessel activeVessel = (FlightGlobals.ActiveVessel == null && HighLogic.LoadedScene == GameScenes.TRACKSTATION
                    ? MapView.MapCamera.target.vessel : FlightGlobals.ActiveVessel);

                ISatellite vesselSatellite = RTCore.Instance.Satellites[guid];
                ISatellite activeSatellite = (guid == ActiveVesselGuid ? RTCore.Instance.Satellites[activeVessel] : null);
                ISatellite groundSatellite = (GroundStations.ContainsKey(guid) ? GroundStations[guid] : null);

                return(vesselSatellite ?? activeSatellite ?? groundSatellite);
            }
        }