コード例 #1
0
        public MissionState(MissionState other, JournalCargoDepot cd)           // cargo depot
        {
            Mission    = other.Mission;
            Redirected = other.Redirected;                                      // no completed, since we can't be
            CargoDepot = cd;

            State          = other.State;
            MissionEndTime = other.MissionEndTime;
            sys            = other.sys;
            body           = other.body;
        }
コード例 #2
0
ファイル: MissionList.cs プロジェクト: taemtha/EDDiscovery
        public void CargoDepot(JournalCargoDepot m)
        {
            string key = missionlist.GetExistingKeyFromID(m.MissionId);

            if (key != null)
            {
                missionlist = new MissionList(missionlist);     // shallow copy
                missionlist.CargoDepot(key, m);
            }
            else
            {
                System.Diagnostics.Debug.WriteLine("Missions: Unknown " + m.MissionId);
            }
        }
コード例 #3
0
        public void CargoDepot(JournalCargoDepot cd)
        {
            string key = GetExistingKeyFromID(cd.MissionId);

            if (key != null)
            {
                MissionState m = history.GetLast(key);       // we must have a last entry to add
                if (m != null)
                {
                    history.AddGeneration(key, new MissionState(m, cd));
                }
                else
                {
                    System.Diagnostics.Debug.WriteLine("Missions: Unknown " + key);
                }
            }
            else
            {
                System.Diagnostics.Debug.WriteLine("Missions: Not found " + cd.MissionId);
            }
        }
コード例 #4
0
ファイル: MissionList.cs プロジェクト: taemtha/EDDiscovery
 public void CargoDepot(string key, JournalCargoDepot cd)
 {
     Missions[key] = new MissionState(Missions[key], cd); // copy previous mission state, add completed
 }