public void notify(Objectives.ObjectiveTypes objectiveType)
 {
     foreach (var o in observers)
     {
         o.update(objectiveType);
     }
 }
示例#2
0
    // MARK: IObjectivesObserver

    public void update(Objectives.ObjectiveTypes objectiveType)
    {
        //foreach objective in fetched list, we increment the progress and trigger the Step use case if needed
        for (int id = 0; id < interactor.fetchedObjectives.Length; id++)
        {
            if (interactor.fetchedObjectives[id].type == objectiveType)
            {
                step(id);
            }
        }
    }