public void Failed(JournalMissionFailed m) { if (current.Missions.ContainsKey(MissionList.Key(m))) // make sure not repeating, ignore if so { current = new MissionList(current); // shallow copy current.Failed(m); } else { System.Diagnostics.Debug.WriteLine("Missions: Unknown " + MissionList.Key(m)); } }
public void Accepted(JournalMissionAccepted m, EDDiscovery.DB.ISystem sys, string body) { if (!current.Missions.ContainsKey(MissionList.Key(m))) // make sure not repeating, ignore if so { current = new MissionList(current); // shallow copy current.Add(m, sys, body); } else { System.Diagnostics.Debug.WriteLine("Missions: Duplicate " + MissionList.Key(m)); } }
public MissionListAccumulator() { current = new MissionList(); }
public MissionList(MissionList other) { Missions = new Dictionary <string, MissionState>(other.Missions); }