예제 #1
0
 /// <summary>
 /// Scores all missions.
 /// </summary>
 /// <description>
 /// If multiple errors occur, returns the first error.
 /// </description>
 /// <returns>The aggregate score.</returns>
 public ScoreInfo Score()
 {
     ScoreInfo score = new ScoreInfo();
       foreach (ScoreDelegate call in calls_)
     score.Add(call(false));
       if (score.Points < 0) score.Points = 0;
       return score;
 }
예제 #2
0
파일: Common.cs 프로젝트: mnedelman/scorer
 public void Add(ScoreInfo score)
 {
     AddPoints(score.Points);
       AddError(score.Error);
 }