/// <summary>
 /// Handles mission-revoked events. If the <c>Challenge</c> was completed before, but now
 /// one of its child <c>Mission</c>s is incomplete, the <c>Challenge</c> is revoked as well.
 /// </summary>
 /// <param name="mission">The <c>Mission</c> that triggered the event.</param>
 public void onMissionCompletionRevoked(Mission mission)
 {
     if (Missions.Contains(mission))
     {
         if (MissionStorage.IsCompleted(this))
         {
             setCompletedInner(false);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if this <c>Mission</c> has ever been completed - no matter how many times.
 /// </summary>
 /// <returns>If this instance is completed returns <c>true</c>; otherwise <c>false</c>.</returns>
 public virtual bool IsCompleted()
 {
     return(MissionStorage.IsCompleted(this));
 }