Ejemplo n.º 1
0
 internal Instance(IInterface inter,
                   string next = "NONE",
                   MailServer.EMailData email = default(MailServer.EMailData))
     : base(inter.DefaultGoals ?? new List <MisisonGoal>(), next ?? "NONE", email)
 {
     Interface = inter;
     goals.ForEach((goal) =>
     {
         var g = goal as GoalInstance;
         if (g != null)
         {
             g.Mission = this;
         }
         Interface.OnGoalAdd(this, goal);
     });
 }