Пример #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));
     }
 }
Пример #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));
     }
 }
Пример #3
0
 public MissionListAccumulator()
 {
     current = new MissionList();
 }
Пример #4
0
 public MissionList(MissionList other)
 {
     Missions = new Dictionary <string, MissionState>(other.Missions);
 }