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