public async Task ChangeStatusChildObjective(long childObjectiveid, ObjectiveStatus objectiveStatus)
 {
     await _childObjectiveRepository.UpdateStatus(childObjectiveid, objectiveStatus);
 }
 public async Task ChangeStatusMainObjective(long mainObjectiveId, ObjectiveStatus objectiveStatus)
 {
     await _mainObjectiveRepository.UpdateStatus(mainObjectiveId, objectiveStatus);
 }
Example #3
0
 public Objective(ObjectiveType type, string text, ObjectiveStatus status)
 {
     Type   = type;
     Text   = text;
     Status = status;
 }
Example #4
0
 public Objective(ObjectiveType type, string text, ObjectiveStatus status)
 {
     Type = type;
     Text = text;
     Status = status;
 }
Example #5
0
 static string GetObjectiveStatusText(ObjectiveStatus status)
 {
     switch (status)
     {
         case ObjectiveStatus.InProgress: return "In Progress";
         case ObjectiveStatus.Completed: return "Completed";
         case ObjectiveStatus.Failed: return "Failed";
         default: return "";
     }
 }
Example #6
0
 public ResourceObjective(int amountToKeep)
 {
     this.amountToKeep = amountToKeep;
     this.status       = ObjectiveStatus.InProgress;
 }
Example #7
0
 void Awake()
 {
     status        = ObjectiveStatus.Inactive;
     currentAmount = 0;
 }