Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
 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));
     }
 }
Beispiel #3
0
 public MissionListAccumulator()
 {
     current = new MissionList();
 }
Beispiel #4
0
 public MissionList(MissionList other)
 {
     Missions = new Dictionary <string, MissionState>(other.Missions);
 }