Esempio n. 1
0
        private void GetShipList()
        {
            externListShipEditor = AHShipList.GetShipList(true, false);
            if (HighLogic.CurrentGame.Mode != Game.Modes.MISSION_BUILDER)
            {
                externListShipFlight = AHShipList.GetShipList(false, true);
            }
            else
            {
                externListShipFlight = new Dictionary <string, Dictionary <string, string> > ();
            }

            GetGUIShipList();
        }
Esempio n. 2
0
        private IEnumerator ParseVesselsConnection()
        {
            Dictionary <string, Dictionary <string, string> > ahShipList = AHShipList.GetShipList(false, true);
            List <Vessel> vesselList = FlightGlobals.Vessels.FindAll(v => ahShipList.ContainsKey(v.id.ToString()));

            //			WaitForSeconds timer = new WaitForSeconds (.2f);

            yield return(new WaitForSeconds(.6f));

            MapObject originalTarget   = PlanetariumCamera.fetch.target;
            float     originalDistance = PlanetariumCamera.fetch.Distance;

            foreach (Vessel v in vesselList)
            {
                PlanetariumCamera.fetch.SetTarget(v.mapObject);
            }
            PlanetariumCamera.fetch.SetTarget(originalTarget);
            PlanetariumCamera.fetch.SetDistance(originalDistance);

            yield return(new WaitForSeconds(.2f));

            foreach (Vessel v in vesselList)
            {
                //				Debug.Log ("[AH] Computing real signal for : " + v.GetName ());
                AHShipList.ComputeRealSignal(v);
            }

            isReady = true;
            AHShipList.shipListReady = true;
            //			Debug.Log ("[AH] shipList is now ready");
            //			foreach (KeyValuePair<string, Dictionary<string, string>> kvp in AHShipList.GetShipList (false, true)) {
            //				Debug.Log ("[AH]");
            //				foreach (KeyValuePair<string, string> kvp2 in kvp.Value) {
            //					Debug.Log ("[AH] " + kvp2.Key + " : " + kvp2.Value);
            //				}
            //				Debug.Log ("[AH]");
            //			}
        }
Esempio n. 3
0
 private void GetListShipTransmitter()
 {
     listShipTransmitter = new Dictionary <string, Dictionary <string, string> > (AHShipList.GetShipList(true, true));
 }
Esempio n. 4
0
 private void GetShipList()
 {
     externListShipEditor = AHShipList.GetShipList(true, false);
     externListShipFlight = AHShipList.GetShipList(false, true);
     GetGUIShipList();
 }