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; }
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); } }
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); } }
public void CargoDepot(string key, JournalCargoDepot cd) { Missions[key] = new MissionState(Missions[key], cd); // copy previous mission state, add completed }